Project

General

Profile

« Previous | Next » 

Revision 1425

Added by Dietmar almost 14 years ago

redefined wrong admin backlinks

View differences:

save.php
21 21
require_once(WB_PATH.'/framework/class.admin.php');
22 22
$admin = new admin('Access', 'groups_modify');
23 23

  
24
// Create a javascript back link
25
$js_back = ADMIN_URL.'/groups/index.php';
26

  
24 27
if (!$admin->checkFTAN())
25 28
{
26
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL);
29
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],$js_back);
27 30
	exit();
28 31
}
29 32

  
......
38 41
// Gather details entered
39 42
$group_name = $admin->get_post_escaped('group_name');
40 43

  
41
// Create a javascript back link
42
$js_back = "javascript: history.go(-1);";
43

  
44 44
// Check values
45 45
if($group_name == "") {
46 46
	$admin->print_error($MESSAGE['GROUPS']['GROUP_NAME_BLANK'], $js_back);

Also available in: Unified diff