# HG changeset patch # User Dan # Date 1188521217 14400 # Node ID 68e030f8dfa600ffd27d92bdd2974b2c96c8fda5 # Parent 93ef7df77847fad0daa8d580008626c5f1de808a Removed a few stale debug messages diff -r 93ef7df77847 -r 68e030f8dfa6 includes/email.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('
'.print_r($k, true).''); $encrypted = $k['X']; $decrypted = $this->goForth($encrypted,$this->p*$this->q,$k['D']); if($decrypted != $allCharacters) { diff -r 93ef7df77847 -r 68e030f8dfa6 plugins/SpecialAdmin.php --- 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') diff -r 93ef7df77847 -r 68e030f8dfa6 upgrade.php --- 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 '
Your user account does not have permission to perform an upgrade of Enano. Return to the index page.
'; + $template->footer(); + exit; + } if($session->user_logged_in && $session->user_level >= $ul_admin) { if(isset($_POST['login']))