aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-03-14 21:31:31 +0000
committerrub <rub@piwigo.org>2006-03-14 21:31:31 +0000
commit77aa54a32b1a3fd43cb6615bf5bba9360e21647c (patch)
tree8933c1e573916f3bff35f8569c06ee77cc69ef91 /install
parent7eb6e6ca1f01a4cc7793fb76ca68c65bf2e0286c (diff)
Step 2 improvement issue 0000127:
o Allow to chage high property on user list o Set initial value for the 2 default users + Correction of permissions.png in user list git-svn-id: http://piwigo.org/svn/trunk@1079 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--install.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/install.php b/install.php
index 11c68f60f..cafe5288b 100644
--- a/install.php
+++ b/install.php
@@ -185,6 +185,7 @@ if (@file_exists($config_file))
$prefixeTable = $table_prefix;
include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
+@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
include(PHPWG_ROOT_PATH . 'include/constants.php');
include(PHPWG_ROOT_PATH . 'include/functions.inc.php');
include(PHPWG_ROOT_PATH . 'include/template.php');
@@ -309,9 +310,9 @@ INSERT INTO '.USERS_TABLE.'
$query = '
INSERT INTO '.USER_INFOS_TABLE.'
- (user_id,status,language)
+ (user_id,status,language,enabled_high)
VALUES
- (1, \'webmaster\', \''.$language.'\')
+ (1, \'webmaster\', \''.$language.'\',\''.$conf['newuser_default_enabled_high'].'\')
;';
mysql_query($query);
@@ -333,9 +334,9 @@ INSERT INTO '.USERS_TABLE.'
$query = '
INSERT INTO '.USER_INFOS_TABLE.'
- (user_id,status,language)
+ (user_id,status,language,enabled_high)
VALUES
- (2, \'guest\', \''.$language.'\')
+ (2, \'guest\', \''.$language.'\',\'false\')
;';
mysql_query($query);