Project

General

Profile

« Previous | Next » 

Revision 698

Added by thorn almost 17 years ago

allow external links in menulink-module

View differences:

save.php
34 34
	$foreign_page_id = $admin->add_slashes($_POST['page_link']);
35 35
	$page_target = $admin->add_slashes($_POST['page_target']);
36 36
	$url_target = $admin->add_slashes($_POST['target']);
37
	if(isset($_POST['extern']))
38
		$extern = $admin->add_slashes($_POST['extern']);
39
	else
40
		$extern='';
37 41

  
38 42
	$table_pages = TABLE_PREFIX.'pages';
39 43
	$table_mod = TABLE_PREFIX.'mod_menu_link';
40 44
	$database->query("UPDATE $table_pages SET target = '$url_target' WHERE page_id = '$page_id'");
41
	$database->query("UPDATE $table_mod SET target_page_id = '$foreign_page_id', anchor = '$page_target' WHERE page_id = '$page_id'");
45
	$database->query("UPDATE $table_mod SET target_page_id = '$foreign_page_id', anchor = '$page_target', extern = '$extern' WHERE page_id = '$page_id'");
42 46
}
43 47

  
44 48
// Check if there is a database error, otherwise say successful

Also available in: Unified diff