diff options
author | z0rglub <z0rglub@piwigo.org> | 2004-10-30 15:42:29 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2004-10-30 15:42:29 +0000 |
commit | 7cd9b65e3299fb8bc6a83e65f89fcecca62f3178 (patch) | |
tree | e068090892b16db654a2bf0c2886b65eaf44a14f /admin/user_modify.php | |
parent | 3730c810f254267ab1fb49f4cad55866e780ad6e (diff) |
- function mysql_query replaced by pwg_query : the same with debugging
features
- by default, DEBUG is set to 0 (off)
git-svn-id: http://piwigo.org/svn/trunk@587 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/user_modify.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/admin/user_modify.php b/admin/user_modify.php index f55a041a8..38614b62e 100644 --- a/admin/user_modify.php +++ b/admin/user_modify.php @@ -44,7 +44,7 @@ $query.= ' username,status,mail_address'; $query.= ' from '.USERS_TABLE; $query.= ' where id = '.$_GET['user_id']; $query.= ';'; -$row = mysql_fetch_array( mysql_query( $query ) ); +$row = mysql_fetch_array( pwg_query( $query ) ); $page['username'] = $row['username']; $page['status'] = $row['status']; if ( !isset( $row['mail_address'] ) ) $row['mail_address'] = ''; @@ -90,7 +90,7 @@ if ( isset( $_POST['submit'] ) ) $query.= ' FROM '.PREFIX_TABLE.'groups'; $query.= ' ORDER BY id ASC'; $query.= ';'; - $result = mysql_query( $query ); + $result = pwg_query( $query ); while ( $row = mysql_fetch_array( $result ) ) { $dissociate = 'dissociate-'.$row['id']; @@ -100,7 +100,7 @@ if ( isset( $_POST['submit'] ) ) $query.= ' WHERE user_id = '.$_GET['user_id']; $query.= ' AND group_id ='.$row['id']; $query.= ';'; - mysql_query( $query ); + pwg_query( $query ); } } // create a new association between the user and a group @@ -108,7 +108,7 @@ if ( isset( $_POST['submit'] ) ) $query.= ' (user_id,group_id) VALUES'; $query.= ' ('.$_GET['user_id'].','.$_POST['associate'].')'; $query.= ';'; - mysql_query( $query ); + pwg_query( $query ); // synchronize category informations for this user synchronize_user( $_GET['user_id'] ); } @@ -179,7 +179,7 @@ if ( $display_form ) $query.= ' WHERE group_id = id'; $query.= ' AND user_id = '.$_GET['user_id']; $query.= ';'; - $result = mysql_query( $query ); + $result = pwg_query( $query ); $user_groups = array(); if ( mysql_num_rows( $result ) > 0 ) { @@ -204,7 +204,7 @@ if ( $display_form ) $query.= ' FROM '.PREFIX_TABLE.'groups'; $query.= ' ORDER BY id ASC'; $query.= ';'; - $result = mysql_query( $query ); + $result = pwg_query( $query ); while ( $row = mysql_fetch_array( $result ) ) { if ( !in_array( $row['id'], $user_groups ) ) |