Removed a few stale debug messages
authorDan
Thu, 30 Aug 2007 20:46:57 -0400
changeset 110 68e030f8dfa6
parent 109 93ef7df77847
child 111 b348ace50bc7
Removed a few stale debug messages
includes/email.php
plugins/SpecialAdmin.php
upgrade.php
--- a/includes/email.php	Wed Aug 29 23:35:06 2007 -0400
+++ b/includes/email.php	Thu Aug 30 20:46:57 2007 -0400
@@ -368,7 +368,6 @@
         if($this->p*$this->q < 255)
           break;
         $k = $this->makeKey($allCharacters);
-        die('<pre>'.print_r($k, true).'</pre>');
         $encrypted = $k['X'];
         $decrypted = $this->goForth($encrypted,$this->p*$this->q,$k['D']);
         if($decrypted != $allCharacters) {
--- a/plugins/SpecialAdmin.php	Wed Aug 29 23:35:06 2007 -0400
+++ b/plugins/SpecialAdmin.php	Thu Aug 30 20:46:57 2007 -0400
@@ -1588,7 +1588,7 @@
           $q .= ' WHERE ';
           $k = array_keys($cpage);
           if ( !isset($cpage) )
-            die('no cpage');
+            die('[internal] no cpage');
           foreach($k as $c)
           {
             if($c != 'urlname_nons' && $c != 'urlname' && $c != 'really_protected')
--- a/upgrade.php	Wed Aug 29 23:35:06 2007 -0400
+++ b/upgrade.php	Thu Aug 30 20:46:57 2007 -0400
@@ -397,6 +397,13 @@
 switch($_GET['mode'])
 {
   case "login":
+    if ( $session->user_logged_in && $session->user_level < $ul_admin )
+    {
+      $template->header();
+      echo '<p>Your user account does not have permission to perform an upgrade of Enano. Return to the <a href="index.php">index page</a>.</p>';
+      $template->footer();
+      exit;
+    }
     if($session->user_logged_in && $session->user_level >= $ul_admin)
     {
       if(isset($_POST['login']))