Indents local.inc.php

skala
Noel Dieschburg 14 years ago
parent 5a3f3045b2
commit 7c807b4b14
  1. 38
      main/inc/local.inc.php

@ -17,7 +17,7 @@
* same as the current one. If it isn't it will update session information from * same as the current one. If it isn't it will update session information from
* the database. You can also force the course reset if you want ($gidReset). * the database. You can also force the course reset if you want ($gidReset).
* *
The course id is stored in $_cid session variable. The course id is stored in $_cid session variable.
* The group id is stored in $_gid session variable. * The group id is stored in $_gid session variable.
* *
* *
@ -71,16 +71,16 @@ The course id is stored in $_cid session variable.
* string $_course['extLink' ]['url' ] * string $_course['extLink' ]['url' ]
* string $_course['extLink' ]['name'] * string $_course['extLink' ]['name']
* string $_course['categoryCode'] * string $_course['categoryCode']
* string $_course['categoryName'] * string $_course['categoryName']
* boolean $is_courseMember * boolean $is_courseMember
* boolean $is_courseTutor * boolean $is_courseTutor
* boolean $is_courseAdmin * boolean $is_courseAdmin
* *
* *
* GROUP VARIABLES * GROUP VARIABLES
* *
* int $_gid (the group id) * int $_gid (the group id)
* *
* *
* IMPORTANT ADVICE FOR DEVELOPERS * IMPORTANT ADVICE FOR DEVELOPERS
@ -122,20 +122,20 @@ The course id is stored in $_cid session variable.
* 7. The script initializes the user status and permission for the group level. * 7. The script initializes the user status and permission for the group level.
* *
* @package chamilo.include * @package chamilo.include
*/ */
/* /*
INIT SECTION INIT SECTION
variables should be initialised here variables should be initialised here
*/ */
require_once api_get_path(LIBRARY_PATH).'course.lib.php'; require_once api_get_path(LIBRARY_PATH).'course.lib.php';
require_once (api_get_path(LIBRARY_PATH).'conditionallogin.lib.php'); require_once (api_get_path(LIBRARY_PATH).'conditionallogin.lib.php');
// verified if exists the username and password in session current // verified if exists the username and password in session current
if (isset($_SESSION['info_current_user'][1]) && isset($_SESSION['info_current_user'][2])) { if (isset($_SESSION['info_current_user'][1]) && isset($_SESSION['info_current_user'][2])) {
require_once api_get_path(LIBRARY_PATH).'usermanager.lib.php'; require_once api_get_path(LIBRARY_PATH).'usermanager.lib.php';
require_once api_get_path(LIBRARY_PATH).'legal.lib.php'; require_once api_get_path(LIBRARY_PATH).'legal.lib.php';
} }
//Conditional login //Conditional login
if (isset($_SESSION['conditional_login']['uid']) && $_SESSION['conditional_login']['can_login']=== true){ if (isset($_SESSION['conditional_login']['uid']) && $_SESSION['conditional_login']['can_login']=== true){
require_once (api_get_path(LIBRARY_PATH).'usermanager.lib.php'); require_once (api_get_path(LIBRARY_PATH).'usermanager.lib.php');
@ -177,7 +177,7 @@ $login = isset($_POST["login"]) ? $_POST["login"] : '';
/* /*
MAIN CODE MAIN CODE
*/ */
if (!empty($_SESSION['_user']['user_id']) && ! ($login || $logout)) { if (!empty($_SESSION['_user']['user_id']) && ! ($login || $logout)) {
// uid is in session => login already done, continue with this value // uid is in session => login already done, continue with this value

Loading…
Cancel
Save