Changeset 702 for trunk/forum/adm/index.php
- Timestamp:
- Mar 31, 2010, 6:32:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/adm/index.php
r400 r702 3 3 * 4 4 * @package acp 5 * @version $Id : index.php 8591 2008-06-04 11:40:53Z Kellanved$5 * @version $Id$ 6 6 * @copyright (c) 2005 phpBB Group 7 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License … … 132 132 'ICON_MOVE_UP_DISABLED' => '<img src="' . $phpbb_admin_path . 'images/icon_up_disabled.gif" alt="' . $user->lang['MOVE_UP'] . '" title="' . $user->lang['MOVE_UP'] . '" />', 133 133 'ICON_MOVE_DOWN' => '<img src="' . $phpbb_admin_path . 'images/icon_down.gif" alt="' . $user->lang['MOVE_DOWN'] . '" title="' . $user->lang['MOVE_DOWN'] . '" />', 134 'ICON_MOVE_DOWN_DISABLED' => '<img src="' . $phpbb_admin_path . 'images/icon_down_disabled.gif" alt="' . $user->lang['MOVE_DOWN'] . '" title="' . $user->lang['MOVE_DOWN'] . '" />', 134 'ICON_MOVE_DOWN_DISABLED' => '<img src="' . $phpbb_admin_path . 'images/icon_down_disabled.gif" alt="' . $user->lang['MOVE_DOWN'] . '" title="' . $user->lang['MOVE_DOWN'] . '" />', 135 135 'ICON_EDIT' => '<img src="' . $phpbb_admin_path . 'images/icon_edit.gif" alt="' . $user->lang['EDIT'] . '" title="' . $user->lang['EDIT'] . '" />', 136 136 'ICON_EDIT_DISABLED' => '<img src="' . $phpbb_admin_path . 'images/icon_edit_disabled.gif" alt="' . $user->lang['EDIT'] . '" title="' . $user->lang['EDIT'] . '" />', … … 264 264 $name = 'config[' . $config_key . ']'; 265 265 266 // Make sure there is no notice printed out for non-existent config options (we simply set them) 267 if (!isset($new[$config_key])) 268 { 269 $new[$config_key] = ''; 270 } 271 266 272 switch ($tpl_type[0]) 267 273 { … … 303 309 case 'select': 304 310 case 'custom': 305 311 306 312 $return = ''; 307 313 … … 342 348 $args = array($new[$config_key], $key); 343 349 } 344 350 345 351 $return = call_user_func_array($call, $args); 346 352 … … 378 384 $min = 1; 379 385 $max = 2; 380 386 381 387 foreach ($config_vars as $config_name => $config_definition) 382 388 { … … 385 391 continue; 386 392 } 387 393 388 394 if (!isset($config_definition['validate'])) 389 395 { 390 396 continue; 391 397 } 392 398 393 399 $validator = explode(':', $config_definition['validate']); 394 400 … … 549 555 { 550 556 global $user; 551 557 552 558 $column_types = array( 553 559 'BOOL' => array('php_type' => 'int', 'min' => 0, 'max' => 1), … … 556 562 'INT' => array('php_type' => 'int', 'min' => (int) 0x80000000, 'max' => (int) 0x7fffffff), 557 563 'TINT' => array('php_type' => 'int', 'min' => -128, 'max' => 127), 558 564 559 565 'VCHAR' => array('php_type' => 'string', 'min' => 0, 'max' => 255), 560 566 ); … … 583 589 break; 584 590 585 case 'int': 591 case 'int': 586 592 $min = (isset($column[1])) ? max($column[1],$type['min']) : $type['min']; 587 593 $max = (isset($column[2])) ? min($column[2],$type['max']) : $type['max'];
Note:
See TracChangeset
for help on using the changeset viewer.