View file fnc/adm/adm_modul_down_rass_edit.php

File size: 443B
<?php
include"../../sys/fnc.php";
if($user[leval]==4)
{
	$rass=filtr($_POST['rass']);
	if($rass!="")
	{
		$down_conf = $db->query("select * from `down_conf`");
		if($down_conf->num_rows==0)
		{
			$db->query("insert into `down_conf`(`rass`) values('$rass')");
		}
		else
		{
			$db->query("update `down_conf` set `rass`='$rass' where `id`='1'");
		}
	}
}
else
{
	echo'<h3>Вы ошиблись адресом!</h3>';
}
?>