Your IP : 216.73.216.48


Current Path : /var/www/vlevski/enter/_old_files/
Upload File :
Current File : //var/www/vlevski/enter/_old_files/r.php

<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
//error_reporting(0);
error_reporting(E_ALL);
//ini_set('display_errors', 1);
?><!DOCTYPE HTML><html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>
			Сигнал за фиктивно записани ученици в област Ловеч
		</title>
		<script>
			var emv=1;
			var pmap=0;
			function echck(eid)
				{
					var emv=1;
					var at="@";
					var dot=".";
					var lat=eid.indexOf(at);
					var lstr=eid.length;
					var ldot=eid.indexOf(dot);
					var fdot=eid.charAt(eid.length-1);
					var dotk=eid.replace("@.","");
					var dotk=dotk.replace(".@","");
					if (eid.indexOf(at)==-1)
						{
							document.getElementById("pum").innerHTML="<a href='#' onmouseover='document.getElementById(\"pumt\").style.display=\"block\"; return true;' onmouseout='document.getElementById(\"pumt\").style.display=\"none\"; return true;'><img src='./images/n.png' width='25' height='25' border='0' alt='Невалиден e-mail' />";
							document.getElementById("pumt").innerHTML="<div style=\"position: absolute; top: 10px; left: 10px; overflow: hidden; width: 215px; height: 44px; font-size: 13px; z-index: 10; padding-top: 5px; padding-left: 55px; background: url('./images/a.png') no-repeat left top; color: #FFFFFF;\">Въведеният от Вас<br />e-mail е невалиден.</div>";
							emv=2;
						}
					else if (eid.indexOf(at)==-1 || eid.indexOf(at)==0 || eid.indexOf(at)==lstr)
						{
							document.getElementById("pum").innerHTML="<a href='#' onmouseover='document.getElementById(\"pumt\").style.display=\"block\"; return true;' onmouseout='document.getElementById(\"pumt\").style.display=\"none\"; return true;'><img src='./images/n.png' width='25' height='25' border='0' alt='Невалиден e-mail' />";
							document.getElementById("pumt").innerHTML="<div style=\"position: absolute; top: 10px; left: 10px; overflow: hidden; width: 215px; height: 44px; font-size: 13px; z-index: 10; padding-top: 5px; padding-left: 55px; background: url('./images/a.png') no-repeat left top; color: #FFFFFF;\">Въведеният от Вас<br />e-mail е невалиден.</div>";
							emv=2;
						}
					else if ((eid.indexOf(dot)==-1) || (eid.indexOf(dot)==0) || (eid.indexOf(dot)==lstr) || (fdot==".") || (dotk!=eid))
						{
							document.getElementById("pum").innerHTML="<a href='#' onmouseover='document.getElementById(\"pumt\").style.display=\"block\"; return true;' onmouseout='document.getElementById(\"pumt\").style.display=\"none\"; return true;'><img src='./images/n.png' width='25' height='25' border='0' alt='Невалиден e-mail' />";
							document.getElementById("pumt").innerHTML="<div style=\"position: absolute; top: 10px; left: 10px; overflow: hidden; width: 215px; height: 44px; font-size: 13px; z-index: 10; padding-top: 5px; padding-left: 55px; background: url('./images/a.png') no-repeat left top; color: #FFFFFF;\">Въведеният от Вас<br />e-mail е невалиден.</div>";
							emv=2;
						}
					else if (eid.indexOf(at,(lat+1))!=-1)
						{
							document.getElementById("pum").innerHTML="<a href='#' onmouseover='document.getElementById(\"pumt\").style.display=\"block\"; return true;' onmouseout='document.getElementById(\"pumt\").style.display=\"none\"; return true;'><img src='./images/n.png' width='25' height='25' border='0' alt='Невалиден e-mail' />";
							document.getElementById("pumt").innerHTML="<div style=\"position: absolute; top: 10px; left: 10px; overflow: hidden; width: 215px; height: 44px; font-size: 13px; z-index: 10; padding-top: 5px; padding-left: 55px; background: url('./images/a.png') no-repeat left top; color: #FFFFFF;\">Въведеният от Вас<br />e-mail е невалиден.</div>";
							emv=2;
						}
					else if (eid.substring(lat-1,lat)==dot || eid.substring(lat+1,lat+2)==dot)
						{
							document.getElementById("pum").innerHTML="<a href='#' onmouseover='document.getElementById(\"pumt\").style.display=\"block\"; return true;' onmouseout='document.getElementById(\"pumt\").style.display=\"none\"; return true;'><img src='./images/n.png' width='25' height='25' border='0' alt='Невалиден e-mail' />";
							document.getElementById("pumt").innerHTML="<div style=\"position: absolute; top: 10px; left: 10px; overflow: hidden; width: 215px; height: 44px; font-size: 13px; z-index: 10; padding-top: 5px; padding-left: 55px; background: url('./images/a.png') no-repeat left top; color: #FFFFFF;\">Въведеният от Вас<br />e-mail е невалиден.</div>";
							emv=2;
						}
					else if (eid.indexOf(dot,(lat+2))==-1)
						{
							document.getElementById("pum").innerHTML="<a href='#' onmouseover='document.getElementById(\"pumt\").style.display=\"block\"; return true;' onmouseout='document.getElementById(\"pumt\").style.display=\"none\"; return true;'><img src='./images/n.png' width='25' height='25' border='0' alt='Невалиден e-mail' />";
							document.getElementById("pumt").innerHTML="<div style=\"position: absolute; top: 10px; left: 10px; overflow: hidden; width: 215px; height: 44px; font-size: 13px; z-index: 10; padding-top: 5px; padding-left: 55px; background: url('./images/a.png') no-repeat left top; color: #FFFFFF;\">Въведеният от Вас<br />e-mail е невалиден.</div>";
							emv=2;
						}
					else if (eid.indexOf(" ")!=-1)
						{
							document.getElementById("pum").innerHTML="<a href='#' onmouseover='document.getElementById(\"pumt\").style.display=\"block\"; return true;' onmouseout='document.getElementById(\"pumt\").style.display=\"none\"; return true;'><img src='./images/n.png' width='25' height='25' border='0' alt='Невалиден e-mail' />";
							document.getElementById("pumt").innerHTML="<div style=\"position: absolute; top: 10px; left: 10px; overflow: hidden; width: 215px; height: 44px; font-size: 13px; z-index: 10; padding-top: 5px; padding-left: 55px; background: url('./images/a.png') no-repeat left top; color: #FFFFFF;\">Въведеният от Вас<br />e-mail е невалиден.</div>";
							emv=2;
						}
					else if (lstr<8)
						{
							document.getElementById("pum").innerHTML="<a href='#' onmouseover='document.getElementById(\"pumt\").style.display=\"block\"; return true;' onmouseout='document.getElementById(\"pumt\").style.display=\"none\"; return true;'><img src='./images/n.png' width='25' height='25' border='0' alt='Невалиден e-mail' />";
							document.getElementById("pumt").innerHTML="<div style=\"position: absolute; top: 10px; left: 10px; overflow: hidden; width: 215px; height: 44px; font-size: 13px; z-index: 10; padding-top: 5px; padding-left: 55px; background: url('./images/a.png') no-repeat left top; color: #FFFFFF;\">Въведеният от Вас<br />e-mail е невалиден.</div>";
							emv=2;
						}
					else
						{
							document.getElementById("pum").innerHTML="<img src='./images/y.png' width='25' height='25' border='0' alt='Валиден e-mail' />";
						}
				}
			function chm(ec)
				{
					var eid=ec;
					if ((eid==null) || (eid==""))
						{
							document.getElementById("pum").innerHTML="<img src='./images/n.png' width='25' height='25' border='0' alt='Не сте въвели e-mail! Регистрацията изисква e-mail.' />";
							document.getElementById("pumt").innerHTML="<div style=\"position: absolute; top: 10px; left: 10px; overflow: hidden; width: 215px; height: 44px; font-size: 13px; z-index: 10; padding-top: 5px; padding-left: 55px; background: url('./images/a.png') no-repeat left top; color: #FFFFFF;\">Въведеният от Вас<br />e-mail е невалиден.</div>";
						}
					else
						{
							echck(eid);
						}
				}
			function n(m, e, dec)
				{
					var key;
					var keychar;
					if (window.event)
						{
							key=window.event.keyCode;
						}
					else if (e)
						{
							key=e.which;
						}
					else
						{
							return true;
						}
					keychar = String.fromCharCode(key);
					if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27))
						{
							return true;
						}
					else if ((("0123456789").indexOf(keychar) > -1))
						{
							return true;
						}
					else if (dec && (keychar == "."))
						{
							return false;
						}
					else
						{
							return false;
						}
				}
			function cntf()
				{
					document.getElementById("ntf").style.display="none";
				}
			function chn(url)
				{
					var u=document.getElementById("u").value;
					var us=u;
					var usl=us.length;
					if (usl<5)
						{
							document.getElementById("pu").innerHTML="<a href='#' onmouseover='document.getElementById(\"put\").style.display=\"block\"; return true;' onmouseout='document.getElementById(\"put\").style.display=\"none\"; return true;'><img src='./images/n.png' width='25' height='25' border='0' alt='Първо име на Вашето дете' />";
							document.getElementById("put").innerHTML="<div style=\"position: absolute; top: 10px; left: 10px; overflow: hidden; width: 215px; height: 44px; font-size: 13px; z-index: 10; padding-top: 5px; padding-left: 55px; background: url('./images/a.png') no-repeat left top; color: #FFFFFF;\">Първо име<br />на Вашето дете.</div>";
						}
					else
						{
							document.getElementById("pu").innerHTML="<img src='./images/y.png' width='25' height='25' border='0' alt='Въведеното име е коректно' />"; 
						}
				}
			function rc()
				{
					location.reload();
				}
			function psa()
				{
					if (pmap==1)
						{
							document.getElementById("acca").title="Прослушайте кода";
							document.getElementById("acc").pause();
							document.getElementById("icc").src="/images/site/play.png";
							pmap=0;
							document.getElementById("acc").addEventListener("ended", function() { psa(); });
						}
					else
						{
							document.getElementById("acca").title="Спрете прослушването";
							document.getElementById("acc").play();
							document.getElementById("icc").src="/images/site/pauseo.png";
							pmap=1;
							document.getElementById("acc").addEventListener("ended", function() { psa(); });
						}
				}
			function psao(st)
				{
					if (st==1)
						{
							if (pmap==1)
								{
									document.getElementById("icc").src="/images/site/pauseo.png";
								}
						}
					else
						{
							if (pmap==1)
								{
									document.getElementById("icc").src="/images/site/pause.png";
								}
						}
				}
			function rnow()
				{
					var u=document.getElementById("u").value;
					var m=document.getElementById("m").value;
					var s=document.getElementById("s").value;
					var d=document.getElementById("d").value;
					var b=document.getElementById("b").value;
					var i=document.getElementById("i").value;
					var pu=document.getElementById("pu").innerHTML;
					var pun=pu.replace("n.png","");
					var pum=document.getElementById("pum").innerHTML;
					var pumn=pum.replace("n.png","");
					if ((u=="") || (m=="") || (s=="") || (d=="") || (b=="") || (i==""))
						{
							document.getElementById("ntf").style.display="block";
							document.getElementById("ntf").innerHTML="<div id=\"ntfi\" style=\"position: absolute; top: 0px; left: 0px; width: 480px; height: 20px; z-index: 12; background-color: #6A5ACD; color: #000000; font-size: 16px;\">Информацията не беше изпратена</div><br />Попълнете Вашето име, e-mail и въведете данни в полетата, след което опитайте отново.<input type=\"button\" name=\"sbmtok\" id=\"sbmtok\" style=\"position: absolute; top: 100px; left: 375px; width: 100px; height: 25px; z-index: 12; font-size: 16px; font-weight: bold; background-color: #0077CC; color: #FFFFFF; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px;\" value=\"ДОБРЕ\" onclick=\"cntf(); return true;\" />";
						}
					else if (pu!=pun)
						{
							document.getElementById("u").value="";
							document.getElementById("ntf").style.display="block";
							document.getElementById("ntf").innerHTML="<div id=\"ntfi\" style=\"position: absolute; top: 0px; left: 0px; width: 480px; height: 20px; z-index: 12; background-color: #6A5ACD; color: #000000; font-size: 16px;\">Информацията не беше изпратена</div><br />Некоректно попълнено поле за име.<br />Посочете върху знака &quot;X&quot;, за по-точна информация.<input type=\"button\" name=\"sbmtok\" id=\"sbmtok\" style=\"position: absolute; top: 100px; left: 375px; width: 100px; height: 25px; z-index: 12; font-size: 16px; font-weight: bold; background-color: #0077CC; color: #FFFFFF; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px;\" value=\"ДОБРЕ\" onclick=\"cntf(); return true;\" />";
						}
					else if (pum!=pumn)
						{
							document.getElementById("m").value="";
							document.getElementById("ntf").style.display="block";
							document.getElementById("ntf").innerHTML="<div id=\"ntfi\" style=\"position: absolute; top: 0px; left: 0px; width: 480px; height: 20px; z-index: 12; background-color: #6A5ACD; color: #000000; font-size: 16px;\">Информацията не беше изпратена</div><br />Некоректно попълнено поле e-mail.<br />Посочете върху знака &quot;X&quot;, за по-точна информация.<input type=\"button\" name=\"sbmtok\" id=\"sbmtok\" style=\"position: absolute; top: 100px; left: 375px; width: 100px; height: 25px; z-index: 12; font-size: 16px; font-weight: bold; background-color: #0077CC; color: #FFFFFF; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px;\" value=\"ДОБРЕ\" onclick=\"cntf(); return true;\" />";
						}
					else
						{
							document.getElementById("f").submit();
							document.getElementById("mt").style.display="none";
							document.getElementById("w").style.display="block";
						}
				}
		</script>
		<style>
			body
				{
					background: none transparent;
					color: #000000;
					cursor: default;
				}
			input, select, textarea
				{
					background-color: #FFFFFF;
					color: #000000;
					font-family: Verdana, serif;
					font-size: 15px;
				}
			div
				{
					background-color: transparent;
					color: #000000;
					font-family: Verdana, serif;
					font-size: 11px;
					text-align: left;
				}
			a
				{
					background-color: transparent;
					color: #000000;
					font-family: Verdana, serif;
					font-size: 11px;
					text-align: left;
					text-decoration: underline;
				}
			a:hover
				{
					text-decoration: none;
				}
		</style>
	</head>
	<body onselect="return false;" scroll="no">
   <iframe name="qs" id="qs" src="./l.html" style="position: absolute; width: 0px; height: 0px; top: 0px; left: 0px; border: 0px; z-index: 1;"></iframe>
   <div id="mt" style="position: absolute; top: 0px; left: 20px;">
   <?php
    $sp=isset($_POST["sp"]) ? $_POST["sp"] : "";
    $rid=isset($_POST["rid"]) ? $_POST["rid"] : "";
    $a=isset($_POST["a"]) ? $_POST["a"] : "";
    if ($sp=="2")
     {
     }
    else
     {
      $num=rand(1000000, 9999999);
      $r_id=uniqid(md5(time()));
      $spth="/var/www/vlevski/enter/snd/";
      $m_1=substr("$num",0,1);
	  $m_2=substr("$num",1,1);
	  $m_3=substr("$num",2,1);
	  $m_3=substr("$num",2,1);
      $m_4=substr("$num",3,1);
      $m_5=substr("$num",4,1);
      $m_6=substr("$num",5,1);
	  $m_7=substr("$num",6,1);
      $r_command="/usr/bin/cat ".$spth."s.mp3 ".$spth."".$m_1.".mp3 ".$spth."s.mp3 ".$spth."".$m_2.".mp3 ".$spth."s.mp3 ".$spth."".$m_3.".mp3 ".$spth."s.mp3 ".$spth."".$m_4.".mp3 ".$spth."s.mp3 ".$spth."".$m_5.".mp3 ".$spth."s.mp3 ".$spth."".$m_6.".mp3 ".$spth."s.mp3 ".$spth."".$m_7.".mp3 ".$spth."s.mp3 > ".$spth."abot/".$r_id."p1.mp3";
      $m_c=@system("$r_command", $dont_print);
      $r_command="/usr/bin/ffmpeg -i ".$spth."abot/".$r_id."p1.mp3 -f wav -ab 8k -ar 8000 -ac 1 ".$spth."abot/".$r_id."p1.wav";
      $m_c=@system("$r_command", $dont_print);
      $ns=time();
	  $ns=$ns%60;
      $r_command="/usr/bin/sox -m -v 1 ".$spth."abot/".$r_id."p1.wav -v 1 ".$spth."n".$ns.".wav ".$spth."abot/".$r_id.".wav";
      $m_c=@system("$r_command", $dont_print);
      $r_command="rm ".$spth."abot/".$r_id."p1.* -f";
      $m_c=@system("$r_command", $dont_print);
	  $r_command="/usr/bin/ffmpeg -i ".$spth."abot/".$r_id.".wav -codec:a libmp3lame -ar 8000 -ac 1 -ab 8k ".$spth."abot/".$r_id.".mp3";
      $m_c=@system("$r_command", $dont_print);
      $r_command="rm ".$spth."abot/".$r_id.".wav -f";
      $m_c=@system("$r_command", $dont_print);
      $r_command="find ".$spth."abot/*.mp3 -amin +15 -exec rm -f {} \;";
      $m_c=@system("$r_command", $dont_print);
      include("./conn.php");
      $tt=time();
      $sql="INSERT INTO security_images VALUES('".$r_id."', '".$num."', '".$tt."', 'W')";
      @mysqli_query($db, $sql);
     }
    if ($sp=="2")
     {
      include("./conn.php");
      $r_id = $rid;
      if (strlen($r_id)!=45)
       {
        print("<div id=\"wca\" style=\"position: absolute; top: 120px; left: 0px; width: 450px; height: 100px; z-index: 2; text-align: center;\">");
        print("Опит за неправомерен достъп!<br /><br />");
        print("<a href=\"./r.php\" title=\"Започни отначало!\">Започни отначало!</a>");
        print("</div></body></html>");
        exit;
       }
      $user_number=htmlspecialchars($a);
      $user_number=trim($user_number);
      $check_number=str_replace(".", "", $user_number);
      $check_number=str_replace(",", "", $check_number);
      if (($user_number!="") && ((!is_numeric($user_number)) || ($check_number!=$user_number)))
       {
        print("<div id=\"wca\" style=\"position: absolute; top: 120px; left: 0px; width: 450px; height: 100px; z-index: 2; text-align: center;\">");
        print("Кодът трябва да съдържа само числа!<br><br>");
        print("<a href=\"./r.php\" title=\"Започни отначало!\">Започни отначало!</a>");
        print("</div></body></html>");
        exit;
       }
      $sql="SELECT `security_images` FROM `security_images` WHERE (`status`='W' AND `request_id`='".$r_id."')";
      $tmp_rs=@mysqli_query($db, $sql) or die('Грешка при изпълнението!');
	  $number="Wr0ng_123.456.788";
      while ($numb=mysqli_fetch_row($tmp_rs))
       {
        $number=$numb[0];
       }
      if ($number==$user_number)
       {
        // Отбележи като 'Approved' \\
        $tt=time();
        $tt=$tt-3000;
        @mysqli_query($db, "UPDATE `security_images` SET `status`='A' WHERE `request_id`='".$request_id."'") or die("Грешка при обновяването!");
        @mysqli_query($db, "DELETE FROM `security_images` WHERE `ts`<'".$tt."' AND `status`='A'") or die("Грешка при изтриването!");
        $err_code=1;
       }
      else
       {
        // Отбелязване като 'Not Approved' \\
        $tt=time();
        $tt=$tt-3000;
        @mysqli_query($db, "UPDATE `security_images` SET `status`='N' WHERE `request_id`='".$request_id."'") or die("Грешка при обновяване!");
        @mysqli_query($db, "DELETE FROM `security_images` WHERE `ts`<'".$tt."'") or die("Грешка при изтриването!");
        $err_code=2;
       }
      if ($err_code==2)
       {
        print("<div id=\"wca\" style=\"position: absolute; top: 80px; left: 0px; width: 520px; height: 100px; z-index: 2; font-size: 16px; text-align: center;\">");
        print("<b><i>Въведените цифри са грешни!</i></b><br /><br />");
        $sp="";
        print("<a href=\"./r.php\" title=\"Опитайте отново\" style=\"font-size: 16px;\">Опитайте отново</a>");
        print("</div></body></html>");
        exit;
       }
      else
       {
   ?>
   <form id="f" action="./addr.php" method="post" target="qs">
   	<div id="stn" style="position: absolute; top: 10px; left: 320px; width: 200px; height: 20px; z-index: 2; font-size: 16px; text-align: right;">Стъпка 2 от общо 3</div>
	<div id="rg" style="position: absolute; top: 5px; left: 0px; width: 450px; height: 50px; z-index: 3; font-size: 22px;">Пропускателен<br />режим</div>
	<div id="ntf" style="position: absolute; display: none; top: 59px; left: 2px; width: 480px; height: 130px; z-index: 11; background-color: #FFFFFF; color: #000000; font-size: 15px; border: dashed #000000 2px; opacity: 0.9; filter: alpha(opacity=90);">&nbsp;</div>
	<div id="pu" style="position: absolute; top: 59px; left: 485px; width: 25px; height: 25px; z-index: 3;">&nbsp;</div>
	<div id="put" style="position: absolute; display: none; top: 50px; left: 230px; width: 243px; height: 64px; z-index: 9; overflow: hidden; background: url('./images/tt.png') top left;">&nbsp;</div>
	<div id="pum" style="position: absolute; top: 95px; left: 485px; width: 25px; height: 25px; z-index: 3;">&nbsp;</div>
	<div id="pumt" style="position: absolute; display: none; top: 86px; left: 230px; width: 243px; height: 64px; z-index: 9; overflow: hidden; background: url('./images/tt.png') top left;">&nbsp;</div>
	<div id="utxt" style="position: absolute; top: 66px; left: 0px; width: 160px; height: 20px; z-index: 2; font-size: 14px;">Първо име на Вашето дете:</div>
	<div id="mtxt" style="position: absolute; top: 134px; left: 0px; width: 160px; height: 20px; z-index: 2; font-size: 14px;">ЕГН на Вашето дете:</div>
	<input type="text" name="u" id="u" maxlength="30" style="position: absolute; top: 59px; left: 165px; width: 315px; height: 25px; z-index: 2; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border: #000000 solid 1px;" onblur="if (this.value=='') { document.getElementById('ntf').innerHTML='&nbsp;'; return true; } else { chn(this.value); return true; }" />
	<input type="text" name="t" id="t" maxlength="10" style="position: absolute; top: 129px; left: 165px; width: 315px; height: 25px; z-index: 2; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border: #000000 solid 1px;" onkeypress="return n(this, event)" />
	<input type="button" name="sbmt" id="sbmt" style="position: absolute; top: 201px; left: 280px; width: 200px; height: 30px; z-index: 2; font-size: 16px; font-weight: bold; background-color: #0077CC; color: #FFFFFF; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px;" value="Изпратете" onclick="rnow()" />
   </form>
   </div>
   <div id="w" style="display: none;">
	<div id="mw" style="position: absolute; top: 0px; left: 20px; width: 520px; height: 450px; font-size: 12px; text-align: center; font-size: 16px; overflow: hidden;">
	<div id="stnw" style="position: absolute; top: 10px; left: 320px; width: 200px; height: 20px; z-index: 2; font-size: 16px; text-align: right;">Стъпка 2 от общо 3</div>
	<div id="rgw" style="position: absolute; top: 5px; left: 0px; width: 450px; height: 50px; z-index: 3; font-size: 22px;">Сигнал за фиктивно записани<br />ученици в област Ловеч</div>
	<br /><br /><br /><br />Моля, изчакайте...<br /><br />Сървърът изпраща сигнала.</div>
   </div>
   <?php
       }
     }
    else
     {
   ?>
 <form action="./r.php" method="post" name="efrm" id="efrm">
 	<div id="stn" style="position: absolute; top: 10px; left: 320px; width: 200px; height: 20px; z-index: 2; font-size: 16px; text-align: right;">Стъпка 1 от общо 3</div>
	<div id="rg" style="position: absolute; top: 5px; left: 0px; width: 450px; height: 50px; z-index: 3; font-size: 22px;">Пропускателен<br />режим</div>
	<div id="cpos" style="position: absolute; top: 80px; left: 275px; width: 250px; height: 50px; z-index: 2;">
	<?php
         print("<audio id=\"acc\" style=\"width: 0px; height: 0px; border: none;\" src=\"./snd/abot/".$r_id.".mp3\" type=\"audio/mpeg; codecs='mp3';\"></audio><a href=\"javascript: rc();\" title=\"Презаредете кода\"><img src=\"./i.php?rid=".$r_id."\" border=\"0\" alt=\"Презаредете кода\" style=\"position: absolute; top: 0px; left: 0px; width: 200px; height: 50px; z-index: 5; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border: #0077CC solid 1px; \" /></a><a id=\"acca\" href=\"javascript: psa();\" onmouseover=\"psao(1); return true;\" onmouseout=\"psao(0); return true;\" title=\"Прослушайте кода\"><img id=\"icc\" src=\"/images/site/play.png\" border=\"0\" alt=\"Прослушайте кода\" style=\"position: absolute; top: 0px; left: 200px; width: 50px; height: 50px; z-index: 5; border: none;\" /></a>");
         print("<input type=\"hidden\" name=\"rid\" value=\"$r_id\" />");
        ?>
	</div>
	<div id="etxt" style="position: absolute; top: 152px; left: 0px; width: 255px; height: 40px; z-index: 2; font-size: 16px;">Въведете изписаните цифри:<br /><i style="font-size: 10px;">* можете и да ги чуете от бутона по-горе</i></div>
	<input type="text" name="a" id="a" maxlength="7" autocomplete="off" style="position: absolute; top: 147px; left: 280px; width: 200px; height: 25px; z-index: 2; text-align: center; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border: #000000 solid 1px;" onkeypress="return n(this, event)" /><input type="hidden" name="sp" value="2" />
	<input type="button" name="sbmt" id="sbmt" style="position: absolute; top: 200px; left: 280px; width: 200px; height: 30px; z-index: 2; font-size: 16px; font-weight: bold; background-color: #0077CC; color: #FFFFFF; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px;" value="Продължете" onclick="document.getElementById('efrm').submit();" />
 </form>
   <?php
     }
   ?>
	</body>
</html>