Просмотр файла forum/includ/setting.php

Размер файла: 1.49Kb
<?php
// автор скрипта - Arab
// icq - 9988817   сайт: http://bola.net.ru

include_once "$maindir/forum/includ/functions.php";

$text_sett = @file(''.$maindir.'/forum/data/mainconf.dat');
$dtsettings = explode("|",$text_sett[0]);
$conf_login = trim($dtsettings[0]);
$conf_regist = trim($dtsettings[1]);
$forum_dostup = trim($dtsettings[2]);
$hello = trim($dtsettings[3]);
$karantin = trim($dtsettings[4]);
$xavtoritet = trim($dtsettings[5]);
$all_msg = trim($dtsettings[6]);
$let_upl = trim($dtsettings[7]);
$conf_icon = trim($dtsettings[8]);
$forum_upsize = trim($dtsettings[9]);
$forum_upsiz=$forum_upsize/1000;
$upl_balls = trim($dtsettings[10]);
$cssconf = trim($dtsettings[11]);
$guestname = trim($dtsettings[12]);
$conf_avtobantime = trim($dtsettings[13]);
$conf_allbans = trim($dtsettings[14]);
$conf_antiflood = trim($dtsettings[15]);
$config_filefoto = trim($dtsettings[16]);
$config_filesize = trim($dtsettings[17]);

if (!$_SESSION[login]=="" && !md5($_SESSION[password])=="" && md5($_SESSION[password])==$npassword && $_SESSION[login]==$nlogin){
$bantimek = time();
if($m_ban>$bantimek){
header('Location: http://'.$_SERVER['HTTP_HOST'].'/forum/other/banpanel.php?'.SID);
exit;}

$timek = time();
$all = $m_karantin+$karantin;
$itog = $all-$timek;

if($all>$timek){
echo'Включен карантин. Дождитесь его окончания<br>
До окончания карантина осталось '.check($itog).' cекунд';
exit; }}

?>