| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/room/member/ |
Upload File : |
<?php
session_start();
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
// Url ที่จะไปต่อ บริการที่ port 80 จึงไม่ต้องการ Port
echo 'TEST<br>';
echo $_POST['username'].'<br>';
echo $_POST['password'].'<br>';
$webxxb =$_POST['target'];
echo $webxxb.'<br>';
if (isset($_POST['username'])) {
$usr = trim($_POST['username']);
if ($usr == '') echo
"<script>
alert('ชื่อผู้ใช้งาน หรือรหัสผ่านไม่ถูกต้อง');
window.location = href='javascript:history.back(1);';
</script>";
else {
$AuthServer = '192.168.1.14';
$port = 81;0
if(($sock = socket_create(AF_INET, SOCK_DGRAM, 0)))
{
$input = 'ChkUsr'.$usr.'#'.trim($_POST['password']);
if (socket_sendto($sock, $input , strlen($input) , 0 , $AuthServer , $port))
if (socket_recv ( $sock , $reply , 2045 , MSG_WAITALL ) )$_SESSION['Login'] =$reply;
}
echo $_SESSION['Login'].'<br>';
}
}
?>