# 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 += '
'; //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.'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,