예제 #1
0
파일: admin.php 프로젝트: holin/sstour
            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();
예제 #2
0
파일: index.php 프로젝트: holin/sstour
        }
    } 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);
}
//if($uid!='' && $c_auth!='' && $_GET['read'] != '1' && !in_array($action,$NoHtmlUrl) && $html_update != "yes")
//include_once fRequire("pmsg","include");