Ignore:
Timestamp:
Mar 31, 2010, 6:32:40 PM (14 years ago)
Author:
george
Message:
  • Upraveno: Aktualizace fóra.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/adm/index.php

    r400 r702  
    33*
    44* @package acp
    5 * @version $Id: index.php 8591 2008-06-04 11:40:53Z Kellanved $
     5* @version $Id$
    66* @copyright (c) 2005 phpBB Group
    77* @license http://opensource.org/licenses/gpl-license.php GNU Public License
     
    132132                'ICON_MOVE_UP_DISABLED'         => '<img src="' . $phpbb_admin_path . 'images/icon_up_disabled.gif" alt="' . $user->lang['MOVE_UP'] . '" title="' . $user->lang['MOVE_UP'] . '" />',
    133133                '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'] . '" />',
    135135                'ICON_EDIT'                                     => '<img src="' . $phpbb_admin_path . 'images/icon_edit.gif" alt="' . $user->lang['EDIT'] . '" title="' . $user->lang['EDIT'] . '" />',
    136136                'ICON_EDIT_DISABLED'            => '<img src="' . $phpbb_admin_path . 'images/icon_edit_disabled.gif" alt="' . $user->lang['EDIT'] . '" title="' . $user->lang['EDIT'] . '" />',
     
    264264        $name = 'config[' . $config_key . ']';
    265265
     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
    266272        switch ($tpl_type[0])
    267273        {
     
    303309                case 'select':
    304310                case 'custom':
    305                        
     311
    306312                        $return = '';
    307313
     
    342348                                $args = array($new[$config_key], $key);
    343349                        }
    344                        
     350
    345351                        $return = call_user_func_array($call, $args);
    346352
     
    378384        $min    = 1;
    379385        $max    = 2;
    380        
     386
    381387        foreach ($config_vars as $config_name => $config_definition)
    382388        {
     
    385391                        continue;
    386392                }
    387        
     393
    388394                if (!isset($config_definition['validate']))
    389395                {
    390396                        continue;
    391397                }
    392                
     398
    393399                $validator = explode(':', $config_definition['validate']);
    394400
     
    549555{
    550556        global $user;
    551        
     557
    552558        $column_types = array(
    553559                'BOOL'  => array('php_type' => 'int',           'min' => 0,                             'max' => 1),
     
    556562                'INT'   => array('php_type' => 'int',           'min' => (int) 0x80000000,      'max' => (int) 0x7fffffff),
    557563                'TINT'  => array('php_type' => 'int',           'min' => -128,                          'max' => 127),
    558                
     564
    559565                'VCHAR' => array('php_type' => 'string',        'min' => 0,                             'max' => 255),
    560566        );
     
    583589                        break;
    584590
    585                         case 'int': 
     591                        case 'int':
    586592                                $min = (isset($column[1])) ? max($column[1],$type['min']) : $type['min'];
    587593                                $max = (isset($column[2])) ? min($column[2],$type['max']) : $type['max'];
Note: See TracChangeset for help on using the changeset viewer.