blob: 1935e2a5a8fab85c3895af85c69ab7babff4ede0 (
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
|
<h1>Bitweaver version update</h1>
{form id="integrity_check"}
<input type="hidden" name="step" value="{$next_step}" />
<input type="hidden" name="update_version" value="true" />
{legend legend="Update bitweaver version"}
{if $upToDate}
<p class="alert alert-success">
Your version of bitweaver is already up to date.
</p>
{else}
<p class="help">
Your version of bitweaver will be updated to <strong>{$gBitSystem->getBitVersion()}</strong> as soon as you hit the submit button below. This will allow you to enter your site again.
</p>
{/if}
{if $version_210beta}
<h3>Update to version 2.1.0 beta</h3>
<p class="help">
The following table shows you all permissions on your system. The default group of a given permission is <span style="background:#fc3">highlighted</span>. We urge you to study this table closely as the default for many of the edit permissions have changed. Additionally, new create permissions have been added, please be sure to check those as well. If you don't update these, your site will likely allow unwanted users to edit content.
</p>
<p class="help">
You can visit the {smartlink ititle="Permission Maintenance" ipackage=users ifile="admin/permissions.php"} page at any time to make further adjustments.
</p>
<table class="table data">
<caption>Available Permissions</caption>
{capture assign=theader}
<tr>
<th style="width:30%;">Permission</th>
{foreach from=$allGroups item=group name=groups}
<th>
<abbr title="{$group.group_name}">{if $smarty.foreach.groups.total > 8}{$group.group_id}{else}{$group.group_name}{/if}</abbr>
</th>
{/foreach}
</tr>
{/capture}
{foreach from=$allPerms item=perm key=p name=perms}
{if $prev_package != $perm.package}
{$theader}
{assign var=prev_package value=$perm.package}
{/if}
<tr class="{cycle values="odd,even"}">
<td title="{$perm.perm_desc}"><abbr title="{$perm.perm_desc}">{$p}</abbr></td>
{foreach from=$allGroups item=group}
{if $perm.perm_level == 'admin' }{assign var=id value=1}
{elseif $perm.perm_level == 'editors' }{assign var=id value=2}
{elseif $perm.perm_level == 'registered'}{assign var=id value=3}
{elseif $perm.perm_level == 'basic' }{assign var=id value=-1}{/if}
{if $id == $group.group_id and !$group.perms.$p}
{assign var=style value="background:#fc3"}
{elseif $id == $group.group_id and $group.perms.$p}
{assign var=style value="background:#fea"}
{elseif $id != $group.group_id and $group.perms.$p}
{assign var=style value="background:#ddd"}
{else}
{assign var=style value=""}
{/if}
<td style="text-align:center;{$style}">
<input id="{$p}{$group.group_id}" type="checkbox" value="{$p}" name="perms[{$group.group_id}][{$p}]" title="{$group.group_name}" {if $group.perms.$p}checked="checked"{/if}/>
</td>
{/foreach}
</tr>
{/foreach}
</table>
<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="fix_version_210beta" value="Fix Permissions" />
{/forminput}
</div>
{else}
{if $upToDate}
<div class="form-group">
{forminput}
<input type="submit" class="btn btn-primary" name="skip" value="Continue install process" />
{/forminput}
</div>
{else}
<div class="form-group">
{forminput}
<input type="submit" class="btn btn-default" name="update_version" value="Update version and continue" />
{/forminput}
</div>
{/if}
{/if}
{/legend}
{/form}
|