diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2009-03-11 12:53:54 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-03-11 12:53:54 +0000 |
| commit | d9468c35da7df11ff12b0575b69ff97719cc3480 (patch) | |
| tree | b7efb20a867bef107563e1412423b9faafa212f0 /phpBB/includes/functions_messenger.php | |
| parent | 63ed82313764391db77f38e7e7bfe379280fdf4a (diff) | |
| download | forums-d9468c35da7df11ff12b0575b69ff97719cc3480.tar forums-d9468c35da7df11ff12b0575b69ff97719cc3480.tar.gz forums-d9468c35da7df11ff12b0575b69ff97719cc3480.tar.bz2 forums-d9468c35da7df11ff12b0575b69ff97719cc3480.tar.xz forums-d9468c35da7df11ff12b0575b69ff97719cc3480.zip | |
add IN_PHPBB check to generated cache files
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9363 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
| -rw-r--r-- | phpBB/includes/functions_messenger.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index 17c59e5274..ba38d6d0f1 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -704,7 +704,7 @@ class queue if ($fp = @fopen($this->cache_file, 'wb')) { @flock($fp, LOCK_EX); - fwrite($fp, "<?php\n\$this->queue_data = unserialize(" . var_export(serialize($this->queue_data), true) . ");\n\n?>"); + fwrite($fp, "<?php\nif (!defined('IN_PHPBB')) exit;\n\$this->queue_data = unserialize(" . var_export(serialize($this->queue_data), true) . ");\n\n?>"); @flock($fp, LOCK_UN); fclose($fp); @@ -745,7 +745,7 @@ class queue if ($fp = @fopen($this->cache_file, 'w')) { @flock($fp, LOCK_EX); - fwrite($fp, "<?php\n\$this->queue_data = unserialize(" . var_export(serialize($this->data), true) . ");\n\n?>"); + fwrite($fp, "<?php\nif (!defined('IN_PHPBB')) exit;\n\$this->queue_data = unserialize(" . var_export(serialize($this->data), true) . ");\n\n?>"); @flock($fp, LOCK_UN); fclose($fp); |
