plugin interface implemented
example plugins added: date and network moved "logs" to plugins
This commit is contained in:
parent
5af79f90b6
commit
dba8ca79fd
27 changed files with 483 additions and 174 deletions
|
@ -7,29 +7,31 @@
|
|||
</div><!-- end of 'words' -->
|
||||
|
||||
<div id="footer">
|
||||
<?cs # Development or not ?>
|
||||
<?cs if:(Data.Status.DevelopmentMode == 1) ?>
|
||||
<div id="development">!Development Mode!</div>
|
||||
<?cs /if ?>
|
||||
<?cs # Version ?>
|
||||
v<?cs var:Data.Version ?>
|
||||
<a href="http://cryptobox.org" title="<?cs var:html_escape(Lang.Text.ProjectHomePage) ?>">CryptoBox-Home</a> <?cs var:html_escape(Lang.Text.ProjectNote) ?> <a href="https://systemausfall.org/senselab" title="systemausfall.org">sense.lab</a>
|
||||
<?cs # Development or not ?><?cs
|
||||
if:(Data.Status.DevelopmentMode == 1) ?>
|
||||
<div id="development">!Development Mode!</div><?cs /if ?>
|
||||
<?cs var:Data.Version ?>
|
||||
<a href="http://cryptobox.org" title="<?cs var:html_escape(Lang.Text.ProjectHomePage) ?>">CryptoBox-Home</a> <?cs var:html_escape(Lang.Text.ProjectNote) ?> <a href="https://systemausfall.org/senselab" title="systemausfall.org">sense.lab</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- end of 'content' -->
|
||||
</div><!-- end of 'main' -->
|
||||
|
||||
<?cs # TODO: update these status settings - most are outdated ... ?>
|
||||
<!-- CBOX-STATUS-begin - used for validation - do not touch!
|
||||
Data.Config.IP=<?cs var:Data.Config.IP ?>
|
||||
Data.Config.Language=<?cs var:Data.Config.Language ?>
|
||||
Data.Config.TimeOut=<?cs var:Data.Config.TimeOut ?>
|
||||
Data.Status.Config=<?cs var:Data.Status.Config ?>
|
||||
Data.Status.InitRunning=<?cs var:Data.Status.InitRunning ?>
|
||||
Data.Status.IP=<?cs var:Data.Status.IP ?>
|
||||
Data.Status.Mounted=<?cs var:Data.Status.Mounted ?>
|
||||
CBOX-STATUS-end -->
|
||||
Data.Config.IP=<?cs var:html_escape(Data.Config.IP) ?>
|
||||
Data.Config.Language=<?cs var:html_escape(Data.Config.Language) ?>
|
||||
Data.Config.TimeOut=<?cs var:html_escape(Data.Config.TimeOut) ?>
|
||||
Data.Status.Config=<?cs var:html_escape(Data.Status.Config) ?>
|
||||
Data.Status.InitRunning=<?cs var:html_escape(Data.Status.InitRunning) ?>
|
||||
Data.Status.IP=<?cs var:html_escape(Data.Status.IP) ?>
|
||||
Data.Status.Mounted=<?cs var:html_escape(Data.Status.Mounted) ?>
|
||||
<?cs each:x = Data.Status.Modules ?>Data.Status.Modules.<?cs
|
||||
var:name(x) ?>=<?cs var: html_escape(x) ?>
|
||||
<?cs /each
|
||||
?>CBOX-STATUS-end -->
|
||||
|
||||
<?cs # $Revision$ ?>
|
||||
<!-- $Revision$ -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,25 +4,24 @@
|
|||
|
||||
<p><ul>
|
||||
|
||||
<?cs # poweroff ?>
|
||||
<li><a href="<?cs call:link('system','type','poweroff','','') ?>" title="<?cs var:html_escape(Lang.Button.PowerOff) ?>">
|
||||
<?cs var:html_escape(Lang.Button.PowerOff) ?></a></li>
|
||||
<?cs # sort the Plugins - using the most stupid way :) ?>
|
||||
<?cs loop: order = #0, #100, #1
|
||||
?><?cs # plugins ?><?cs each:x = Lang.Modules
|
||||
?><?cs if:x.Rank == order ?>
|
||||
<li><a href="<?cs call:link('module_' + name(x),'','','','') ?>" title="<?cs
|
||||
var:html_escape(x.Link) ?>"><?cs var:html_escape(x.Link) ?></a></li><?cs
|
||||
/if ?><?cs
|
||||
/each ?><?cs
|
||||
/loop ?>
|
||||
<?cs # maybe someone forgot to set the rank of a module: we try to catch them ?>
|
||||
|
||||
<?cs # reboot ?>
|
||||
<li><a href="<?cs call:link('system','type','reboot','','') ?>" title="<?cs
|
||||
var:html_escape(Lang.Button.ReBoot) ?>"><?cs var:html_escape(Lang.Button.ReBoot) ?></a></li>
|
||||
<?cs # plugins ?><?cs each:x = Lang.Modules ?><?cs
|
||||
if:!x.Rank || !(x.Rank >= 0 && x.Rank <= 100) ?>
|
||||
<li><a href="<?cs call:link('module_' + name(x),'','','','') ?>" title="<?cs
|
||||
var:html_escape(x.Link) ?>"><?cs var:html_escape(x.Link) ?></a></li><?cs
|
||||
/if ?><?cs
|
||||
/each ?>
|
||||
|
||||
<?cs # config ?>
|
||||
<li><a href="<?cs call:link('config_ask','','','','') ?>" title="<?cs
|
||||
var:html_escape(Lang.Button.Config) ?>"><?cs var:html_escape(Lang.Button.Config) ?></a></li>
|
||||
|
||||
<?cs # initialize ?>
|
||||
<li><a href="<?cs call:link('init_ask','','','','') ?>" title="<?cs
|
||||
var:html_escape(Lang.Button.DoInit) ?>"><?cs var:html_escape(Lang.Button.DoInit) ?></a></li>
|
||||
|
||||
<?cs # show log files ?>
|
||||
<li><a href="<?cs call:link('logs','','','','') ?>" title="<?cs var:html_escape(Lang.Button.Protocol) ?>"><?cs var:html_escape(Lang.Button.Protocol) ?></a></li>
|
||||
|
||||
</ul></p>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -3,14 +3,14 @@
|
|||
<?cs include:Settings.TemplateDir + '/macros.cs' ?>
|
||||
<?cs include:Settings.TemplateDir + '/header.cs' ?>
|
||||
|
||||
<!-- chosen cryptobox template: <?cs var:Data.Action ?> -->
|
||||
<!-- chosen cryptobox template: <?cs var:Data.TemplateFile ?> -->
|
||||
|
||||
<?cs if:Data.Error ?>
|
||||
<?cs include:Settings.TemplateDir + '/error.cs' ?>
|
||||
<?cs else ?>
|
||||
<?cs if:Data.Warning ?><?cs call:warning(Data.Warning) ?><?cs /if ?>
|
||||
<?cs if:Data.Success ?><?cs call:success(Data.Success) ?><?cs /if ?>
|
||||
<?cs include:Settings.TemplateDir + '/' + Data.Action + '.cs' ?>
|
||||
<?cs include:Data.TemplateFile ?>
|
||||
<?cs /if ?>
|
||||
|
||||
<?cs include:Settings.TemplateDir + '/footer.cs' ?>
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
<?cs # $Id$ ?>
|
||||
|
||||
<div id="log">
|
||||
|
||||
<h1><?cs var:html_escape(Lang.Title.Log) ?></h1>
|
||||
|
||||
<?cs if:Data.Log ?>
|
||||
<p class="console"><?cs var:Data.Log ?></p>
|
||||
<?cs else ?>
|
||||
<p><?cs var:html_escape(Lang.Text.EmptyLog) ?></p>
|
||||
<?cs /if ?>
|
||||
|
||||
</div>
|
|
@ -21,7 +21,7 @@
|
|||
?>"><?cs var:partition.name ?></a></li><?cs /if ?><?cs /each ?></ul><?cs /if ?>
|
||||
<?cs if:Data.activeDisksCount < subcount(Data.Disks) ?>
|
||||
<p><?cs var:html_escape(Lang.Text.PassivePartitions) ?>:
|
||||
<ul><?cs each:partition = Data.Disks ?><?cs if:partition.active ?>
|
||||
<ul><?cs each:partition = Data.Disks ?><?cs if:!partition.active ?>
|
||||
<li><a href="<?cs call:link('show_volume','device',partition.device,'','')
|
||||
?>"><?cs var:partition.name ?></a></li><?cs /if ?><?cs /each ?></ul><?cs /if ?>
|
||||
<?cs /if ?>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<?cs if:!Data.CurrentDisk.active ?>
|
||||
<h2>Change the name of the container</h2>
|
||||
<?cs call:print_form_header("volume_name_set") ?>
|
||||
<p><label for="vol_name"><?cs var:html_escape(Lang.Text.ContainerName) ?></label>
|
||||
<p><label for="volume_name"><?cs var:html_escape(Lang.Text.ContainerName) ?></label>
|
||||
<input type="text" name="volume_name" size="20" id="volume_name" value="<?cs var:html_escape(Data.CurrentDisk.name) ?>" />
|
||||
<input type="hidden" name="device" value="<?cs var:html_escape(Data.CurrentDisk.device) ?>" />
|
||||
<button type="submit"><?cs var:html_escape(Lang.Button.ContainerNameSet) ?></button></p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue