aboutsummaryrefslogtreecommitdiffstats
path: root/mod/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/install.php')
-rwxr-xr-xmod/install.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/mod/install.php b/mod/install.php
index a6ca48b61..87a1c041a 100755
--- a/mod/install.php
+++ b/mod/install.php
@@ -69,6 +69,9 @@ function install_post(&$a) {
$phpath = notags(trim($_POST['phpath']));
$timezone = notags(trim($_POST['timezone']));
$adminmail = notags(trim($_POST['adminmail']));
+ $siteurl = notags(trim($_POST['siteurl']));
+
+
// connect to db
$db = new dba($dbhost, $dbuser, $dbpass, $dbdata, true);
@@ -80,7 +83,8 @@ function install_post(&$a) {
'$dbpass' => $dbpass,
'$dbdata' => $dbdata,
'$timezone' => $timezone,
- '$urlpath' => $urlpath,
+ '$siteurl' => $siteurl,
+ '$site_id' => hash('whirlpool', random_string()),
'$phpath' => $phpath,
'$adminmail' => $adminmail
));
@@ -235,7 +239,7 @@ function install_content(&$a) {
'$dbdata' => array('dbdata', t('Database Name'), $dbdata, ''),
'$adminmail' => array('adminmail', t('Site administrator email address'), $adminmail, t('Your account email address must match this in order to use the web admin panel.')),
-
+ '$siteurl' => array('siteurl', t('Website URL'), z_root(), t('Please use SSL (https) URL if available.')),
'$lbl_10' => t('Please select a default timezone for your website'),
@@ -275,6 +279,8 @@ function install_content(&$a) {
'$adminmail' => array('adminmail', t('Site administrator email address'), $adminmail, t('Your account email address must match this in order to use the web admin panel.')),
+ '$siteurl' => array('siteurl', t('Website URL'), z_root(), t('Please use SSL (https) URL if available.')),
+
'$timezone' => field_timezone('timezone', t('Please select a default timezone for your website'), $timezone, ''),