Changeset 452 for trunk/admin/configuration.php
- Timestamp:
- Jul 9, 2004, 11:00:00 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r394 r452 91 91 } 92 92 // 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) 95 95 { 96 96 array_push( $error, $lang['err_periods'] ); 97 }98 else99 {100 // long period must be longer than short period101 if ( $_POST['long_period'] <= $_POST['short_period']102 or $_POST['short_period'] <= 0 )103 {104 array_push( $error, $lang['err_periods_2'] );105 }106 97 } 107 98 // session_id size must be an integer between 4 and 50 … … 217 208 'NB_ROW_PAGE'=>$conf['nb_line_page'], 218 209 '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'], 221 211 'UPLOAD_MAXSIZE'=>$conf['upload_maxfilesize'], 222 212 'UPLOAD_MAXWIDTH'=>$conf['upload_maxwidth'], … … 272 262 'L_STYLE_SELECT'=>$lang['customize_theme'], 273 263 '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'], 278 266 'L_EXPAND_TREE'=>$lang['customize_expand'], 279 267 'L_EXPAND_TREE_INFO'=>$lang['conf_default_expand_info'],
Note: See TracChangeset
for help on using the changeset viewer.