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', 'users_add');
23 23

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

  
24 27
// Create new database object
25 28
//$database = new database();
26 29
if( !$admin->checkFTAN() )
27 30
{
28
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],'index.php');
31
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], $js_back);
29 32
	exit();
30 33
}
31 34

  
......
42 45
$home_folder = $admin->get_post_escaped('home_folder');
43 46
$default_language = DEFAULT_LANGUAGE;
44 47

  
45
// Create a javascript back link
46
$js_back = 'javascript: history.go(-1);';
47

  
48 48
// Check values
49 49
if($groups_id == '') {
50 50
	$admin->print_error($MESSAGE['USERS']['NO_GROUP'], $js_back);

Also available in: Unified diff