edit_user.php
changeset 126 cb06e3e29ed8
parent 119 f74e4f88b680
child 184 b60b88b1ae08
equal deleted inserted replaced
125:700a3674b72e 126:cb06e3e29ed8
    25 $edit_id = "-1";
    25 $edit_id = "-1";
    26 if (isset($_GET['id']) && v_num($_GET['id'])) {
    26 if (isset($_GET['id']) && v_num($_GET['id'])) {
    27 	$edit_id = $_GET['id'];
    27 	$edit_id = $_GET['id'];
    28 }
    28 }
    29 
    29 
    30 verify_permission(user_edit_own) ? $perm_edit_own = "1" : $perm_edit_own = "0" ;
    30 verify_permission('user_edit_own') ? $perm_edit_own = "1" : $perm_edit_own = "0" ;
    31 verify_permission(user_edit_others) ? $perm_edit_others = "1" : $perm_edit_others = "0" ;
    31 verify_permission('user_edit_others') ? $perm_edit_others = "1" : $perm_edit_others = "0" ;
    32 
    32 
    33 if ($edit_id == "-1") {
    33 if ($edit_id == "-1") {
    34 	error(ERR_INV_INPUT);
    34 	error(ERR_INV_INPUT);
    35 } elseif (($edit_id == $_SESSION["userid"] && $perm_edit_own == "1") || ($edit_id != $_SESSION["userid"] && $perm_edit_others == "1" )) {
    35 } elseif (($edit_id == $_SESSION["userid"] && $perm_edit_own == "1") || ($edit_id != $_SESSION["userid"] && $perm_edit_others == "1" )) {
    36 
    36