source: trunk/bureau/admin/index.php @ 874

Revision 874, 3.6 KB checked in by benjamin, 7 years ago (diff)

Adding source flags + correcting ticket #546 about fr_CA and other locales problems

RevLine 
[1]1<?php
2/*
[663]3 $Id: index.php,v 1.15 2005/05/20 02:47:18 anarcat Exp $
[1]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
[222]31require_once("../class/config_nochk.php");
32
[1]33if (!$mem->del_session()) {
34        // No need to draw an error message ...
35        //$error=$err->errstr();
36}
37
38$H=getenv("HTTP_HOST");
39?>
[101]40<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[100]41<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
[1]42<head>
43<title>AlternC Desktop</title>
[100]44<link rel="stylesheet" href="styles/style.css" type="text/css" />
45<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
[1]46</head>
[597]47<body onload="document.forms['fmain'].username.focus();">
[1]48<h1><?php echo _("Administration of")." ".$H ?></h1>
49<?php if ($error) echo "<font color=red>$error</font>"; ?>
[100]50<p><?php echo _("Enter your username and password to connect to the virtual desktop")." [ ".$H." ]" ?></p>
[597]51<form action="login.php" method="post" target="_top" id="fmain" name="fmain">
[109]52<div class="dlogin">
53<table border="1" cellspacing="0" cellpadding="4" width="300" class="login">
[107]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>
[110]56<tr><td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Enter"); ?>" /></td></tr>
[663]57<tr><td colspan="2" align="right"><label><input type="checkbox" class="inc" id="restrictip" name="restrictip" value="1" checked="checked"><?php __("Restrict this session to my ip address"); ?></label></td></tr>
[1]58</table>
[109]59</div>
[1]60</form>
61<p>&nbsp;</p>
[135]62<table width="100%" style="border: 0">
63<tr><td style="text-align: left">
[1]64<?php __("You must accept the session cookie to log-in"); ?>
[100]65<br />
[1]66<?php __("If you want to use a different language, click on the flag below"); ?>
[100]67<br />
[868]68<?php 
69foreach($locales as $l) {
[874]70if (file_exists("../".$l.".png")) {
[868]71?>
72 <a href="?setlang=<?php echo $l; ?>"><img src="../<?php echo $l; ?>.png" alt="<?php __($l); ?>" title="<?php __($l); ?>" /></a>
[1]73&nbsp;&nbsp;
[874]74     <?php } } ?>
[135]75</td>
76<td style="text-align: right">
[424]77<p> <a href="http://alternc.org"><img src="alternc.png" width="120" height="82" border="0" alt="AlternC" /></a></p>
[135]78</td>
79</tr>
80</table>
[1]81</body>
82</html>
Note: See TracBrowser for help on using the repository browser.