HEX
Server: Apache/2.4.59 (Debian)
System: Linux skycube.cz 4.19.0-25-amd64 #1 SMP Debian 4.19.289-2 (2023-08-08) x86_64
User: ilya (534)
PHP: 7.3.31-1~deb10u7
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: /var/www/ilya/data/www/povoleni.com/modules/verify/index.inc
<?

$result = query("SELECT * FROM `entries` WHERE `verify`='".$_GET['code']."' AND `status`=1;");

if(mysql_num_rows($result)==1) {
	$data = mysql_fetch_array($result);
	
	query("UPDATE `entries` SET `status`=2 WHERE `id`='".$data['id']."';");
	
	$msg = $index_verify_msg_ok_1." ".get_application_number($data)." ".$index_verify_msg_ok_2;
	}
else
	$error = $index_verify_error;
	
$types = array("DP","PP","TP");	
$skin_html_type = "";	

foreach($types as $t) {
	if($t==$type)
		$skin_html_type .= "<option selected>".$t."</option>\r";
	else
		$skin_html_type .= "<option>".$t."</option>\r";
	}

$years = array(date("Y"),date("Y")-1);
$skin_html_year = "";

foreach($years as $y) {
	if($y==$year)
		$skin_html_year .= "<option selected>".$y."</option>\r";
	else
		$skin_html_year .= "<option>".$y."</option>\r";
	}	
	
if($msg!='')
	$temp_html .= '<div class="alert alert-success">'.$msg.'</div>';
if($error!='')
	$temp_html .= '<div class="alert alert-error">'.$error.'</div>';
	
$temp_html .= preg_replace("/{%(\w+)%}/ee", "$\\1",_html("index.htm",0));
_html_design($temp_html);

?>