# HG changeset patch
# User Dan
# Date 1193244305 14400
# Node ID 861807631f70218bf8f1cfef0553a0d9cee518d6
# Parent 8e2fffc5c622b5665ed59e8d20d874daf3005577# Parent 996572e55dc94fecf0b46fd196bbb97b12d0f277
Merging in fixes from stable
diff -r 8e2fffc5c622 -r 861807631f70 .hgtags
--- a/.hgtags Tue Oct 23 12:30:08 2007 -0400
+++ b/.hgtags Wed Oct 24 12:45:05 2007 -0400
@@ -5,3 +5,4 @@
6f0bbf88c3251ca597cb76ac8b59a1ee61d6dd3d rebrand
0b5244001799fa29e83bf06c5f14eb69350f171c rebrand
42c6c83b8a004163c9cc2d85f3c8eada3b73adf6 rebrand
+d53cc29308f4f4b97fc6d054e9e0855f37137409 rebrand
diff -r 8e2fffc5c622 -r 861807631f70 ajax.php
diff -r 8e2fffc5c622 -r 861807631f70 includes/captcha.php
--- a/includes/captcha.php Tue Oct 23 12:30:08 2007 -0400
+++ b/includes/captcha.php Wed Oct 24 12:45:05 2007 -0400
@@ -1,7 +1,8 @@
For security reasons, Enano mandates that high-privilege logins last only 15 minutes, with the time being reset each time a page is loaded (or, more specifically, each time the session API is started). The consequence of this is that if you are performing an action in the administration panel that takes more than 15 minutes, your session may be terminated. The keep-alive feature attempts to relieve this by sending a "ping" to the server every 10 minutes.
Please note that keep-alive state is determined by a cookie. Thus, if you log out and then back in as a different administrator, keep-alive will use the same setting that was used when you were logged in as the first administrative user. In the same way, if you log into the administration panel under your account from another computer, keep-alive will be set to "off".
For more information:
Overview of Enano'+"'"+'s security model');
}
+function ajaxShowCaptcha(code)
+{
+ var mydiv = document.createElement('div');
+ mydiv.style.backgroundColor = '#FFFFFF';
+ mydiv.style.padding = '10px';
+ mydiv.style.position = 'absolute';
+ mydiv.style.top = '0px';
+ mydiv.id = 'autoCaptcha';
+ var img = document.createElement('img');
+ img.onload = function()
+ {
+ if ( this.loaded )
+ return true;
+ var mydiv = document.getElementById('autoCaptcha');
+ var width = getWidth();
+ var divw = $(mydiv).Width();
+ var left = ( width / 2 ) - ( divw / 2 );
+ mydiv.style.left = left + 'px';
+ fly_in_top(mydiv, false, true);
+ this.loaded = true;
+ };
+ img.src = makeUrlNS('Special', 'Captcha/' + code);
+ img.onclick = function() { this.src = this.src + '/a'; };
+ img.style.cursor = 'pointer';
+ mydiv.appendChild(img);
+ domObjChangeOpac(0, mydiv);
+ var body = document.getElementsByTagName('body')[0];
+ body.appendChild(mydiv);
+}
+
diff -r 8e2fffc5c622 -r 861807631f70 includes/clientside/static/misc.js
diff -r 8e2fffc5c622 -r 861807631f70 includes/comment.php
--- a/includes/comment.php Tue Oct 23 12:30:08 2007 -0400
+++ b/includes/comment.php Wed Oct 24 12:45:05 2007 -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.2 (Coblynau)
+ * Version 1.1.1
* 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
diff -r 8e2fffc5c622 -r 861807631f70 includes/common.php
diff -r 8e2fffc5c622 -r 861807631f70 includes/constants.php
--- a/includes/constants.php Tue Oct 23 12:30:08 2007 -0400
+++ b/includes/constants.php Wed Oct 24 12:45:05 2007 -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.2 (Coblynau)
+ * Version 1.1.1
* Copyright (C) 2006-2007 Dan Fuhry
* constants.php - important defines used Enano-wide
*
@@ -70,7 +70,7 @@
define('MAX_PMS_PER_BATCH', 7); // The maximum number of users that users can send PMs to in one go; restriction does not apply to users with mod_misc rights
define('SEARCH_RESULTS_PER_PAGE', 10);
define('MYSQL_MAX_PACKET_SIZE', 1048576); // 1MB; this is the default in MySQL 4.x I think
-define('SEARCH_MODE', 'FULLTEXT'); // Can be FULLTEXT or BUILTIN
+define('SEARCH_MODE', 'BUILTIN'); // Can be FULLTEXT or BUILTIN
// Sidebar
diff -r 8e2fffc5c622 -r 861807631f70 includes/dbal.php
--- a/includes/dbal.php Tue Oct 23 12:30:08 2007 -0400
+++ b/includes/dbal.php Wed Oct 24 12:45:05 2007 -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.2 (Coblynau)
+ * Version 1.1.1
* 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
diff -r 8e2fffc5c622 -r 861807631f70 includes/email.php
--- a/includes/email.php Tue Oct 23 12:30:08 2007 -0400
+++ b/includes/email.php Wed Oct 24 12:45:05 2007 -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.2 (Coblynau)
+ * Version 1.1.1
* 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
diff -r 8e2fffc5c622 -r 861807631f70 includes/functions.php
diff -r 8e2fffc5c622 -r 861807631f70 includes/graphs.php
--- a/includes/graphs.php Tue Oct 23 12:30:08 2007 -0400
+++ b/includes/graphs.php Wed Oct 24 12:45:05 2007 -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.2 (Coblynau)
+ * Version 1.1.1
* 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
diff -r 8e2fffc5c622 -r 861807631f70 includes/js-compressor.php
--- a/includes/js-compressor.php Tue Oct 23 12:30:08 2007 -0400
+++ b/includes/js-compressor.php Wed Oct 24 12:45:05 2007 -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.2 (Coblynau)
+ * Version 1.1.1
* 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
*
diff -r 8e2fffc5c622 -r 861807631f70 includes/pageprocess.php
--- a/includes/pageprocess.php Tue Oct 23 12:30:08 2007 -0400
+++ b/includes/pageprocess.php Wed Oct 24 12:45:05 2007 -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.2 (Coblynau)
+ * Version 1.1.1
* pageprocess.php - intelligent retrieval of pages
* Copyright (C) 2006-2007 Dan Fuhry
*
diff -r 8e2fffc5c622 -r 861807631f70 includes/pageutils.php
diff -r 8e2fffc5c622 -r 861807631f70 includes/paths.php
--- a/includes/paths.php Tue Oct 23 12:30:08 2007 -0400
+++ b/includes/paths.php Wed Oct 24 12:45:05 2007 -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.2 (Coblynau)
+ * Version 1.1.1
* 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.
*
diff -r 8e2fffc5c622 -r 861807631f70 includes/plugins.php
--- a/includes/plugins.php Tue Oct 23 12:30:08 2007 -0400
+++ b/includes/plugins.php Wed Oct 24 12:45:05 2007 -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.2 (Coblynau)
+ * Version 1.1.1
* 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
diff -r 8e2fffc5c622 -r 861807631f70 includes/render.php
diff -r 8e2fffc5c622 -r 861807631f70 includes/search.php
--- a/includes/search.php Tue Oct 23 12:30:08 2007 -0400
+++ b/includes/search.php Wed Oct 24 12:45:05 2007 -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.2 (Coblynau)
+ * Version 1.1.1
* Copyright (C) 2006-2007 Dan Fuhry
* search.php - algorithm used to search pages
*
diff -r 8e2fffc5c622 -r 861807631f70 includes/sessions.php
diff -r 8e2fffc5c622 -r 861807631f70 includes/stats.php
--- a/includes/stats.php Tue Oct 23 12:30:08 2007 -0400
+++ b/includes/stats.php Wed Oct 24 12:45:05 2007 -0400
@@ -1,7 +1,8 @@
The affecting tag was updated.';
}
}
- else if ( $_POST['pg_type'] == PAGE_GRP_REGEX )
- {
- $target = $_POST['pg_target'];
- if ( empty($target) )
- {
- echo '
- ';
- break;
case PAGE_GRP_CATLINK:
// Build category list
diff -r 8e2fffc5c622 -r 861807631f70 plugins/admin/SecurityLog.php
--- a/plugins/admin/SecurityLog.php Tue Oct 23 12:30:08 2007 -0400
+++ b/plugins/admin/SecurityLog.php Wed Oct 24 12:45:05 2007 -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.2 (Coblynau)
+ * Version 1.1.1
* 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
diff -r 8e2fffc5c622 -r 861807631f70 plugins/admin/UserManager.php
--- a/plugins/admin/UserManager.php Tue Oct 23 12:30:08 2007 -0400
+++ b/plugins/admin/UserManager.php Wed Oct 24 12:45:05 2007 -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.2 (Coblynau)
+ * Version 1.1.1
* 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
diff -r 8e2fffc5c622 -r 861807631f70 schema.sql
--- a/schema.sql Tue Oct 23 12:30:08 2007 -0400
+++ b/schema.sql Wed Oct 24 12:45:05 2007 -0400
@@ -254,6 +254,16 @@
PRIMARY KEY ( tag_id )
) CHARACTER SET `utf8`;
+-- Added in 1.1.1
+
+CREATE TABLE {{TABLE_PREFIX}}lockout(
+ id int(12) NOT NULL auto_increment,
+ ipaddr varchar(40) NOT NULL,
+ action ENUM('credential', 'level') NOT NULL DEFAULT 'credential',
+ timestamp int(12) NOT NULL DEFAULT 0,
+ PRIMARY KEY ( id )
+) CHARACTER SET `utf8`;
+
INSERT INTO {{TABLE_PREFIX}}config(config_name, config_value) VALUES
('site_name', '{{SITE_NAME}}'),
('main_page', 'Main_Page'),
diff -r 8e2fffc5c622 -r 861807631f70 upgrade.php
--- a/upgrade.php Tue Oct 23 12:30:08 2007 -0400
+++ b/upgrade.php Wed Oct 24 12:45:05 2007 -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.2 (Coblynau)
+ * Version 1.1.1
* upgrade.php - upgrade script
* Copyright (C) 2006-2007 Dan Fuhry
*
@@ -61,7 +61,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');
+$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', 'Stable1.0ToUnstable1.1');
// 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
@@ -76,9 +76,11 @@
'1.0RC3' => Array('1.0'),
'1.0' => Array('1.0.1'),
'1.0.1' => Array('1.0.1.1'),
- '1.0.1.1' => Array('1.0.2b1')
+ '1.0.1.1' => Array('1.0.2b1'),
+ '1.0.2b1' => Array('Stable1.0ToUnstable1.1'),
+ 'Stable1.0ToUnstable1.1' => Array('1.1.1')
);
-$this_version = '1.0.2';
+$this_version = '1.1.1';
$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'), // ,
@@ -445,7 +447,7 @@
{
if(isset($_POST['login']))
{
- $session->login_without_crypto($_POST['username'], $_POST['password'], false, $ul_admin);
+ $result = $session->login_without_crypto($_POST['username'], $_POST['password'], false, $ul_admin);
if($session->sid_super)
{
header('Location: upgrade.php?mode=welcome&auth='.$session->sid_super);
@@ -462,7 +464,7 @@
- Regular expression to use:
-
- Be sure to include the starting and ending delimiters and any flags you might need.
- These pages might help: Pattern modifiers •
- Pattern syntax
- Examples: /^(Special|Admin):/i • /^Image:([0-9]+)$/
- Developers, remember that this will be matched against the full page identifier string. This means that /^About_Enano$/
- will NOT match the page Special:About_Enano.
-
-
-
-
Login failed. Bad password?
Login failed: '. $result['error'] . '