הזוכה באתגר Hosts - פורום תכנות הוא Kuchi
הקוד:
PHP קוד:
<Center>
Type Somting End Check Your Access ! (To Get Access Type : Hosts.co.il)
<br><br>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<br><br>
<form method='post'>
<input name='access' dir='ltr' size='22' tabindex='1' style='font-family: Tahoma; font-size: 10px; color: #000000; font-weight: bold; border-style: solid; border-width: 1px'>
<input type='submit' value='Get' name='Send' style='color: #000000; font-family: Tahoma; font-size: 10px; font-weight: bold; border-style: solid; border-width: 1px'>
</form>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<br><br>
<?
// By Kuchi.be :D For Hosts.co.il (Atgar Forum)
// error_reporting(0); למקרה שתיהיה שגיאה בגלל ששרת נפל
// אפשר לעשות
// @file_get_contents('File'); אבל ... כל אחד ואיך נוח לו
if(empty($_POST['access']))
{
echo "<b>Pleas Type Somting !</b>";
}
else
{
error_reporting(0);
$access = file_get_contents('http://atgar.web.lsrv.co.il/index.php');
if($access == $_POST['access'])
{
echo "<Font Color='Blue'><b>Yes</b></Font>";
}
else
{
echo "<Font Color='Red'><b>No</b></Font>";
}
}
?>
והקובץ על השרת המרוחק:
אתה מוזמן ליצור איתי קשר אני אביא לך איזה פרס