گذاشتم ولی بازم عمل نکرد
<?php
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')
{
$redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header('Location: ' . $redirect);
exit();
}
date_default_timezone_set('Asia/Tehran');
session_start();
include('inc/config.php');
include('inc/function.php');
include('inc/classes.php');
$giu = null;
$page = giu('page');
if($options['antiDDos'] == 'enable')antiDDos::start();
if($options['chat_close'] == 'false'){
if($page != 'admin' and $page != 'ajax' ){
if(is_file("theme/{$theme}/index.php")){include("theme/{$theme}/index.php");}
db::close();
exit();
}
}
register_shutdown_function('shutdown', getcwd());
if(is_file("pages/$page.php"))include("pages/$page.php");else include('pages/notfound.php');
?>






پاسخ با نقل قول
