# HG changeset patch # User Dan # Date 1183646256 14400 # Node ID 45ebe475ff758ba79e20298f28186d943ccf20c2 # Parent 7c7920b65f428d440b5bb52d1aea5aa555e0367d I dunno how many times I'm gonna have to fix the "problem seems to be the hex conversion" bug, but this is at least the fourth try. diff -r 7c7920b65f42 -r 45ebe475ff75 includes/clientside/css/enano-shared.css --- a/includes/clientside/css/enano-shared.css Tue Jul 03 14:21:33 2007 -0400 +++ b/includes/clientside/css/enano-shared.css Thu Jul 05 10:37:36 2007 -0400 @@ -9,11 +9,11 @@ div.question-box { background-image: url(../../../images/question.png); background-position: 8px 8px; background-repeat: no-repeat; background-color: #F4FFF4; border: 1px dashed #406080; padding: 10px 10px 10px 50px; margin: 1em 0 0 0; min-height: 25px; } div.wait-box { background-image: url(../../../images/wait.png); background-position: 8px 8px; background-repeat: no-repeat; background-color: #FFF4FF; border: 1px dashed #406080; padding: 10px 10px 10px 50px; margin: 1em 0 0 0; min-height: 25px; } -div.error-box-mini { background-image: url(../../../images/mini-error.png); background-position: 5px 5px; background-repeat: no-repeat; background-color: #FFF4F4; border: 1px solid #406080; padding: 4px 4px 4px 26px; margin: 1em 0; min-height: 17px; } -div.info-box-mini { background-image: url(../../../images/mini-info.png); background-position: 5px 5px; background-repeat: no-repeat; background-color: #F4F4FF; border: 1px solid #406080; padding: 4px 4px 4px 26px; margin: 1em 0; min-height: 17px; } -div.warning-box-mini { background-image: url(../../../images/mini-warning.png); background-position: 5px 5px; background-repeat: no-repeat; background-color: #FFFFF4; border: 1px solid #406080; padding: 4px 4px 4px 26px; margin: 1em 0; min-height: 17px; } -div.question-box-mini { background-image: url(../../../images/mini-question.png); background-position: 5px 5px; background-repeat: no-repeat; background-color: #F4FFF4; border: 1px solid #406080; padding: 4px 4px 4px 26px; margin: 1em 0; min-height: 17px; } -div.wait-box-mini { background-image: url(../../../images/mini-wait.png); background-position: 5px 5px; background-repeat: no-repeat; background-color: #FFF4FF; border: 1px solid #406080; padding: 4px 4px 4px 26px; margin: 1em 0; min-height: 17px; } +div.error-box-mini { background-image: url(../../../images/mini-error.png); background-position: 5px center; background-repeat: no-repeat; background-color: #FFF4F4; border: 1px solid #406080; padding: 4px 4px 4px 26px; margin: 1em 0; min-height: 17px; } +div.info-box-mini { background-image: url(../../../images/mini-info.png); background-position: 5px center; background-repeat: no-repeat; background-color: #F4F4FF; border: 1px solid #406080; padding: 4px 4px 4px 26px; margin: 1em 0; min-height: 17px; } +div.warning-box-mini { background-image: url(../../../images/mini-warning.png); background-position: 5px center; background-repeat: no-repeat; background-color: #FFFFF4; border: 1px solid #406080; padding: 4px 4px 4px 26px; margin: 1em 0; min-height: 17px; } +div.question-box-mini { background-image: url(../../../images/mini-question.png); background-position: 5px center; background-repeat: no-repeat; background-color: #F4FFF4; border: 1px solid #406080; padding: 4px 4px 4px 26px; margin: 1em 0; min-height: 17px; } +div.wait-box-mini { background-image: url(../../../images/mini-wait.png); background-position: 5px center; background-repeat: no-repeat; background-color: #FFF4FF; border: 1px solid #406080; padding: 4px 4px 4px 26px; margin: 1em 0; min-height: 17px; } /* Similar to the Mediawiki-ish alert box (usermessage) */ diff -r 7c7920b65f42 -r 45ebe475ff75 includes/clientside/static/acl.js --- a/includes/clientside/static/acl.js Tue Jul 03 14:21:33 2007 -0400 +++ b/includes/clientside/static/acl.js Thu Jul 05 10:37:36 2007 -0400 @@ -105,6 +105,12 @@ lbl.style.display = 'block'; span.appendChild(grpsel); + anoninfo = document.createElement('div'); + anoninfo.className = 'info-box-mini'; + anoninfo.appendChild(document.createTextNode('To edit permissions for guests, select "a specific user", and enter Anonymous as the username.')); + span.appendChild(document.createElement('br')); + span.appendChild(anoninfo); + usrb = document.createElement('input'); usrb.type = 'radio'; usrb.name = 'target_type'; @@ -174,7 +180,7 @@ container = document.createElement('div'); container.style.margin = 'auto'; container.style.width = '360px'; - container.style.paddingTop = '70px'; + container.style.paddingTop = '100px'; head = document.createElement('h2'); head.appendChild(document.createTextNode('Manage page access')); @@ -367,6 +373,8 @@ document.getElementById(aclManagerID + '_main').innerHTML += '

Delete this rule

'; //fadeInfoBoxes(); document.getElementById(aclManagerID+'_main').scrollTop = 0; + + aclDataCache.mode = 'save_edit'; break; case 'delete': @@ -389,6 +397,9 @@ note = document.createElement('div'); note.className = 'info-box'; note.style.marginLeft = '0'; + note.style.position = 'absolute'; + note.style.width = '558px'; + note.id = 'aclSuccessNotice_' + Math.floor(Math.random() * 100000); b = document.createElement('b'); b.appendChild(document.createTextNode('Entry deleted')); note.appendChild(b); @@ -397,7 +408,7 @@ note.appendChild(document.createElement('br')); a = document.createElement('a'); a.href = '#'; - a.onclick = function() { this.parentNode.parentNode.removeChild(this.parentNode); return false; }; + a.onclick = function() { opacity(this.parentNode.id, 100, 0, 1000); setTimeout('var div = document.getElementById("' + this.parentNode.id + '"); div.parentNode.removeChild(div);', 1100); return false; }; a.appendChild(document.createTextNode('[ dismiss :')); note.appendChild(a); a = document.createElement('a'); @@ -714,8 +725,22 @@ function __aclDeleteRule() { - if(!aclDataCache) return false; - if(aclDataCache.mode != 'seltarget') return false; + if(!aclDataCache) + { + if ( window.console ) + { + try{ console.error('ACL editor: can\'t load data cache on delete'); } catch(e) {}; + } + return false; + } + if(aclDataCache.mode != 'seltarget' && aclDataCache.mode != 'save_new' && aclDataCache.mode != 'save_edit') + { + if ( window.console ) + { + try{ console.error('ACL editor: wrong mode on aclDataCache: ' + aclDataCache.mode); } catch(e) {}; + } + return false; + } parms = { 'target_type' : aclDataCache.target_type, 'target_id' : aclDataCache.target_id, diff -r 7c7920b65f42 -r 45ebe475ff75 includes/rijndael.php --- a/includes/rijndael.php Tue Jul 03 14:21:33 2007 -0400 +++ b/includes/rijndael.php Thu Jul 05 10:37:36 2007 -0400 @@ -770,7 +770,7 @@ $cryptext = $this->rijndaelEncrypt($text, $key, 'ECB'); if(!is_array($cryptext)) { - echo 'Warning: encryption failed for string: '.$text.'
'; + echo 'Warning: encryption failed for string: '.print_r($text,true).'
'; return false; } switch($return_encoding) diff -r 7c7920b65f42 -r 45ebe475ff75 includes/sessions.php --- a/includes/sessions.php Tue Jul 03 14:21:33 2007 -0400 +++ b/includes/sessions.php Thu Jul 05 10:37:36 2007 -0400 @@ -1396,7 +1396,7 @@ $db->free_result(); $user_id =& $row['user_id']; - $this->sql('INSERT INTO '.table_prefix.'user_extra(user_id) VALUES(' . $user_id . ');'); + $this->sql('INSERT INTO '.table_prefix.'users_extra(user_id) VALUES(' . $user_id . ');'); } // Require the account to be activated? diff -r 7c7920b65f42 -r 45ebe475ff75 index.php --- a/index.php Tue Jul 03 14:21:33 2007 -0400 +++ b/index.php Thu Jul 05 10:37:36 2007 -0400 @@ -11,38 +11,38 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. * */ - + // Set up gzip encoding before any output is sent - + $aggressive_optimize_html = false; - + global $do_gzip; $do_gzip = false; - + if(isset($_SERVER['PATH_INFO'])) $v = $_SERVER['PATH_INFO']; elseif(isset($_GET['title'])) $v = $_GET['title']; else $v = ''; - + error_reporting(E_ALL); - + // if(!strstr($v, 'CSS') && !strstr($v, 'UploadFile') && !strstr($v, 'DownloadFile')) // These pages are blacklisted because we can't have debugConsole's HTML output disrupting the flow of header() calls and whatnot // { // $do_gzip = ( function_exists('gzcompress') && ( isset($_SERVER['HTTP_ACCEPT_ENCODING']) && strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') ) ) ? true : false; // // Uncomment the following line to enable debugConsole (requires PHP 5 or later) // // define('ENANO_DEBUG', ''); // } - + if(defined('ENANO_DEBUG')) $do_gzip = false; - + if($aggressive_optimize_html || $do_gzip) { ob_start(); } - + require('includes/common.php'); - + global $db, $session, $paths, $template, $plugins; // Common objects - + if(!isset($_GET['do'])) $_GET['do'] = 'view'; switch($_GET['do']) { @@ -129,7 +129,7 @@
'; if($paths->wiki_mode) - echo 'Edit summary:

'; + echo 'Edit summary:

'; echo '
@@ -223,7 +223,7 @@ echo 'None; Warning: request validation will fail after clicking submit'; } ?>

-

+

footer(); @@ -240,10 +240,10 @@ Error: you must enter a new name for this page.

'; ?>

Please enter a new name for this page:

-

+

footer(); + $template->footer(); break; case 'flushlogs': if(!$session->get_permissions('clear_logs')) die_friendly('Access denied', '

Flushing the logs for a page requires administrative rights.

'); @@ -360,7 +360,7 @@ PageUtils::aclmanager($data); break; } - + // // Optimize HTML by replacing newlines with spaces (excludes
,