Project

General

Profile

« Previous | Next » 

Revision 1425

Added by Dietmar almost 14 years ago

redefined wrong admin backlinks

View differences:

add.php
21 21
require_once(WB_PATH.'/framework/class.admin.php');
22 22
$admin = new admin('Access', 'groups_add');
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

  
30 33
// Gather details entered
31 34
$group_name = $admin->get_post('group_name');
32 35

  
33
// Create a javascript back link
34
$js_back = "javascript: history.go(-1);";
35

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

Also available in: Unified diff