| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | /* |
|---|
| 4 | $Id: index.php,v 1.11 2004/05/24 17:30:22 anonymous Exp $ |
|---|
| 5 | ---------------------------------------------------------------------- |
|---|
| 6 | AlternC - Web Hosting System |
|---|
| 7 | Copyright (C) 2002 by the AlternC Development Team. |
|---|
| 8 | http://alternc.org/ |
|---|
| 9 | ---------------------------------------------------------------------- |
|---|
| 10 | Based on: |
|---|
| 11 | Valentin Lacambre's web hosting softwares: http://altern.org/ |
|---|
| 12 | ---------------------------------------------------------------------- |
|---|
| 13 | LICENSE |
|---|
| 14 | |
|---|
| 15 | This program is free software; you can redistribute it and/or |
|---|
| 16 | modify it under the terms of the GNU General Public License (GPL) |
|---|
| 17 | as published by the Free Software Foundation; either version 2 |
|---|
| 18 | of the License, or (at your option) any later version. |
|---|
| 19 | |
|---|
| 20 | This program is distributed in the hope that it will be useful, |
|---|
| 21 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 23 | GNU General Public License for more details. |
|---|
| 24 | |
|---|
| 25 | To read the license please visit http://www.gnu.org/copyleft/gpl.html |
|---|
| 26 | ---------------------------------------------------------------------- |
|---|
| 27 | Original Author of file: Benjamin Sonntag |
|---|
| 28 | Purpose of file: Main index : show the login page |
|---|
| 29 | ---------------------------------------------------------------------- |
|---|
| 30 | */ |
|---|
| 31 | |
|---|
| 32 | require_once("../class/config_nochk.php"); |
|---|
| 33 | |
|---|
| 34 | if (!$mem->del_session()) { |
|---|
| 35 | // No need to draw an error message ... |
|---|
| 36 | //$error=$err->errstr(); |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | $H=getenv("HTTP_HOST"); |
|---|
| 40 | |
|---|
| 41 | if (!isset($restrictip)) { |
|---|
| 42 | $restrictip=1; |
|---|
| 43 | } |
|---|
| 44 | ?> |
|---|
| 45 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 46 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> |
|---|
| 47 | <head> |
|---|
| 48 | <title>AlternC Desktop</title> |
|---|
| 49 | <link rel="stylesheet" href="styles/style.css" type="text/css" /> |
|---|
| 50 | <script type="text/javascript" src="js/alternc.js"></script> |
|---|
| 51 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
|---|
| 52 | </head> |
|---|
| 53 | <body> |
|---|
| 54 | |
|---|
| 55 | <div id="content" style="position: absolute; left: 50%; top: 20px; margin-left: -400px"> |
|---|
| 56 | |
|---|
| 57 | <p id="logo"> <img src="logo.png" border="0" alt="<?php __("Web Hosting Control Panel"); ?>" title="<?php __("Web Hosting Control Panel"); ?>" /></a> |
|---|
| 58 | </p> |
|---|
| 59 | <p> </p> |
|---|
| 60 | <?php if (isset($error) && $error) echo "<font color=red>$error</font>"; ?> |
|---|
| 61 | <?php |
|---|
| 62 | /* |
|---|
| 63 | if (!$_SERVER[HTTPS]) { |
|---|
| 64 | echo "<h4>ATTENTION : vous allez accéder à votre panel en mode *non sécurisé*<br/> |
|---|
| 65 | <a href=\"https://".$_SERVER["HTTP_HOST"]."/admin/\">Cliquez ici pour passer en mode sécurisé</a></h4>"; |
|---|
| 66 | } |
|---|
| 67 | */ |
|---|
| 68 | ?> |
|---|
| 69 | <div style="position: relative; left: 100px"> |
|---|
| 70 | <table><tr><td style="width: 320px"> |
|---|
| 71 | <?php __("To connect to the hosting control panel, enter your AlternC's login and password in the following form and click 'Enter'"); ?> |
|---|
| 72 | </td><td> |
|---|
| 73 | <form action="login.php" method="post" target="_top"> |
|---|
| 74 | <table border="0" style="border: 1px solid #202020;" cellspacing="0" cellpadding="3" width="300px" > |
|---|
| 75 | <tr><th colspan="2" align="center">Accès AlternC</th></tr> |
|---|
| 76 | <tr><th align="right"><label for="username"><?php echo _("Username"); ?></label></th><td><input type="text" class="int" name="username" id="username" value="" maxlength="128" size="15" /></td></tr> |
|---|
| 77 | <tr><th align="right"><label for="password"><?php echo _("Password"); ?></label></th><td><input type="password" class="int" name="password" id="password" value="" maxlength="128" size="15" /></td></tr> |
|---|
| 78 | <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> |
|---|
| 79 | </table> |
|---|
| 80 | </form> |
|---|
| 81 | |
|---|
| 82 | </td></tr> |
|---|
| 83 | <tr><td> |
|---|
| 84 | |
|---|
| 85 | <?php __("If you want to read your mail, enter your Email address and password in the following form and click 'Enter'"); ?> |
|---|
| 86 | |
|---|
| 87 | </td><td> |
|---|
| 88 | |
|---|
| 89 | <form action="/webmail/src/redirect.php" method="post"> |
|---|
| 90 | <table border="0" style="border: 1px solid #202020;" cellspacing="0" cellpadding="3" width="300px" > |
|---|
| 91 | <tr><th colspan="2" align="center"><?php __("Webmail Access"); ?></th></tr> |
|---|
| 92 | <tr><th align="right"><label for="login_username"><?php __("Email Address"); ?></label></th><td><input type="text" class="int" name="login_username" id="login_username" value="" maxlength="128" size="15" /></td></tr> |
|---|
| 93 | |
|---|
| 94 | <tr><th align="right"><label for="secretkey"><?php __("Password"); ?></label></th><td><input type="password" class="int" name="secretkey" id="secretkey" value="" maxlength="128" size="15" /></td></tr> |
|---|
| 95 | <tr><td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Enter"); ?>" /> </td></tr> |
|---|
| 96 | </table> |
|---|
| 97 | </form> |
|---|
| 98 | </td></tr> |
|---|
| 99 | |
|---|
| 100 | </table> |
|---|
| 101 | |
|---|
| 102 | </div> |
|---|
| 103 | |
|---|
| 104 | <table width="800px" style="border: 0"> |
|---|
| 105 | <tr><td style="text-align: left; font-size: 10px"> |
|---|
| 106 | <?php __("You must accept the session cookie to log-in"); ?> |
|---|
| 107 | <br /> |
|---|
| 108 | <?php echo "If you want to use a different language, choose it in the list below"; ?> |
|---|
| 109 | <br /> |
|---|
| 110 | <?php |
|---|
| 111 | foreach($locales as $l) { |
|---|
| 112 | ?> |
|---|
| 113 | <a href="?setlang=<?php echo $l; ?>"><?php __($l); ?></a> |
|---|
| 114 | <?php } ?> |
|---|
| 115 | <br /> |
|---|
| 116 | <?php |
|---|
| 117 | $mem->show_help("login",true); |
|---|
| 118 | ?> |
|---|
| 119 | </td> |
|---|
| 120 | <td> |
|---|
| 121 | <p> |
|---|
| 122 | <a href="http://www.alternc.org/"><img src="alternc.jpg" width="128" height="32" alt="powered by AlternC" /></a> |
|---|
| 123 | </p> |
|---|
| 124 | </td> |
|---|
| 125 | </tr> |
|---|
| 126 | </table> |
|---|
| 127 | |
|---|
| 128 | |
|---|
| 129 | </div> |
|---|
| 130 | |
|---|
| 131 | </body> |
|---|
| 132 | </html> |
|---|