Merging nighthawk and scribus branches
authorDan
Sat, 21 Mar 2009 18:58:41 -0400
changeset 329 e48b1937dfc3
parent 328 17eebd541742 (current diff)
parent 327 202c37a8713a (diff)
child 330 acf430dc25e7
Merging nighthawk and scribus branches
images/enano-artwork/installer-greeting-green.png
install.php
--- a/.hgtags	Sat Mar 21 18:57:34 2009 -0400
+++ b/.hgtags	Sat Mar 21 18:58:41 2009 -0400
@@ -6,5 +6,6 @@
 e49604416b5aaa71900c488cc3a34bb799a3f568 1.0.2
 8be996c3740dccf30ea470a597cd28bf9ce38cfb 1.0.3
 72ecb951b3137f7cb0f07dea50a7dcf2aa323382 1.0.4
-72ecb951b3137f7cb0f07dea50a7dcf2aa323382 current-stable
 36bcc9212837aab62e34fa66f0d600651d2a4814 1.0.5
+35e175170222e629aa638aef5685dfa33495cb57 1.0.6
+35e175170222e629aa638aef5685dfa33495cb57 current-stable
--- a/README	Sat Mar 21 18:57:34 2009 -0400
+++ b/README	Sat Mar 21 18:58:41 2009 -0400
@@ -1,5 +1,5 @@
 Enano CMS
-Version 1.0.5
+Version 1.0.6
 -----------------------------
 
 Thanks for downloading Enano! If you're looking for an installation guide,
@@ -71,7 +71,7 @@
 CHANGES IN THIS RELEASE
 -----------------------------
 
-Please see <http://enanocms.org/Release_notes/1.0.5> for a list of changes in
+Please see <http://enanocms.org/Release_notes/1.0.6> for a list of changes in
 this release.
 
 UPGRADING FROM PREVIOUS RELEASES
--- a/ajax.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/ajax.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
--- a/cron.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/cron.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
Binary file images/enano-artwork/installer-greeting-blue.png has changed
Binary file images/enano-artwork/installer-greeting-green.png has changed
--- a/includes/captcha.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/captcha.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  * captcha.php - visual confirmation system used during registration
  *
@@ -158,6 +158,21 @@
       unset($image);
       unset($_png);
     } elseif(defined('ENANO_CAPTCHA_BIGNFAT')) {
+      
+      /**************************************************************************
+       *                            usercp_confirm.php
+       *                            -------------------
+       *   begin                : Feb 23, 2006
+       *   copyright            : (C) 2006 AmigaLink
+       *   website              : www.AmigaLink.de
+       *
+       *   $Id: usercp_confirm.php,v 2.0.9.0 2006/03/29 14:03:00 AmigaLink Exp $
+       * ************************************************************************
+       * CAPTCHA engine by AmigaLink - Copyright (C) 2006
+       * Released under the GNU General Public License
+       * Modified for use in Enano approximately October 7, 2006
+       */
+      
       // Prefs
       $total_width = $this->captcha_config['width'];
       $total_height = $this->captcha_config['height'];
@@ -743,6 +758,6 @@
     
 }
 
-// define('ENANO_CAPTCHA_BIGNFAT', '');
+define('ENANO_CAPTCHA_BIGNFAT', '');
   
 ?>
--- a/includes/clientside/css/enano-shared.css	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/clientside/css/enano-shared.css	Sat Mar 21 18:58:41 2009 -0400
@@ -190,62 +190,6 @@
 div.search-lobar       { background-color: #E5EFFF; margin: 0; padding: 5px; }
 
 /*
- * Search box
- */
- 
-input.js-search-box {
-  font-size: 13px;
-  margin: 0;
-  padding: 1px !important;
-  background-image: url(../../../images/search-box-normal.gif);
-  height: 15px;
-  background-repeat: repeat-x;
-  border-width: 1px;
-  border-style: solid;
-  border-color: #6c6c6c;
-  color: #C0C0C0;
-}
-
-input.js-search-box:focus {
-  background-image: url(../../../images/search-box-hilite.gif);
-  color: #666;
-}
-
-div.js-search-submit {
-  display: block;
-  position: absolute;
-  width: 24px;
-  height: 19px;
-  font-size: 1px;
-  line-height: 19px;
-  clip: rect(0px, 24px, 19px, 0px);
-  overflow: hidden;
-  margin: 0;
-  padding: 0;
-  background: transparent url(../../../images/search-btn-normal.png) no-repeat !important;
-  background-repeat: no-repeat;
-  cursor: pointer;
-}
-
-div.js-search-submit:hover {
-  background-image: url(../../../images/search-btn-hilite.png);
-}
-
-input[type ^="text"].username, input[type ^="password"].password {
-  padding: 2px 2px 2px 27px;
-  width: 96px;
-  height: 15px;
-  border: 0px none #000;
-  font-size: 11px;
-}
-input[type ^="text"].username {
-  background-image: url(../../../images/login-username.png);
-}
-input[type ^="password"].password {
-  background-image: url(../../../images/login-password.png);
-}
-
-/*
  * jBox menu system
  */
 
--- a/includes/clientside/jsres.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/clientside/jsres.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  * jsres.php - the Enano client-side runtime, a.k.a. AJAX on steroids
  *
@@ -40,7 +40,7 @@
 {
   echo "/*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * [Aggressively compressed] Javascript client code
  * Copyright (C) 2006-2007 Dan Fuhry
  * Enano is Free Software, licensed under the GNU General Public License; see http://enanocms.org/ for details.
--- a/includes/comment.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/comment.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
--- a/includes/common.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/common.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
@@ -37,7 +37,7 @@
 // be the expected output of enano_version(), which will always be in the
 // format of 1.0.2, 1.0.2a1, 1.0.2b1, 1.0.2RC1
 // You'll want to change this for custom distributions.
-$version = '1.0.5';
+$version = '1.0.6';
 
 /**
  * Returns a floating-point number with the current UNIX timestamp in microseconds. Defined very early because we gotta call it
--- a/includes/constants.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/constants.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  * constants.php - important defines used Enano-wide
  *
--- a/includes/dbal.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/dbal.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
--- a/includes/email.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/email.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
--- a/includes/functions.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/functions.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
@@ -1139,26 +1139,19 @@
       '1.0.2'  => 'Coblynau',
       '1.0.3'  => 'Dyrad',
       '1.0.4'  => 'Ellyyllon',
-      '1.0.5'  => 'Ferrishyn'
+      '1.0.5'  => 'Ferrishyn',
+      '1.0.6'  => 'Roane'
     );
   $version = enano_version();
   if ( isset($names[$version]) )
   {
     return $names[$version];
   }
-  return 'Anonymous build';
+  return 'Unofficial build';
 }
 
 /**
- * What kinda sh** was I thinking when I wrote this. Deprecated.
- */
-
-function _dualurlenc($t) {
-  return rawurlencode(rawurlencode($t));
-}
-
-/**
- * Badly named function to send back eval'able Javascript code with an error message. Deprecated, use JSON instead.
+ * Badly named function to send back eval-able Javascript code with an error message. Deprecated, use JSON instead.
  * @param string Message to send
  */
 
@@ -1854,6 +1847,11 @@
   // <
   // The rule is so specific because everything else will have been filtered by now
   $html = preg_replace('/<(script|iframe)(.+?)src=([^>]*)</i', '&lt;\\1\\2src=\\3&lt;', $html);
+  
+  // Vulnerability reported by fuzion from nukeit.org:
+  // XSS in closing HTML tag style attribute
+  // Fix: escape all closing tags with non-whitelisted characters
+  $html = preg_replace('!</((?:.*)([^a-z0-9-_:]+)(?:.*))>!', '&lt;/\\1&gt;', $html);
 
   // Restore stripped comments
   $i = 0;
--- a/includes/js-compressor.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/js-compressor.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  * Javascript compression library - used to compact the client-side Javascript code (all 72KB of it!) to save some bandwidth
  *
--- a/includes/pageprocess.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/pageprocess.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * pageprocess.php - intelligent retrieval of pages
  * Copyright (C) 2006-2007 Dan Fuhry
  *
@@ -165,6 +165,11 @@
       $this->err_access_denied();
       return false;
     }
+    if ( $this->revision_id > 0 && !$this->perms->get_permissions('history_view') )
+    {
+      $this->err_access_denied();
+      return false;
+    }
     $pathskey = $paths->nslist[ $this->namespace ] . $this->page_id;
     $strict_no_headers = false;
     if ( isset($paths->pages[$pathskey]) )
--- a/includes/pageutils.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/pageutils.php	Sat Mar 21 18:58:41 2009 -0400
@@ -1,7 +1,7 @@
 <?php
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  * pageutils.php - a class that handles raw page manipulations, used mostly by AJAX requests or their old-fashioned form-based counterparts
  *
@@ -1451,6 +1451,8 @@
     if(!$e) $db->_die('The page entry could not be deleted.');
     $e = $db->sql_query('DELETE FROM ' . table_prefix.'files WHERE page_id=\'' . $page_id . '\'');
     if(!$e) $db->_die('The file entry could not be deleted.');
+    $e = $db->sql_query('DELETE FROM ' . table_prefix.'acl WHERE page_id=\'' . $page_id . '\' AND namespace=\'' . $namespace . '\'');
+    if(!$e) $db->_die('The ACL entries associated with the page could not be deleted.');
     return('This page has been deleted. Note that there is still a log of edits and actions in the database, and anyone with admin rights can raise this page from the dead unless the log is cleared. If the deleted file is an image, there may still be cached thumbnails of it in the cache/ directory, which is inaccessible to users.');
   }
   
--- a/includes/paths.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/paths.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /**
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  * paths.php - The part of Enano that actually manages content. Everything related to page handling and namespaces is in here.
  *
--- a/includes/plugins.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/plugins.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
--- a/includes/render.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/render.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  * render.php - handles fetching pages and parsing them into HTML
  *
--- a/includes/search.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/search.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  * search.php - algorithm used to search pages
  *
--- a/includes/sessions.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/sessions.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  * sessions.php - everything related to security and user management
  *
--- a/includes/stats.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/stats.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  * stats.php - handles statistics for pages (disablable in the admin CP)
  *
--- a/includes/tagcloud.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/tagcloud.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
--- a/includes/template.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/template.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
--- a/includes/wikiengine/Tables.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/includes/wikiengine/Tables.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
--- a/index.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/index.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
--- a/install.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/install.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  * install.php - handles everything related to installation and initial configuration
  *
@@ -30,8 +30,8 @@
 
 define('IN_ENANO_INSTALL', 'true');
 
-define('ENANO_VERSION', '1.0.5');
-define('ENANO_RELEASE_NAME', 'Ferrishyn');
+define('ENANO_VERSION', '1.0.6');
+define('ENANO_RELEASE_NAME', 'Roane');
 // In beta versions, define ENANO_BETA_VERSION here
 
 if(!defined('scriptPath')) {
@@ -1149,7 +1149,7 @@
   case 'welcome':
     ?>
     <div style="text-align: center; margin-top: 10px;">
-      <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 100px;" />
+      <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 114px;" />
       <h2>Welcome to Enano</h2>
       <h3>Version <?php echo ENANO_VERSION; ?> &ndash; stable<br />
       <span style="font-weight: normal;">also affectionately known as "<?php echo strtolower(ENANO_RELEASE_NAME); ?>" <tt>:)</tt></span></h3>
@@ -1531,7 +1531,7 @@
       <?php
       if ( defined('WINDOWS_MOD_REWRITE_WORKAROUNDS') )
       {
-        $patch_necessary = ( strtolower(PHP_OS) == 'win32' && strstr(@$_SERVER['SERVER_SOFTWARE'], 'Apache/2.2') );
+        $patch_necessary = ( ( strtolower(PHP_OS) == 'win32' || strtolower(PHP_OS) == 'winnt' ) && strstr(@$_SERVER['SERVER_SOFTWARE'], 'Apache/2.2') );
         ?>
           <div class="usermessage">
             <b>Your copy of Enano has the Windows mod_rewrite workaround patch enabled.</b><br />
--- a/licenses/index.html	Sat Mar 21 18:57:34 2009 -0400
+++ b/licenses/index.html	Sat Mar 21 18:58:41 2009 -0400
@@ -82,7 +82,7 @@
 <ul>
   <li><a href="http://phpwiki.sourceforge.net/">phpWiki</a> - just the diff engine, which is also used in MediaWiki</li>
   <li><a href="http://www.mediawiki.org/">MediaWiki</a>'s table parsing engine (the Text_Wiki one doesn't work in PHP 5.2.0)</li>
-  <li>One of the CAPTCHA easter eggs was ported from the phpBB <a href="http://phpbbhacks.com/download/6276">Advanced Visual Confirmation Mod</a>. The strange thing here is this: The installation instructions expressly state that the MOD is distributed under the GPL, but immediately afterwards it says that the MOD "can be freely used, but not distributed, without permission." Sorry buddy, but I'm with the FSF on this one, I'm legally allowed to distribute/modify it under the GPL.</li>
+  <li>The primary CAPTCHA engine as of Enano 1.0.7 was written by <a href="http://www.amigalink.de/">AmigaLink</a> and ported from the <a href="http://phpbbhacks.com/download/6276">Advanced Visual Confirmation Mod</a>. There were some licensing issues with the phpBB hack including a copy of the GPL not being included, but the actual CAPTCHA engine file had the GPLv2 or later header.</li>
   <li>The <a href="http://www.jracademy.com/~jtucek/">e-mail address encryption</a> routine was originally written by Jim Tucek, and ported to PHP by Dan Fuhry. Jim allowed the code to be released under the GPL specifically for Enano.</li>
   <li><a href="http://www.softcomplex.com/products/tigra_tree_menu/">Tigra Tree Menu</a> - a modified version that remembers the state of the tree. The license terms are stated <a href="http://www.softcomplex.com/products/tigra_tree_menu/docs/#terms_cond">here</a>. After <a href="tigra-menu.html">contacting the author</a>, I was given permission to use the Tigra Tree Menu code as if it were under the GNU GPL. Therefore, you may use this code unde the terms of the GPL, however if you're making commercial use of it, the Softcomplex guys would appreciate if (but not require that) you would contact them first.</li>
   <li><a href="http://youngpup.net/projects/dom-drag/">youngpup</a>'s DOM-Drag class - the unmodified version is <a href="http://youngpup.net/projects/dom-drag/license.txt">in the public domain</a>; we chose to relicense it as of Enano 1.0.4 to clear up any potential legal complications</li>
--- a/plugins/PrivateMessages.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/plugins/PrivateMessages.php	Sat Mar 21 18:58:41 2009 -0400
@@ -4,7 +4,7 @@
 Plugin URI: http://enanocms.org/
 Description: Provides the page Special:PrivateMessages, which is used to manage private message functions. Also handles buddy lists.
 Author: Dan Fuhry
-Version: 1.0.4
+Version: 1.0.6
 Author URI: http://enanocms.org/
 */
 
--- a/plugins/SpecialAdmin.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/plugins/SpecialAdmin.php	Sat Mar 21 18:58:41 2009 -0400
@@ -4,13 +4,13 @@
 Plugin URI: http://enanocms.org/
 Description: Provides the page Special:Administration, which is the AJAX frontend to the various Admin pagelets. This plugin cannot be disabled.
 Author: Dan Fuhry
-Version: 1.0.4
+Version: 1.0.6
 Author URI: http://enanocms.org/
 */
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
@@ -1431,6 +1431,7 @@
         'DELETE FROM '.table_prefix.'comments   WHERE page_id=\'' . $db->escape($_POST['old_page_id']) . '\' AND namespace=\'' . $db->escape($_POST['old_namespace']) . '\';',
         'DELETE FROM '.table_prefix.'logs       WHERE page_id=\'' . $db->escape($_POST['old_page_id']) . '\' AND namespace=\'' . $db->escape($_POST['old_namespace']) . '\';',
         'DELETE FROM '.table_prefix.'page_text  WHERE page_id=\'' . $db->escape($_POST['old_page_id']) . '\' AND namespace=\'' . $db->escape($_POST['old_namespace']) . '\';',
+        'DELETE FROM '.table_prefix.'acl        WHERE page_id=\'' . $db->escape($_POST['old_page_id']) . '\' AND namespace=\'' . $db->escape($_POST['old_namespace']) . '\';',
         );
       foreach($q as $cq)
       {
@@ -2626,11 +2627,11 @@
             </p>
             <p>
               <select name="type" onchange="setType(this)"> <?php /* (NOT WORKING, at least in firefox 2) onload="var thingy = this; setTimeout('setType(thingy)', 500);" */ ?>
-                <option value="<?php echo BLOCK_WIKIFORMAT; ?>">Wiki-formatted block</option>
-                <option value="<?php echo BLOCK_TEMPLATEFORMAT; ?>">Template-formatted block (old pre-beta 3 behavior)</option>
-                <option value="<?php echo BLOCK_HTML; ?>">Raw HTML block</option>
-                <option value="<?php echo BLOCK_PHP; ?>">PHP code block (danger, Will Robinson!)</option>
-                <option value="<?php echo BLOCK_PLUGIN; ?>">Use code from a plugin</option>
+                <option value="<?php echo BLOCK_WIKIFORMAT; ?>">Textual content (wikitext)</option>
+                <option value="<?php echo BLOCK_TEMPLATEFORMAT; ?>">List of links with logic capabilities</option>
+                <option value="<?php echo BLOCK_HTML; ?>">Pure HTML</option>
+                <option value="<?php echo BLOCK_PHP; ?>">PHP code</option>
+                <option value="<?php echo BLOCK_PLUGIN; ?>">Plugin block</option>
               </select>
             </p>
             
@@ -2643,6 +2644,10 @@
             
             <div class="sbadd_block" id="blocktype_<?php echo BLOCK_WIKIFORMAT; ?>">
               <p>
+                <b>This block type is for textual content.</b> This could be information, a random fact, or some other blob of fully formatted text. Links show up inline,
+                not as a list.
+              </p>
+              <p>
                 Wikitext:
               </p>
               <p>
@@ -2652,6 +2657,13 @@
             
             <div class="sbadd_block" id="blocktype_<?php echo BLOCK_TEMPLATEFORMAT; ?>">
               <p>
+                <b>This block type is for links.</b> Use wikilinks (both internal and external are supported) to build a list of links. All links will be shown block-style,
+                or one link per line. You can use logic in these blocks as well:
+              </p>
+              <pre>{if user_logged_in&#x7d;
+  [[Special:Preferences|User control panel]]
+{/if&#x7d;</pre>
+              <p>
                 Template code:
               </p>
               <p>
@@ -2661,6 +2673,10 @@
             
             <div class="sbadd_block" id="blocktype_<?php echo BLOCK_HTML; ?>">
               <p>
+                <b>This block type is for textual content.</b> HTML you use here will not be filtered or parsed at all - it will be displayed verbatim. This gives you
+                   slightly more control over your content but you can't use wikilinks or other wikitext in here.
+              </p>
+              <p>
                 HTML to place inside the sidebar:
               </p>
               <p>
@@ -2674,18 +2690,18 @@
               <?php } else { ?>
               <p>
                 <b>WARNING:</b> If you don't know what you're doing, or if you are not fluent in PHP, stop now and choose a different block type. You will brick your Enano installation if you are not careful here.
-                ALWAYS remember to write secure code! The Enano team is not responsible if someone drops all your tables because of an SQL injection vulnerability in your sidebar code. You are probably better off using the template-formatted block type.
+                ALWAYS remember to write secure code! The Enano team is not responsible if someone drops all your tables because of an SQL injection vulnerability in your sidebar code. You are probably better off using the links and logic block type.
               </p>
               <p>
                 <span style="color: red;">
-                  It is especially important to note that this code is NOT checked for errors! If there is a syntax error in your code here, it will prevent any pages from loading AT ALL. So you need to use an external PHP editor (like <a href="http://www.jedit.org">jEdit</a>) to check your syntax before you hit save.
+                  It is especially important to note that the syntax of your code is not validated here. If there is a syntax error in your code here, it might prevent Enano from working properly. It is recommended that you use an external PHP editor (like <a href="http://www.jedit.org">jEdit</a>) to check your syntax before you hit save.
                 </span> You have been warned.
               </p>
               <p>
                 Also, you should avoid using output buffering functions (ob_[start|end|get_contents|clean]) here, because Enano uses those to track output from this script.
               </p>
               <p>
-                The standard &lt;?php and ?&gt; tags work here. Don't use an initial "&lt;?php" or it will cause a parse error.
+                The standard &lt;?php and ?&gt; tags work here, but don't use an initial "&lt;?php" or it will cause a parse error.
               </p>
               <p>
                 PHP code:
--- a/plugins/SpecialCSS.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/plugins/SpecialCSS.php	Sat Mar 21 18:58:41 2009 -0400
@@ -4,7 +4,7 @@
 Plugin URI: http://enanocms.org/
 Description: Provides the page Special:CSS, which is used in template files to reference the style sheet. Disabling or deleting this plugin will result in site instability.
 Author: Dan Fuhry
-Version: 1.0.4
+Version: 1.0.6
 Author URI: http://enanocms.org/
 */
 
--- a/plugins/SpecialGroups.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/plugins/SpecialGroups.php	Sat Mar 21 18:58:41 2009 -0400
@@ -4,7 +4,7 @@
 Plugin URI: http://enanocms.org/
 Description: Provides group moderators and site administrators with the ability to control who is part of their groups. 
 Author: Dan Fuhry
-Version: 1.0.4
+Version: 1.0.6
 Author URI: http://enanocms.org/
 */
 
--- a/plugins/SpecialPageFuncs.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/plugins/SpecialPageFuncs.php	Sat Mar 21 18:58:41 2009 -0400
@@ -4,7 +4,7 @@
 Plugin URI: http://enanocms.org/
 Description: Provides the page Special:CreatePage, which can be used to create new pages. Also adds the About Enano and GNU General Public License pages.
 Author: Dan Fuhry
-Version: 1.0.4
+Version: 1.0.6
 Author URI: http://enanocms.org/
 */
 
--- a/plugins/SpecialSearch.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/plugins/SpecialSearch.php	Sat Mar 21 18:58:41 2009 -0400
@@ -4,7 +4,7 @@
 Plugin URI: http://enanocms.org/
 Description: Provides the page Special:Search, which is a frontend to the Enano search engine.
 Author: Dan Fuhry
-Version: 1.0.4
+Version: 1.0.6
 Author URI: http://enanocms.org/
 */
 
--- a/plugins/SpecialUpdownload.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/plugins/SpecialUpdownload.php	Sat Mar 21 18:58:41 2009 -0400
@@ -4,7 +4,7 @@
 Plugin URI: http://enanocms.org/
 Description: Provides the pages Special:UploadFile and Special:DownloadFile. UploadFile is used to upload files to the site, and DownloadFile fetches the file from the database, creates thumbnails if necessary, and sends the file to the user.
 Author: Dan Fuhry
-Version: 1.0.4
+Version: 1.0.6
 Author URI: http://enanocms.org/
 */
 
--- a/plugins/SpecialUserFuncs.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/plugins/SpecialUserFuncs.php	Sat Mar 21 18:58:41 2009 -0400
@@ -4,7 +4,7 @@
 Plugin URI: http://enanocms.org/
 Description: Provides the pages Special:Login, Special:Logout, Special:Register, and Special:Preferences.
 Author: Dan Fuhry
-Version: 1.0.4
+Version: 1.0.6
 Author URI: http://enanocms.org/
 */
 
--- a/plugins/SpecialUserPrefs.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/plugins/SpecialUserPrefs.php	Sat Mar 21 18:58:41 2009 -0400
@@ -4,7 +4,7 @@
 Plugin URI: http://enanocms.org/
 Description: Provides the page Special:Preferences.
 Author: Dan Fuhry
-Version: 1.0.4
+Version: 1.0.6
 Author URI: http://enanocms.org/
 */
 
--- a/plugins/admin/PageGroups.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/plugins/admin/PageGroups.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
--- a/plugins/admin/SecurityLog.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/plugins/admin/SecurityLog.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
--- a/plugins/admin/UserManager.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/plugins/admin/UserManager.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * Copyright (C) 2006-2007 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
--- a/upgrade.php	Sat Mar 21 18:57:34 2009 -0400
+++ b/upgrade.php	Sat Mar 21 18:58:41 2009 -0400
@@ -2,7 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.0.5 (Ferrishyn)
+ * Version 1.0.6 (Roane)
  * upgrade.php - upgrade script
  * Copyright (C) 2006-2007 Dan Fuhry
  *
@@ -70,7 +70,7 @@
 // Everything related to versions goes here!
 
 // Valid versions to upgrade from
-$valid_versions = Array('1.0b1', '1.0b2', '1.0b3', '1.0b4', '1.0RC1', '1.0RC2', '1.0RC3', '1.0', '1.0.1', '1.0.1.1', '1.0.2b1', '1.0.2', '1.0.3', '1.0.4');
+$valid_versions = Array('1.0b1', '1.0b2', '1.0b3', '1.0b4', '1.0RC1', '1.0RC2', '1.0RC3', '1.0', '1.0.1', '1.0.1.1', '1.0.2b1', '1.0.2', '1.0.3', '1.0.4', '1.0.5');
 
 // Basically a list of dependencies, which should be resolved automatically
 // If, for example, upgrading from 1.0b1 to 1.0RC1 requires one extra query that would not
@@ -88,9 +88,10 @@
     '1.0.1.1' => Array('1.0.2b1'),
     '1.0.2b1' => Array('1.0.2'),
     '1.0.2' => Array('1.0.3'),
-    '1.0.3' => Array('1.0.4')
+    '1.0.3' => Array('1.0.4'),
+    '1.0.4' => Array('1.0.5')
   );
-$this_version   = '1.0.5';
+$this_version   = '1.0.6';
 $func_list = Array(
     '1.0' => Array('u_1_0_1_update_del_votes'),
     '1.0b4' => Array('u_1_0_RC1_update_user_ids', 'u_1_0_RC1_add_admins_to_group', 'u_1_0_RC1_alter_files_table', 'u_1_0_RC1_destroy_session_cookie', 'u_1_0_RC1_set_contact_email', 'u_1_0_RC1_update_page_text'), // ,
@@ -563,7 +564,7 @@
     ?>
     
     <div style="text-align: center; margin-top: 10px;">
-      <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 134px;" />
+      <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 114px;" />
       <h2>Welcome to the Enano upgrade wizard</h2>
       <?php
       if ( file_exists('./_nightly.php') )
--- a/upgrade.sql	Sat Mar 21 18:57:34 2009 -0400
+++ b/upgrade.sql	Sat Mar 21 18:58:41 2009 -0400
@@ -3,7 +3,9 @@
 -- ALL NON-SQL LINES, even otherwise blank lines, must start with "--" or they will get sent to MySQL!
 -- Common tasks (version numbers)
 DELETE FROM {{TABLE_PREFIX}}config WHERE config_name='enano_version' OR config_name='enano_beta_version' OR config_name='enano_alpha_version' OR config_name='enano_rc_version';
-INSERT INTO {{TABLE_PREFIX}}config (config_name, config_value) VALUES( 'enano_version', '1.0.5' );
+INSERT INTO {{TABLE_PREFIX}}config (config_name, config_value) VALUES( 'enano_version', '1.0.6' );
+---BEGIN 1.0.5---
+---END 1.0.5---
 ---BEGIN 1.0.4---
 @ALTER TABLE {{TABLE_PREFIX}}tags CHANGE user user_id mediumint(8) NOT NULL DEFAULT 1;
 ---END 1.0.4---