mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 20:24:08 +02:00
ok, this one is rather large... the most important change:
re-introduce append_sid: old style continues to work, not a performance hog as it was in 2.0.x -> structure is different apart from this, code cleanage, bug fixing, etc. git-svn-id: file:///svn/phpbb/trunk@6015 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
define('IN_PHPBB', true);
|
||||
$phpbb_root_path = './';
|
||||
$phpEx = substr(strrchr(__FILE__, '.'), 1);
|
||||
require($phpbb_root_path . 'config.'.$phpEx);
|
||||
require($phpbb_root_path . 'config.' . $phpEx);
|
||||
|
||||
set_magic_quotes_runtime(0);
|
||||
|
||||
@@ -45,10 +45,15 @@ if (!preg_match('/^[A-Za-z0-9]*$/', $sid))
|
||||
// server a little
|
||||
if ($id && $sid)
|
||||
{
|
||||
if (empty($acm_type) || empty($dbms))
|
||||
{
|
||||
die('Hacking attempt');
|
||||
}
|
||||
|
||||
// Include files
|
||||
require($phpbb_root_path . 'includes/acm/acm_' . $acm_type . '.'.$phpEx);
|
||||
require($phpbb_root_path . 'includes/acm/acm_' . $acm_type . '.' . $phpEx);
|
||||
require($phpbb_root_path . 'includes/acm/acm_main.' . $phpEx);
|
||||
require($phpbb_root_path . 'includes/db/' . $dbms . '.'.$phpEx);
|
||||
require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
|
||||
|
||||
$db = new $sql_db();
|
||||
$cache = new cache();
|
||||
@@ -84,6 +89,12 @@ if ($id && $sid)
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* What happens if the theme_data value is older than the file?
|
||||
* It should be re-cached as is done with templates and the template cache
|
||||
* if ($theme['theme_mtime'] < filemtime("{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme/stylesheet.css'))
|
||||
*/
|
||||
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 3600));
|
||||
header('Content-type: text/css');
|
||||
|
||||
|
Reference in New Issue
Block a user