aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-15 21:49:29 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-15 21:49:29 -0700
commit35e29e10e69dfb086e990d852aa6b5006ce31d1b (patch)
tree75ba2b51a5171b90a40a8af33b11a38835cc9e21 /view
parent7294a3aab110b6e740c70dc3ea086c7aa4d4dd13 (diff)
downloadvolse-hubzilla-35e29e10e69dfb086e990d852aa6b5006ce31d1b.tar.gz
volse-hubzilla-35e29e10e69dfb086e990d852aa6b5006ce31d1b.tar.bz2
volse-hubzilla-35e29e10e69dfb086e990d852aa6b5006ce31d1b.zip
installer changes, pe sync
Diffstat (limited to 'view')
-rw-r--r--view/htconfig.tpl44
-rw-r--r--view/install_db.tpl40
-rw-r--r--view/style.css37
3 files changed, 120 insertions, 1 deletions
diff --git a/view/htconfig.tpl b/view/htconfig.tpl
new file mode 100644
index 000000000..f555ace83
--- /dev/null
+++ b/view/htconfig.tpl
@@ -0,0 +1,44 @@
+<?php
+
+// Set the following for your MySQL installation
+// Copy or rename this file to .htconfig.php
+
+$db_host = '$dbhost';
+$db_user = '$dbuser';
+$db_pass = '$dbpass';
+$db_data = '$dbdata';
+
+// If you are using a subdirectory of your domain you will need to put the
+// relative path (from the root of your domain) here.
+// For instance if your URL is 'http://example.com/directory/subdirectory',
+// set $a->path to 'directory/subdirectory'.
+
+$a->path = '';
+
+// Choose a legal default timezone. If you are unsure, use "America/Los_Angeles".
+// It can be changed later and only applies to timestamps for anonymous viewers.
+
+$default_timezone = '$timezone';
+
+// What is your site name?
+
+$a->config['sitename'] = "My Friend Network";
+
+// Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED.
+// Be certain to create your own personal account before setting
+// REGISTER_CLOSED. 'register_text' (if set) will be displayed prominently on
+// the registration page. REGISTER_APPROVE requires you set 'admin_email'
+// to the email address of an already registered person who can authorise
+// and/or approve/deny the request.
+
+$a->config['register_policy'] = REGISTER_OPEN;
+$a->config['register_text'] = '';
+$a->config['admin_email'] = '';
+
+// Maximum size of an imported message, 0 is unlimited (but our database 'text' element is limited to 65535).
+
+$a->config['max_import_size'] = 65535;
+
+// Location of PHP command line processor
+
+$a->config['php_path'] = '$phpath';
diff --git a/view/install_db.tpl b/view/install_db.tpl
new file mode 100644
index 000000000..00c3b8265
--- /dev/null
+++ b/view/install_db.tpl
@@ -0,0 +1,40 @@
+
+<h3>Mistpark Personal Edition</h3>
+<h3>Installation</h3>
+
+<p>
+In order to install Mistpark we need to know how to contact your database. Please contact your hosting provider or site administrator if you have questions about these settings. The database you specify below must already exist. If it does not, please create it before continuing.
+</p>
+
+<form id="install-form" action="install" method="post">
+
+<input type="hidden" name="phpath" value="$phpath" />
+
+<label for="install-dbhost" id="install-dbhost-label">Database Server Name</label>
+<input type="text" name="dbhost" id="install-dbhost" value="$dbhost" />
+<div id="install-dbhost-end"></div>
+
+<label for="install-dbuser" id="install-dbuser-label">Database Login Name</label>
+<input type="text" name="dbuser" id="install-dbuser" value="$dbuser" />
+<div id="install-dbuser-end"></div>
+
+<label for="install-dbpass" id="install-dbpass-label">Database Login Password</label>
+<input type="password" name="dbpass" id="install-dbpass" value="$dbpass" />
+<div id="install-dbpass-end"></div>
+
+<label for="install-dbdata" id="install-dbdata-label">Database Name</label>
+<input type="text" name="dbdata" id="install-dbdata" value="$dbdata" />
+<div id="install-dbdata-end"></div>
+
+<div id="install-tz-desc">
+Please select a default timezone for your website
+</div>
+
+$tzselect
+
+<div id="install-tz-end" ></div>
+<input id="install-submit" type="submit" name="submit" value="$submit" />
+
+</form>
+<div id="install-end" ></div>
+
diff --git a/view/style.css b/view/style.css
index 788a18349..83795869b 100644
--- a/view/style.css
+++ b/view/style.css
@@ -1457,4 +1457,39 @@ input#dfrn-url {
.group-delete-wrapper {
float: right;
margin-right: 50px;
-} \ No newline at end of file
+}
+
+#install-dbhost-label,
+#install-dbuser-label,
+#install-dbpass-label,
+#install-dbdata-label,
+#install-tz-desc {
+ float: left;
+ width: 250px;
+ margin-top: 10px;
+ margin-bottom: 10px;
+
+}
+
+#install-dbhost,
+#install-dbuser,
+#install-dbpass,
+#install-dbdata {
+ float: left;
+ width: 200px;
+ margin-left: 20px;
+}
+
+#install-dbhost-end,
+#install-dbuser-end,
+#install-dbpass-end,
+#install-dbdata-end,
+#install-tz-end {
+ clear: both;
+}
+
+#install-form select#timezone_select {
+ float: left;
+ margin-top: 18px;
+ margin-left: 20px;
+}