Ignore:
Timestamp:
Mar 9, 2007, 11:52:22 PM (17 years ago)
Author:
rub
Message:

Add DateTime on administration introduction page (Useful to help user on the forum, ...)
Move history configuration in a other tab.
Use translation on picture hint (Kb).
Show hint oh the menu text (not only on counter)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r1881 r1884  
    5050
    5151$general_checkboxes = array(
     52    'email_admin_on_new_user',
     53    'allow_user_registration',
     54   );
     55
     56$history_checkboxes = array(
    5257    'log',
    5358    'history_admin',
    54     'history_guest',
    55     'email_admin_on_new_user',
    56     'allow_user_registration',
     59    'history_guest'
    5760   );
    5861
     
    7780      }
    7881      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)
    7990      {
    8091        $_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true';
     
    170181    'caption' => l10n('conf_general_title'),
    171182    'url' => $conf_link.'general'
     183   ),
     184  'history' => array
     185   (
     186    'caption' => l10n('conf_history_title'),
     187    'url' => $conf_link.'history'
    172188   ),
    173189  'comments' => array
     
    229245      $template->merge_block_vars(
    230246          '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',
    231263          array(
    232264            strtoupper($checkbox) => ($conf[$checkbox]==true)?$html_check:''
Note: See TracChangeset for help on using the changeset viewer.