Revision 883
Added by thorn almost 16 years ago
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 |
$r_type = $admin->add_slashes($_POST['r_type']); |
|
37 | 38 |
if(isset($_POST['extern'])) |
38 | 39 |
$extern = $admin->add_slashes($_POST['extern']); |
39 | 40 |
else |
... | ... | |
41 | 42 |
|
42 | 43 |
$table_pages = TABLE_PREFIX.'pages'; |
43 | 44 |
$table_mod = TABLE_PREFIX.'mod_menu_link'; |
44 |
$database->query("UPDATE $table_pages SET target = '$url_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'");
|
|
45 |
$database->query("UPDATE `$table_pages` SET `target` = '$url_target' WHERE `page_id` = '$page_id'");
|
|
46 |
$database->query("UPDATE `$table_mod` SET `target_page_id` = '$foreign_page_id', `anchor` = '$page_target', `extern` = '$extern', `redirect_type` = '$r_type' WHERE `page_id` = '$page_id'");
|
|
46 | 47 |
} |
47 | 48 |
|
48 | 49 |
// Check if there is a database error, otherwise say successful |
Also available in: Unified diff
added redirect-type (301/302) to menu_link