<?php
if (!isset($_SERVER['PHP_AUTH_USER'])) {
    header('WWW-Authenticate: Basic realm="My Realm"');
    header('HTTP/1.0 401 Unauthorized');
    echo 'Authentification required.';
    exit;
} else {
    // config!
    $password='test';
    $user='test';
    $upload_dir=$_SERVER['DOCUMENT_ROOT'].'/tmp/';
    //
    if($_SERVER['PHP_AUTH_USER']!=$user ||$_SERVER['PHP_AUTH_USER']!=$password){
        echo 'No user found, sorry.';
        exit;
    }
    $filename=$_SERVER['QUERY_STRING'];
    if(!is_readable($upload_dir.$filename)){
        echo 'No file found, sorry.';
        exit;
    }
    header('Content-type: text/csv; charset=utf-8');
    header('Content-Disposition: attachment; filename="' . $filename . '"');
    header('Content-Transfer-Encoding: binary');
    header('Expires: 0');
    header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
    header('Pragma: public');
    header('Content-Length: ' . filesize($upload_dir.$filename));
    readfile($upload_dir.$filename);
}count=2,<2;count=3,<300,>44$current=45; // значение, которое сравниваем
$data=['count'=>3]; // внешние данные
if( ($data['count']==2 && $current<2) || ($data['count']==3 &&$current>44 && $current<300)){
    // ...
}function evaluate($current,$cond,$data=[]){
    $res=false;
    foreach(explode(';',$cond) as $or){ //or
        foreach(explode(',',$or) as $and) { //and
            if(preg_match('/^(.*?)(<=|>=|<|>|=)(.*?)$/',$and,$m)){
                $a=trim($m[1]);$b=trim($m[3]);
                if(empty($a)) $a=$current;
                else if(is_numeric($a)) $a=0+$a;
                else if(isset($data[$a])) $a=$data[$a];
                else {
                    $res=false; break;
                }
                if(empty($b)) $b=$current;
                else if(is_numeric($b)) $b=0+$b;
                else if(isset($data[$b])) $b=$data[$b];
                else {
                    $res=false; break;
                }
                if($m[2]=='<=') $res=$a<=$b;
                else if($m[2]=='>=') $res=$a>=$b;
                else if($m[2]=='>') $res=$a>$b;
                else if($m[2]=='<') $res=$a<$b;
                else if($m[2]=='=') $res=$a==$b;
            } else {
                $res=false;
                //throw new \Exception('Некорректное условие в строке '.$and)
            }
            if(!$res) break; // выход по AND
        }
        if($res) break; // выход по OR
    }
    return $res;
}
$data=['count'=>3];
var_dump(true===evaluate(45,'count=2,<2;count=3,<300,>44', $data));
var_dump(true===evaluate(1,'<2'));
var_dump(true===evaluate(1,'>3;<2,>1;<2'));days.toString().replace(/\d/gi, (substring) => `${substring}`);
daysVal.innerHTML = '<span>'+days.toString().padStart(2,'0')+'</span>';
    hoursVal.innerHTML = '<span>'+hours.toString().padStart(2,'0')+'</span>';
    minutesVal.innerHTML = '<span>'+minutes.toString().padStart(2,'0')+'</span>';<?php die("Access Denied"); ?>#x#a:2:{s:6:"result";a:227:{i:0;O:8:"stdClass":8:{s:2:"id";s:3:"870";s:5:"title";s:23:"БПВР-вопросы";s:6:"module";s:13:"mod_widgetkit";$(function() {
        var valMap = [0, 1, 3, 6, 10, 15, 22, 30,40, 50]; // более равномерно в логарифмической шкале
			// 0..1000 --> 0..50 (true, обратно false)
				const step=2, 
							w=[1000/Math.pow(50,1/step),50/Math.pow(1000,step)] ;
			  function _conv(x, forvard){
					if(!forvard)
						return Math.pow(x,1/step)*w[0];
					else
						return Math.round(Math.pow(x,step)*w[1]);
				}
			
			  $("#slider").slider({
                max: 1000,//valMap.length - 1,
                slide: function(event, ui) {
                   $("#radiusAmount").val(_conv(ui.value,true));
                }
            })
            .each(function() {
                var opt = $(this).data().uiSlider.options;
                var vals = opt.max - opt.min;
                var arrayLength = valMap.length;
								for (var i = 0; i < arrayLength; i++) {
                    var el = $('<label>' + (valMap[i]) + '</label>').css('left', (_conv(valMap[i],false) / 10 ) + '%');
                    $("#slider").append(el);
                }
            });
			$(document).on('change','#radiusAmount', function(){
					$("#slider").slider('value',_conv($(this).val(), false))	;				})
    });Тип геообъекта: house
VM75:65 Название объекта: 1-й Волконский переулок, 10
VM75:66 Описание объекта: Россия, Москва
VM75:67 Полное описание объекта: Россия, Москва, 1-й Волконский переулок, 10
VM75:72 
Государство: Россия
VM75:73 Населенный пункт: Москва
VM75:74 Адрес объекта: Россия, Москва, 1-й Волконский переулок, 10
VM75:75 Наименование здания: -
VM75:76 Номер здания: 10$results_file='results.php';
$result=include_once($results_file);
$result[$current_user_id]=['post'=>$_POST, 'time'=>time()];
file_put_contents($results_file, '<'."?php\nreturn ".var_export($result,true).';')<?php
return [];if (preg_match('/\.gz$/', $name)) {
                $_handle = fopen($name, "rb");
                fseek($_handle, filesize($name) - 4);
                $x = unpack("L", fread($_handle, 4));
                $this->finish = $x[1];
                fclose($_handle);
                $handle = gzopen(
                    $handle, 'r'
                );
            } else {
                $this->finish = filesize($name);
                $handle = fopen($name, 'r');
            }$text=preg_replace('~\[CODE\](.*?)\[/CODE\]~si', '<pre>$1</pre>',$text);