aboutsummaryrefslogtreecommitdiffstats
path: root/admin.php
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-12-03 16:30:12 +0000
committergweltas <gweltas@piwigo.org>2004-12-03 16:30:12 +0000
commit6fa03e0cca6855e041de004d49e0dd1b03bd644f (patch)
treeae05c6a88f896de2ab4ffea8d98641f1996e2be3 /admin.php
parentb35dc19ab6da173cc663e49cb32389d7e6dbfdee (diff)
- User control panel update (user side)
- User control panel update (admin side) - Add of registration link on the main page - Minor bug correction for group management git-svn-id: http://piwigo.org/svn/trunk@631 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin.php')
-rw-r--r--admin.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/admin.php b/admin.php
index d9e6a700b..3a19def75 100644
--- a/admin.php
+++ b/admin.php
@@ -34,16 +34,18 @@ include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
//--------------------------------------- validating page and creation of title
$page_valide = false;
$title = '';
+$username='';
+if (isset($_POST['username'])) $username=$_POST['username'];
if (isset( $_GET['page'] ))
switch ( $_GET['page'] )
{
case 'user_list':
$title = $lang['title_liste_users']; $page_valide = true; break;
- case 'user_modify':
- $title = $lang['title_modify']; $page_valide = true; break;
+ case 'profile':
+ $title = $lang['title_modify'];
+ $page_valide = true;
+ break;
case 'user_search':
- $username='';
- if (isset($_POST['username'])) $username=$_POST['username'];
$title = $lang['title_user_perm'].' '.$username;
$page_valide = true; break;
case 'group_list' :
@@ -93,8 +95,6 @@ switch ( $_GET['page'] )
$title = $lang['title_categories']; $page_valide = true; break;
case 'cat_modify':
$title = $lang['title_edit_cat']; $page_valide = true; break;
- case 'admin_upload':
- $title = $lang['upload']; $page_valide = true; break;
case 'infos_images':
$title = $lang['title_info_images']; $page_valide = true; break;
case 'waiting':
@@ -212,7 +212,7 @@ $template->assign_vars(array(
'U_CONFIG_METADATA'=>add_session_id($conf_link.'metadata' ),
'U_SITES'=>add_session_id($link_start.'remote_site'),
'U_PHPINFO'=>add_session_id($link_start.'admin_phpinfo' ),
- 'U_USERS'=>add_session_id($link_start.'user_search' ),
+ 'U_USERS'=>add_session_id($link_start.'profile' ),
'U_GROUPS'=>add_session_id($link_start.'group_list' ),
'U_CATEGORIES'=>add_session_id($link_start.'cat_list' ),
'U_CAT_UPLOAD'=>add_session_id($opt_link.'upload'),
@@ -235,6 +235,7 @@ $link_start = PHPWG_ROOT_PATH.'admin.php?page=';
if ( $page_valide )
{
if ($_GET['page']=='comments') include ( PHPWG_ROOT_PATH.'comments.php');
+ elseif ($_GET['page']=='profile') include ( PHPWG_ROOT_PATH.'profile.php');
else include ( PHPWG_ROOT_PATH.'admin/'.$_GET['page'].'.php' );
}
else