Revision 1425
Added by Dietmar almost 14 years ago
save.php | ||
---|---|---|
21 | 21 |
require_once(WB_PATH.'/framework/class.admin.php'); |
22 | 22 |
$admin = new admin('Access', 'users_modify'); |
23 | 23 |
|
24 |
|
|
25 |
// Create a javascript back link |
|
26 |
$js_back = ADMIN_URL.'/users/index.php'; |
|
27 |
|
|
24 | 28 |
// Create new database object |
25 | 29 |
//$database = new database(); |
26 | 30 |
if( !$admin->checkFTAN() ) |
27 | 31 |
{ |
28 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],'index.php');
|
|
32 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],$js_back);
|
|
29 | 33 |
exit(); |
30 | 34 |
} |
31 | 35 |
|
... | ... | |
48 | 52 |
$email = $admin->get_post_escaped('email'); |
49 | 53 |
$home_folder = $admin->get_post_escaped('home_folder'); |
50 | 54 |
|
51 |
// Create a javascript back link |
|
52 |
$js_back = "javascript: history.go(-1);"; |
|
53 |
|
|
54 | 55 |
// Check values |
55 | 56 |
if($groups_id == "") { |
56 | 57 |
$admin->print_error($MESSAGE['USERS']['NO_GROUP'], $js_back); |
... | ... | |
106 | 107 |
} |
107 | 108 |
$database->query($query); |
108 | 109 |
if($database->is_error()) { |
109 |
$admin->print_error($database->get_error()); |
|
110 |
$admin->print_error($database->get_error(),$js_back);
|
|
110 | 111 |
} else { |
111 | 112 |
$admin->print_success($MESSAGE['USERS']['SAVED']); |
112 | 113 |
} |
Also available in: Unified diff
redefined wrong admin backlinks