</ul>
</fieldset>
<fieldset id="settings_profile">
- <legend>Installation profile</legend>
+ <legend>Site profile</legend>
<ul class="form_data">
<li>
- <label for="profile">Profile</label>
- <select id="profile" name="profile">
+ <label for="site_profile">Type of site</label>
+ <select id="site_profile" name="site_profile">
<option value="private">Private</option>
<option value="community">Community</option>
<option value ="public">Public</option>
+ <option value ="singleuser">Single User</option>
</select>
<p class="form_guide">Initial access settings for your site</p>
</li>
/**
* Read and validate input data.
* May output side effects.
- *
+ *
* @return boolean success
*/
function prepare()
$this->adminEmail = $post->string('admin_email');
$this->adminUpdates = $post->string('admin_updates');
+ $this->siteProfile = $post->string('site_profile');
+
$this->server = $_SERVER['HTTP_HOST'];
$this->path = substr(dirname($_SERVER['PHP_SELF']), 1);
if (!$this->validateAdmin()) {
$fail = true;
}
-
+
if ($this->adminPass != $adminPass2) {
$this->updateStatus("Administrator passwords do not match. Did you mistype?", true);
$fail = true;
}
-
+
+ if (!$this->validateSiteProfile()) {
+ $fail = true;
+ }
+
return !$fail;
}
<div id="content_wrapper">
<div id="site_nav_local_views_wrapper">
<div id="site_nav_local_views"></div>
-
+
<div id="content">
<div id="content_inner">
<h1>Install StatusNet</h1>
-<?php
+<?php
$installer = new WebInstaller();
$installer->main();
?>