<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="bg">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1256" />
<title>SMS-ADMIN</title>
</head>
<body>
<?PHP
function mobio_checkcode($servID, $code, $debug=0) {
$res_lines = file("http://www.mobio.bg/code/checkcode.php?servID=$servID&code=$code");
$ret = 0;
if($res_lines) {
if(strstr("PAYBG=OK", $res_lines[0])) {
$ret = 1;
}else{
if($debug)
echo $line."\n";
}
}else{
if($debug)
echo "Unable to connect to mobio.bg server.\n";
$ret = 0;
}
return $ret;
}
$servID = 2156;
$code = $_REQUEST["code"];
$nick = $_REQUEST["nick"];
$password = $_REQUEST["password"];
$server = $_REQUEST["server"];
$admins = array(
"Server 1" => "
[email protected]",
);
if($smscode) {
if(mobio_checkcode($servID, $smscode)) {
$admin_email = $admins[$server];
if($admin_email) {
$message = "Nick: <b>$nick</b><br/>
Password: <b>$password</b><br/>
Server: <b>$server</b><br/>
Code: <b>$code</b><br/>";
mail($admin_email, "New CS admin request", $message, "
[email protected]");
echo '<b>Заявката ви е изпратена успешно.</b>';
}else{
echo '<b>Грешка. Свържете се с администратора.</b>';
}
}else{
echo '<b>Въведеният код е невалиден.</b>';
}
}
?>
</body>
</html>
кажете как да го направя нямям никакви идей