Exemple #1
0
function main()
{
    global $global, $smarty;
    set_global();
    include_all('admin/class/parent');
    include_all('admin/class');
    set_more_global();
    $path = 'admin/admin.php';
    if ($global['url'] != '') {
        $path2 = 'admin/' . $global['channel'] . '.php';
        if (file_exists($path2)) {
            $path = $path2;
        }
    }
    include $path;
}
Exemple #2
0
function main()
{
    global $global, $smarty;
    set_global();
    if (S_HALF_STATIC) {
        if ($global['url'] == '') {
            if (S_FLASH != 1) {
                $path = '/' . S_URL_SUFFIX;
            } else {
                $path = '/flash.html';
            }
        } else {
            $path = $global['url'];
        }
        $path = 'html' . $path;
        if (substr($path, -1) == '/') {
            $path .= S_URL_SUFFIX;
        }
        if (file_exists($path)) {
            include $path;
            exit;
        } else {
            ob_start();
        }
    }
    if (S_FLASH && $_SERVER['REQUEST_URI'] == S_ROOT) {
        $path = 'index/flash.php';
    } else {
        include_all('index/class/parent');
        include_all('index/class');
        set_more_global();
        $path = 'index/' . $global['channel'] . '.php';
        if ($global['url'] != '') {
            if (!file_exists($path)) {
                $path = 'index/' . $global['original'] . '.php';
            }
        }
    }
    include $path;
}