View file bola/editsetting.php

File size: 813B
<?php

session_name("SID");
session_start();
require_once "../conf.php";
include_once "../config.php";
include_once "../template/login2.php";

if (!$_SESSION[uin]=="" && !md5($_SESSION[par])=="" && md5($_SESSION[par])==$provpar && $_SESSION[uin]==$provuin)
{
		if ($bola==555)
		{


$configdata="<?php\r\n".

"$"."msg=\"".$wmsg."\";                                //  Сообщений в окне чата\r\n".

"$"."ttf=\"".$wttf."\";             //  Шрифт\r\n".

"?>".



$fp=fopen("../conf.php","a+");
flock ($fp,LOCK_EX); 
ftruncate ($fp,0);
fputs($fp,$configdata);
fflush ($fp);
flock ($fp,LOCK_UN);
fclose($fp);

header ("Location: setting.php?yes&".SID);

}else{
header ("Location: ../index.php?".SID);
}
}else{
header ("Location: ../index.php?".SID);
}

?>