Ignore:
Timestamp:
Jul 9, 2004, 11:00:00 PM (20 years ago)
Author:
z0rglub
Message:

replacement of short_period and long_period by recent_period

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r394 r452  
    9191  }
    9292  // periods must be integer values, they represents number of days
    93   if ( !preg_match( $int_pattern, $_POST['short_period'] )
    94        or !preg_match( $int_pattern, $_POST['long_period'] ) )
     93  if (!preg_match($int_pattern, $_POST['recent_period'])
     94      or $_POST['recent_period'] <= 0)
    9595  {
    9696    array_push( $error, $lang['err_periods'] );
    97   }
    98   else
    99   {
    100     // long period must be longer than short period
    101     if ( $_POST['long_period'] <= $_POST['short_period']
    102          or $_POST['short_period'] <= 0 )
    103     {
    104       array_push( $error, $lang['err_periods_2'] );
    105     }
    10697  }
    10798  // session_id size must be an integer between 4 and 50
     
    217208  'NB_ROW_PAGE'=>$conf['nb_line_page'],
    218209  'STYLE_SELECT'=>style_select($conf['default_style'], 'default_style'),
    219   'SHORT_PERIOD'=>$conf['short_period'],
    220   'LONG_PERIOD'=>$conf['long_period'],
     210  'RECENT_PERIOD'=>$conf['recent_period'],
    221211  'UPLOAD_MAXSIZE'=>$conf['upload_maxfilesize'],
    222212  'UPLOAD_MAXWIDTH'=>$conf['upload_maxwidth'],
     
    272262  'L_STYLE_SELECT'=>$lang['customize_theme'],
    273263  'L_STYLE_SELECT_INFO'=>$lang['conf_default_theme_info'],
    274   'L_SHORT_PERIOD'=>$lang['customize_short_period'],
    275   'L_SHORT_PERIOD_INFO'=>$lang['conf_default_short_period_info'],
    276   'L_LONG_PERIOD'=>$lang['customize_long_period'],
    277   'L_LONG_PERIOD_INFO'=>$lang['conf_default_long_period_info'],
     264  'L_RECENT_PERIOD'=>$lang['customize_recent_period'],
     265  'L_RECENT_PERIOD_INFO'=>$lang['conf_default_recent_period_info'],
    278266  'L_EXPAND_TREE'=>$lang['customize_expand'],
    279267  'L_EXPAND_TREE_INFO'=>$lang['conf_default_expand_info'],
Note: See TracChangeset for help on using the changeset viewer.