equal
deleted
inserted
replaced
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 |