# HG changeset patch # User Dan # Date 1183486893 14400 # Node ID 7c7920b65f428d440b5bb52d1aea5aa555e0367d # Parent 723bb7acf914645c4383660603e7b12d90391007 Pseudo-commit: database freeze milestone for Banshee diff -r 723bb7acf914 -r 7c7920b65f42 index.php --- a/index.php Tue Jul 03 14:07:35 2007 -0400 +++ b/index.php Tue Jul 03 14:21:33 2007 -0400 @@ -11,38 +11,38 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. * */ - + // Set up gzip encoding before any output is sent - + $aggressive_optimize_html = false; - + global $do_gzip; $do_gzip = false; - + if(isset($_SERVER['PATH_INFO'])) $v = $_SERVER['PATH_INFO']; elseif(isset($_GET['title'])) $v = $_GET['title']; else $v = ''; - + error_reporting(E_ALL); - + // if(!strstr($v, 'CSS') && !strstr($v, 'UploadFile') && !strstr($v, 'DownloadFile')) // These pages are blacklisted because we can't have debugConsole's HTML output disrupting the flow of header() calls and whatnot // { // $do_gzip = ( function_exists('gzcompress') && ( isset($_SERVER['HTTP_ACCEPT_ENCODING']) && strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') ) ) ? true : false; // // Uncomment the following line to enable debugConsole (requires PHP 5 or later) // // define('ENANO_DEBUG', ''); // } - + if(defined('ENANO_DEBUG')) $do_gzip = false; - + if($aggressive_optimize_html || $do_gzip) { ob_start(); } - + require('includes/common.php'); - + global $db, $session, $paths, $template, $plugins; // Common objects - + if(!isset($_GET['do'])) $_GET['do'] = 'view'; switch($_GET['do']) { @@ -129,7 +129,7 @@
'; if($paths->wiki_mode) - echo 'Edit summary:

'; + echo 'Edit summary:

'; echo '
@@ -223,7 +223,7 @@ echo 'None; Warning: request validation will fail after clicking submit'; } ?>

-

+

footer(); @@ -240,10 +240,10 @@ Error: you must enter a new name for this page.

'; ?>

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
,