blob: b1cf14d5577de93e9ee6b88d13f3168d4b461b77 (
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
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="alert alert-block">
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="\Bitweaver\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="alert alert-danger">
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="alert alert-block">
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="form-group">
{forminput label="checkbox"}
<input type="checkbox" name="debug" id="debug" value="true" /> Debug mode
{formhelp note="Display SQL statements."}
{/forminput}
</div>
<div class="form-group">
{forminput}
<input type="submit" class="btn btn-default" name="create_tables" value="Try to create missing table/s" />
{/forminput}
</div>
{else}
<p class="alert alert-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 or $insPerms}
<p class="alert alert-block">
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>
{if $insPerms}
<h2>New permissions that will be added</h2>
<table class="table data">
<tr>
<th>Permission</th>
<th>Description</th>
<th class="width10p">Level</th>
<th class="width10p">Package</th>
</tr>
{foreach from=$insPerms item=perm}
<tr>
<td><label class="checkbox" for="{$perm.0}"><input type="checkbox" value="{$perm.0}" id="{$perm.0}" name="perms[{$perm.0}]" checked="checked" /><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}
</table>
{/if}
{if $delPerms}
<h2>Permissions no longer in use that will be deleted</h2>
<table class="table data">
<tr>
<th>Permission</th>
<th>Description</th>
<th class="width10p">Level</th>
<th class="width10p">Package</th>
</tr>
{foreach from=$delPerms item=perm}
<tr>
<td><label class="checkbox" for="{$perm.0}"><input type="checkbox" value="{$perm.0}" id="{$perm.0}" name="perms[{$perm.0}]" checked="checked" /> <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>
{/if}
{if empty( $insPerms ) and empty( $delPerms )}
<p class="alert alert-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="alert alert-block">
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="form-group">
<div class="formlabel">
<label for="{$package}">{biticon ipackage=$package iname="pkg_$package" iexplain=$package}</label>
</div>
{forminput label="checkbox"}
<input type="checkbox" name="packages[]" value="{$package}" id="{$package}" checked="checked" /> {$package|capitalize}
{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="alert alert-success">
None of the packages you have installed are causing any problems.
</p>
{/if}
{if $delPerms or $insPerms or $serviceList}
<div class="form-group">
{forminput}
<input type="submit" class="btn btn-primary" name="resolve_conflicts" value="Resolve Issues" />
{/forminput}
</div>
<div class="form-group">
{forminput label="checkbox"}
<input type="checkbox" name="debug" id="debug" value="true" /> Debug mode
{formhelp note="Display SQL statements."}
{/forminput}
</div>
{else}
<div class="form-group">
{forminput}
<input type="submit" class="btn btn-primary" name="skip" value="Continue install process" />
{/forminput}
</div>
{/if}
{/legend}
{/form}
|