From 5d2b13c7329383fe10366e1b68a24fb8e5d49df3 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Sat, 21 Jan 2012 10:16:13 -0500 Subject: db list capability added --- GradeBook_lib.tcl | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) (limited to 'GradeBook_lib.tcl') diff --git a/GradeBook_lib.tcl b/GradeBook_lib.tcl index 8d4fffc..c49ac19 100755 --- a/GradeBook_lib.tcl +++ b/GradeBook_lib.tcl @@ -928,6 +928,27 @@ proc htmlTop {permission_list} { } +proc html_Show_Classes_List {permission_list user} { + # list available class DBs + global GradebookServerConfig script_root_name + puts "
" + puts "Available classes are" + puts "" + puts "
" +} + proc htmlFooter {permission_list} { array set permission $permission_list global VERSION @@ -977,12 +998,12 @@ proc Greetings {} { proc askToLogin {} { global script_name - global user password + global user_requested password puts "
" puts "Either you are here first time or you password and user name does not match.
" puts "Please login
" puts "
" - puts "Login (email):
" + puts "Login (email):
" puts {Password:
} puts {} puts {} @@ -1040,11 +1061,12 @@ proc SendNewPassword2User { user password } { } proc LogMeOn {} { - global user password - set user [::ncgi::value user guest] + #more correctly set cookies + global user_requested password + set user_requested [::ncgi::value user guest] set password [::ncgi::value password guest] dbg "Logging in and setting cookies" 4 - ::ncgi::setCookie -name user -value $user + ::ncgi::setCookie -name user -value $user_requested ::ncgi::setCookie -name password -value $password set subaction [::ncgi::value subaction {}] @@ -1741,6 +1763,11 @@ proc ShowControls { permission_list user } { puts "
" } +proc Authenticate_User { user_requested password } { + #return __non_existing_user_ + return $user_requested +} + proc AccessGroupRights {db user password } { dbg "access rights check for user: $user" set PasswordHash [::md5::md5 -hex $password] -- cgit v1.2.3