diff -r bef105ffb017 -r ad667d767a0a inc/header.inc.php
--- a/inc/header.inc.php Mon Apr 28 18:47:19 2008 +0000
+++ b/inc/header.inc.php Mon Apr 28 19:05:06 2008 +0000
@@ -35,8 +35,11 @@
echo "
Poweradmin
\n";
-if (isset($_SESSION["userid"])) {
-
+if (file_exists('install')) {
+ error(ERR_INSTALL_DIR_EXISTS);
+ include('inc/footer.inc.php');
+ exit;
+} elseif (isset($_SESSION["userid"])) {
verify_permission('search') ? $perm_search = "1" : $perm_search = "0" ;
verify_permission('zone_content_view_own') ? $perm_view_zone_own = "1" : $perm_view_zone_own = "0" ;
verify_permission('zone_content_view_other') ? $perm_view_zone_other = "1" : $perm_view_zone_other = "0" ;
@@ -73,4 +76,3 @@
echo " \n";
-