Changeset 12877
- Timestamp:
- Jan 12, 2012, 6:57:43 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/profile.php
r8728 r12877 3 3 // | Piwigo - a PHP based photo gallery | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2008-201 1Piwigo Team http://piwigo.org |5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | -
trunk/admin/themes/default/template/profile_content.tpl
r12470 r12877 82 82 {html_radios name='show_nb_hits' options=$radio_options selected=$NB_HITS} 83 83 </li> 84 <li>85 <span class="property">86 <label for="maxwidth">{'Maximum photo width'|@translate}</label>87 </span>88 <input type="text" size="4" maxlength="4" name="maxwidth" id="maxwidth" value="{$MAXWIDTH}">89 </li>90 <li>91 <span class="property">92 <label for="maxheight">{'Maximum photo height'|@translate}</label>93 </span>94 <input type="text" size="4" maxlength="4" name="maxheight" id="maxheight" value="{$MAXHEIGHT}">95 </li>96 84 </ul> 97 85 </fieldset> -
trunk/admin/themes/default/template/user_list.tpl
r12482 r12877 255 255 </tr> 256 256 257 <tr>258 <td>{'Maximum photo width'|@translate}</td>259 <td>260 <label><input type="radio" name="maxwidth_action" value="leave" checked="checked"> {'leave'|@translate}</label>261 <label><input type="radio" name="maxwidth_action" value="unset"> {'unset'|@translate}</label>262 <label><input type="radio" name="maxwidth_action" value="set" id="maxwidth_action_set"> {'set to'|@translate}</label>263 <input onmousedown="document.getElementById('maxwidth_action_set').checked = true;"264 type="text" size="4" maxlength="4" name="maxwidth" value="{$MAXWIDTH}">265 </td>266 </tr>267 268 269 <tr>270 <td>{'Maximum photo height'|@translate}</td>271 <td>272 <label><input type="radio" name="maxheight_action" value="leave" checked="checked"> {'leave'|@translate}</label>273 <label><input type="radio" name="maxheight_action" value="unset"> {'unset'|@translate}</label>274 <label><input type="radio" name="maxheight_action" value="set" id="maxheight_action_set"> {'set to'|@translate}</label>275 <input onmousedown="document.getElementById('maxheight_action_set').checked = true;"276 type="text" size="4" maxlength="4" name="maxheight" value="{$MAXHEIGHT}">277 </td>278 </tr>279 280 281 257 </table> 282 258 -
trunk/admin/user_list.php
r12681 r12877 386 386 $formfields = 387 387 array('nb_image_page', 'theme', 'language', 388 'recent_period', ' maxwidth', 'expand', 'show_nb_comments',389 'show_nb_hits', ' maxheight', 'status', 'enabled_high',388 'recent_period', 'expand', 'show_nb_comments', 389 'show_nb_hits', 'status', 'enabled_high', 390 390 'level'); 391 391 … … 561 561 array( 562 562 'NB_IMAGE_PAGE' => $_POST['nb_image_page'], 563 'MAXWIDTH' => $_POST['maxwidth'],564 'MAXHEIGHT' => $_POST['maxheight'],565 563 'RECENT_PERIOD' => $_POST['recent_period'], 566 564 )); … … 572 570 array( 573 571 'NB_IMAGE_PAGE' => $default_user['nb_image_page'], 574 'MAXWIDTH' => $default_user['maxwidth'],575 'MAXHEIGHT' => $default_user['maxheight'],576 572 'RECENT_PERIOD' => $default_user['recent_period'], 577 573 )); -
trunk/profile.php
r12764 r12877 50 50 { 51 51 $fields = array( 52 'nb_image_page', ' maxwidth', 'maxheight', 'expand',52 'nb_image_page', 'expand', 53 53 'show_nb_comments', 'show_nb_hits', 'recent_period', 'show_nb_hits' 54 54 ); … … 125 125 } 126 126 127 if ($_POST['maxwidth'] != ''128 and (!preg_match($int_pattern, $_POST['maxwidth'])129 or $_POST['maxwidth'] < 50))130 {131 $errors[] = l10n('Maximum width must be a number superior to 50');132 }133 if ($_POST['maxheight']134 and (!preg_match($int_pattern, $_POST['maxheight'])135 or $_POST['maxheight'] < 50))136 {137 $errors[] = l10n('Maximum height must be a number superior to 50');138 }139 127 // periods must be integer values, they represents number of days 140 128 if (!preg_match($int_pattern, $_POST['recent_period']) … … 222 210 // update user "additional" informations (specific to Piwigo) 223 211 $fields = array( 224 'nb_image_page', 'language', 'maxwidth', 'maxheight',212 'nb_image_page', 'language', 225 213 'expand', 'show_nb_comments', 'show_nb_hits', 'recent_period', 'theme' 226 214 ); … … 269 257 'NB_IMAGE_PAGE'=>$userdata['nb_image_page'], 270 258 'RECENT_PERIOD'=>$userdata['recent_period'], 271 'MAXWIDTH'=>@$userdata['maxwidth'],272 'MAXHEIGHT'=>@$userdata['maxheight'],273 259 'EXPAND' =>$userdata['expand'] ? 'true' : 'false', 274 260 'NB_COMMENTS'=>$userdata['show_nb_comments'] ? 'true' : 'false', -
trunk/themes/default/template/profile_content.tpl
r12470 r12877 81 81 {html_radios name='show_nb_hits' options=$radio_options selected=$NB_HITS} 82 82 </li> 83 <li>84 <span class="property">85 <label for="maxwidth">{'Maximum photo width'|@translate}</label>86 </span>87 <input type="text" size="4" maxlength="4" name="maxwidth" id="maxwidth" value="{$MAXWIDTH}">88 </li>89 <li>90 <span class="property">91 <label for="maxheight">{'Maximum photo height'|@translate}</label>92 </span>93 <input type="text" size="4" maxlength="4" name="maxheight" id="maxheight" value="{$MAXHEIGHT}">94 </li>95 83 </ul> 96 84 </fieldset>
Note: See TracChangeset
for help on using the changeset viewer.