Project

General

Profile

« Previous | Next » 

Revision 1425

Added by Dietmar almost 14 years ago

redefined wrong admin backlinks

View differences:

save.php
33 33
	$admin = new admin('Settings', 'settings_advanced');
34 34
}
35 35

  
36
// Create a javascript back link
37
$js_back = ADMIN_URL.'/settings/index.php'.$advanced;
38

  
36 39
if( !$admin->checkFTAN() )
37 40
{
38
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],'index.php');
41
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],$js_back );
39 42
	exit();
40 43
}
41 44

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

  
45 45
// Ensure that the specified default email is formally valid
46 46
if(isset($_POST['server_email']))
47 47
{
......
189 189
        if (!$database->query($sql))
190 190
        {
191 191
			if($database->is_error()) {
192
				$admin->print_error($database->get_error, ADMIN_URL.'/settings/index.php'.$advanced);
192
				$admin->print_error($database->get_error, $js_back );
193 193
			}
194 194
        }
195 195
	}
......
201 201
$res_search = $database->query($sql);
202 202

  
203 203
if($database->is_error()) {
204
	$admin->print_error($database->is_error(), ADMIN_URL.'/settings/index.php'.$advanced);
204
	$admin->print_error($database->is_error(), $js_back );
205 205
}
206 206

  
207 207
while($search_setting = $res_search->fetchRow())
......
229 229

  
230 230
// Check if there was an error updating the db
231 231
if($database->is_error()) {
232
	$admin->print_error($database->get_error, ADMIN_URL.'/settings/index.php'.$advanced);
232
	$admin->print_error($database->get_error, $js_back );
233 233
} else {
234
	$admin->print_success($MESSAGE['SETTINGS']['SAVED'], ADMIN_URL.'/settings/index.php'.$advanced);
234
	$admin->print_success($MESSAGE['SETTINGS']['SAVED'], $js_back );
235 235
}
236 236
$admin->print_footer();
237 237

  

Also available in: Unified diff