Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/user.php

11 lines
381 B

<?php
//Temporal hack to redirect calls to the new web/index.php
require_once 'main/inc/global.inc.php';
$path = api_get_path(WEB_PUBLIC_PATH);
$array_keys = isset($_GET) ? array_keys($_GET) : null;
if (!empty($array_keys)) {
$username = Security::remove_XSS(substr($array_keys[0], 0, 100)); // max len of an username
header('Location: '.$path.'user/'.$username);
}
exit;