Example #1
0
<?php

date_default_timezone_set("Asia/Bangkok");
if (preg_match("(/?@)", $_SERVER['REQUEST_URI'])) {
    include_once ".require/SyncConfig.php";
    $database = new fsDigitalLover();
    $session = new Session();
    list($url, $ajaxName) = explode('/require.php?@', $_SERVER['REQUEST_URI']);
    @(list($ajaxName, $comName) = explode('!', $ajaxName));
    if ($comName != NULL) {
        if (file_exists('component/com_' . $comName . '/' . $ajaxName . '.php')) {
            include 'language/' . $database->profile("language");
            include_once 'component/com_' . $comName . '/' . $ajaxName . '.php';
        } else {
            echo 'Component not Found.';
        }
    } else {
        ob_start();
        $profile = $database->query("SELECT * FROM dl_profiles LIMIT 1;");
        include 'language/' . $database->profile("language");
        if (file_exists('skin/css/mod/' . $ajaxName . '.css')) {
            echo '<link rel="stylesheet" type="text/css" href="skin/css/mod/' . $ajaxName . '.css" />';
        }
        if (file_exists('.require/' . $ajaxName . '.php')) {
            include_once '.require/' . $ajaxName . '.php';
        } else {
            echo $ajaxName . ', not Found.';
        }
        ob_end_flush();
    }
}
Example #2
0
<?php

if (preg_match("(/?!)", $_SERVER['REQUEST_URI']) || $_SERVER['REQUEST_URI'] == '/') {
    ob_start();
    ?>
<!DOCTYPE HTML><html><head><?php 
    error_reporting(0);
    date_default_timezone_set("Asia/Bangkok");
    include_once ".require/SyncConfig.php";
    $dlfsv4 = new fsDigitalLover();
    //            $GLOBALS Site.             \\
    // ------------------------------------- \\
    $GLOBALS['component_name'] = 'error';
    $GLOBALS['error_type'] = 0;
    // component_name (Not Found Component in database),
    // component_folder (Not Found Component include),
    $GLOBALS['menu_id'] = 0;
    $GLOBALS['title_site'] = 'NULL';
    $GLOBALS['ACCESS'] = NULL;
    // ------------------------------------- \\
    $dlfsv4->Initialize();
    $dlfsv4->Header();
    $dlfsv4->IncludeScripts();
    ?>
</head><body><?php 
    $dlfsv4->HTML();
    ?>
</body></html><?php 
    ob_end_flush();
}