Project

General

Profile

« Previous | Next » 

Revision 5

Added by stefan about 19 years ago

Restructured frontend code and fixed various bugs

View differences:

add.php
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 80
	$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']);
81
} elseif(file_exists(WB_PATH.$link.'.php')) {
81
} elseif(file_exists(WB_PATH.PAGES_DIRECTORY.$link.'.php')) {
82 82
	$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']);
83
} elseif(file_exists(WB_PATH.$link.'/')) {
83
} elseif(file_exists(WB_PATH.PAGES_DIRECTORY.$link.'/')) {
84 84
	$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']);
85 85
}
86 86

  
......
150 150
// Print admin footer
151 151
$admin->print_footer();
152 152

  
153
?>
153
?>

Also available in: Unified diff