aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acm
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-04-02 23:13:47 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-04-02 23:13:47 +0000
commitf94a5cb87d10247c02faf93ca5c99d2de2a57c36 (patch)
treef5b720c3b6b84d73e05f1bd7aaa9c18a39fdb616 /phpBB/includes/acm
parent2c94c4659efa6835dd1034fc67dd8cda9dfee21a (diff)
downloadforums-f94a5cb87d10247c02faf93ca5c99d2de2a57c36.tar
forums-f94a5cb87d10247c02faf93ca5c99d2de2a57c36.tar.gz
forums-f94a5cb87d10247c02faf93ca5c99d2de2a57c36.tar.bz2
forums-f94a5cb87d10247c02faf93ca5c99d2de2a57c36.tar.xz
forums-f94a5cb87d10247c02faf93ca5c99d2de2a57c36.zip
Added user notification for post reporting, moved lang strings to lang_main, added CSS style for mcp_jumpbox
git-svn-id: file:///svn/phpbb/trunk@3779 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acm')
-rw-r--r--phpBB/includes/acm/acm_file.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/includes/acm/acm_file.php b/phpBB/includes/acm/acm_file.php
index 856170497e..883878b4b4 100644
--- a/phpBB/includes/acm/acm_file.php
+++ b/phpBB/includes/acm/acm_file.php
@@ -170,6 +170,9 @@ class acm
{
global $db, $phpEx;
+ // Remove extra spaces and tabs
+ $query = preg_replace('/[\n\r\s\t]+/', ' ', $query);
+
$filemtime = intval(@filemtime($this->cache_dir . md5($query) . '.' . $phpEx));
if (time() - $filemtime > $expire_time)
{
@@ -187,6 +190,10 @@ class acm
function sql_save($query, $result)
{
global $db, $phpEx;
+
+ // Remove extra spaces and tabs
+ $query = preg_replace('/[\n\r\s\t]+/', ' ', $query);
+
if ($fp = @fopen($this->cache_dir . md5($query) . '.' . $phpEx, 'wb'))
{
@flock($fp, LOCK_EX);