summaryrefslogtreecommitdiff
path: root/core/views/scaffold_syscheck.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-02-05 08:39:12 +0000
committerBharat Mediratta <bharat@menalto.com>2009-02-05 08:39:12 +0000
commit79dda6a0c28010279952e2e4b45540b0aff63e69 (patch)
treefc30a3f1066293531b06e57df1fe68437949a173 /core/views/scaffold_syscheck.html.php
parent3e54159d5c3086bb13a3bf5cd62abb55fe661771 (diff)
Rename "welcome" controller to "scaffold" so that we can eventually
have a welcome page.
Diffstat (limited to 'core/views/scaffold_syscheck.html.php')
-rw-r--r--core/views/scaffold_syscheck.html.php68
1 files changed, 68 insertions, 0 deletions
diff --git a/core/views/scaffold_syscheck.html.php b/core/views/scaffold_syscheck.html.php
new file mode 100644
index 00000000..7dbb4b9f
--- /dev/null
+++ b/core/views/scaffold_syscheck.html.php
@@ -0,0 +1,68 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<? foreach ($errors as $error): ?>
+<div class="block">
+ <p class="error">
+ <?= $error->message ?>
+ </p>
+ <? foreach ($error->instructions as $line): ?>
+ <pre><?= $line ?></pre>
+ <? endforeach ?>
+
+ <? if (!empty($error->message2)): ?>
+ <p class="error">
+ <?= $error->message2 ?>
+ </p>
+ <? endif ?>
+</div>
+<? endforeach ?>
+
+<? if (empty($errors)): ?>
+<div class="block">
+ <? if (!module::is_installed("core")): ?>
+ <p class="success">
+ Your system is ready, but Gallery is not yet installed.
+ </p>
+ <p>
+ <?= html::anchor("scaffold/install/core", "install gallery") ?>
+ </p>
+ <? else: ?>
+ <p class="success">
+ Your Gallery is ready with the following modules installed:
+ </p>
+ <table style="width: 400px">
+ <tr>
+ <th align="left">Name</th>
+ <th align="left">Installed</th>
+ <th align="left">Available</th>
+ <th align="left">Action</th>
+ </tr>
+ <tr class="core">
+ <td> <b> core </b> </td>
+ <td> <b> <?= module::get_version("core") ?> </b> </td>
+ <td> <b> <?= module::get_version("core") ?> </b> </td>
+ <td> <b> <?= html::anchor("scaffold/uninstall/core", "reset install") ?> </b> </td>
+ </tr>
+ <? foreach ($modules as $module_name => $info): ?>
+ <? if ($module_name == "core") continue; ?>
+ <tr>
+ <td><?= $module_name ?></td>
+ <td><?= $info->installed ?></td>
+ <td><?= $info->version ?></td>
+ <td>
+ <? if ($info->installed): ?>
+ <?= html::anchor("scaffold/uninstall/{$module_name}", "uninstall") ?>
+ <? else: ?>
+ <?= html::anchor("scaffold/install/{$module_name}", "install") ?>
+ <? endif ?>
+ </td>
+ </tr>
+ <? endforeach; ?>
+ <tr>
+ <td colspan="3" align="center">
+ <button onclick="document.location.href='<?= url::site("scaffold/install/*") ?>'">Install All Plugins</button>
+ </td>
+ </tr>
+ </table>
+ <? endif; ?>
+</div>
+<? endif ?>