aboutsummaryrefslogtreecommitdiff
path: root/views/failsafe/install
diff options
context:
space:
mode:
Diffstat (limited to 'views/failsafe/install')
-rw-r--r--views/failsafe/install/footer.php10
-rw-r--r--views/failsafe/install/forms/admin.php21
-rw-r--r--views/failsafe/install/forms/database.php20
-rw-r--r--views/failsafe/install/forms/settings.php20
-rw-r--r--views/failsafe/install/forms/template.php27
-rw-r--r--views/failsafe/install/header.php6
-rw-r--r--views/failsafe/install/nav.php35
-rw-r--r--views/failsafe/install/pages/admin.php8
-rw-r--r--views/failsafe/install/pages/complete.php14
-rw-r--r--views/failsafe/install/pages/database.php16
-rw-r--r--views/failsafe/install/pages/requirements.php39
-rw-r--r--views/failsafe/install/pages/settings.php5
-rw-r--r--views/failsafe/install/pages/welcome.php8
-rw-r--r--views/failsafe/install/sidebar.php26
14 files changed, 0 insertions, 255 deletions
diff --git a/views/failsafe/install/footer.php b/views/failsafe/install/footer.php
deleted file mode 100644
index 69cd27f66..000000000
--- a/views/failsafe/install/footer.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-/**
- * Install footer - offers help links
- */
-?>
-<ul>
- <li><a href="http://docs.elgg.org/wiki/Installation">Install instructions</a></li>
- <li><a href="http://docs.elgg.org/wiki/Install_Troubleshooting">Install troubleshooting</a></li>
- <li><a href="http://community.elgg.org/pg/groups/world/">Elgg community forums</a></li>
-</ul> \ No newline at end of file
diff --git a/views/failsafe/install/forms/admin.php b/views/failsafe/install/forms/admin.php
deleted file mode 100644
index ae83cadea..000000000
--- a/views/failsafe/install/forms/admin.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-/**
- * Admin account form
- *
- * @uses $vars['variables'] Array of form variables. See ElggInstaller.
- */
-
-$vars['type'] = 'admin';
-$form_body = elgg_view('install/forms/template', $vars);
-
-
-// @todo bug in current_page_url() with :8080 sites
-//$url = current_page_url();
-$url = '/install.php?step=admin';
-
-$params = array(
- 'body' => $form_body,
- 'action' => $url,
- 'disable_security' => TRUE,
-);
-echo elgg_view('input/form', $params);
diff --git a/views/failsafe/install/forms/database.php b/views/failsafe/install/forms/database.php
deleted file mode 100644
index a3fa8dd65..000000000
--- a/views/failsafe/install/forms/database.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-/**
- * Database form
- *
- * @uses $vars['variables'] Array of form variables. See ElggInstaller.
- */
-
-$vars['type'] = 'database';
-$form_body = elgg_view('install/forms/template', $vars);
-
-// @todo bug in current_page_url() with :8080 sites
-//$url = current_page_url();
-$url = '/install.php?step=database';
-
-$params = array(
- 'body' => $form_body,
- 'action' => $url,
- 'disable_security' => TRUE,
-);
-echo elgg_view('input/form', $params);
diff --git a/views/failsafe/install/forms/settings.php b/views/failsafe/install/forms/settings.php
deleted file mode 100644
index 67cba10f6..000000000
--- a/views/failsafe/install/forms/settings.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-/**
- * Site settings form
- *
- * @uses $vars['variables'] Array of form variables. See ElggInstaller.
- */
-
-$vars['type'] = 'settings';
-$form_body = elgg_view('install/forms/template', $vars);
-
-// @todo bug in current_page_url() with :8080 sites
-//$url = current_page_url();
-$url = '/install.php?step=settings';
-
-$params = array(
- 'body' => $form_body,
- 'action' => $url,
- 'disable_security' => TRUE,
-);
-echo elgg_view('input/form', $params);
diff --git a/views/failsafe/install/forms/template.php b/views/failsafe/install/forms/template.php
deleted file mode 100644
index a2d93f42e..000000000
--- a/views/failsafe/install/forms/template.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Generic form template for install forms
- *
- * @uses $vars['variables']
- * @uses $vars['type'] Type of form: admin, database, settings
- */
-
-$variables = $vars['variables'];
-$type = $vars['type'];
-
-$form_body = '';
-foreach ($variables as $field => $params) {
- $label = elgg_echo("installation:$type:label:$field");
- $help = elgg_echo("installation:$type:help:$field");
- $params['internalname'] = $field;
-
- $form_body .= '<p>';
- $form_body .= "<label>$label</label>";
- $form_body .= elgg_view("input/{$params['type']}", $params);
- $form_body .= "<span class=\"install_help\">$help</span>";
- $form_body .= '</p>';
-}
-
-$form_body .= elgg_view('input/submit', array('value' => elgg_echo('next')));
-
-echo $form_body;
diff --git a/views/failsafe/install/header.php b/views/failsafe/install/header.php
deleted file mode 100644
index d821e31e5..000000000
--- a/views/failsafe/install/header.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-/**
- * Install header
- */
-?>
-<h1>Elgg</h1>
diff --git a/views/failsafe/install/nav.php b/views/failsafe/install/nav.php
deleted file mode 100644
index d6a20ea2b..000000000
--- a/views/failsafe/install/nav.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-/**
- * Navigation for installation pages
- *
- * @uses $vars['url'] base url of site
- * @uses $vars['next_step'] next step as string
- * @uses $vars['refresh'] should refresh button be shown?
- * @uses $vars['advance'] should the next button be active?
- */
-
-
-// has a refresh button been requested
-$refresh = '';
-if (isset($vars['refresh']) && $vars['refresh']) {
- $refresh_text = elgg_echo('Refresh');
- $refresh = "<a href=\"\">$refresh_text</a>";
-}
-
-// create next button and selectively disable
-$next_text = elgg_echo('next');
-$next_link = "{$vars['url']}install.php?step={$vars['next_step']}";
-$next = "<a href=\"$next_link\" disable=\"disable\">$next_text</a>";
-if (isset($vars['advance']) && !$vars['advance']) {
- // disable the next button
- $next = "<a class=\"disabled\">$next_text</a>";
-}
-
-
-echo <<<___END
-<div class="install_nav">
- $next
- $refresh
-</div>
-
-___END;
diff --git a/views/failsafe/install/pages/admin.php b/views/failsafe/install/pages/admin.php
deleted file mode 100644
index 1fdd5dced..000000000
--- a/views/failsafe/install/pages/admin.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/**
- * Install create admin account page
- */
-
-echo autop(elgg_echo('install:admin:instructions'));
-
-echo elgg_view('install/forms/admin', $vars);
diff --git a/views/failsafe/install/pages/complete.php b/views/failsafe/install/pages/complete.php
deleted file mode 100644
index 60838a630..000000000
--- a/views/failsafe/install/pages/complete.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-/**
- * Install completion page
- */
-
-echo autop(elgg_echo('install:complete:instructions'));
-
-?>
-
-<div class="install_nav">
-<?php
- echo "<a href=\"{$vars['url']}index.php\">Go to site</a>";
-?>
-</div>
diff --git a/views/failsafe/install/pages/database.php b/views/failsafe/install/pages/database.php
deleted file mode 100644
index 7765c6e48..000000000
--- a/views/failsafe/install/pages/database.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-/**
- * Install database page
- *
- * @uses $vars['failure'] Settings file exists but something went wrong
- */
-
-if (isset($vars['failure']) && $vars['failure']) {
- echo autop(elgg_echo('install:database:error'));
- $vars['refresh'] = TRUE;
- $vars['advance'] = FALSE;
- echo elgg_view('install/nav', $vars);
-} else {
- echo autop(elgg_echo('install:database:instructions'));
- echo elgg_view('install/forms/database', $vars);
-} \ No newline at end of file
diff --git a/views/failsafe/install/pages/requirements.php b/views/failsafe/install/pages/requirements.php
deleted file mode 100644
index b6516840f..000000000
--- a/views/failsafe/install/pages/requirements.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-/**
- * Install requirements checking page
- *
- * @uses $vars['num_failures] Number of requirements failures
- * @uses $vars['num_warnings] Number of recommendation warnings
- */
-
-if ($vars['num_failures'] != 0) {
- $instruct_text = elgg_echo('install:requirements:instructions:failure');
-} elseif ($vars['num_warnings'] != 0) {
- $instruct_text = elgg_echo('install:requirements:instructions:warning');
-} else {
- $instruct_text = elgg_echo('install:requirements:instructions:success');
-}
-
-echo autop($instruct_text);
-
-$report = $vars['report'];
-foreach ($report as $category => $checks) {
- $title = elgg_echo("install:require:$category");
- echo "<h3>$title</h3>";
- echo "<ul>";
- foreach ($checks as $check) {
- echo "<li class=\"{$check['severity']}\">";
- echo autop($check['message']);
- echo "</li>";
- }
- echo "</ul>";
-}
-
-$vars['refresh'] = TRUE;
-
-// cannot advance to next step with a failure
-if ($vars['num_failures'] != 0) {
- $vars['advance'] = FALSE;
-}
-
-echo elgg_view('install/nav', $vars);
diff --git a/views/failsafe/install/pages/settings.php b/views/failsafe/install/pages/settings.php
deleted file mode 100644
index 6f20573ef..000000000
--- a/views/failsafe/install/pages/settings.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-echo autop(elgg_echo('install:settings:instructions'));
-
-echo elgg_view('install/forms/settings', $vars);
diff --git a/views/failsafe/install/pages/welcome.php b/views/failsafe/install/pages/welcome.php
deleted file mode 100644
index f069e4ba7..000000000
--- a/views/failsafe/install/pages/welcome.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/**
- * Install welcome page
- */
-
-echo autop(elgg_echo('install:welcome:instructions'));
-
-echo elgg_view('install/nav', $vars);
diff --git a/views/failsafe/install/sidebar.php b/views/failsafe/install/sidebar.php
deleted file mode 100644
index 8136cd898..000000000
--- a/views/failsafe/install/sidebar.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * Install sidebar
- *
- * @uses $vars['step'] Current step
- * @uses $vars['steps'] Array of steps
- */
-
-$current_step = $vars['step'];
-$steps = $vars['steps'];
-
-$current_step_index = array_search($current_step, $steps);
-
-echo '<ol>';
-foreach ($steps as $index => $step) {
- if ($index < $current_step_index) {
- $class = 'past';
- } elseif ($index == $current_step_index) {
- $class = 'present';
- } else {
- $class = 'future';
- }
- $text = elgg_echo("install:$step");
- echo "<li class=\"$class\">$text</li>";
-}
-echo '</ol>';