Changeset 869 for trunk/admin/configuration.php
- Timestamp:
- Sep 19, 2005, 12:29:17 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r858 r869 83 83 array_push($page['errors'], $lang['periods_error']); 84 84 } 85 // maxwidth 86 if (isset($_POST['default_maxwidth']) 87 and !empty($_POST['default_maxwidth']) 88 and (!preg_match($int_pattern, $_POST['default_maxwidth']) 89 or $_POST['default_maxwidth'] < 50)) 90 { 91 array_push($page['errors'], $lang['maxwidth_error']); 92 } 93 // maxheight 94 if (isset($_POST['default_maxheight']) 95 and !empty($_POST['default_maxheight']) 96 and (!preg_match($int_pattern, $_POST['default_maxheight']) 97 or $_POST['default_maxheight'] < 50)) 98 { 99 array_push($page['errors'], $lang['maxheight_error']); 100 } 85 101 break; 86 102 } … … 90 106 if (count($page['errors']) == 0) 91 107 { 92 echo '<pre>'; print_r($_POST); echo '</pre>';108 // echo '<pre>'; print_r($_POST); echo '</pre>'; 93 109 $result = pwg_query('SELECT * FROM '.CONFIG_TABLE); 94 110 while ($row = mysql_fetch_array($result)) … … 177 193 'CONF_RECENT'=>$conf['recent_period'], 178 194 'NB_COMMENTS_PAGE'=>$conf['nb_comment_page'], 195 'MAXWIDTH'=>$conf['default_maxwidth'], 196 'MAXHEIGHT'=>$conf['default_maxheight'], 179 197 'EXPAND_YES'=>$expand_yes, 180 198 'EXPAND_NO'=>$expand_no,
Note: See TracChangeset
for help on using the changeset viewer.