summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2008-10-03 10:14:15 +0000
committerMax Kremmel <xing@synapse.plus.com>2008-10-03 10:14:15 +0000
commit71c71a48826b45babc0321a268e528d485737f5d (patch)
treecc18642f169935fa9dfb9fdad7568aed6bc6380e /templates
parent92432ee79a46c8804422ff1daae3df207c1581d8 (diff)
downloadinstall-71c71a48826b45babc0321a268e528d485737f5d.tar.gz
install-71c71a48826b45babc0321a268e528d485737f5d.tar.bz2
install-71c71a48826b45babc0321a268e528d485737f5d.zip
add code to allow for a version check and force a visit to the installer when a given version hasn't been reached yet.
Diffstat (limited to 'templates')
-rw-r--r--templates/install_version.tpl79
-rw-r--r--templates/install_version_done.tpl19
2 files changed, 98 insertions, 0 deletions
diff --git a/templates/install_version.tpl b/templates/install_version.tpl
new file mode 100644
index 0000000..bbd1452
--- /dev/null
+++ b/templates/install_version.tpl
@@ -0,0 +1,79 @@
+<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="success">
+ Your version of bitweaver is already up to date.
+ </p>
+ {else}
+ <p class="help">
+ Your version of bitweaver will be updated to <strong>{$smarty.const.BIT_MAJOR_VERSION}.{$smarty.const.BIT_MINOR_VERSION}.{$smarty.const.BIT_SUB_VERSION} {$smarty.const.BIT_LEVEL}</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">
+ You can visit the {smartlink ititle="Permission Maintenance" ipackage=users ifile=admin/permissions.php} page at any time to make further adjustments.
+ </p>
+
+ <p class="help">
+ The following table shows you all permissions on your system. The default group of a given permission is <span style="background:yellow">highlighted</span>. We urge you to study this table closely as the default for some permissions has changed. If you don't update these, your site might allow unwanted users to edit content.
+ </p>
+
+ <table class="data">
+ <caption>{tr}Available Permissions{/tr}</caption>
+ {capture assign=theader}
+ <tr>
+ <th style="width:30%;">{tr}Permission{/tr}</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}
+
+ <td style="text-align:center;{if $id == $group.group_id}background:yellow;{/if}">
+ <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="row submit">
+ <input type="submit" name="fix_version_210beta" value="Fix Permissions" />
+ </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}
diff --git a/templates/install_version_done.tpl b/templates/install_version_done.tpl
new file mode 100644
index 0000000..76f0d48
--- /dev/null
+++ b/templates/install_version_done.tpl
@@ -0,0 +1,19 @@
+<h1>Bitweaver version update</h1>
+
+{form legend="Bitweaver version update"}
+ <input type="hidden" name="step" value="{$next_step}" />
+
+ <p class="success">
+ Your version of bitweaver is now up to date and you can enter your site again.
+ </p>
+
+ {if $version_210beta}
+ <p class="success">
+ You have successfully modified the permissions of bitweaver.
+ </p>
+ {/if}
+
+ <div class="row submit">
+ <input type="submit" value="Continue install process" />
+ </div>
+{/form}