$this_section = SECTION_CAMPUS; $header_title = null; if (!api_is_anonymous()) { $header_title = " "; } // Facebook connexion, if activated /*if (api_is_facebook_auth_activated() && !api_get_user_id()) { facebookConnect(); } */ $controller = new IndexManager($header_title); //Actions $loginFailed = isset($_GET['loginFailed']) ? true : isset($loginFailed); if (!empty($_GET['logout'])) { $redirect = !empty($_GET['no_redirect']) ? false : true; $controller->logout($redirect); } /* Table definitions */ /* Constants and CONFIGURATION parameters */ /** @todo these configuration settings should move to the Chamilo config settings. */ /** Defines wether or not anonymous visitors can see a list of the courses on the Chamilo homepage that are open to the world. */ $_setting['display_courses_to_anonymous_users'] = 'true'; /* LOGIN */ /** * Registers in the track_e_default table (view in important activities in admin * interface) a possible attempted break in, sending auth data through get. * @todo This piece of code should probably move to local.inc.php where the actual login / logout procedure is handled. The real use of this code block should be seriously considered as well. This form should just use a security token and get done with it. */ if (isset($_GET['submitAuth']) && $_GET['submitAuth'] == 1) { $i = api_get_anonymous_id(); Event::addEvent(LOG_ATTEMPTED_FORCED_LOGIN, 'tried_hacking_get', $_SERVER['REMOTE_ADDR'] . (empty($_POST['login']) ? '' : '/' . $_POST['login']), null, $i);
<script type="text/javascript"> $(document).ready(function(){ $("#slider").bxSlider({ infiniteLoop : true, auto : true, pager : true, autoHover : true, pause : 10000 }); }); </script>'; $controller = new IndexManager($header_title); //Actions $loginFailed = isset($_GET['loginFailed']) ? true : isset($loginFailed); if (!empty($_GET['logout'])) { $controller->logout(); } /* Table definitions */ /* Constants and CONFIGURATION parameters */ /** @todo these configuration settings should move to the Chamilo config settings. */ /** Defines wether or not anonymous visitors can see a list of the courses on the Chamilo homepage that are open to the world. */ $_setting['display_courses_to_anonymous_users'] = 'true'; /* LOGIN */ /** * Registers in the track_e_default table (view in important activities in admin * interface) a possible attempted break in, sending auth data through get. * @todo This piece of code should probably move to local.inc.php where the actual login / logout procedure is handled. The real use of this code block should be seriously considered as well. This form should just use a security token and get done with it. */ if (isset($_GET['submitAuth']) && $_GET['submitAuth'] == 1) { $i = api_get_anonymous_id(); event_system(LOG_ATTEMPTED_FORCED_LOGIN, 'tried_hacking_get', $_SERVER['REMOTE_ADDR'] . (empty($_POST['login']) ? '' : '/' . $_POST['login']), null, $i);