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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
|
<h1>Bitweaver integrity check</h1>
{form id="integrity_check"}
<input type="hidden" name="step" value="{$next_step}" />
{legend legend="Database Integrity Check"}
{if $dbIntegrity}
<p class="warning">
We have scanned the database for missing tables and have found that the following tables have not been installed:
</p>
<ul>
{foreach from=$dbIntegrity item=package}
<li>
<strong>{$package.name}</strong>
<small>
{if $package.required}
[<strong>required package</strong>]
{assign var=required value=1}
{else}
[optional package]
{assign var=optional value=1}
{/if}
</small>
<ul>
{foreach from=$package.tables item=table}
<li>
<a style="float:right" href="#" onclick="BitBase.toggleElementDisplay('{$table.name}','block');return false">show table details</a> {$table.name}<br />
<div id="{$table.name}" style="display:none;">
<code>{$table.sql|nl2br}</code>
</div>
</li>
{/foreach}
</ul>
</li>
{/foreach}
</ul>
<p>If you know SQL, you can display the table details and try to create such a table in your database and reload this page. This check merely checks the existence of a given table, not the table columns.</p>
{if $required}
<p class="error">
A required package is missing at least one table. This will have unpredictable results. Please make a note of the table and contact the Bitweaver team on how to proceed.
If this is your first install, give it another shot, perhaps with fewer packages selected. You can return to the installer at any time and install more packages later.
<br />If this problem persists, turn on the <strong>debugging</strong> option and look for error messages regarding the above tables. This will help the Bitweaver developers you contact to identify the problem more quickly.
</p>
{/if}
{if $optional}
<p class="warning">
One of the optional packages you have selected for
installation has not installed one of its tables. This will
probably render the package useless. You can try
installing this package again by revisiting the
<a href="{$smarty.const.INSTALL_PKG_URL}install.php?step={$smarty.request.step-1}">Package installation</a>
page. If this problem persists, turn on the <strong>debugging</strong> option and look
for error messages regarding the above table. This will help the Bitweaver developers you contact to identify the problem more quickly.
</p>
{/if}
<div class="row submit">
<input type="submit" name="create_tables" value="Try to create missing table/s" />
</div>
<div class="row">
{forminput}
<label><input type="checkbox" name="debug" id="debug" value="true" /> Debug mode</label>
{formhelp note="Display SQL statements."}
{/forminput}
</div>
{else}
<p class="success">
Database integrity has been confirmed by scanning all available
tables in your database and comparing them to the ones that
should be present.
</p>
{/if}
{/legend}
{legend legend="Fix Permissioning"}
{if $delPerms || $insPerms}
<p class="warning">
Some permissions require your attention.
{if $insPerms}
<br />Some of these permissions might be from packages that have
no tables in the database. These packages are available
without installation but might contain permissions which
are included here.
{/if}
</p>
<table class="data">
<caption>Permissions that need amending</caption>
{if $insPerms}
<tr><th style="width:20px;"></th><th colspan="4" style="width:99%;">New Permissions</th></tr>
<tr>
<th></th>
<th style="width:30%;">Permission</th>
<th style="width:40%;">Description</th>
<th style="width:15%;">Level</th>
<th style="width:14%;">Package</th>
</tr>
{foreach from=$insPerms item=perm}
<tr class="{cycle values="odd,even"}">
<td><input type="checkbox" value="{$perm.0}" id="{$perm.0}" name="perms[{$perm.0}]" checked="checked" /></td>
<td><label for="{$perm.0}"><strong>{$perm.0}</strong></label></td>
<td><label for="{$perm.0}">{$perm.1}</label></td>
<td><label for="{$perm.0}">{$perm.2}</label></td>
<td><label for="{$perm.0}">{$perm.3}</label></td>
</tr>
{/foreach}
{/if}
{if $delPerms}
<tr><th></th><th colspan="4">Permissions no longer in use</th></tr>
<tr>
<th></th>
<th>Permission</th>
<th>Description</th>
<th>Level</th>
<th>Package</th>
</tr>
{foreach from=$delPerms item=perm}
<tr class="{cycle values="odd,even"}">
<td><input type="checkbox" value="{$perm.0}" id="{$perm.0}" name="perms[{$perm.0}]" checked="checked" /></td>
<td><label for="{$perm.0}"><strong>{$perm.0}</strong></label></td>
<td><label for="{$perm.0}">{$perm.1}</label></td>
<td><label for="{$perm.0}">{$perm.2}</label></td>
<td><label for="{$perm.0}">{$perm.3}</label></td>
</tr>
{/foreach}
{/if}
</table>
{else}
<p class="success">
The permissioning system in your installation is up to date and
does not require any adjustments. Even though this is true, we
recommend you visit the {smartlink ititle="Permission
Maintenance" ipackage=users ifile=admin/permissions.php} page
at some point to ensure that all permissions are active.
</p>
{/if}
{/legend}
{legend legend="Resolve Service Conflicts"}
{if $serviceList}
<p class="warning">
We have noticed that you have activated multiple packages of
the same service type. A service package is a package that
allows you to extend the way you display Bitweaver content –
such as <em>categorising your content</em>. The site
should still be fully functional, however, there might be some
minor problems such as display of the wrong menus and
overlapping functionality. We therefore recommend that you
enable only one of each service type.
</p>
<p>
You can change your selection at a later time point by
modifying the settings in the packages administration screen.
</p>
{foreach from=$serviceList key=service_name item=packages}
<h3>{$service_name|capitalize}</h3>
{foreach from=$packages key=package item=item}
<div class="row">
<div class="formlabel">
<label for="{$package}">{biticon ipackage=$package iname="pkg_$package" iexplain=`$package`}</label>
</div>
{forminput}
<label><input type="checkbox" name="packages[]" value="{$package}" id="{$package}" checked="checked" /> {$package|capitalize}</label>
{formhelp note=`$schema.$package.info`}
{formhelp note="<strong>Location</strong>: `$schema.$package.url`"}
{formhelp package=$package}
{/forminput}
</div>
{/foreach}
<div class="clear"></div>
{/foreach}
{else}
<p class="success">
None of the packages you have installed are causing any problems.
</p>
{/if}
{if $delPerms || $insPerms || $serviceList}
<div class="row submit">
<input type="submit" name="resolve_conflicts" value="Resolve Issues" />
</div>
<div class="row">
{forminput}
<label><input type="checkbox" name="debug" id="debug" value="true" /> Debug mode</label>
{formhelp note="Display SQL statements."}
{/forminput}
</div>
{else}
<div class="row submit">
<input type="submit" name="skip" value="Continue install process" />
</div>
{/if}
{/legend}
{/form}
|