| 1 | <?php |
|---|
| 2 | /* |
|---|
| 3 | $Id: index.php,v 1.13 2004/10/24 17:32:40 anonymous Exp $ |
|---|
| 4 | ---------------------------------------------------------------------- |
|---|
| 5 | AlternC - Web Hosting System |
|---|
| 6 | Copyright (C) 2002 by the AlternC Development Team. |
|---|
| 7 | http://alternc.org/ |
|---|
| 8 | ---------------------------------------------------------------------- |
|---|
| 9 | Based on: |
|---|
| 10 | Valentin Lacambre's web hosting softwares: http://altern.org/ |
|---|
| 11 | ---------------------------------------------------------------------- |
|---|
| 12 | LICENSE |
|---|
| 13 | |
|---|
| 14 | This program is free software; you can redistribute it and/or |
|---|
| 15 | modify it under the terms of the GNU General Public License (GPL) |
|---|
| 16 | as published by the Free Software Foundation; either version 2 |
|---|
| 17 | of the License, or (at your option) any later version. |
|---|
| 18 | |
|---|
| 19 | This program is distributed in the hope that it will be useful, |
|---|
| 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 22 | GNU General Public License for more details. |
|---|
| 23 | |
|---|
| 24 | To read the license please visit http://www.gnu.org/copyleft/gpl.html |
|---|
| 25 | ---------------------------------------------------------------------- |
|---|
| 26 | Original Author of file: Benjamin Sonntag |
|---|
| 27 | Purpose of file: Main index : show the login page |
|---|
| 28 | ---------------------------------------------------------------------- |
|---|
| 29 | */ |
|---|
| 30 | |
|---|
| 31 | require_once("../class/config_nochk.php"); |
|---|
| 32 | |
|---|
| 33 | if (!$mem->del_session()) { |
|---|
| 34 | // No need to draw an error message ... |
|---|
| 35 | //$error=$err->errstr(); |
|---|
| 36 | } |
|---|
| 37 | |
|---|
| 38 | $H=getenv("HTTP_HOST"); |
|---|
| 39 | ?> |
|---|
| 40 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 41 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> |
|---|
| 42 | <head> |
|---|
| 43 | <title>AlternC Desktop</title> |
|---|
| 44 | <link rel="stylesheet" href="styles/style.css" type="text/css" /> |
|---|
| 45 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
|---|
| 46 | </head> |
|---|
| 47 | <body> |
|---|
| 48 | <h1><?php echo _("Administration of")." ".$H ?></h1> |
|---|
| 49 | <?php if ($error) echo "<font color=red>$error</font>"; ?> |
|---|
| 50 | <p><?php echo _("Enter your username and password to connect to the virtual desktop")." [ ".$H." ]" ?></p> |
|---|
| 51 | <form action="login.php" method="post" target="_top"> |
|---|
| 52 | <div class="dlogin"> |
|---|
| 53 | <table border="1" cellspacing="0" cellpadding="4" width="300" class="login"> |
|---|
| 54 | <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="20" /></td></tr> |
|---|
| 55 | <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="20" /></td></tr> |
|---|
| 56 | <tr><td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Enter"); ?>" /></td></tr> |
|---|
| 57 | <tr><td colspan="2" align="right"><input type="checkbox" class="inc" id="restrictip" name="restrictip" value="1"<?php if ($restrictip) echo " checked=\"checked\""; ?>/><label for="restrictip"><?php __("Restrict this session to my ip address"); ?></label></td></tr> |
|---|
| 58 | </table> |
|---|
| 59 | </div> |
|---|
| 60 | </form> |
|---|
| 61 | <p> </p> |
|---|
| 62 | <table width="100%" style="border: 0"> |
|---|
| 63 | <tr><td style="text-align: left"> |
|---|
| 64 | <?php __("You must accept the session cookie to log-in"); ?> |
|---|
| 65 | <br /> |
|---|
| 66 | <?php __("If you want to use a different language, click on the flag below"); ?> |
|---|
| 67 | <br /> |
|---|
| 68 | <a href="?setlang=fr-fr"><img src="../fr.png" width="30" height="20" alt="Français" /></a> |
|---|
| 69 | |
|---|
| 70 | <a href="?setlang=en-ca"><img src="../gb.png" width="30" height="20" alt="English" /></a> |
|---|
| 71 | |
|---|
| 72 | <a href="?setlang=es-es"><img src="../es.png" width="30" height="20" alt="Espanol" /></a> |
|---|
| 73 | </td> |
|---|
| 74 | <td style="text-align: right"> |
|---|
| 75 | <p> <a href="http://alternc.org"><img src="alternc.png" width="120" height="82" border="0" alt="AlternC" /></a></p> |
|---|
| 76 | </td> |
|---|
| 77 | </tr> |
|---|
| 78 | </table> |
|---|
| 79 | </body> |
|---|
| 80 | </html> |
|---|