Ignore:
Timestamp:
Mar 28, 2007, 9:57:00 PM (17 years ago)
Author:
rub
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r1900 r1926  
    55// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    7 // | branch        : BSF (Best So Far)
    87// | file          : $Id$
    98// | last update   : $Date$
     
    11431142  if (count($to_create) > 0)
    11441143  {
    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);
    11741145  }
    11751146
Note: See TracChangeset for help on using the changeset viewer.