2006-08-14 17:40:12 +02:00
|
|
|
<?cs # $Id$ ?>
|
|
|
|
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
|
|
|
<title>CryptoBox</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<meta http-equiv="pragma" content="no-cache" />
|
|
|
|
<meta http-equiv="cache-control" content="no-cache" />
|
|
|
|
<meta http-equiv="expires" content="0" />
|
|
|
|
<link rel="shortcut icon" href="/favicon.ico" />
|
|
|
|
<link rel="stylesheet" media="screen" href="<?cs var:Settings.Stylesheet ?>" type="text/css" />
|
2006-09-25 14:19:12 +02:00
|
|
|
<?cs if:?Data.Redirect.URL ?><meta http-equiv="refresh" content="<?cs var:Data.Redirect.Delay ?>;url=<?cs var:Data.Redirect.URL ?>" /><?cs
|
2006-08-24 11:02:10 +02:00
|
|
|
elif:Data.Redirect.Action ?><meta http-equiv="refresh" content="<?cs var:Data.Redirect.Delay ?>;url=<?cs call:link(Data.Redirect.Action,'','','','') ?>" /><?cs /if ?>
|
2006-08-14 17:40:12 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
2006-11-01 10:28:48 +01:00
|
|
|
<div id="main_menu">
|
|
|
|
<?cs # sort the Plugins - using the most stupid way :) ?>
|
|
|
|
<?cs loop: order = #0, #100, #1
|
|
|
|
?><?cs # plugins ?><?cs each:x = Settings.PluginList
|
|
|
|
?><?cs if:x.Enabled && x.Types.menu && x.Rank == order ?>
|
|
|
|
<?cs call:show_plugin(name(x), 'menu') ?><?cs /if ?><?cs
|
|
|
|
/each ?><?cs
|
|
|
|
/loop ?>
|
|
|
|
|
2006-11-02 15:00:28 +01:00
|
|
|
<?cs # to avoid duplicate POST variables, we have to remove the weblang attribute
|
|
|
|
from the action destination of the language selection form header ?><?cs
|
|
|
|
if:?Settings.LinkAttrs.weblang ?><?cs
|
|
|
|
# remove the link attr before writing the form header ?><?cs
|
|
|
|
set:old_weblang = Settings.LinkAttrs.weblang ?><?cs
|
|
|
|
set:Settings.LinkAttrs.weblang = '' ?><?cs
|
|
|
|
call:print_form_header("select_language",'') ?><?cs
|
|
|
|
# restore the old setting ?><?cs
|
|
|
|
set:Settings.LinkAttrs.weblang = old_weblang ?><?cs
|
|
|
|
else ?><?cs
|
|
|
|
# otherwise: simply call it as usual ?><?cs
|
|
|
|
call:print_form_header("select_language",'') ?><?cs
|
|
|
|
/if ?>
|
2006-11-01 10:28:48 +01:00
|
|
|
<div id="lang">
|
|
|
|
<select name="weblang">
|
|
|
|
<?cs each:item = Data.Languages ?>
|
|
|
|
<option value="<?cs var:name(item) ?>" <?cs
|
|
|
|
if:Settings.Language == name(item) ?>selected="selected"<?cs /if
|
|
|
|
?>><?cs var:item ?></option><?cs /each ?>
|
2006-11-02 15:00:28 +01:00
|
|
|
</select><br/>
|
2006-11-01 10:28:48 +01:00
|
|
|
<button type="submit"><?cs var:html_escape(Lang.Button.SelectLanguage) ?></button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2006-08-14 17:40:12 +02:00
|
|
|
</div>
|
|
|
|
|
2006-11-01 10:28:48 +01:00
|
|
|
|
2006-08-14 17:40:12 +02:00
|
|
|
<div id="main">
|
2006-11-02 15:00:28 +01:00
|
|
|
<div id="head">
|
|
|
|
<table>
|
|
|
|
<tr><td>
|
|
|
|
<h1><?cs var:html_escape(Lang.Title.Top) ?></h1>
|
|
|
|
<h2><?cs var:html_escape(Lang.Title.Slogan) ?></h2>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?cs if:Data.activeDisksCount > 0 ?><?cs
|
|
|
|
set:logoFile = "antlogo100px_red.png" ?><?cs
|
|
|
|
else ?><?cs
|
|
|
|
set:logoFile = "antlogo100px_green.png" ?><?cs
|
|
|
|
/if ?>
|
|
|
|
<img src="/cryptobox-misc/<?cs var:logoFile ?>" alt="icon: logo" />
|
|
|
|
</td></tr></table>
|
|
|
|
</div>
|
|
|
|
|
2006-11-03 15:27:48 +01:00
|
|
|
<?cs if:?Data.EnvironmentWarning ?>
|
|
|
|
<div id="EnvironmentWarning">
|
|
|
|
<?cs call:warning(Data.EnvironmentWarning) ?>
|
|
|
|
</div>
|
|
|
|
<?cs /if ?>
|
|
|
|
|
2006-08-14 17:40:12 +02:00
|
|
|
<div id="words">
|
|
|
|
|