|
|
|
@ -22,7 +22,7 @@ api_protect_super_admin($user_id); |
|
|
|
|
$htmlHeadXtra[] = ' |
|
|
|
|
<script> |
|
|
|
|
<!-- |
|
|
|
|
function enable_expiration_date() { //v2.0 |
|
|
|
|
function enable_expiration_date() { |
|
|
|
|
document.user_edit.radio_expiration_date[0].checked=false; |
|
|
|
|
document.user_edit.radio_expiration_date[1].checked=true; |
|
|
|
|
} |
|
|
|
@ -37,12 +37,15 @@ function password_switch_radio_button(){ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function display_drh_list(){ |
|
|
|
|
var $radios = $("input:radio[name=platform_admin]"); |
|
|
|
|
if(document.getElementById("status_select").value=='.COURSEMANAGER.') { |
|
|
|
|
document.getElementById("id_platform_admin").style.display="block"; |
|
|
|
|
} else if (document.getElementById("status_select").value=='.STUDENT.') { |
|
|
|
|
document.getElementById("id_platform_admin").style.display="none"; |
|
|
|
|
$radios.filter("[value=0]").attr("checked", true); |
|
|
|
|
} else { |
|
|
|
|
document.getElementById("id_platform_admin").style.display="none"; |
|
|
|
|
$radios.filter("[value=0]").attr("checked", true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -321,6 +324,11 @@ if ( $form->validate()) { |
|
|
|
|
} |
|
|
|
|
$active = $user_data['platform_admin'] ? 1 : intval($user['active']); |
|
|
|
|
|
|
|
|
|
//If the user is set to admin the status will be overwrite by COURSEMANAGER = 1 |
|
|
|
|
if ($platform_admin == 1) { |
|
|
|
|
$status = COURSEMANAGER; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (api_get_setting('login_is_email') == 'true') { |
|
|
|
|
$username = $email; |
|
|
|
|
} |
|
|
|
|