root/alternc/trunk/bureau/admin/adm_login.php

Revision 2104, 2.5 kB (checked in by anarcat, 9 months ago)

Standardisation de l'interface web d'AlternC, qui passe maintenant la
validation du w3c

Refonte de certains styles et couleurs, tel que discuté sur la liste de
discussion.

Des modifications locales peuvent maintenant être faites dans
styles/custom.css qui n'est pas distribué avec AlternC et donc jamais
remplacé.

Contribution de Marc Angles
Sponsorisé par Koumbit

Line 
1 <?php
2 /*
3  $Id: adm_login.php,v 1.4 2005/04/01 17:13:10 benjamin 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: Connect a super-user to another account
28  ----------------------------------------------------------------------
29 */
30 require_once("../class/config.php");
31
32 if (!$admin->enabled) {
33     __("This page is restricted to authorized staff");
34     exit();
35 }
36
37 $id = $_GET['id'];
38
39 if (!$admin->checkcreator($id)) {
40   __("This page is restricted to authorized staff");
41   exit();
42 }
43
44 if (!$r=$admin->get($id)) {
45     $error=$err->errstr();
46 } else {
47
48 if (!$mem->setid($id)) {
49         $error=$err->errstr();
50     include("index.php");
51     exit();
52 }
53
54 ?>
55 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
56 <html>
57 <head>
58 <title><?php __("AlternC Desktop"); ?></title>
59 <link rel="stylesheet" href="styles/base.css" type="text/css" />
60 <link rel="stylesheet" href="styles/custom.css" type="text/css" />
61 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
62 </head>
63 <frameset cols="225px,*">
64     <frame src="menu.php" name="left" />
65     <frame src="main.php" name="right" />
66 <noframes>
67 <body>
68 <p>
69     Votre navigateur doit supporter les cadres.<br />
70     Your browser must support frames
71 </p>
72 </body>
73 </noframes>
74 </frameset>
75 </html>
76 <?php
77                       exit();
78 }
79 include("head.php");
80 ?>
81 </head>
82 <body>
83 <h3><?php __("Member login"); ?></h3>
84 <?php
85     if ($error) {
86         echo "<p class=\"error\">$error</p></body></html>";
87         exit();
88     }
89 ?>
90 </body>
91 </html>
92
93
94
Note: See TracBrowser for help on using the browser.