Changeset 702 for trunk/forum/style.php
- Timestamp:
- Mar 31, 2010, 6:32:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/style.php
r400 r702 3 3 * 4 4 * @package phpBB3 5 * @version $Id : style.php 8780 2008-08-22 12:52:48Z acydburn$5 * @version $Id$ 6 6 * @copyright (c) 2005 phpBB Group 7 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License … … 16 16 $phpEx = substr(strrchr(__FILE__, '.'), 1); 17 17 18 // Report all errors, except notices 19 error_reporting(E_ALL ^ E_NOTICE); 18 // Report all errors, except notices and deprecation messages 19 if (!defined('E_DEPRECATED')) 20 { 21 define('E_DEPRECATED', 8192); 22 } 23 error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED); 20 24 21 25 require($phpbb_root_path . 'config.' . $phpEx); … … 32 36 33 37 // Load Extensions 34 if (!empty($load_extensions) )38 if (!empty($load_extensions) && function_exists('dl')) 35 39 { 36 40 $load_extensions = explode(',', $load_extensions); … … 92 96 if (!$user) 93 97 { 94 $id = $config['default_style']; 95 $recompile = false; 98 $id = ($id) ? $id : $config['default_style']; 99 // Commented out because calls do not always include the SID anymore 100 // $recompile = false; 96 101 $user = array('user_id' => ANONYMOUS); 97 102 } … … 119 124 $user_image_lang = (file_exists($phpbb_root_path . 'styles/' . $theme['imageset_path'] . '/imageset/' . $user['user_lang'])) ? $user['user_lang'] : $config['default_lang']; 120 125 126 // Same query in session.php 121 127 $sql = 'SELECT * 122 128 FROM ' . STYLES_IMAGESET_DATA_TABLE . ' 123 129 WHERE imageset_id = ' . $theme['imageset_id'] . " 124 AND image_filename <> '' 130 AND image_filename <> '' 125 131 AND image_lang IN ('" . $db->sql_escape($user_image_lang) . "', '')"; 126 132 $result = $db->sql_query($sql, 3600); … … 258 264 $replace[] = $imgs[$img]['src']; 259 265 break; 260 266 261 267 case 'WIDTH': 262 268 $replace[] = $imgs[$img]['width']; 263 269 break; 264 270 265 271 case 'HEIGHT': 266 272 $replace[] = $imgs[$img]['height'];
Note:
See TracChangeset
for help on using the changeset viewer.