Changeset 814 for trunk/admin.php


Ignore:
Timestamp:
Aug 16, 2005, 12:01:00 AM (19 years ago)
Author:
plg
Message:
  • new : introduction page to administration section. This page gives informations about PhpWebGallery version, PHP version, MySQL version, gallery database informations (number of categories, elements, users, comments). Ability to request phpwebgallery.net for upgrade.
  • deletion : of obsolete admin/admin_phpinfo.php page replaced by a link in introduction page.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r809 r814  
    5555}
    5656
    57 if (isset( $_GET['page'] ))
     57$_GET['page'] = isset($_GET['page']) ? $_GET['page'] : 'intro';
     58
    5859switch ( $_GET['page'] )
    5960{
     
    9899 case 'configuration':
    99100   $title = $lang['title_configuration']; $page_valide = true; break;
    100  case 'admin_phpinfo':
    101    $title = $lang['phpinfos']; $page_valide = true; break;
    102101 case 'help':
    103102   $title = $lang['title_instructions'];  $page_valide = true; break;
     
    187186//    break;
    188187//  }
    189  default:
    190    $title = $lang['title_default']; break;
     188 case 'intro' :
     189 {
     190   $_GET['page'] = 'intro';
     191   $title = $lang['title_default'];
     192   $page_valide = true;
     193   break;
     194 }
     195 default :
     196 {
     197   break;
     198 }
    191199}
    192200if ( $title == '' ) $title = $lang['title_default'];
     
    226234  'L_GENERAL'=>$lang['general'],
    227235  'L_DEFAULT'=>$lang['gallery_default'],
    228   'L_PHPINFO'=>$lang['phpinfos'],
    229236  'L_HISTORY'=>$lang['history'],
    230237  'L_FAQ'=>$lang['instructions'],
     
    256263  'U_FAQ'=>add_session_id($link_start.'help' ),
    257264  'U_SITES'=>add_session_id($link_start.'remote_site'),
    258   'U_PHPINFO'=>add_session_id($link_start.'admin_phpinfo' ),
    259265  'U_MAINTENANCE'=>add_session_id($link_start.'maintenance'),
    260266  'U_CONFIG_GENERAL'=>add_session_id($conf_link.'general' ),
Note: See TracChangeset for help on using the changeset viewer.