Accueil TNG

This commit is contained in:
Alan Garcia 2013-02-01 11:34:06 +00:00
parent f8a6e80f7e
commit 32f87f034e
2 changed files with 85 additions and 84 deletions

View File

@ -49,93 +49,94 @@ if (!$charset) $charset="UTF-8";
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" /> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
</head> </head>
<body> <body>
<div id="global">
<div id="content" style="position: absolute; left: 50%; top: 20px; margin-left: -400px"> <div id="content" style="width:100%;">
<p id="logo"> <img src="logo.png" border="0" alt="<?php __("Web Hosting Control Panel"); ?>" title="<?php __("Web Hosting Control Panel"); ?>" /></a> <p id="logo"> <img src="logo.png" border="0" alt="<?php __("Web Hosting Control Panel"); ?>" title="<?php __("Web Hosting Control Panel"); ?>" /></a>
</p> </p>
<p>&nbsp;</p> <p>&nbsp;</p>
<?php if (isset($error) && $error) echo "<div class='error'>$error</div>"; ?> <?php if (isset($error) && $error) echo "<div class='error'>$error</div>"; ?>
<br/> <br/>
<?php <?php
if (isset($_GET['authip_token'])) $authip_token=$_GET['authip_token']; if (isset($_GET['authip_token'])) $authip_token=$_GET['authip_token'];
/* /*
if (!$_SERVER[HTTPS]) { if (!$_SERVER[HTTPS]) {
echo "<h4>ATTENTION : vous allez accéder à votre panel en mode *non sécurisé*<br/> echo "<h4>ATTENTION : vous allez accéder à votre panel en mode *non sécurisé*<br/>
<a href=\"https://".$_SERVER["HTTP_HOST"]."/\">Cliquez ici pour passer en mode sécurisé</a></h4>"; <a href=\"https://".$_SERVER["HTTP_HOST"]."/\">Cliquez ici pour passer en mode sécurisé</a></h4>";
} }
*/ */
?> ?>
<div style="position: relative; left: 100px"> <div style="margin: 0 auto 30px auto; width: 700px;">
<table><tr><td style="width: 320px"> <table width="100%"><tr><td>
<?php __("To connect to the hosting control panel, enter your AlternC's login and password in the following form and click 'Enter'"); ?> <?php __("To connect to the hosting control panel, enter your AlternC's login and password in the following form and click 'Enter'"); ?>
<?php if (!empty($authip_token)) { echo "<p style='color:red;'>";__("You are attemping to connect without IP restriction."); echo "</p>"; } ?> <?php if (!empty($authip_token)) { echo "<p style='color:red;'>";__("You are attemping to connect without IP restriction."); echo "</p>"; } ?>
</td><td> </td><td>
<form action="login.php" method="post" name="loginform" target="_top"> <form action="login.php" method="post" name="loginform" target="_top">
<table border="0" style="border: 1px solid #202020;" cellspacing="0" cellpadding="3" width="300px" > <table border="0" style="border: 1px solid #202020;" cellspacing="0" cellpadding="3" width="300px" >
<tr><td colspan="2" align="center"><b><?php __("AlternC access"); ?></b></td></tr> <tr><td colspan="2" align="center"><b><?php __("AlternC access"); ?></b></td></tr>
<tr><td align="right"><label for="username"><?php echo _("Username"); ?></label></td><td><input type="text" class="int" name="username" id="username" value="" maxlength="128" size="15" /></td></tr> <tr><td align="right"><label for="username"><?php echo _("Username"); ?></label></td><td><input type="text" class="int" name="username" id="username" value="" maxlength="128" size="15" /></td></tr>
<tr><td align="right"><label for="password"><?php echo _("Password"); ?></label></td><td><input type="password" class="int" name="password" id="password" value="" maxlength="128" size="15" /></td></tr> <tr><td align="right"><label for="password"><?php echo _("Password"); ?></label></td><td><input type="password" class="int" name="password" id="password" value="" maxlength="128" size="15" /></td></tr>
<tr><td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Enter"); ?>" /><input type="hidden" id="restrictip" name="restrictip" value="1" /></td></tr> <tr><td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Enter"); ?>" /><input type="hidden" id="restrictip" name="restrictip" value="1" /></td></tr>
</table> </table>
<input type="hidden" id="authip_token" name="authip_token" value="<?php echo htmlentities( (empty($authip_token)?'':$authip_token) ) ?>" /> <input type="hidden" id="authip_token" name="authip_token" value="<?php echo htmlentities( (empty($authip_token)?'':$authip_token) ) ?>" />
</form> </form>
</td></tr> </td></tr>
<tr><td> <tr><td>
<?php <?php
// Here we used to have a form to enter the squirrelmail's webmail. // Here we used to have a form to enter the squirrelmail's webmail.
// Following the "rule of less astonishment, we try to put it here again, even though the webmail is now a plugin. // Following the "rule of less astonishment, we try to put it here again, even though the webmail is now a plugin.
$res=$hooks->invoke("hook_admin_webmail"); $res=$hooks->invoke("hook_admin_webmail");
if (($wr=variable_get("webmail_redirect")) && isset($res[$wr]) && $res[$wr]) { if (($wr=variable_get("webmail_redirect")) && isset($res[$wr]) && $res[$wr]) {
$url=$res[$wr]; $url=$res[$wr];
} else { } else {
foreach($res as $r) if ($r!==false) { $url=$r; break; } foreach($res as $r) if ($r!==false) { $url=$r; break; }
} }
if (isset($url) && $url) { if (isset($url) && $url) {
?> ?>
<p><a href="<?php echo $url; ?>"><?php __("To read your mail in a browser, click here to go to your server's Webmail"); ?></a></p> <p><a href="<?php echo $url; ?>"><?php __("To read your mail in a browser, click here to go to your server's Webmail"); ?></a></p>
<?php <?php
} }
?></td><td> ?></td><td>
</td></tr> </td></tr>
</table> </table>
</div>
<table width="800px" style="border: 0">
<tr><td style="text-align: left; font-size: 10px">
<?php __("You must accept the session cookie to log-in"); ?>
<br />
<?php echo "If you want to use a different language, choose it in the list below"; ?>
<br />
<?php
foreach($locales as $l) {
?>
<a href="?setlang=<?php echo $l; ?>"><?php if (isset($lang_translation[$l])) echo $lang_translation[$l]; else echo $l; ?></a>
<?php } ?>
<br />
<?php
$mem->show_help("login",true);
?>
</td>
<td>
<p>
<a href="http://www.alternc.com/"><img src="powered_by_alternc2.png" width="128" height="32" alt="Powered by AlternC" /></a>
</p>
</td>
</tr>
</table>
</div> <table width="100%" style="border: 0">
<script> <tr><td style="text-align: left; font-size: 10px">
document.forms['loginform'].username.focus(); <?php __("You must accept the session cookie to log-in"); ?>
</script> <br />
<?php echo "If you want to use a different language, choose it in the list below"; ?>
<br />
<?php
foreach($locales as $l) {
?>
<a href="?setlang=<?php echo $l; ?>"><?php if (isset($lang_translation[$l])) echo $lang_translation[$l]; else echo $l; ?></a>
<?php } ?>
<br />
<?php
$mem->show_help("login",true);
?>
</td>
<td>
<p>
<a href="http://www.alternc.com/"><img src="powered_by_alternc2.png" width="128" height="32" alt="Powered by AlternC" /></a>
</p>
</td>
</tr>
</table>
</div>
<script>
document.forms['loginform'].username.focus();
</script>
</div>
</body> </body>
</html> </html>

View File

@ -144,15 +144,15 @@ input.inav:hover, .inav a:hover, a.inav:hover {
padding: 4px 10px; padding: 4px 10px;
color: black; color: black;
cursor: pointer; cursor: pointer;
-webkit-border-radius: 5px; -webkit-border-radius: 3px;
-moz-border-radius: 5px; -moz-border-radius: 3px;
border-radius: 5px; border-radius: 3px;
} }
input[type=button], input[type=button],
input[type=submit] { input[type=submit] {
-webkit-border-radius: 5px; -webkit-border-radius: 3px;
-moz-border-radius: 5px; -moz-border-radius: 3px;
border-radius: 5px; border-radius: 3px;
} }
.ina a:hover, a.ina:hover, .inav a:hover, a.inav:hover { .ina a:hover, a.ina:hover, .inav a:hover, a.inav:hover {
text-decoration: none; text-decoration: none;