Example #1
0
        $main_tpl->parse("H_ADMIN_PANEL", "B_ADMIN_PANEL");
    }
    // Tournament
    $main_tpl->set_var("I_ID_SEASON", $season['id']);
    $main_tpl->parse("H_TOURNAMENT_PANEL", "B_TOURNAMENT_PANEL");
    // Latest matches panel
    $_REQUEST['mod'] = "matches";
    $_REQUEST['act'] = "latest_matches";
    $_REQUEST['opt'] = "";
    $main_tpl->set_var("I_LATEST_MATCHES", execAction());
}
// Root navigation
if ($user['usertype_root']) {
    $main_tpl->set_var("I_ID_SEASON", $season['id']);
    $main_tpl->parse("H_ROOT_PANEL", "B_ROOT_PANEL");
}
// User panel
$_REQUEST['mod'] = "users";
$_REQUEST['act'] = "show";
$_REQUEST['opt'] = "";
$main_tpl->set_var("I_USER", execAction());
// Tourney / season name
$main_tpl->set_var("I_TOURNEY_NAME", $cfg['tourney_name']);
$main_tpl->set_var("I_ID_SEASON", "");
$main_tpl->set_var("I_SEASON_NAME", "");
if (isset($season)) {
    $main_tpl->set_var("I_ID_SEASON", $season['id']);
    $main_tpl->set_var("I_SEASON_NAME", $season['name']);
}
// Parse and print the site
$main_tpl->pparse("PAGE", "F_INDEX");
Example #2
0
<?php

$config = (include "config.php");
include "functions.php";
include "mysql.php";
define("CSS", "/view/css");
define("JS", "/view/js");
define("IMAGE", "/view/image");
include ROOT . "/controllers/Controller.php";
$dbconf = $config['dbconfig'];
$dbcon = connectMysql($dbconf);
$route = getRoute();
ob_start();
execAction($route);
$output = ob_flush();
Example #3
0
<?php

require "inc/inc.php";
// Template files
$main_tpl = new Template();
$main_tpl->set_file("F_FULL", $cfg['full_template_file']);
$main_tpl->set_var("I_TOURNEY_NAME", $cfg['tourney_name']);
$main_tpl->set_var("I_SEASON_NAME", "");
if (isset($season)) {
    $main_tpl->set_var("I_SEASON_NAME", $season['name']);
}
// Default action, if none is set
if (!$_REQUEST['mod'] or !$_REQUEST['act']) {
    $_REQUEST['mod'] = "news";
    $_REQUEST['act'] = "view";
    $_REQUEST['opt'] = "1";
}
$main_tpl->set_var("I_CONTENT", execAction());
// Parse and print the site
$main_tpl->pparse("PAGE", "F_FULL");