Changeset 1926 for trunk/admin/include/functions.php
- Timestamp:
- Mar 28, 2007, 9:57:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions.php
r1900 r1926 5 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 // | branch : BSF (Best So Far)8 7 // | file : $Id$ 9 8 // | last update : $Date$ … … 1143 1142 if (count($to_create) > 0) 1144 1143 { 1145 $inserts = array(); 1146 1147 list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();')); 1148 1149 foreach ($to_create as $user_id) 1150 { 1151 $insert = array(); 1152 $insert['user_id'] = $user_id; 1153 $insert['status'] = 'normal'; 1154 $insert['template'] = $conf['default_template']; 1155 $insert['nb_image_line'] = $conf['nb_image_line']; 1156 $insert['nb_line_page'] = $conf['nb_line_page']; 1157 $insert['language'] = $conf['default_language']; 1158 $insert['recent_period'] = $conf['recent_period']; 1159 $insert['expand'] = boolean_to_string($conf['auto_expand']); 1160 $insert['show_nb_comments'] = 1161 boolean_to_string($conf['show_nb_comments']); 1162 $insert['show_nb_hits'] = 1163 boolean_to_string($conf['show_nb_hits']); 1164 $insert['maxwidth'] = $conf['default_maxwidth']; 1165 $insert['maxheight'] = $conf['default_maxheight']; 1166 $insert['registration_date'] = $dbnow; 1167 1168 array_push($inserts, $insert); 1169 } 1170 1171 mass_inserts(USER_INFOS_TABLE, 1172 array_keys($inserts[0]), 1173 $inserts); 1144 create_user_infos($to_create); 1174 1145 } 1175 1146
Note: See TracChangeset
for help on using the changeset viewer.