Changeset 1884
- Timestamp:
- Mar 9, 2007, 11:52:22 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r1881 r1884 50 50 51 51 $general_checkboxes = array( 52 'email_admin_on_new_user', 53 'allow_user_registration', 54 ); 55 56 $history_checkboxes = array( 52 57 'log', 53 58 'history_admin', 54 'history_guest', 55 'email_admin_on_new_user', 56 'allow_user_registration', 59 'history_guest' 57 60 ); 58 61 … … 77 80 } 78 81 foreach( $general_checkboxes as $checkbox) 82 { 83 $_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true'; 84 } 85 break; 86 } 87 case 'history' : 88 { 89 foreach( $history_checkboxes as $checkbox) 79 90 { 80 91 $_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true'; … … 170 181 'caption' => l10n('conf_general_title'), 171 182 'url' => $conf_link.'general' 183 ), 184 'history' => array 185 ( 186 'caption' => l10n('conf_history_title'), 187 'url' => $conf_link.'history' 172 188 ), 173 189 'comments' => array … … 229 245 $template->merge_block_vars( 230 246 'general', 247 array( 248 strtoupper($checkbox) => ($conf[$checkbox]==true)?$html_check:'' 249 ) 250 ); 251 } 252 break; 253 } 254 case 'history' : 255 { 256 //Necessary for merge_block_vars 257 $template->assign_block_vars('history', array()); 258 259 foreach( $history_checkboxes as $checkbox) 260 { 261 $template->merge_block_vars( 262 'history', 231 263 array( 232 264 strtoupper($checkbox) => ($conf[$checkbox]==true)?$html_check:'' -
trunk/admin/intro.php
r1726 r1884 184 184 ;'; 185 185 list($nb_comments) = mysql_fetch_row(pwg_query($query)); 186 187 $php_current_timestamp = date("Y-m-d H:i:s"); 188 list($db_current_timestamp) = mysql_fetch_row(pwg_query('SELECT CURRENT_TIMESTAMP;')); 186 189 187 190 $template->assign_vars( … … 206 209 'DB_COMMENTS' => sprintf(l10n('%d comments'), $nb_comments), 207 210 'U_CHECK_UPGRADE' => PHPWG_ROOT_PATH.'admin.php?action=check_upgrade', 208 'U_PHPINFO' => PHPWG_ROOT_PATH.'admin.php?action=phpinfo' 211 'U_PHPINFO' => PHPWG_ROOT_PATH.'admin.php?action=phpinfo', 212 'PHP_DATATIME' => $php_current_timestamp, 213 'DB_DATATIME' => $db_current_timestamp, 209 214 ) 210 215 ); -
trunk/include/category_cats.inc.php
r1880 r1884 257 257 $category['count_categories'], 258 258 true, 259 ' ;'259 ' / ' 260 260 ), 261 261 -
trunk/include/functions.inc.php
r1880 r1884 841 841 if (!empty($element_info['filesize'])) 842 842 { 843 $thumbnail_title .= ' : '. $element_info['filesize'].' KB';843 $thumbnail_title .= ' : '.l10n_dec('%d Kb', '%d Kb', $element_info['filesize']); 844 844 } 845 845 -
trunk/include/functions_html.inc.php
r1876 r1884 429 429 ); 430 430 431 $title = get_display_images_count 432 ( 433 $category['nb_images'], 434 $category['count_images'], 435 $category['count_categories'], 436 false, 437 ' / ' 438 ); 439 431 440 $menu.= "\n".'<a href="'.$url.'"'; 432 441 if ($selected_category!=null … … 435 444 $menu.= ' rel="up"'; 436 445 } 437 $menu.= ' >'.$category['name'].'</a>';446 $menu.= ' title=" '.$title.'">'.$category['name'].'</a>'; 438 447 439 448 if ( $category['count_images']>0 ) … … 443 452 $menu.= ($category['nb_images'] > 0 ? "menuInfoCat" 444 453 : "menuInfoCatByChild").'"'; 445 $menu.= ' title="'; 446 $menu.= ' '.get_display_images_count 447 ( 448 $category['nb_images'], 449 $category['count_images'], 450 $category['count_categories'], 451 false, 452 ' / ' 453 ).'">'; 454 $menu.= ' title=" '.$title.'">'; 454 455 // show total number of images 455 456 $menu.= '['.$category['count_images'].']'; -
trunk/language/en_UK.iso-8859-1/admin.lang.php
r1881 r1884 227 227 $lang['conf_default'] = 'Default display'; 228 228 $lang['conf_default_title'] = 'Default display'; 229 $lang['conf_history_title'] = 'History'; 229 230 $lang['conf_gallery_url_error'] = 'The gallery URL is not valid.'; 230 231 $lang['conf_general_title'] = 'Main'; -
trunk/language/fr_FR.iso-8859-1/admin.lang.php
r1881 r1884 227 227 $lang['conf_default'] = 'Affichage par défaut'; 228 228 $lang['conf_default_title'] = 'Affichage par défaut'; 229 $lang['conf_history_title'] = 'Historique'; 229 230 $lang['conf_gallery_url_error'] = 'L\'adresse de la galerie n\'est pas valide.'; 230 231 $lang['conf_general_title'] = 'Principale'; -
trunk/template/yoga/admin/configuration.tpl
r1881 r1884 65 65 </label> 66 66 </li> 67 68 <br/>69 <li>70 <fieldset>71 <legend>{lang:History}</legend>72 <ul>73 <li>74 <label><span class="property">{lang:Users}</span><input type="checkbox" name="log" {general.LOG} /></label>75 </li>76 77 <li>78 <label><span class="property">{lang:user_status_admin}</span><input type="checkbox" name="history_admin" {general.HISTORY_ADMIN} /></label>79 </li>80 81 <li>82 <label><span class="property">{lang:Guests}</span><input type="checkbox" name="history_guest" {general.HISTORY_GUEST} /></label>83 </li>84 </ul>85 </fieldset>86 </li>87 67 </ul> 88 68 </fieldset> 89 69 <!-- END general --> 70 71 <!-- BEGIN history --> 72 <fieldset id="historyConf"> 73 <ul> 74 <li> 75 <label><span class="property">{lang:Users}</span><input type="checkbox" name="log" {history.LOG} /></label> 76 </li> 77 78 <li> 79 <label><span class="property">{lang:user_status_admin}</span><input type="checkbox" name="history_admin" {history.HISTORY_ADMIN} /></label> 80 </li> 81 82 <li> 83 <label><span class="property">{lang:Guests}</span><input type="checkbox" name="history_guest" {history.HISTORY_GUEST} /></label> 84 </li> 85 </ul> 86 </fieldset> 87 <!-- END history --> 90 88 91 89 <!-- BEGIN comments --> -
trunk/template/yoga/admin/intro.tpl
r1724 r1884 25 25 <ul> 26 26 <li>{lang:Operating system}: {OS}</li> 27 <li>PHP: {PHP_VERSION} (<a href="{U_PHPINFO}">{lang:Show info}</a>) </li>28 <li>MySQL: {MYSQL_VERSION} </li>27 <li>PHP: {PHP_VERSION} (<a href="{U_PHPINFO}">{lang:Show info}</a>) [{PHP_DATATIME}]</li> 28 <li>MySQL: {MYSQL_VERSION} [{DB_DATATIME}]</li> 29 29 </ul> 30 30 </dd> … … 56 56 </dd> 57 57 58 <dt>{lang:Clock}</dt> 59 <dd> 60 <ul> 61 </ul> 62 </dd> 63 58 64 </dl>
Note: See TracChangeset
for help on using the changeset viewer.