public/main/admin/user_edit.php
Variable "user_id" is not in valid camel caps format Open
Open
$userInfo = api_get_user_info($user_id);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
api_protect_super_admin($user_id, null, true);
- Exclude checks
Variable "is_platform_admin" is not in valid camel caps format Open
Open
var is_platform_id = "'.$is_platform_admin.'";
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data['platform_admin'] = is_null($user_data['is_admin']) ? 0 : 1;
- Exclude checks
Variable "table_admin" is not in valid camel caps format Open
Open
LEFT JOIN $table_admin a ON a.user_id = u.id
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id = isset($_GET['user_id']) ? (int) $_GET['user_id'] : (int) $_POST['user_id'];
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data = Database::fetch_assoc($res);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
WHERE u.id = '".$user_id."'";
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data['platform_admin'] = is_null($user_data['is_admin']) ? 0 : 1;
- Exclude checks
Variable "table_user" is not in valid camel caps format Open
Open
$sql = "SELECT u.*, a.user_id AS is_admin FROM $table_user u
- Exclude checks
Variable "table_user" is not in valid camel caps format Open
Open
$table_user = Database::get_main_table(TABLE_MAIN_USER);
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data['old_password'] = $user_data['password'];
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_PLATFORM_ADMIN;
- Exclude checks
Variable "is_platform_admin" is not in valid camel caps format Open
Open
$is_platform_admin = api_is_platform_admin() ? 1 : 0;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$userObj = api_get_user_entity($user_id);
- Exclude checks
Variable "table_admin" is not in valid camel caps format Open
Open
$table_admin = Database::get_main_table(TABLE_MAIN_ADMIN);
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data['send_mail'] = 0;
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$tool_name = get_lang('Edit user information');
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data['registration_date'] = api_get_local_time($user_data['registration_date']);
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data['registration_date'] = api_get_local_time($user_data['registration_date']);
- Exclude checks
Variable "picture_uri" is not in valid camel caps format Open
Open
$picture_uri = $user_data['picture_uri'];
- Exclude checks
Variable "official_code" is not in valid camel caps format Open
Open
$official_code = $user['official_code'];
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$studentBossList = UserManager::getStudentBossList($user_id);
- Exclude checks
Variable "error_drh" is not in valid camel caps format Open
Open
$error_drh = false;
- Exclude checks
Variable "reset_password" is not in valid camel caps format Open
Open
if (2 == $reset_password && empty($user['password'])) {
- Exclude checks
Variable "error_drh" is not in valid camel caps format Open
Open
$error_drh = true;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$picture_uri = UserManager::deleteUserPicture($user_id);
- Exclude checks
Variable "send_mail" is not in valid camel caps format Open
Open
$send_mail,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$bigImage = UserManager::getUserPicture($user_id, USER_IMAGE_SIZE_ORIGINAL);
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$creatorInfo = api_get_user_info($user_data['creator_id']);
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$form->addElement('hidden', 'active', $user_data['active']);
- Exclude checks
Variable "expiration_date" is not in valid camel caps format Open
Open
$expiration_date = $user_data['expiration_date'];
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$expiration_date = $user_data['expiration_date'];
- Exclude checks
Variable "send_mail" is not in valid camel caps format Open
Open
$send_mail = (int) $user['send_mail'];
- Exclude checks
Variable "allowed_picture_types" is not in valid camel caps format Open
Open
$allowed_picture_types
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$form->addRule('username', get_lang('This login is already in use'), 'username_available', $user_data['username']);
- Exclude checks
Variable "auth_sources" is not in valid camel caps format Open
Open
$auth_sources[$key] = $key;
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$display = isset($user_data['status']) && (STUDENT == $user_data['status'] || (isset($_POST['status']) && STUDENT == $_POST['status'])) ? 'block' : 'none';
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$form->addElement('hidden', 'expiration_date', $user_data['expiration_date']);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
header('Location: '.api_get_self().'?user_id='.$user_id);
- Exclude checks
Variable "picture_uri" is not in valid camel caps format Open
Open
$picture_uri = UserManager::deleteUserPicture($user_id);
- Exclude checks
Variable "picture_uri" is not in valid camel caps format Open
Open
$picture_uri = UserManager::deleteUserPicture($user_id);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id,
- Exclude checks
Variable "official_code" is not in valid camel caps format Open
Open
$official_code,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
'admin/user_list.php?action=login_as&user_id='.$user_id.'&sec_token='.Security::getTokenFromSession()
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
unset($user_data['password']);
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data['expiration_date'] = api_get_local_time($expiration_date);
- Exclude checks
Variable "platform_admin" is not in valid camel caps format Open
Open
$platform_admin = (int) $user['platform_admin'];
- Exclude checks
Variable "error_drh" is not in valid camel caps format Open
Open
if ($error_drh) {
- Exclude checks
Variable "allowed_picture_types" is not in valid camel caps format Open
Open
$allowed_picture_types = api_get_supported_image_extensions(false);
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$display = isset($user_data['status']) && (STUDENT == $user_data['status'] || (isset($_POST['status']) && STUDENT == $_POST['status'])) ? 'block' : 'none';
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$isUserEditingOwnAccount = ($user_data['id'] === api_get_user_id());
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$form->setDefaults($user_data);
- Exclude checks
Variable "picture_element" is not in valid camel caps format Open
Open
$picture_element = $form->getElement('picture');
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$picture_uri = UserManager::deleteUserPicture($user_id);
- Exclude checks
Variable "platform_admin" is not in valid camel caps format Open
Open
if (1 == $platform_admin) {
- Exclude checks
Variable "auth_sources" is not in valid camel caps format Open
Open
$group[] = $form->createElement('select', 'auth_source', null, $auth_sources);
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data['reset_password'] = 0;
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data['expiration_date'] = api_get_local_time();
- Exclude checks
Variable "expiration_date" is not in valid camel caps format Open
Open
$user_data['expiration_date'] = api_get_local_time($expiration_date);
- Exclude checks
Variable "expiration_date" is not in valid camel caps format Open
Open
$expiration_date = !empty($user['expiration_date']) ? $user['expiration_date'] : null;
- Exclude checks
Variable "hr_dept_id" is not in valid camel caps format Open
Open
$hr_dept_id,
- Exclude checks
Variable "reset_password" is not in valid camel caps format Open
Open
$reset_password,
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$hideFields = $isUserEditingOwnAccount || USER_SOFT_DELETED == $user_data['active'];
- Exclude checks
Variable "is_user_subscribed_in_course" is not in valid camel caps format Open
Open
if (DRH == $user['status'] && $is_user_subscribed_in_course) {
- Exclude checks
Variable "picture_element" is not in valid camel caps format Open
Open
$picture = $picture_element->getValue();
- Exclude checks
Variable "picture_uri" is not in valid camel caps format Open
Open
$picture_uri,
- Exclude checks
Variable "expiration_date" is not in valid camel caps format Open
Open
$expiration_date,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
api_get_path(WEB_CODE_PATH).'admin/user_information.php?user_id='.$user_id
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
api_get_self().'?user_id='.$user_id,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
api_get_path(WEB_CODE_PATH).'admin/user_edit.php?user_id='.$user_id
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data['old_password'] = $user_data['password'];
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
if ($user_id != $currentUserId) {
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$form->addElement('header', $tool_name);
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$form->addRule('email', get_lang('This login is already in use'), 'username_available', $user_data['username']);
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
1 == $user_data['status'] ? $display = 'block' : $display = 'none';
- Exclude checks
Variable "is_user_subscribed_in_course" is not in valid camel caps format Open
Open
$is_user_subscribed_in_course = CourseManager::is_user_subscribed_in_course($user['user_id']);
- Exclude checks
Variable "picture_uri" is not in valid camel caps format Open
Open
$picture_uri = UserManager::update_user_picture(
- Exclude checks
Variable "platform_admin" is not in valid camel caps format Open
Open
if (1 == $platform_admin) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$userInfo = api_get_user_info($user_id);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$form->addElement('hidden', 'user_id', $user_id);
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
'user_information.php?user_id='.$user_data['creator_id'],
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data['registration_date']
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data['student_boss'] = $studentBossList;
- Exclude checks
Variable "reset_password" is not in valid camel caps format Open
Open
$reset_password = (int) $user['reset_password'];
- Exclude checks
Variable "reset_password" is not in valid camel caps format Open
Open
$reset_password = (int) $user['reset_password'];
- Exclude checks
Variable "nb_ext_auth_source_added" is not in valid camel caps format Open
Open
$nb_ext_auth_source_added = 0;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id,
- Exclude checks
Variable "expiration_date" is not in valid camel caps format Open
Open
if (empty($expiration_date)) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$normalImage = UserManager::getUserPicture($user_id, USER_IMAGE_SIZE_BIG);
- Exclude checks
Variable "auth_sources" is not in valid camel caps format Open
Open
$auth_sources = [];
- Exclude checks
Variable "nb_ext_auth_source_added" is not in valid camel caps format Open
Open
if ($nb_ext_auth_source_added > 0) {
- Exclude checks
Variable "auth_source" is not in valid camel caps format Open
Open
$auth_source = $user['auth_source'] ?? $userInfo['auth_source'];
- Exclude checks
Variable "hr_dept_id" is not in valid camel caps format Open
Open
$hr_dept_id = isset($user['hr_dept_id']) ? intval($user['hr_dept_id']) : null;
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$tpl = new Template($tool_name);
- Exclude checks
Variable "allowed_picture_types" is not in valid camel caps format Open
Open
get_lang('Only PNG, JPG or GIF images allowed').' ('.implode(',', $allowed_picture_types).')',
- Exclude checks
Variable "nb_ext_auth_source_added" is not in valid camel caps format Open
Open
$nb_ext_auth_source_added++;
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data['radio_expiration_date'] = 0;
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data['radio_expiration_date'] = 1;
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$picture_uri = $user_data['picture_uri'];
- Exclude checks
Variable "expiration_date" is not in valid camel caps format Open
Open
$expiration_date = null;
- Exclude checks
Variable "auth_source" is not in valid camel caps format Open
Open
$auth_source,
- Exclude checks