summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/index.php4
-rw-r--r--admin/upgrade_inc.php3
2 files changed, 6 insertions, 1 deletions
diff --git a/admin/index.php b/admin/index.php
index 49471a2..7b2546c 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -1,5 +1,5 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_users/admin/index.php,v 1.1 2005/06/19 05:12:23 bitweaver Exp $
+// $Header: /cvsroot/bitweaver/_bit_users/admin/index.php,v 1.2 2005/06/28 07:46:23 spiderr Exp $
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
@@ -73,6 +73,8 @@ if (isset($_REQUEST["newuser"])) {
$newUser = new BitPermUser();
// Check if the user already exists
+ // jht 2005-06-22_23:51:58 flag this user store as coming from admin page -- a kludge
+ $_REQUEST['admin_add'] = 1;
if( $newUser->store( $_REQUEST ) ) {
$smarty->assign( 'addSuccess', "User Added Successfully" );
} else {
diff --git a/admin/upgrade_inc.php b/admin/upgrade_inc.php
index fdee07c..14dfe8a 100644
--- a/admin/upgrade_inc.php
+++ b/admin/upgrade_inc.php
@@ -175,6 +175,9 @@ array( 'QUERY' =>
"UPDATE `".BIT_DB_PREFIX."users_permissions` SET `perm_name`=replace(`perm_name`,'tiki_','bit_')",
"UPDATE `".BIT_DB_PREFIX."users_objectpermissions` SET `perm_name`=replace(`perm_name`,'tiki_','bit_')",
+
+
+
"INSERT INTO `".BIT_DB_PREFIX."users_users` (`real_name`, `login`, `email`, `user_id` ) VALUES ('Anonymous', 'anonymous', 'anonymous@localhost', ".ANONYMOUS_USER_ID.")",
// TikiWiki assigns the creator user foreign key as 'system' even if there is now 'system' user - XOXO spiderr
// In order for all pages to upgrade, there must be at least an 'admin' and 'system' user