[geeklog-cvs] geeklog: Experimental feature: Optionally compress output before...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Apr 20 08:13:45 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/ebf565e1c06f
changeset: 6970:ebf565e1c06f
user: Dirk Haun <dirk at haun-online.de>
date: Sun Apr 19 16:57:27 2009 +0200
description:
Experimental feature: Optionally compress output before sending it to the browser (disabled by default)
diffstat:
44 files changed, 172 insertions(+), 119 deletions(-)
language/english.php | 1
language/english_utf-8.php | 1
public_html/404.php | 30 +++++++--------
public_html/admin/auth.inc.php | 4 +-
public_html/admin/block.php | 5 +-
public_html/admin/configuration.php | 2 -
public_html/admin/database.php | 4 +-
public_html/admin/group.php | 4 +-
public_html/admin/install/config-install.php | 1
public_html/admin/mail.php | 4 +-
public_html/admin/moderation.php | 2 -
public_html/admin/plugins.php | 4 +-
public_html/admin/plugins/calendar/index.php | 5 +-
public_html/admin/plugins/links/category.php | 4 +-
public_html/admin/plugins/links/index.php | 6 +--
public_html/admin/plugins/polls/index.php | 6 +--
public_html/admin/plugins/spamx/index.php | 4 +-
public_html/admin/plugins/staticpages/index.php | 4 +-
public_html/admin/sectest.php | 4 +-
public_html/admin/story.php | 10 ++---
public_html/admin/syndication.php | 10 ++---
public_html/admin/topic.php | 8 ++--
public_html/admin/trackback.php | 4 +-
public_html/admin/user.php | 6 +--
public_html/article.php | 2 -
public_html/calendar/event.php | 6 +--
public_html/calendar/index.php | 10 ++---
public_html/comment.php | 2 -
public_html/directory.php | 4 +-
public_html/docs/english/config.html | 10 +++++
public_html/docs/history | 2 +
public_html/index.php | 4 +-
public_html/lib-common.php | 44 +++++++++++++++++++++++
public_html/links/index.php | 8 ++--
public_html/polls/index.php | 2 -
public_html/profiles.php | 6 +--
public_html/search.php | 12 ++----
public_html/staticpages/index.php | 2 -
public_html/stats.php | 14 +++----
public_html/submit.php | 12 ++----
public_html/users.php | 4 +-
public_html/usersettings.php | 8 ++--
sql/updates/mssql_1.5.2_to_1.6.0.php | 3 +
sql/updates/mysql_1.5.2_to_1.6.0.php | 3 +
diffs (truncated from 1111 to 300 lines):
diff -r 5f138083df5a -r ebf565e1c06f language/english.php
--- a/language/english.php Sun Apr 19 13:50:33 2009 +0200
+++ b/language/english.php Sun Apr 19 16:57:27 2009 +0200
@@ -1835,6 +1835,7 @@
'skip_html_filter_for_root' => "Skip HTML Filter for Root?",
'allowed_protocols' => "Allowed Protocols",
'disable_autolinks' => "Disable Autolinks?",
+ 'compressed_output' => 'Send compressed output?',
'censormode' => "Censor Mode?",
'censorreplace' => "Censor Replace Text",
'censorlist' => "Censor List",
diff -r 5f138083df5a -r ebf565e1c06f language/english_utf-8.php
--- a/language/english_utf-8.php Sun Apr 19 13:50:33 2009 +0200
+++ b/language/english_utf-8.php Sun Apr 19 16:57:27 2009 +0200
@@ -1835,6 +1835,7 @@
'skip_html_filter_for_root' => "Skip HTML Filter for Root?",
'allowed_protocols' => "Allowed Protocols",
'disable_autolinks' => "Disable Autolinks?",
+ 'compressed_output' => 'Send compressed output?',
'censormode' => "Censor Mode?",
'censorreplace' => "Censor Replace Text",
'censorlist' => "Censor List",
diff -r 5f138083df5a -r ebf565e1c06f public_html/404.php
--- a/public_html/404.php Sun Apr 19 13:50:33 2009 +0200
+++ b/public_html/404.php Sun Apr 19 16:57:27 2009 +0200
@@ -2,13 +2,13 @@
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
-// | Geeklog 1.3 |
+// | Geeklog 1.6 |
// +---------------------------------------------------------------------------+
// | 404.php |
// | |
// | Geeklog "404 Not Found" page |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2005 by the following authors: |
+// | Copyright (C) 2000-2009 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
@@ -30,29 +30,27 @@
// | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
// | |
// +---------------------------------------------------------------------------+
-//
-// $Id: 404.php,v 1.10 2005/06/23 08:06:09 dhaun Exp $
-require_once ('lib-common.php');
+require_once 'lib-common.php';
-$display = COM_siteHeader ('menu', $LANG_404[1]);
-$display .= COM_startBlock ($LANG_404[1]);
-if (isset ($_SERVER['SCRIPT_URI'])) {
- $url = strip_tags ($_SERVER['SCRIPT_URI']);
+$display = COM_siteHeader('menu', $LANG_404[1]);
+$display .= COM_startBlock($LANG_404[1]);
+if (isset($_SERVER['SCRIPT_URI'])) {
+ $url = strip_tags($_SERVER['SCRIPT_URI']);
} else {
- $pos = strpos ($_SERVER['REQUEST_URI'], '?');
+ $pos = strpos($_SERVER['REQUEST_URI'], '?');
if ($pos === false) {
$request = $_SERVER['REQUEST_URI'];
} else {
- $request = substr ($_SERVER['REQUEST_URI'], 0, $pos);
+ $request = substr($_SERVER['REQUEST_URI'], 0, $pos);
}
- $url = 'http://' . $_SERVER['HTTP_HOST'] . strip_tags ($request);
+ $url = 'http://' . $_SERVER['HTTP_HOST'] . strip_tags($request);
}
-$display .= sprintf ($LANG_404[2], $url);
+$display .= sprintf($LANG_404[2], $url);
$display .= $LANG_404[3];
-$display .= COM_endBlock ();
-$display .= COM_siteFooter ();
+$display .= COM_endBlock();
+$display .= COM_siteFooter();
-echo $display
+COM_output($display);
?>
diff -r 5f138083df5a -r ebf565e1c06f public_html/admin/auth.inc.php
--- a/public_html/admin/auth.inc.php Sun Apr 19 13:50:33 2009 +0200
+++ b/public_html/admin/auth.inc.php Sun Apr 19 16:57:27 2009 +0200
@@ -39,7 +39,7 @@
// MAIN
COM_clearSpeedlimit($_CONF['login_speedlimit'], 'login');
if (COM_checkSpeedlimit('login', $_CONF['login_attempts']) > 0) {
- COM_displayMessageAndAbort($LANG04[112], '', 403, 'Access denied');
+ COM_outputMessageAndAbort($LANG04[112], '', 403, 'Access denied');
}
$uid = '';
@@ -123,7 +123,7 @@
$display .= COM_endBlock()
. COM_siteFooter();
- echo $display;
+ COM_output($display);
exit;
}
diff -r 5f138083df5a -r ebf565e1c06f public_html/admin/block.php
--- a/public_html/admin/block.php Sun Apr 19 13:50:33 2009 +0200
+++ b/public_html/admin/block.php Sun Apr 19 16:57:27 2009 +0200
@@ -48,7 +48,7 @@
. COM_showMessageText($MESSAGE[29], $MESSAGE[30])
. COM_siteFooter();
COM_accessLog("User {$_USER['username']} tried to illegally access the block administration screen");
- echo $display;
+ COM_output($display);
exit;
}
@@ -848,5 +848,6 @@
$display .= COM_siteFooter();
}
-echo $display;
+COM_output($display);
+
?>
diff -r 5f138083df5a -r ebf565e1c06f public_html/admin/configuration.php
--- a/public_html/admin/configuration.php Sun Apr 19 13:50:33 2009 +0200
+++ b/public_html/admin/configuration.php Sun Apr 19 16:57:27 2009 +0200
@@ -119,6 +119,6 @@
? $_POST['subgroup'] : null);
}
-echo $display;
+COM_output($display);
?>
diff -r 5f138083df5a -r ebf565e1c06f public_html/admin/database.php
--- a/public_html/admin/database.php Sun Apr 19 13:50:33 2009 +0200
+++ b/public_html/admin/database.php Sun Apr 19 16:57:27 2009 +0200
@@ -43,7 +43,7 @@
. COM_showMessageText($MESSAGE[29], $MESSAGE[30])
. COM_siteFooter();
COM_accessLog("User {$_USER['username']} tried to illegally access the database backup screen.");
- echo $display;
+ COM_output($display);
exit;
}
@@ -322,6 +322,6 @@
$display .= COM_siteFooter();
-echo $display;
+COM_output($display);
?>
diff -r 5f138083df5a -r ebf565e1c06f public_html/admin/group.php
--- a/public_html/admin/group.php Sun Apr 19 13:50:33 2009 +0200
+++ b/public_html/admin/group.php Sun Apr 19 16:57:27 2009 +0200
@@ -62,7 +62,7 @@
. COM_showMessageText($MESSAGE[29], $MESSAGE[30])
. COM_siteFooter();
COM_accessLog("User {$_USER['username']} tried to illegally access the group administration screen.");
- echo $display;
+ COM_output($display);
exit;
}
@@ -1086,6 +1086,6 @@
$display .= COM_siteFooter();
}
-echo $display;
+COM_output($display);
?>
diff -r 5f138083df5a -r ebf565e1c06f public_html/admin/install/config-install.php
--- a/public_html/admin/install/config-install.php Sun Apr 19 13:50:33 2009 +0200
+++ b/public_html/admin/install/config-install.php Sun Apr 19 16:57:27 2009 +0200
@@ -313,6 +313,7 @@
$c->add('notification',array(),'%text',7,31,NULL,800,TRUE);
$c->add('cron_schedule_interval',86400,'text',7,31,NULL,860,TRUE);
$c->add('disable_autolinks',0,'select',7,31,0,1750,TRUE);
+ $c->add('compressed_output',0,'select',7,31,1,1755,TRUE);
$c->add('fs_debug', NULL, 'fieldset', 7, 32, NULL, 0, TRUE);
$c->add('rootdebug',FALSE,'select',7,32,1,520,TRUE);
diff -r 5f138083df5a -r ebf565e1c06f public_html/admin/mail.php
--- a/public_html/admin/mail.php Sun Apr 19 13:50:33 2009 +0200
+++ b/public_html/admin/mail.php Sun Apr 19 16:57:27 2009 +0200
@@ -41,7 +41,7 @@
. COM_showMessageText($MESSAGE[29], $MESSAGE[30])
. COM_siteFooter();
COM_accessLog("User {$_USER['username']} tried to illegally access the mail administration screen.");
- echo $display;
+ COM_output($display);
exit;
}
@@ -237,6 +237,6 @@
$display .= COM_siteFooter ();
-echo $display;
+COM_output($display);
?>
diff -r 5f138083df5a -r ebf565e1c06f public_html/admin/moderation.php
--- a/public_html/admin/moderation.php Sun Apr 19 13:50:33 2009 +0200
+++ b/public_html/admin/moderation.php Sun Apr 19 16:57:27 2009 +0200
@@ -765,6 +765,6 @@
$display .= COM_siteFooter();
-echo $display;
+COM_output($display);
?>
diff -r 5f138083df5a -r ebf565e1c06f public_html/admin/plugins.php
--- a/public_html/admin/plugins.php Sun Apr 19 13:50:33 2009 +0200
+++ b/public_html/admin/plugins.php Sun Apr 19 16:57:27 2009 +0200
@@ -66,7 +66,7 @@
. COM_showMessageText($MESSAGE[29], $MESSAGE[30])
. COM_siteFooter();
COM_accessLog("User {$_USER['username']} tried to illegally access the plugin administration screen.");
- echo $display;
+ COM_output($display);
exit;
}
@@ -1243,6 +1243,6 @@
}
-echo $display;
+COM_output($display);
?>
diff -r 5f138083df5a -r ebf565e1c06f public_html/admin/plugins/calendar/index.php
--- a/public_html/admin/plugins/calendar/index.php Sun Apr 19 13:50:33 2009 +0200
+++ b/public_html/admin/plugins/calendar/index.php Sun Apr 19 16:57:27 2009 +0200
@@ -51,7 +51,7 @@
// Log attempt to access.log
COM_accessLog("User {$_USER['username']} tried to illegally access the event administration screen.");
- echo $display;
+ COM_output($display);
exit;
}
@@ -684,6 +684,7 @@
$display .= CALENDAR_listevents();
$display .= COM_siteFooter ();
}
-echo $display;
+
+COM_output($display);
?>
diff -r 5f138083df5a -r ebf565e1c06f public_html/admin/plugins/links/category.php
--- a/public_html/admin/plugins/links/category.php Sun Apr 19 13:50:33 2009 +0200
+++ b/public_html/admin/plugins/links/category.php Sun Apr 19 16:57:27 2009 +0200
@@ -68,7 +68,7 @@
. COM_showMessageText($MESSAGE[29], $MESSAGE[30])
. COM_siteFooter();
COM_accessLog("User {$_USER['username']} tried to illegally access the link category administration screen.");
- echo $display;
+ COM_output($display);
exit;
}
@@ -564,6 +564,6 @@
$display .= COM_siteFooter();
}
-echo $display;
+COM_output($display);
?>
diff -r 5f138083df5a -r ebf565e1c06f public_html/admin/plugins/links/index.php
--- a/public_html/admin/plugins/links/index.php Sun Apr 19 13:50:33 2009 +0200
+++ b/public_html/admin/plugins/links/index.php Sun Apr 19 16:57:27 2009 +0200
@@ -68,7 +68,7 @@
. COM_showMessageText($MESSAGE[29], $MESSAGE[30])
. COM_siteFooter();
COM_accessLog("User {$_USER['username']} tried to illegally access the links administration screen.");
- echo $display;
+ COM_output($display);
exit;
}
@@ -309,7 +309,7 @@
. COM_showMessageText($MESSAGE[29], $MESSAGE[30])
. COM_siteFooter();
COM_accessLog("User {$_USER['username']} tried to illegally submit or edit link $lid.");
- echo $display;
+ COM_output($display);
exit;
} elseif (!empty($title) && !empty($description) && !empty($url)) {
@@ -551,6 +551,6 @@
More information about the geeklog-cvs
mailing list