- Timestamp:
- 01/16/09 21:04:17 (13 years ago)
- Location:
- dev/common
- Files:
-
- 1 added
- 7 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/includes/class.config.php
r364 r369 43 43 $config_init = true; 44 44 45 $defaults = array(); 46 $defaults['summarytable_rowcount'] = 8; 47 $defaults['killcount'] = 50; 48 $defaults['kill_points'] = 1; 49 $defaults['least_active'] = 0; 50 registry::set('config_defaults', $defaults); 51 45 52 if (config::get('post_password') === null) 46 53 { … … 48 55 config::set('style_name', 'default'); 49 56 config::set('style_banner', 'default'); 50 config::set('kill_points', 1);51 config::set('least_active', 0);52 57 config::set('post_password', 'CHANGEME'); 53 58 config::set('comment_password', 'CHANGEME'); … … 155 160 // add important upgrade configs here, they will return the default if not set 156 161 // they will be shown as set but take no space in the database 157 $defaults = array('summarytable_rowcount' => 8); 158 $defaults = array('killcount' => 50); 162 $defaults = registry::get('config_defaults'); 159 163 160 164 if (!isset($defaults[$key])) -
dev/common/includes/class.db_cache.php
r365 r369 106 106 $text = trim(strtolower($this->_sql)); 107 107 $text = str_replace(array('ignore','`', "\r\n", "\n"), '', $text); 108 $ta = preg_split('/ /', $text, 0, PREG_SPLIT_NO_EMPTY); 108 $text = str_replace('(', ' (', $text); 109 $ta = preg_split('/\s/', $text, 0, PREG_SPLIT_NO_EMPTY); 109 110 110 111 // check for sql keywords and get the table from the appropriate position -
dev/common/includes/class.killsummarytable.php
r367 r369 231 231 $odd = false; 232 232 $prevdate = ""; 233 $width = round($this->break_/count($entry)*100); 234 $width_abs = round($this->break_/count($entry)*600); 233 $num = count($entry); 234 $width_mod = $this->break_/$num; 235 $width = round($width_mod*100); 236 $width_abs = round($width_mod*(760-60/$width_mod)); 235 237 236 238 $html .= "<table class=kb-subtable width=\"100%\" border=\"0\" cellspacing=0>"; … … 245 247 else 246 248 { 247 $header = "<tr class=kb-table-header><td class=kb-table-cell >Ship class</td><td class=kb-table-cell width=30 align=center>K</td><td class=kb-table-cell width=30 align=center>L</td></tr>";249 $header = "<tr class=kb-table-header><td class=kb-table-cell width=\"$width_abs\">Ship class</td><td class=kb-table-cell width=30 align=center>K</td><td class=kb-table-cell width=30 align=center>L</td></tr>"; 248 250 } 249 251 -
dev/common/index.php
r343 r369 26 26 require_once('common/includes/php_compat.php'); 27 27 require_once('common/includes/db.php'); 28 require_once('common/includes/class.registry.php'); 28 29 require_once('common/includes/class.config.php'); 29 30 require_once('common/includes/class.killboard.php'); -
dev/common/smarty/Config_File.class.php
r362 r369 23 23 * 24 24 * @link http://www.smarty.net/ 25 * @version 2.6. 19-dev25 * @version 2.6.22 26 26 * @copyright Copyright: 2001-2005 New Digital Group, Inc. 27 27 * @author Andrei Zmievski <andrei@php.net> -
dev/common/smarty/Smarty.class.php
r362 r369 28 28 * @author Andrei Zmievski <andrei@php.net> 29 29 * @package Smarty 30 * @version 2.6.2 130 * @version 2.6.22 31 31 */ 32 32 … … 465 465 * @var string 466 466 */ 467 var $_version = '2.6.2 1';467 var $_version = '2.6.22'; 468 468 469 469 /** -
dev/common/smarty/Smarty_Compiler.class.php
r362 r369 22 22 * @author Monte Ohrt <monte at ohrt dot com> 23 23 * @author Andrei Zmievski <andrei@php.net> 24 * @version 2.6.2 124 * @version 2.6.22 25 25 * @copyright 2001-2005 New Digital Group, Inc. 26 26 * @package Smarty 27 27 */ 28 28 29 /* $Id: Smarty_Compiler.class.php 2 797 2008-09-22 19:26:32Z monte.ohrt $ */29 /* $Id: Smarty_Compiler.class.php 2966 2008-12-08 15:10:03Z monte.ohrt $ */ 30 30 31 31 /** … … 171 171 . '(?:\s*,\s*' . $this->_obj_single_param_regexp . ')*)?\)'; 172 172 $this->_obj_start_regexp = '(?:' . $this->_dvar_regexp . '(?:' . $this->_obj_ext_regexp . ')+)'; 173 $this->_obj_call_regexp = '(?:' . $this->_obj_start_regexp . '(?:' . $this->_obj_params_regexp . ' (?:' . $this->_obj_ext_regexp . '(?:'.$this->_obj_params_regexp . ')?)*' . ')?(?:' . $this->_dvar_math_regexp . '(?:' . $this->_num_const_regexp . '|' . $this->_dvar_math_var_regexp . ')*)?)';173 $this->_obj_call_regexp = '(?:' . $this->_obj_start_regexp . '(?:' . $this->_obj_params_regexp . ')?(?:' . $this->_dvar_math_regexp . '(?:' . $this->_num_const_regexp . '|' . $this->_dvar_math_var_regexp . ')*)?)'; 174 174 175 175 // matches valid modifier syntax: