Files
Chamilo/user.php
T
Xes 73154ae174
Behat tests 1.11.x 🐞 / PHP 7.4 Test on ubuntu-latest (push) Canceled after 0s
PHP-CS-Fixer / composer_install (7.4) (push) Canceled after 0s
Chamilo 1.11.40 (ZIP oficial v1.11.40)
Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip
sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439
Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
2026-08-06 17:59:45 +02:00

47 lines
1.1 KiB
PHP

<?php
/* For licensing terms, see /license.txt */
/**
* Clean URls for the Social Network.
*
* The idea is to access to the user info more easily:
* http://campus.chamilo.org/admin instead of
* http://campus.chamilo.org/main/social/profile.php?1
* To use this you should rename the htaccess to .htaccess and check your
* virtualhost configuration
*
* More improvements will come in next versions of Chamilo maybe in the 1.8.8
*
* @package chamilo.main
*/
$cidReset = true;
require_once 'main/inc/global.inc.php';
/**
* Access permissions check.
*/
//api_block_anonymous_users();
/**
* Treat URL arguments.
*/
$array_keys = array_keys($_GET);
if (empty($array_keys)) {
// we cant find your friend
header('Location: whoisonline.php');
exit;
}
$username = substr($array_keys[0], 0, 20); // max len of an username
$friend_id = UserManager::get_user_id_from_username($username);
if (!$friend_id) {
// we cant find your friend
header('Location: whoisonline.php');
exit;
}
Display::display_header(get_lang('UserInfo'));
echo SocialManager::display_individual_user($friend_id);
Display::display_footer();