Просмотр файла pages/privat_file.php

Размер файла: 0.99Kb
<?php
/************************************************/
//    show reply mod. by demeros                                         //
/************************************************/		
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/antidos.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/rprivat.php";


if ($provlog==$_SESSION['log'] && $provpar==md5($_SESSION['par']) && $_SESSION['log']!="" && md5($_SESSION['par'])!=""){
$name=check($name);
$name1=check($name1);
$log1=$log;
if(!empty($name1)){$name=$name1;$log1="system_mail";}
if(is_file("$config_add_privat_fpath/$log1.$name"))
{$gf="$config_add_privat_fpath/$log1.$name";
header("Location: $gf");exit;

}
else{header ("Location: ../index.php?isset=404&".SID); exit;}
}else {
header ("Location: ../index.php?isset=404&".SID); exit;
}
?>