# HG changeset patch
# User Dan
# Date 1194090054 14400
# Node ID b0a4d179be8580c790115ea542803b6fd7912b35
# Parent 90b7a52bea45310afe544efe84d1f01175425c9f# Parent 0eca1498a77b057dfe685447666668e3942c14ba
Merging in fixes and updates from 90b7a52bea45
diff -r 0eca1498a77b -r b0a4d179be85 .hgtags
diff -r 0eca1498a77b -r b0a4d179be85 ajax.php
diff -r 0eca1498a77b -r b0a4d179be85 includes/common.php
--- a/includes/common.php Sat Nov 03 07:30:11 2007 -0400
+++ b/includes/common.php Sat Nov 03 07:40:54 2007 -0400
@@ -68,6 +68,9 @@
if ( file_exists( ENANO_ROOT . '/_nightly.php') )
require(ENANO_ROOT.'/_nightly.php');
+// List of scheduled tasks
+$cron_tasks = array();
+
// Start including files. LOTS of files. Yeah!
require_once(ENANO_ROOT.'/includes/constants.php');
dc_here('Enano CMS '.$version.' (dev) - debug window
Powered by debugConsole');
diff -r 0eca1498a77b -r b0a4d179be85 includes/constants.php
--- a/includes/constants.php Sat Nov 03 07:30:11 2007 -0400
+++ b/includes/constants.php Sat Nov 03 07:40:54 2007 -0400
@@ -73,7 +73,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', 'BUILTIN'); // Can be FULLTEXT or BUILTIN
+define('SEARCH_MODE', 'FULLTEXT'); // Can be FULLTEXT or BUILTIN
// Sidebar
diff -r 0eca1498a77b -r b0a4d179be85 includes/functions.php
--- a/includes/functions.php Sat Nov 03 07:30:11 2007 -0400
+++ b/includes/functions.php Sat Nov 03 07:40:54 2007 -0400
@@ -2804,7 +2804,7 @@
$strip_tags = implode('|', $strip_tags);
// Strip out the tags and replace with placeholders
- preg_match_all("#<($strip_tags)(.*?)>(.*?)($strip_tags)>#is", $html, $matches);
+ preg_match_all("#<($strip_tags)([ ]+.*?)?>(.*?)($strip_tags)>#is", $html, $matches);
$seed = md5(microtime() . mt_rand()); // Random value used for placeholders
for ($i = 0;$i < sizeof($matches[1]); $i++)
{
@@ -2812,7 +2812,7 @@
}
// Optimize (but don't obfuscate) Javascript
- preg_match_all('/