Файл: index.php
Строк: 16
<?php
/**
* @author Moroz Taras (-= MTV =-)
*/
namespace functions;
/*
error_reporting(E_ALL);
ini_set("display_errors", 1);
set_time_limit(0);
*/
require_once ('system/core.php');
$act = (isset($_GET['act']) ? a_filter_url($_GET['act']) : 'welcome');
ob_start();
if(!empty($act)) {
$content = str_replace('\', '/', __DIR__) . '/modules/' . strtolower($act) . '.php';
if(!is_file($content)) {
exit('Error 404.');
}
include_once ($content);
} else {
exit('Request is empty.');
}
ob_end_flush();