From 7c43a3c62d28162ee70e960f51e048727725cb31 Mon Sep 17 00:00:00 2001 From: rub Date: Wed, 28 Mar 2007 19:57:00 +0000 Subject: Issue 578 User guest must be real user Step 1: guest is a real user On next commit, I finish installation and use of guest of user list and group git-svn-id: http://piwigo.org/svn/trunk@1926 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions.php | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) (limited to 'admin/include') diff --git a/admin/include/functions.php b/admin/include/functions.php index 1395282ad..ac99539d6 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -4,7 +4,6 @@ // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | // +-----------------------------------------------------------------------+ -// | branch : BSF (Best So Far) // | file : $Id$ // | last update : $Date$ // | last modifier : $Author$ @@ -1142,35 +1141,7 @@ SELECT user_id if (count($to_create) > 0) { - $inserts = array(); - - list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();')); - - foreach ($to_create as $user_id) - { - $insert = array(); - $insert['user_id'] = $user_id; - $insert['status'] = 'normal'; - $insert['template'] = $conf['default_template']; - $insert['nb_image_line'] = $conf['nb_image_line']; - $insert['nb_line_page'] = $conf['nb_line_page']; - $insert['language'] = $conf['default_language']; - $insert['recent_period'] = $conf['recent_period']; - $insert['expand'] = boolean_to_string($conf['auto_expand']); - $insert['show_nb_comments'] = - boolean_to_string($conf['show_nb_comments']); - $insert['show_nb_hits'] = - boolean_to_string($conf['show_nb_hits']); - $insert['maxwidth'] = $conf['default_maxwidth']; - $insert['maxheight'] = $conf['default_maxheight']; - $insert['registration_date'] = $dbnow; - - array_push($inserts, $insert); - } - - mass_inserts(USER_INFOS_TABLE, - array_keys($inserts[0]), - $inserts); + create_user_infos($to_create); } // users present in user related tables must be present in the base user -- cgit v1.2.3