Exemplo n.º 1
0
            die(gb2utf8("你没有后台权限"));
        }
        Showmsg("你没有后台权限", 1, "admin.php");
    }
    $actionall = explode(",", $sql_pop['group_authority']);
    if (!in_array($action, $actionall) && $action != 'index' && $action != 'login' && $sql_pop['group_system'] != 'administrator' && $sql_pop['group_authority'] != 'all') {
        $action = "login";
        if ($_GET['read'] == '1') {
            die(gb2utf8("你没有功能管理权限"));
        }
        Showmsg("你没有后台权限", 1, "admin.php");
    }
    $smarty->assign('actionall', $actionall);
    $smarty->assign('uid', $uid);
    $smarty->assign('uname', $uname = $sql_pop['username']);
    $smarty->assign('groupname', $sql_pop['group_name']);
    $smarty->assign('groupsystem', $sql_pop['group_system']);
}
fstatistics(1);
include_once fRequire($action, "admin");
//调用模块
if ($_GET['read'] == '1') {
    if ($html_data == '') {
        $html_data = ob_get_contents();
    }
    ob_end_clean();
    $mess = gb2utf8($html_data);
    die($mess);
}
//$giz == 1 ? ob_end_flush("ob_gzhandler"):ob_end_flush();
ob_end_flush();
Exemplo n.º 2
0
<?php

/**
*
*  Copyright (c) 2003-06  oi77.com All rights reserved.
*  trexwb : http://www.oi77.com
*  This software is the proprietary information of oi77.com.
*
*/
if (!empty($HTTP_SERVER_VARS['REQUEST_URI']) && strstr($HTTP_SERVER_VARS['REQUEST_URI'], "html_fun.php")) {
    die("您没权限浏览本页<BR>如果您需要查看本页<a href='http://www.oi77.com'>请与管理员联系</a>");
}
$html_update = "";
$html_data = "";
include_once fRequire("cache_{$action}", $dir = "cache", $EXE = "php");
if ($cache_config['cache'] == '1') {
    $HTMLtime = abs($nowtime - filemtime(R_P . "html/{$action}/{$morefile}.htm"));
    if ($HTMLtime > $cache_config['cachetime'] * 60) {
        $html_update = "yes";
    } else {
        $cahehtm = file_exists(R_P . "html/{$action}/{$morefile}.htm");
        if ($cache_config['htmlteml'] == '1') {
            if ($cahehtm && $_GET['read'] != '1') {
                $rulto = preg_replace("/%/si", "%25", "{$config['url']}html/{$action}/{$morefile}.htm");
                header("Location: {$rulto}");
                $html_update = "no";
            } elseif ($cahehtm && $_GET['read'] == '1') {
                $html_update = "no";
            } else {
                $html_update = "yes";
            }
Exemplo n.º 3
0
                die(gb2utf8("error {$action}你没有足够的权限访问本页面<BR>请联系网站管理员<a href='mailto:{$config['mail']}'>{$config['mail']}</a>"));
            }
            Showmsg("你没有足够的权限访问本页面<BR>请联系网站管理员<a href='mailto:{$config['mail']}'>{$config['mail']}</a>", 0, $_COOKIE['lasturl'] ? $_COOKIE['lasturl'] : "index.php");
        }
    } else {
        $sql_pop = $GETSQL->fSql("group_action,group_authority,group_option", "`{$ODBC['tablepre']}group`", "`group_id`='1'", "", "", "", "U_B");
        $actionall = explode(",", $sql_pop['group_action']);
        if (!in_array($action, $actionall)) {
            if ($_GET['read'] == '1') {
                die(gb2utf8("error 你只是游客不能访问本页面<BR>请联系网站管理员<a href='mailto:{$config['mail']}'>{$config['mail']}</a>"));
            }
            Showmsg("你只是游客不能访问本页面<BR>请联系网站管理员<a href='mailto:{$config['mail']}'>{$config['mail']}</a>", 0, $_COOKIE['lasturl'] ? $_COOKIE['lasturl'] : "index.php");
        }
    }
}
include_once fRequire($action);
//调用模块
//$GETSQL->fClos();//关闭数据库连接
fstatistics(0);
if ($html_update == "yes") {
    $html_data = ob_get_contents();
    fhtml($html_data, "html/{$action}/{$morefile}.htm", $action, "", $cahehtm);
    Cookie("lasturl", $boardurl . $_SERVER['REQUEST_URI']);
}
if ($_GET['read'] == '1') {
    if ($html_data == '') {
        $html_data = ob_get_contents();
    }
    ob_end_clean();
    $mess = gb2utf8($html_data);
    die($mess);