File "index.php"
Full Path: /home/analogde/www/filechange/index.php
File size: 1.62 KB
MIME-type: text/x-php
Charset: utf-8
<?php
if(!empty($submit)) {
session_start();
session_register("host", "user", "pwd","port", "queue", "ftp_dir", "lang");
$queue = array();
header("Location:ftp_index.php");
}
if(isset($msg)) {
switch ($msg) {
case "scesslogout" :
$msg="Deconnecté avec succès";
break;
}
}
?>
<!--PHTP 2.0 Beta 1 version, by Antoine_935, for PHP
This file may be distributed under the terms of the Genreal Public License
This software comes with absolutely no warranty
Join the community at www.phtp.be
-->
<html><head>
<title>PHTP : login</title>
<link rel="SHORCUT ICON" href="favicon.ico">
</head>
<body bgcolor="#CCCCCC"><center>
<h1 style="text-size:14px; border-bottom:thin dotted #0055CC; font-family: luxi serif; font-weight: bold;">Welcome to PHTP</h1>
<table border="0" cellpadding="0" cellspacing="0" width="300">
<tr><td colspan="2"></tr>
<tr><td colspan="2"><?php echo "<font style=\"color: #CC0000;\">$msg</font>"; ?></td></tr>
<form name="login" action="<?php echo $PHP_SELF; ?>" method="post">
<tr><td>Host :</td><td><input type="text" name="host"></td></tr>
<tr><td>User :</td><td><input type="text" name="user"></td></tr>
<tr><td>Password :</td><td><input type="password" name="pwd"></td></tr>
<tr><td>Port :</td><td><input type="text" name="port" value="21"></td></tr>
<tr><td>Language :</td>
<td><select name="lang">
<?php $pointeur = opendir("language/");
while ($dirname = readdir($pointeur)) {
if($dirname!="."&&$dirname!="..") echo "<option>$dirname</option>\n";
}
?>
</select>
<tr><td></td><td><input type="submit" name="submit" value="Login"><input type="reset" value="Clear"></td></tr>
</table>
</form>
</center>
</body>
</html>