Project

General

Profile

« Previous | Next » 

Revision 46

Added by stefan about 19 years ago

Fixed minor bugs

View differences:

add.php
76 76
// Check if a page with same page filename exists
77 77
$database = new database();
78 78
$get_same_page = $database->query("SELECT page_id FROM ".TABLE_PREFIX."pages WHERE link = '$link'");
79
if($get_same_page->numRows() > 0) {
80
	$admin->print_error("database");
81
//	$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']);
82
} elseif(file_exists(WB_PATH.PAGES_DIRECTORY.$link.'.php')) {
83
	$admin->print_error(WB_PATH.PAGES_DIRECTORY.$link.'.php');
84
//	$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']);
85
} elseif(file_exists(WB_PATH.PAGES_DIRECTORY.$link.'/')) {
86
	$admin->print_error("dir");
87
//	$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']);
79
if($get_same_page->numRows() > 0 OR file_exists(WB_PATH.PAGES_DIRECTORY.$link.'.php') OR file_exists(WB_PATH.PAGES_DIRECTORY.$link.'/')) {
80
	$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']);
88 81
}
89 82

  
90 83
// Include the ordering class

Also available in: Unified diff