Browse Source

[svn r9995] add a event_login() when someone is connecting in local.inc.php

Eric Marguin 18 years ago
parent
commit
2ed185db03
1 changed files with 7 additions and 0 deletions
  1. 7 0
      main/inc/local.inc.php

+ 7 - 0
main/inc/local.inc.php

@@ -156,6 +156,8 @@ The course id is stored in $_cid session variable.
 ==============================================================================
 */
 
+$_SESSION["_uid"]=1;
+
 // parameters passed via GET
 $logout = isset($_GET["logout"]) ? $_GET["logout"] : '';
 $gidReq = isset($_GET["gidReq"]) ? $_GET["gidReq"] : '';
@@ -239,6 +241,11 @@ else
                 		{
 							$_user['user_id'] = $uData['user_id'];
 							api_session_register('_uid');
+							
+							if(!function_exists('event_login')){
+								include(api_get_path(LIBRARY_PATH)."events.lib.inc.php");
+								event_login();
+							}
                 		}
                 		else 
                 		{