aboutsummaryrefslogtreecommitdiffstats
path: root/mod/install.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-07 19:12:35 -0700
committerFriendika <info@friendika.com>2011-07-07 19:12:35 -0700
commit2d2b5006397bb6ac90f7e33e6022000ec836e86e (patch)
tree9a22d508d848ab02bff88fd24a592f686ea75ac1 /mod/install.php
parentd99dfbe4ef50c2928cd2a45bf0b2cf62bba5b1e9 (diff)
downloadvolse-hubzilla-2d2b5006397bb6ac90f7e33e6022000ec836e86e.tar.gz
volse-hubzilla-2d2b5006397bb6ac90f7e33e6022000ec836e86e.tar.bz2
volse-hubzilla-2d2b5006397bb6ac90f7e33e6022000ec836e86e.zip
input the admin email address during install/setup.
Diffstat (limited to 'mod/install.php')
-rw-r--r--mod/install.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/mod/install.php b/mod/install.php
index b9deb6114..301630528 100644
--- a/mod/install.php
+++ b/mod/install.php
@@ -12,6 +12,7 @@ function install_post(&$a) {
$dbdata = notags(trim($_POST['dbdata']));
$timezone = notags(trim($_POST['timezone']));
$phpath = notags(trim($_POST['phpath']));
+ $adminmail = notags(trim($_POST['adminmail']));
require_once("dba.php");
unset($db);
@@ -45,8 +46,10 @@ function install_post(&$a) {
'$dbdata' => $dbdata,
'$timezone' => $timezone,
'$urlpath' => $urlpath,
- '$phpath' => $phpath
+ '$phpath' => $phpath,
+ '$adminmail' => $adminmail
));
+
$result = file_put_contents('.htconfig.php', $txt);
if(! $result) {
$a->data = $txt;
@@ -128,6 +131,7 @@ function install_content(&$a) {
'$lbl_08' => t('Database Login Password'),
'$lbl_09' => t('Database Name'),
'$lbl_10' => t('Please select a default timezone for your website'),
+ '$lbl_11' => t('Site administrator email address. Your account email address will need match this.'),
'$baseurl' => $a->get_baseurl(),
'$tzselect' => ((x($_POST,'timezone')) ? select_timezone($_POST['timezone']) : select_timezone()),
'$submit' => t('Submit'),
@@ -135,7 +139,8 @@ function install_content(&$a) {
'$dbuser' => notags(trim($_POST['dbuser'])),
'$dbpass' => notags(trim($_POST['dbpass'])),
'$dbdata' => notags(trim($_POST['dbdata'])),
- '$phpath' => $phpath
+ '$phpath' => $phpath,
+ '$adminemail' => notags(trim($_POST['adminemail']))
));
return $o;