diff options
author | Friendika <info@friendika.com> | 2011-07-07 19:12:35 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-07-07 19:12:35 -0700 |
commit | 2d2b5006397bb6ac90f7e33e6022000ec836e86e (patch) | |
tree | 9a22d508d848ab02bff88fd24a592f686ea75ac1 /mod/install.php | |
parent | d99dfbe4ef50c2928cd2a45bf0b2cf62bba5b1e9 (diff) | |
download | volse-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.php | 9 |
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; |