2009-01-01 00:23:29 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2008-11-02 21:12:15 +00:00
|
|
|
<? foreach ($errors as $error): ?>
|
|
|
|
|
<div class="block">
|
|
|
|
|
<p class="error">
|
|
|
|
|
<?= $error->message ?>
|
|
|
|
|
</p>
|
|
|
|
|
<? foreach ($error->instructions as $line): ?>
|
|
|
|
|
<pre><?= $line ?></pre>
|
|
|
|
|
<? endforeach ?>
|
2008-11-02 19:56:57 +00:00
|
|
|
|
2008-11-02 21:12:15 +00:00
|
|
|
<? if (!empty($error->message2)): ?>
|
|
|
|
|
<p class="error">
|
|
|
|
|
<?= $error->message2 ?>
|
|
|
|
|
</p>
|
|
|
|
|
<? endif ?>
|
|
|
|
|
</div>
|
|
|
|
|
<? endforeach ?>
|
2008-11-03 00:27:35 +00:00
|
|
|
|
2008-11-02 21:12:15 +00:00
|
|
|
<? if (empty($errors)): ?>
|
2008-11-03 00:27:35 +00:00
|
|
|
<div class="block">
|
2008-12-22 03:41:33 +00:00
|
|
|
<? if (!module::is_installed("core")): ?>
|
2008-11-03 00:27:35 +00:00
|
|
|
<p class="success">
|
|
|
|
|
Your system is ready, but Gallery is not yet installed.
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
<?= html::anchor("welcome/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>
|
2008-12-22 03:41:33 +00:00
|
|
|
<th align="left">Installed</th>
|
|
|
|
|
<th align="left">Available</th>
|
2008-11-03 00:27:35 +00:00
|
|
|
<th align="left">Action</th>
|
|
|
|
|
</tr>
|
2008-11-23 07:46:50 +00:00
|
|
|
<tr class="core">
|
|
|
|
|
<td> <b> core </b> </td>
|
2008-12-22 03:41:33 +00:00
|
|
|
<td> <b> <?= module::get_version("core") ?> </b> </td>
|
|
|
|
|
<td> <b> <?= module::get_version("core") ?> </b> </td>
|
2008-11-23 07:46:50 +00:00
|
|
|
<td> <b> <?= html::anchor("welcome/uninstall/core", "reset install") ?> </b> </td>
|
|
|
|
|
</tr>
|
2008-12-22 03:41:33 +00:00
|
|
|
<? foreach ($modules as $module_name => $info): ?>
|
2008-11-23 07:46:50 +00:00
|
|
|
<? if ($module_name == "core") continue; ?>
|
2008-11-03 00:27:35 +00:00
|
|
|
<tr>
|
2008-11-04 22:18:00 +00:00
|
|
|
<td><?= $module_name ?></td>
|
2008-12-22 03:41:33 +00:00
|
|
|
<td><?= $info->installed ?></td>
|
|
|
|
|
<td><?= $info->version ?></td>
|
2008-11-03 00:27:35 +00:00
|
|
|
<td>
|
2008-12-22 03:41:33 +00:00
|
|
|
<? if ($info->installed): ?>
|
|
|
|
|
<?= html::anchor("welcome/uninstall/{$module_name}", "uninstall") ?>
|
2008-11-04 22:18:00 +00:00
|
|
|
<? else: ?>
|
2008-12-22 03:41:33 +00:00
|
|
|
<?= html::anchor("welcome/install/{$module_name}", "install") ?>
|
|
|
|
|
<? endif ?>
|
2008-11-03 00:27:35 +00:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<? endforeach; ?>
|
2008-11-08 07:51:19 +00:00
|
|
|
<tr>
|
2008-11-23 07:46:50 +00:00
|
|
|
<td colspan="3" align="center">
|
|
|
|
|
<button onclick="document.location.href='<?= url::site("welcome/install/*") ?>'">Install All Plugins</button>
|
|
|
|
|
</td>
|
2008-11-08 07:51:19 +00:00
|
|
|
</tr>
|
2008-11-03 00:27:35 +00:00
|
|
|
</table>
|
|
|
|
|
<? endif; ?>
|
|
|
|
|
</div>
|
2008-11-02 21:12:15 +00:00
|
|
|
<? endif ?>
|