aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-05-28 21:56:07 +0000
committerz0rglub <z0rglub@piwigo.org>2004-05-28 21:56:07 +0000
commit5643049f239f6472d6019a2f3bce029ed1ef825d (patch)
tree9a74e101dd6ab7edb925959583f1de57211b4ffb /include/functions_user.inc.php
parent7e465041bfdf14cbbb684bf11f597e3bc8e78980 (diff)
table user_category dropped
git-svn-id: http://piwigo.org/svn/trunk@423 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_user.inc.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 400e104c6..983d7e82e 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -153,23 +153,6 @@ function register_user( $login, $password, $password_conf,
$query.= ';';
mysql_query ( $query );
}
- // 6. has the same categories informations than guest
- $query = 'SELECT category_id,date_last,nb_sub_categories';
- $query.= ' FROM '.PREFIX_TABLE.'user_category AS uc';
- $query.= ', '.PREFIX_TABLE.'users AS u';
- $query.= " WHERE u.username = 'guest'";
- $query.= ' AND uc.user_id = u.id';
- $query.= ';';
- $result = mysql_query( $query );
- while( $row = mysql_fetch_array( $result ) )
- {
- $query = 'INSERT INTO '.PREFIX_TABLE.'user_category';
- $query.= ' (user_id,category_id,date_last,nb_sub_categories) VALUES';
- $query.= ' ('.$user_id.','.$row['category_id'];
- $query.= ",'".$row['date_last']."',".$row['nb_sub_categories'].')';
- $query.= ';';
- mysql_query ( $query );
- }
}
return $error;
}