diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-08-06 15:45:13 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-08-06 15:45:13 +0000 |
| commit | b723058fb08cd225f5ff440ac648a3c5dc33b35b (patch) | |
| tree | 757a95deab50d86806eb5a18c4eb9f4ee673e650 /phpBB/includes/functions.php | |
| parent | 76ace1d15461d98b693d7e7c905c0f5b9533c622 (diff) | |
| download | forums-b723058fb08cd225f5ff440ac648a3c5dc33b35b.tar forums-b723058fb08cd225f5ff440ac648a3c5dc33b35b.tar.gz forums-b723058fb08cd225f5ff440ac648a3c5dc33b35b.tar.bz2 forums-b723058fb08cd225f5ff440ac648a3c5dc33b35b.tar.xz forums-b723058fb08cd225f5ff440ac648a3c5dc33b35b.zip | |
A fair amount of additional working or semi-working stuff ... template stored db source (when appropriate), switch theme/templates between DB/filesystem (if available), import, upload templates, imagesets, themes (if available ... i.e. no safe mode), etc. still a fair amount of stuff to do but getting there ... take care using this, backup any themes/templates/imagesets before fiddling and let me know of issues
git-svn-id: file:///svn/phpbb/trunk@4343 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 6d5c404121..5ccd044545 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1348,8 +1348,10 @@ function page_header($page_title = '') 'S_DISPLAY_MEMBERLIST' => (isset($auth)) ? $auth->acl_get('u_viewprofile') : 0, 'T_THEME_PATH' => 'styles/' . $user->theme['primary']['theme_path'] . '/theme/', - 'T_STYLESHEET_LINK' => (!$user->theme['primary']['css_storedb']) ? 'styles/' . $user->theme['primary']['theme_path'] . '/theme/stylesheet.css' : "style.$phpEx?sid=$user->session_id&id=" . $user->theme['primary']['theme_id'], - 'T_THEME_DATA' => (!$user->theme['primary']['css_storedb']) ? '' : $user->theme['primary']['css_data']) + 'T_TEMPLATE_PATH' => 'styles/' . $user->theme['primary']['template_path'] . 'template/', + 'T_IMAGESET_PATH' => 'styles/' . $user->theme['primary']['imageset_path'] . 'imageset/', + 'T_STYLESHEET_LINK' => (!$user->theme['primary']['theme_storedb']) ? 'styles/' . $user->theme['primary']['theme_path'] . '/theme/stylesheet.css' : "style.$phpEx?sid=$user->session_id&id=" . $user->theme['primary']['theme_id'], + 'T_THEME_DATA' => (!$user->theme['primary']['theme_storedb']) ? '' : $user->theme['primary']['theme_data']) ); if (!empty($config['send_encoding'])) @@ -1368,15 +1370,6 @@ function page_footer() { global $db, $config, $template, $SID, $user, $auth, $cache, $starttime, $phpEx; - // Close our DB connection. - $db->sql_close(); - - // Unload cache - if (!empty($cache)) - { - $cache->unload(); - } - // Output page creation time if (defined('DEBUG')) { @@ -1407,6 +1400,15 @@ function page_footer() ); $template->display('body'); + + // Close our DB connection. + $db->sql_close(); + + // Unload cache + if (!empty($cache)) + { + $cache->unload(); + } exit; } |
