Revision 42
Added by stefan about 20 years ago
| add.php | ||
|---|---|---|
| 77 | 77 |
$database = new database(); |
| 78 | 78 |
$get_same_page = $database->query("SELECT page_id FROM ".TABLE_PREFIX."pages WHERE link = '$link'");
|
| 79 | 79 |
if($get_same_page->numRows() > 0) {
|
| 80 |
$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']); |
|
| 80 |
$admin->print_error("database");
|
|
| 81 |
// $admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']); |
|
| 81 | 82 |
} elseif(file_exists(WB_PATH.PAGES_DIRECTORY.$link.'.php')) {
|
| 82 |
$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']); |
|
| 83 |
$admin->print_error(WB_PATH.PAGES_DIRECTORY.$link.'.php'); |
|
| 84 |
// $admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']); |
|
| 83 | 85 |
} elseif(file_exists(WB_PATH.PAGES_DIRECTORY.$link.'/')) {
|
| 84 |
$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']); |
|
| 86 |
$admin->print_error("dir");
|
|
| 87 |
// $admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']); |
|
| 85 | 88 |
} |
| 86 | 89 |
|
| 87 | 90 |
// Include the ordering class |
Also available in: Unified diff
Changed most occurrences of strip_slashes to new dummy method strip_slashes_dummy.