diff options
author | gweltas <gweltas@piwigo.org> | 2004-10-01 22:50:50 +0000 |
---|---|---|
committer | gweltas <gweltas@piwigo.org> | 2004-10-01 22:50:50 +0000 |
commit | 28dcfea993edd4e4ff9eb06e49ec6b2ef326396d (patch) | |
tree | 220cef989b059166d1d89faf93b904978d3e0458 /admin.php | |
parent | e7b24ebdd081c86555b0c07ca18cbf205ab0bacd (diff) |
- Change of the picture page behavior to be able to open the full size image in a new window
- Minor modification for template migration
- Rename of script.js in scripts.js
git-svn-id: http://piwigo.org/svn/trunk@539 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin.php | 24 |
1 files changed, 3 insertions, 21 deletions
@@ -42,27 +42,9 @@ switch ( $_GET['page'] ) case 'user_modify': $title = $lang['title_modify']; $page_valide = true; break; case 'user_search': - /* if ( !is_numeric( $_GET['user_id'] ) ) $_GET['user_id'] = -1; - $query = 'SELECT status,username'; - $query.= ' FROM '.USERS_TABLE; - $query.= ' WHERE id = '.$_GET['user_id']; - $query.= ';'; - $result = mysql_query( $query ); - if ( mysql_num_rows( $result ) > 0 ) - { - $row = mysql_fetch_array( $result ); - $page['user_status'] = $row['status']; - if ( $row['username'] == 'guest' ) $row['username'] = $lang['guest']; - $page['user_username'] = $row['username']; - $page_valide = true; - $title = $lang['title_user_perm'].' "'.$page['user_username'].'"'; - } - else - { - $page_valide = false; - }*/ - $title = $lang['title_user_perm']; - //.' '.$_POST['username']; + $username=''; + if (isset($_POST['username'])) $username=$_POST['username']; + $title = $lang['title_user_perm'].' '.$username; $page_valide = true; break; case 'group_list' : $title = $lang['title_groups']; $page_valide = true; break; |