# HG changeset patch # User Dan # Date 1191194524 14400 # Node ID 9b4279c25d33b1108621a48320e367c8685fe9fa # Parent 824821224153a95476eb5ca161e9e682db9645c0# Parent 134ed87c8950addb1c457140a441869daee3d68d Merging branches from Scribus and Nighthawk diff -r 134ed87c8950 -r 9b4279c25d33 .hgtags --- a/.hgtags Sun Sep 30 19:16:36 2007 -0400 +++ b/.hgtags Sun Sep 30 19:22:04 2007 -0400 @@ -3,5 +3,3 @@ 8df3abef66473fef1a8ecbbd60a4e94e4f466ec4 release ca9118d9c0f2be22407860f41523f47b2862b34a rebrand 6f0bbf88c3251ca597cb76ac8b59a1ee61d6dd3d rebrand -0b5244001799fa29e83bf06c5f14eb69350f171c rebrand -42c6c83b8a004163c9cc2d85f3c8eada3b73adf6 rebrand diff -r 134ed87c8950 -r 9b4279c25d33 includes/clientside/static/acl.js --- a/includes/clientside/static/acl.js Sun Sep 30 19:16:36 2007 -0400 +++ b/includes/clientside/static/acl.js Sun Sep 30 19:22:04 2007 -0400 @@ -4,6 +4,9 @@ var aclPermList = false; var aclDataCache = false; +// Can be set to true by slow themes (St. Patty) +var aclDisableTransitionFX = false; + function ajaxOpenACLManager(page_id, namespace) { if(IE) @@ -494,7 +497,7 @@ function __aclBuildWizardWindow() { - darken(); + darken(aclDisableTransitionFX); box = document.createElement('div'); box.style.width = '640px' box.style.height = '440px'; @@ -570,7 +573,16 @@ body = document.getElementsByTagName('body')[0]; body.appendChild(box); - setTimeout("document.getElementById('"+aclManagerID+"').style.display = 'block'; opacity('"+aclManagerID+"', 0, 100, 500); opacity('"+aclManagerID + '_panel'+"', 0, 100, 500);", 1000); + if ( aclDisableTransitionFX ) + { + document.getElementById(aclManagerID).style.display = 'block'; + changeOpac(100, aclManagerID); + changeOpac(100, aclManagerID + '_panel'); + } + else + { + setTimeout("document.getElementById('"+aclManagerID+"').style.display = 'block'; opacity('"+aclManagerID+"', 0, 100, 500); opacity('"+aclManagerID + '_panel'+"', 0, 100, 500);", 1000); + } } function killACLManager() @@ -578,8 +590,16 @@ el = document.getElementById(aclManagerID); if(el) { - opacity(aclManagerID, 100, 0, 500); - setTimeout('var el = document.getElementById(aclManagerID); el.parentNode.removeChild(el); enlighten();', 750); + if ( aclDisableTransitionFX ) + { + enlighten(true); + el.parentNode.removeChild(el); + } + else + { + opacity(aclManagerID, 100, 0, 500); + setTimeout('var el = document.getElementById(aclManagerID); el.parentNode.removeChild(el); enlighten();', 750); + } } } diff -r 134ed87c8950 -r 9b4279c25d33 includes/clientside/static/faders.js --- a/includes/clientside/static/faders.js Sun Sep 30 19:16:36 2007 -0400 +++ b/includes/clientside/static/faders.js Sun Sep 30 19:22:04 2007 -0400 @@ -93,18 +93,29 @@ var y = getScrollOffset(); if(document.getElementById('messageBox')) return; darken(true); + if ( aclDisableTransitionFX ) + { + document.getElementById('specialLayer_darkener').style.zIndex = '5'; + } var master_div = document.createElement('div'); + master_div.style.zIndex = '6'; var mydiv = document.createElement('div'); mydiv.style.width = '400px'; mydiv.style.height = '200px'; w = getWidth(); h = getHeight(); - //master_div.style.left = (w / 2) - 200+'px'; - //master_div.style.top = (h / 2) + y - 120+'px'; - master_div.style.top = '-10000px'; - master_div.style.position = ( IE ) ? 'absolute' : 'fixed'; - z = getHighestZ(); // document.getElementById('specialLayer_darkener').style.zIndex; - mydiv.style.zIndex = parseInt(z) + 1; + if ( aclDisableTransitionFX ) + { + master_div.style.left = ((w / 2) - 200)+'px'; + master_div.style.top = ((h / 2) + y - 120)+'px'; + master_div.style.position = 'absolute'; + } + else + { + master_div.style.top = '-10000px'; + master_div.style.position = ( IE ) ? 'absolute' : 'fixed'; + } + z = ( aclDisableTransitionFX ) ? document.getElementById('specialLayer_darkener').style.zIndex : getHighestZ(); mydiv.style.backgroundColor = '#FFFFFF'; mydiv.style.padding = '10px'; mydiv.style.marginBottom = '1px'; @@ -115,11 +126,13 @@ buttondiv.style.width = '400px'; w = getWidth(); h = getHeight(); - // buttondiv.style.left = (w / 2) - 200+'px'; - // buttondiv.style.top = (h / 2) + y + 101+'px'; - // buttondiv.style.position = ( IE ) ? 'absolute' : 'fixed'; - z = getHighestZ(); // document.getElementById('specialLayer_darkener').style.zIndex; - buttondiv.style.zIndex = parseInt(z) + 1; + if ( aclDisableTransitionFX ) + { + //buttondiv.style.left = ((w / 2) - 200)+'px'; + //buttondiv.style.top = ((h / 2) + y + 101)+'px'; + } + //buttondiv.style.position = ( IE ) ? 'absolute' : 'fixed'; + z = ( aclDisableTransitionFX ) ? document.getElementById('specialLayer_darkener').style.zIndex : getHighestZ(); buttondiv.style.backgroundColor = '#C0C0C0'; buttondiv.style.padding = '10px'; buttondiv.style.textAlign = 'right'; @@ -265,7 +278,8 @@ body.appendChild(master_div); - setTimeout('mb_runFlyIn();', 100); + if ( !aclDisableTransitionFX ) + setTimeout('mb_runFlyIn();', 100); this.onclick = new Array(); this.onbeforeclick = new Array(); @@ -293,9 +307,19 @@ var mydiv = document.getElementById('messageBox'); var maindiv = mydiv.parentNode; - var to = fly_out_top(maindiv, true, false); - setTimeout("var mbdiv = document.getElementById('messageBox'); mbdiv.parentNode.removeChild(mbdiv.nextSibling); mbdiv.parentNode.removeChild(mbdiv); enlighten(true);", to); + if ( aclDisableTransitionFX ) + { + var mbdiv = document.getElementById('messageBox'); + mbdiv.parentNode.removeChild(mbdiv.nextSibling); + mbdiv.parentNode.removeChild(mbdiv); + enlighten(true); + } + else + { + var to = fly_out_top(maindiv, true, false); + setTimeout("var mbdiv = document.getElementById('messageBox'); mbdiv.parentNode.removeChild(mbdiv.nextSibling); mbdiv.parentNode.removeChild(mbdiv); enlighten(true);", to); + } if(typeof mb.onclick[val] == 'function') { o = mb.onclick[val]; diff -r 134ed87c8950 -r 9b4279c25d33 includes/common.php --- a/includes/common.php Sun Sep 30 19:16:36 2007 -0400 +++ b/includes/common.php Sun Sep 30 19:22:04 2007 -0400 @@ -23,7 +23,7 @@ exit; } -$version = '1.0.2'; +$version = '1.0.2b1'; function microtime_float() { diff -r 134ed87c8950 -r 9b4279c25d33 includes/paths.php --- a/includes/paths.php Sun Sep 30 19:16:36 2007 -0400 +++ b/includes/paths.php Sun Sep 30 19:22:04 2007 -0400 @@ -857,7 +857,7 @@ $page_id = $db->escape(sanitize_page_id($page_id)); if ( !isset($this->nslist[$namespace]) ) - die('$paths->get_page_groups(): HACKING ATTEMPT'); + die('$paths->get_page_groups(): HACKING ATTEMPT: namespace "'. htmlspecialchars($namespace) .'" doesn\'t exist'); $group_list = array(); diff -r 134ed87c8950 -r 9b4279c25d33 install.php --- a/install.php Sun Sep 30 19:16:36 2007 -0400 +++ b/install.php Sun Sep 30 19:22:04 2007 -0400 @@ -15,7 +15,7 @@ @include('config.php'); if( ( defined('ENANO_INSTALLED') || defined('MIDGET_INSTALLED') ) && ((isset($_GET['mode']) && ($_GET['mode']!='finish' && $_GET['mode']!='css')) || !isset($_GET['mode']))) { - $_GET['title'] = 'Enano:Installation_locked'; + $_GET['title'] = 'Enano:WhoCaresWhatThisIs'; require('includes/common.php'); die_friendly('Installation locked', '

The Enano installer has found a Enano installation in this directory. You MUST delete config.php if you want to re-install Enano.

If you wish to upgrade an older Enano installation to this version, please use the upgrade script.

'); exit; @@ -25,6 +25,7 @@ define('ENANO_VERSION', '1.0.2'); // In beta versions, define ENANO_BETA_VERSION here +define('ENANO_BETA_VERSION', '1'); if(!defined('scriptPath')) { $sp = dirname($_SERVER['REQUEST_URI']); @@ -260,7 +261,7 @@ } $template = new template_nodb(); -$template->load_theme('oxygen', 'bleu', false); +$template->load_theme('stpatty', 'shamrock', false); $modestrings = Array( 'welcome' => 'Welcome', @@ -313,9 +314,9 @@ case 'welcome': ?>
- [ Enano CMS Project logo ] + [ Enano CMS Project logo ]

Welcome to Enano

-

version 1.0.2 – stable
+

version 1.0.2 – beta 1
also affectionately known as "coblynau" :)