Exemple #1
0
if (!$_GET["s"]) {
    include "config.php";
    include "class/class.sql.php";
    $sql = new sql();
    include "class/class.core.php";
    $core = new core();
    include "class/class.form.php";
    $form = new form();
    include "class/class.pager.php";
    $pager = new pager();
    include "class/class.admin.php";
    $admin = new admin();
    include "class/class.site.php";
    $site = new site();
    if ($admin->online()) {
        $online_admin = $core->get_row("admins", "*", "WHERE id='" . $_SESSION["admin_id"] . "'");
    }
}
if ($_GET["dispatch"]) {
    if ($admin->online()) {
        $dispatch = explode('.', $_GET["dispatch"]);
        if ($admin->permission($_GET["dispatch"], $online_admin["group_id"]) == 1) {
            $module = $dispatch[0];
            $file = $dispatch[1];
            /* DEFINES */
            define("MODULE_FOLDER", "admin/modules/" . $module . "/");
            define("MODULE_DISPLAY_FOLDER", "admin/modules/" . $module . "/display/");
            define("MODULE_PROCESS_FOLDER", "admin/modules/" . $module . "/process/");
            define("MODULE_LINK", $module);
            $inc_css = "admin/modules/" . $module . "/module.css";
Exemple #2
0
<?php

include "config.php";
include "class/class.sql.php";
$sql = new sql();
include "class/class.core.php";
$core = new core();
include "class/class.form.php";
$form = new form();
include "class/class.pager.php";
$pager = new pager();
include "class/class.admin.php";
$admin = new admin();
include "class/class.site.php";
$site = new site();
if (!$admin->online()) {
    $core->location("login.php");
}
$online_admin = $sql->get_row("admins", "*", "WHERE id='" . $_SESSION["admin_id"] . "'");
if ($_GET["dispatch"] == "") {
    $dispatch = "home.home";
    $_GET["s"] = "display";
    $_GET["dispatch"] = "home.home";
} else {
    $dispatch = $_GET["dispatch"];
}
$dispatch = explode(".", $dispatch);
$active_module = $dispatch[0];
$site_general = $sql->get_row("site_general", "*", "WHERE id='1'");
?>
<!DOCTYPE html>
Exemple #3
0
<?php

if (!$_GET["s"]) {
    include "config.php";
    include "class/class.sql.php";
    $sql = new sql();
    include "class/class.core.php";
    $core = new core();
    include "class/class.form.php";
    $form = new form();
    // include("class/class.pager.php"); 	$pager = new pager;
    include "class/class.admin.php";
    $admin = new admin();
    include "class/class.site.php";
    $site = new site();
    if ($admin->online()) {
        $online_admin = $sql->get_row("admins", "*", "WHERE id='" . $_SESSION["admin_id"] . "'");
    }
}
if ($_GET["dispatch"]) {
    $dispatch = explode('.', $_GET["dispatch"]);
    $module = $dispatch[0];
    $file = $dispatch[1];
    if ($admin->online() || $module == "admins" && $file == "login") {
        /* DEFINES */
        define("MODULE_FOLDER", "admin/modules/" . $module . "/");
        define("MODULE_DISPLAY_FOLDER", "admin/modules/" . $module . "/display/");
        define("MODULE_PROCESS_FOLDER", "admin/modules/" . $module . "/process/");
        define("MODULE_LINK", $module);
        $inc = "admin/modules/" . $module . "/process/" . $file . ".php";
        if ($_GET["no_settings"] != 1) {