File size: 563B
<?
foreach (array('start', 'compress', 'sess', 'settings', 'db_connect', 'ipua', 'fnc', 'user') as $inc) {
require_once "../../sys/inc/$inc.php";
}
if (isset($user) && !isset($_GET['func']) && $pdo->query(("SELECT COUNT(id_apps) FROM `user_apps`"), 0)->fetchColumn() > 0) {
$func = 'user';
} else {
$func = (isset($_GET['func']) ? text($_GET['func']) : 'list');
}
if (is_file('inc/' . $func . '.php')) {
require 'inc/' . $func . '.php';
} else {
header('Location: /index.php');
exit;
}
include_once '../../sys/inc/tfoot.php';
?>