/* Project Name : - ICT In Education Toolkit Created On : - 24 Dec 2004 Purpose : - This is the script for the login page of the user section. Created By : - Dharmendra Sharma Include Files : - Common Files - connection.php, variables.php Last Updated By : - Sonjara, Siobhan Green Updates Done : - December 12, 2006 */ // included main_include.php which include itself files for database connection(connection.php), // globals variables declaration(variables.php) located in path '../codelibrary/inc/' include_once('../codelibrary/inc/connection.php'); include_once('../codelibrary/inc/variables.php'); include_once('../codelibrary/classes/container.php'); include_once('../codelibrary/classes/user.php'); #set the temporary varaiables if (!$msg) $msg = "0"; #check if the user login form is submitted - if the username and password entered are correct then set session variables and redirect to the home.php else again show the login form with the error message if (isset($usr_submit)) { $user_pwd = sha1($user_login_id . $user_pwd); unset($_SESSION["user_id"]); unset($_SESSION["user_login_id"]); unset($_SESSION["user_pwd"]); unset($_SESSION["user_role"]); unset($_SESSION["user_country_id"]); unset($_SESSION["user_terms"]); $query = "where user_login_id = '$user_login_id' and user_pwd = '$user_pwd' and role != 'survey' and status = 'y'"; //trace("login: $user_login_id/$user_pwd",3); $user = querySingle(User, $query); if ($user) { // register and set session variable sess_user_login_id. sess_user_pwd for username and password $_SESSION["user_id"] = $user->
![]()
Version 2.0
|
![]() |
||||||
|
ICT-in-Education Toolkit provides education policy makers, planners and practitioners with a systematic process to formulate, plan and evaluate education development programs enhanced by Information and Communication Technologies (ICTs).
The Toolkit contains also a Reference Handbook that summarizes worldwide knowledge, research, and experience on the effective use of ICTs for Education. |
|