Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
$caus = $_REQUEST["caus"];
$subject = $_REQUEST["subject"];
$message = $_REQUEST["message"];
$from = $_REQUEST["from"];
$tel = $_REQUEST["tel"];
$verif_box = $_REQUEST["verif_box"];
$message = stripslashes($message);
$subject = stripslashes($subject);
$from = stripslashes($from);
$tel = stripslashes($tel);
$caus = stripslashes($caus);
if (!$subject)
{
echo "Моля, върнете се и въведете име . <a href=\"javascript:history.go(-1);\"><< Обратно</a>
";
exit;
}
else
{
if (!eregi("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,6})$", $from))
{
print (" E-mail $from не е валиден! <a href=\"javascript:history.go(-1);\"><< Обратно </a>
");
exit;
}
else
{
if (!$message)
{
echo "Моля, върнете се и въведете съобщение . <a href=\"javascript:history.go(-1);\"><< Обратно</a>
";
exit;
}
else
{
if (!$verif_box)
{
echo "Моля, върнете се и въведете пътвърдителен код. <a href=\"javascript:history.go(-1);\"><< Обратно</a>
";
exit;
}
else
{
if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){
mail("profistroi@yahoo.com", 'Online Form: '.$subject, "-> От:\n".$subject."\n\n"."-> Причина за съобщението:\n".$caus."\n\n"."->Телефон:\n".$tel."\n\n"."-> Съобщение:\n".$message, "From: $from");
setcookie('tntcon','');
} else {
header("Location:".$_SERVER['HTTP_REFERER']."?subject=$subject&from=$from&message=$message&tel=$tel&wrong_code=true");
exit; } } } } } }
?>
<?php
header('Content-type: image/jpeg');
$width = 50;
$height = 24;
$my_image = imagecreatetruecolor($width, $height);
imagefill($my_image, 0, 0, 0xFFFFFF);
for ($c = 0; $c < 40; $c++){
$x = rand(0,$width-1);
$y = rand(0,$height-1);
imagesetpixel($my_image, $x, $y, 0x000000);
}
$x = rand(1,10);
$y = rand(1,10);
$rand_string = rand(1000,9999);
imagestring($my_image, 5, $x, $y, $rand_string, 0x000000);
setcookie('tntcon',(md5($rand_string).'a4xn'));
imagejpeg($my_image);
imagedestroy($my_image);
?>