aboutsummaryrefslogtreecommitdiffstats
path: root/admin.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-08-15 22:01:00 +0000
committerplegall <plg@piwigo.org>2005-08-15 22:01:00 +0000
commit149edc131d7cac50dfac0a9d00c0a36c4355ec9a (patch)
treed960644608912a1f6d6ba79c89104089bb472d3a /admin.php
parent3b957eb48093b4705cd98d0f9c70ea932a37e633 (diff)
- 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. git-svn-id: http://piwigo.org/svn/trunk@814 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin.php')
-rw-r--r--admin.php20
1 files changed, 13 insertions, 7 deletions
diff --git a/admin.php b/admin.php
index 75710773d..23bb3f76f 100644
--- a/admin.php
+++ b/admin.php
@@ -54,7 +54,8 @@ else if (isset($_GET['user_id']))
$username = get_username($_GET['user_id']);
}
-if (isset( $_GET['page'] ))
+$_GET['page'] = isset($_GET['page']) ? $_GET['page'] : 'intro';
+
switch ( $_GET['page'] )
{
case 'user_list' :
@@ -97,8 +98,6 @@ switch ( $_GET['page'] )
$title = $lang['title_update']; $page_valide = true; break;
case 'configuration':
$title = $lang['title_configuration']; $page_valide = true; break;
- case 'admin_phpinfo':
- $title = $lang['phpinfos']; $page_valide = true; break;
case 'help':
$title = $lang['title_instructions']; $page_valide = true; break;
case 'cat_perm':
@@ -186,8 +185,17 @@ switch ( $_GET['page'] )
// $page_valide = true;
// break;
// }
- default:
- $title = $lang['title_default']; break;
+ case 'intro' :
+ {
+ $_GET['page'] = 'intro';
+ $title = $lang['title_default'];
+ $page_valide = true;
+ break;
+ }
+ default :
+ {
+ break;
+ }
}
if ( $title == '' ) $title = $lang['title_default'];
@@ -225,7 +233,6 @@ $template->assign_vars(array(
'L_GALLERY_INDEX'=>$lang['home'],
'L_GENERAL'=>$lang['general'],
'L_DEFAULT'=>$lang['gallery_default'],
- 'L_PHPINFO'=>$lang['phpinfos'],
'L_HISTORY'=>$lang['history'],
'L_FAQ'=>$lang['instructions'],
'L_CONFIGURATION'=>$lang['config'],
@@ -255,7 +262,6 @@ $template->assign_vars(array(
'U_HISTORY'=>add_session_id($link_start.'stats' ),
'U_FAQ'=>add_session_id($link_start.'help' ),
'U_SITES'=>add_session_id($link_start.'remote_site'),
- 'U_PHPINFO'=>add_session_id($link_start.'admin_phpinfo' ),
'U_MAINTENANCE'=>add_session_id($link_start.'maintenance'),
'U_CONFIG_GENERAL'=>add_session_id($conf_link.'general' ),
'U_CONFIG_COMMENTS'=>add_session_id($conf_link.'comments' ),