2006-04-26 12:28:53 +00:00
< ? php
2009-09-08 05:29:38 +00:00
2006-04-26 12:28:53 +00:00
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
2012-08-26 17:20:10 +00:00
Copyright ( C ) 2000 - 2012 by the AlternC Development Team .
https :// alternc . org /
2006-04-26 12:28:53 +00:00
----------------------------------------------------------------------
LICENSE
This program is free software ; you can redistribute it and / or
modify it under the terms of the GNU General Public License ( GPL )
as published by the Free Software Foundation ; either version 2
of the License , or ( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
To read the license please visit http :// www . gnu . org / copyleft / gpl . html
----------------------------------------------------------------------
Purpose of file : Main index : show the login page
----------------------------------------------------------------------
*/
require_once ( " ../class/config_nochk.php " );
if ( ! $mem -> del_session ()) {
// No need to draw an error message ...
//$error=$err->errstr();
}
$H = getenv ( " HTTP_HOST " );
2009-09-08 05:29:38 +00:00
if ( ! isset ( $restrictip )) {
$restrictip = 1 ;
}
2011-06-05 08:15:32 +00:00
if ( ! $charset ) $charset = " UTF-8 " ;
@ header ( " Content-Type: text/html; charset= $charset " );
2006-04-26 12:28:53 +00:00
?>
<! DOCTYPE html PUBLIC " -//W3C//DTD XHTML 1.0 Transitional//EN " " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " >
2012-08-26 17:55:44 +00:00
< html xmlns = " http://www.w3.org/1999/xhtml " xml : lang = " en " lang = " en " >
2006-04-26 12:28:53 +00:00
< head >
< title > AlternC Desktop </ title >
2009-09-08 05:29:38 +00:00
< link rel = " stylesheet " href = " styles/style.css " type = " text/css " />
< script type = " text/javascript " src = " js/alternc.js " ></ script >
2011-06-05 08:15:32 +00:00
< meta http - equiv = " Content-Type " content = " text/html; charset=<?php echo $charset ; ?> " />
2006-04-26 12:28:53 +00:00
</ head >
2009-09-08 05:29:38 +00:00
< body >
< div id = " content " style = " position: absolute; left: 50%; top: 20px; margin-left: -400px " >
< p id = " logo " > < img src = " logo.png " border = " 0 " alt = " <?php __( " Web Hosting Control Panel " ); ?> " title = " <?php __( " Web Hosting Control Panel " ); ?> " /></ a >
2008-04-10 18:05:51 +00:00
</ p >
2009-09-08 05:29:38 +00:00
< p >& nbsp ; </ p >
2011-03-06 18:06:27 +00:00
< ? php if ( isset ( $error ) && $error ) echo " <font color=red> $error </font> " ; ?>
2009-09-08 05:29:38 +00:00
< ? php
2012-04-06 10:10:36 +00:00
if ( isset ( $_GET [ 'authip_token' ])) $authip_token = $_GET [ 'authip_token' ];
2009-09-08 05:29:38 +00:00
/*
if ( ! $_SERVER [ HTTPS ]) {
echo " <h4>ATTENTION : vous allez acc<63> der <20> votre panel en mode *non s<> curis<69> *<br/>
2012-04-06 10:10:36 +00:00
< a href = \ " https:// " . $_SERVER [ " HTTP_HOST " ] . " / \" >Cliquez ici pour passer en mode s<> curis<69> </a></h4> " ;
2009-09-08 05:29:38 +00:00
}
*/
?>
< div style = " position: relative; left: 100px " >
< table >< tr >< td style = " width: 320px " >
< ? php __ ( " To connect to the hosting control panel, enter your AlternC's login and password in the following form and click 'Enter' " ); ?>
2011-06-03 17:08:44 +00:00
< ? php if ( ! empty ( $authip_token )) { echo " <p style='color:red;'> " ; __ ( " You are attemping to connect without IP restriction. " ); echo " </p> " ; } ?>
2009-09-08 05:29:38 +00:00
</ td >< td >
2012-08-22 16:47:18 +00:00
< form action = " login.php " method = " post " name = " loginform " target = " _top " >
2009-09-08 05:29:38 +00:00
< table border = " 0 " style = " border: 1px solid #202020; " cellspacing = " 0 " cellpadding = " 3 " width = " 300px " >
2011-06-03 12:23:58 +00:00
< tr >< th colspan = " 2 " align = " center " >< ? php __ ( " AlternC access " ); ?> </th></tr>
2009-09-08 05:29:38 +00:00
< 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>
< 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>
< 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 >
2012-08-23 07:34:06 +00:00
< input type = " hidden " id = " authip_token " name = " authip_token " value = " <?php echo htmlentities( (empty( $authip_token )?'': $authip_token ) ) ?> " />
2009-09-08 05:29:38 +00:00
</ form >
</ td ></ tr >
< tr >< td >
2012-08-26 17:55:44 +00:00
< ? php if ( variable_get ( " webmail_redirect " , " " )) { ?>
< p >< a href = " /webmail " >< ? php __ ( " If you want to read your mail, click here and enter your Email address and password in the next form, then click 'Enter'. " ); ?> </a></p>
< ? php } ?>
2009-09-08 05:29:38 +00:00
</ td >< td >
</ td ></ tr >
</ 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 />
2008-04-10 18:05:51 +00:00
< ? php
foreach ( $locales as $l ) {
?>
< a href = " ?setlang=<?php echo $l ; ?> " >< ? php __ ( $l ); ?> </a>
< ? php } ?>
2009-09-08 05:29:38 +00:00
< br />
< ? php
$mem -> show_help ( " login " , true );
?>
</ td >
< td >
< p >
2012-08-22 14:36:01 +00:00
< a href = " http://www.alternc.com/ " >< img src = " alternc.jpg " width = " 128 " height = " 32 " alt = " powered by AlternC " /></ a >
2009-09-08 05:29:38 +00:00
</ p >
</ td >
2008-04-10 18:05:51 +00:00
</ tr >
2006-04-26 12:28:53 +00:00
</ table >
2009-09-08 05:29:38 +00:00
2008-04-10 18:05:51 +00:00
</ div >
2012-08-22 16:47:18 +00:00
< script >
document . forms [ 'loginform' ] . username . focus ();
</ script >
2009-09-08 05:29:38 +00:00
2006-04-26 12:28:53 +00:00
</ body >
</ html >