From 7f01270ba106937300cf491927839d3428360d0a Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 5 Oct 2010 10:53:40 +0000 Subject: moved installation to its own viewtype git-svn-id: http://code.elgg.org/elgg/trunk@7010 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/failsafe/input/access.php | 49 ------------------------- views/failsafe/input/button.php | 53 --------------------------- views/failsafe/input/checkboxes.php | 50 ------------------------- views/failsafe/input/form.php | 53 --------------------------- views/failsafe/input/hidden.php | 18 --------- views/failsafe/input/longtext.php | 24 ------------ views/failsafe/input/password.php | 23 ------------ views/failsafe/input/pulldown.php | 45 ----------------------- views/failsafe/input/reset.php | 26 ------------- views/failsafe/input/securitytoken.php | 17 --------- views/failsafe/input/submit.php | 26 ------------- views/failsafe/input/text.php | 26 ------------- views/failsafe/install/footer.php | 10 ----- views/failsafe/install/forms/admin.php | 21 ----------- views/failsafe/install/forms/database.php | 20 ---------- views/failsafe/install/forms/settings.php | 20 ---------- views/failsafe/install/forms/template.php | 27 -------------- views/failsafe/install/header.php | 6 --- views/failsafe/install/nav.php | 35 ------------------ views/failsafe/install/pages/admin.php | 8 ---- views/failsafe/install/pages/complete.php | 14 ------- views/failsafe/install/pages/database.php | 16 -------- views/failsafe/install/pages/requirements.php | 39 -------------------- views/failsafe/install/pages/settings.php | 5 --- views/failsafe/install/pages/welcome.php | 8 ---- views/failsafe/install/sidebar.php | 26 ------------- views/failsafe/messages/errors/error.php | 17 --------- views/failsafe/messages/errors/list.php | 41 --------------------- views/failsafe/messages/list.php | 18 --------- views/failsafe/messages/messages/list.php | 43 ---------------------- views/failsafe/messages/messages/message.php | 17 --------- views/failsafe/page_shells/install.php | 51 -------------------------- 32 files changed, 852 deletions(-) delete mode 100644 views/failsafe/input/access.php delete mode 100644 views/failsafe/input/button.php delete mode 100644 views/failsafe/input/checkboxes.php delete mode 100644 views/failsafe/input/form.php delete mode 100644 views/failsafe/input/hidden.php delete mode 100644 views/failsafe/input/longtext.php delete mode 100644 views/failsafe/input/password.php delete mode 100644 views/failsafe/input/pulldown.php delete mode 100644 views/failsafe/input/reset.php delete mode 100644 views/failsafe/input/securitytoken.php delete mode 100644 views/failsafe/input/submit.php delete mode 100644 views/failsafe/input/text.php delete mode 100644 views/failsafe/install/footer.php delete mode 100644 views/failsafe/install/forms/admin.php delete mode 100644 views/failsafe/install/forms/database.php delete mode 100644 views/failsafe/install/forms/settings.php delete mode 100644 views/failsafe/install/forms/template.php delete mode 100644 views/failsafe/install/header.php delete mode 100644 views/failsafe/install/nav.php delete mode 100644 views/failsafe/install/pages/admin.php delete mode 100644 views/failsafe/install/pages/complete.php delete mode 100644 views/failsafe/install/pages/database.php delete mode 100644 views/failsafe/install/pages/requirements.php delete mode 100644 views/failsafe/install/pages/settings.php delete mode 100644 views/failsafe/install/pages/welcome.php delete mode 100644 views/failsafe/install/sidebar.php delete mode 100644 views/failsafe/messages/errors/error.php delete mode 100644 views/failsafe/messages/errors/list.php delete mode 100644 views/failsafe/messages/list.php delete mode 100644 views/failsafe/messages/messages/list.php delete mode 100644 views/failsafe/messages/messages/message.php delete mode 100644 views/failsafe/page_shells/install.php (limited to 'views/failsafe') diff --git a/views/failsafe/input/access.php b/views/failsafe/input/access.php deleted file mode 100644 index a57014840..000000000 --- a/views/failsafe/input/access.php +++ /dev/null @@ -1,49 +0,0 @@ - 0) { - - ?> - - - - wwwroot)===false) { - $src = ""; -} -?> - value="" src="" class="" /> \ No newline at end of file diff --git a/views/failsafe/input/checkboxes.php b/views/failsafe/input/checkboxes.php deleted file mode 100644 index 0792f09ce..000000000 --- a/views/failsafe/input/checkboxes.php +++ /dev/null @@ -1,50 +0,0 @@ - $option) { - //if (!in_array($option,$vars['value'])) { - if (is_array($vars['value'])) { - if (!in_array($option,$vars['value'])) { - $selected = ""; - } else { - $selected = "checked = \"checked\""; - } - } else { - if ($option != $vars['value']) { - $selected = ""; - } else { - $selected = "checked = \"checked\""; - } - } - - // handle indexed array where label is not specified - // @todo deprecate in Elgg 1.8 - if (is_integer($label)) { - $label = $option; - } - - $disabled = ""; - if ($vars['disabled']) { - $disabled = ' disabled="yes" '; - } - echo "
"; -} \ No newline at end of file diff --git a/views/failsafe/input/form.php b/views/failsafe/input/form.php deleted file mode 100644 index 35e718adb..000000000 --- a/views/failsafe/input/form.php +++ /dev/null @@ -1,53 +0,0 @@ - -
id="" name="" action="" method="" > - - -
\ No newline at end of file diff --git a/views/failsafe/input/hidden.php b/views/failsafe/input/hidden.php deleted file mode 100644 index dd5c8bb98..000000000 --- a/views/failsafe/input/hidden.php +++ /dev/null @@ -1,18 +0,0 @@ - - name="" value="" /> \ No newline at end of file diff --git a/views/failsafe/input/longtext.php b/views/failsafe/input/longtext.php deleted file mode 100644 index 9da3d8276..000000000 --- a/views/failsafe/input/longtext.php +++ /dev/null @@ -1,24 +0,0 @@ - - - \ No newline at end of file diff --git a/views/failsafe/input/password.php b/views/failsafe/input/password.php deleted file mode 100644 index 461f77955..000000000 --- a/views/failsafe/input/password.php +++ /dev/null @@ -1,23 +0,0 @@ - - - name="" value="" class="" /> diff --git a/views/failsafe/input/pulldown.php b/views/failsafe/input/pulldown.php deleted file mode 100644 index 6ad12eec4..000000000 --- a/views/failsafe/input/pulldown.php +++ /dev/null @@ -1,45 +0,0 @@ - "option" where "value" is an internal name and "option" is - * the value displayed on the button. Replaces $vars['options'] when defined. - */ - - -$class = $vars['class']; -if (!$class) { - $class = "input-pulldown"; -} -?> - \ No newline at end of file diff --git a/views/failsafe/input/reset.php b/views/failsafe/input/reset.php deleted file mode 100644 index bb8d278c3..000000000 --- a/views/failsafe/input/reset.php +++ /dev/null @@ -1,26 +0,0 @@ - '__elgg_token', 'value' => $token)); -echo elgg_view('input/hidden', array('internalname' => '__elgg_ts', 'value' => $ts)); diff --git a/views/failsafe/input/submit.php b/views/failsafe/input/submit.php deleted file mode 100644 index cfa7989d0..000000000 --- a/views/failsafe/input/submit.php +++ /dev/null @@ -1,26 +0,0 @@ - - name="" value="" class=""/> \ No newline at end of file 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 @@ - - \ 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 @@ - $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 @@ - $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 @@ - $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 @@ - $params) { - $label = elgg_echo("installation:$type:label:$field"); - $help = elgg_echo("installation:$type:help:$field"); - $params['internalname'] = $field; - - $form_body .= '

'; - $form_body .= ""; - $form_body .= elgg_view("input/{$params['type']}", $params); - $form_body .= "$help"; - $form_body .= '

'; -} - -$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 @@ - -

Elgg

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 @@ -$refresh_text"; -} - -// create next button and selectively disable -$next_text = elgg_echo('next'); -$next_link = "{$vars['url']}install.php?step={$vars['next_step']}"; -$next = "$next_text"; -if (isset($vars['advance']) && !$vars['advance']) { - // disable the next button - $next = "$next_text"; -} - - -echo <<<___END -
- $next - $refresh -
- -___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 @@ - - -
-Go to site"; -?> -
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 @@ - $checks) { - $title = elgg_echo("install:require:$category"); - echo "

$title

"; - echo ""; -} - -$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 @@ -'; -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 "
  • $text
  • "; -} -echo ''; diff --git a/views/failsafe/messages/errors/error.php b/views/failsafe/messages/errors/error.php deleted file mode 100644 index 2ec365890..000000000 --- a/views/failsafe/messages/errors/error.php +++ /dev/null @@ -1,17 +0,0 @@ - - -

    - -

    \ No newline at end of file diff --git a/views/failsafe/messages/errors/list.php b/views/failsafe/messages/errors/list.php deleted file mode 100644 index c270d6c0a..000000000 --- a/views/failsafe/messages/errors/list.php +++ /dev/null @@ -1,41 +0,0 @@ - - -
    -
    - - $error)); - //echo "
    "; - } -?> -
    -
    - 0) { - foreach($vars['object'] as $register => $list ) { - echo elgg_view("messages/{$register}/list", array('object' => $list)); - } -} \ No newline at end of file diff --git a/views/failsafe/messages/messages/list.php b/views/failsafe/messages/messages/list.php deleted file mode 100644 index ed169c692..000000000 --- a/views/failsafe/messages/messages/list.php +++ /dev/null @@ -1,43 +0,0 @@ - - - - -
    - - $message)); - } -?> - -
    - - - -

    - -

    \ No newline at end of file diff --git a/views/failsafe/page_shells/install.php b/views/failsafe/page_shells/install.php deleted file mode 100644 index b023197fa..000000000 --- a/views/failsafe/page_shells/install.php +++ /dev/null @@ -1,51 +0,0 @@ - - - - - Elgg Install : <?php echo $vars['title']; ?> - - - - - -
    -
    - -
    -
    - -
    -
    -

    - $vars['sysmessages'])); ?> - -
    -
    -
    - - - -- cgit v1.2.3