blob: 51f87db5943439cfb98c5fcf217a5d5a0c086260 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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("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>
<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("welcome/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("welcome/uninstall/{$module_name}", "uninstall") ?>
<? else: ?>
<?= html::anchor("welcome/install/{$module_name}", "install") ?>
<? endif ?>
</td>
</tr>
<? endforeach; ?>
<tr>
<td colspan="3" align="center">
<button onclick="document.location.href='<?= url::site("welcome/install/*") ?>'">Install All Plugins</button>
</td>
</tr>
</table>
<? endif; ?>
</div>
<? endif ?>
|