- ";
if($files)foreach ($pages[$_GET['id']]["Childs"] as $child)
{
echo '
- '.$pages[$child]["Caption"].' '; } echo "
if (!isset($_GET['id'])) { $_GET['id'] = "Page98"; } include "inc/engine.php"; $pages = readPages(); ?>
include "inc/menu.php"; ?>
outMenu("data/menu.xml"); ?>
![]() Официальный канал Витебского городского исполнительного комитета
QR — код для оценки качества оказания медицинской помощи в ГУЗ «Витебской городской центральной поликлиники»
![]() ![]() ![]() '; $view_res=0; if (isset($_POST['view_res']) and is_numeric($_POST['id'])) $view_res=1; if (isset($_POST['vote']) and is_numeric($_POST['item']) and is_numeric($_POST['id'])) { $f_name="vote".$_POST['id'].".txt"; $f_ip="vote".$_POST['id']."_ip.txt"; $ip=$_SERVER['REMOTE_ADDR']; $fh_ip=fopen($f_ip,"a+"); flock($fh_ip,LOCK_EX); fseek($fh_ip,0); while (!feof($fh_ip)) $file_ip=fread($fh_ip,4096); if (array_search($ip,explode(",", $file_ip))!==FALSE) { $message="Вы уже голосовали! "; } else if (file_exists($f_name)) { $fh=fopen($f_name,"a+"); flock($fh,LOCK_EX); fseek($fh,0); while (!feof($fh)) $file=fread($fh,4096); $file=explode(",", $file); if ($_POST['item']>=0 and $_POST['item'] "; } $view_res=1; flock($fh_ip,LOCK_UN); fclose($fh_ip); } if ($view_res==1) { $f_name="vote".$_POST['id'].".txt"; if (file_exists($f_name)) { $fh=fopen($f_name,"a+"); flock($fh,LOCK_EX); fseek($fh,0); while (!feof($fh)) $file=fread($fh,4096); flock($fh,LOCK_UN); fclose($fh); $file=explode(",", $file); $summ=0; for ($n=0; $n |
echo ''.$pages[$_GET['id']]["Caption"].'';
$incpath = "data/pages/".$_GET['id'].".html";
if (file_exists($incpath))
{
include $incpath;
}
else
{
echo "
|