Пример #1
0
$giz == 1 ? ob_start("ob_gzhandler") : ob_start();
include_once "./include/config.php";
include_once "./global.php";
if ($config['webclose'] == '0') {
    Showmsg("为了更好的服务我们的系统正在升级中...<BR>请稍后在访问,期间给您带来不便请原谅", 0, '');
}
include_once R_P . "include/sql_config.php";
include_once GetLang('cache');
//调用缓存
header("Content-type:text/html; charset={$ODBC['charset']}");
include_once Getincludefun("all");
//常用函数
include_once Getincludefun("odbc");
//调用数据库操作
$GETSQL = new Codbc();
$sql_newsfilg = $GETSQL->fSql("new_id,new_subject,new_image", "`{$ODBC['tablepre']}news`", "`new_image`!='' AND `new_type`='1'", "ORDER BY `new_date` DESC,`new_id` DESC", 0, 5);
?>
<HTML>
<HEAD>
<TITLE>广告</TITLE>
<meta name=robots content='index,follow'>
<Meta http-equiv="Widow-target" Content="_top">
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<LINK href="lang/style.css" type=text/css rel=stylesheet>
</HEAD>
<body>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE type=text/css>TABLE {
Пример #2
0
$discuz_auth_key = md5($config['HTMLcode'] . $_SERVER['HTTP_USER_AGENT']);
$c_sid = $_COOKIE['sgX_sid'] ? $_COOKIE['sgX_sid'] : $_SESSION['sgX_sid'];
//判断会员登陆
$c_auth = $_COOKIE['sgX_auth'] ? $_COOKIE['sgX_auth'] : $_SESSION['sgX_auth'];
//判断会员登陆
list($userpw, $uname, $uid) = isset($c_auth) ? explode("\t", authcode($c_auth, 'DECODE')) : array('', '', 0);
$smarty->assign('uid', $uid);
Cookie("sgX_sid", $c_sid);
Cookie("sgX_auth", $c_auth);
include_once Getincludefun("odbc");
//调用数据库操作
$GETSQL = new Codbc();
$NoHtmlUrl = array('login', 'help', 'pmsg', 'weather', 'rss');
if (!in_array($action, $NoHtmlUrl)) {
    if ($uid > 0 && $c_auth != '') {
        $sql_pop = $GETSQL->fSql("a.group_action,a.group_authority,a.group_option,b.uid,b.username,b.`categories`,b.`cpid`", "`{$ODBC['tablepre']}group` a,`{$ODBC['tablepre']}members` b", "a.`group_id`=b.`groupid` AND b.`uid`='{$uid}'", "", "", "", "U_B");
        $smarty->assign('uname', $uname = $sql_pop['username']);
        $actionall = explode(",", $sql_pop['group_action']);
        if (!in_array($action, $actionall) && $sql_pop['group_action'] != 'all') {
            if ($_GET['read'] == '1') {
                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>"));
            }
Пример #3
0
$c_sid = $_SESSION['cdb_sid'];
//判断会员登陆
$c_auth = $_SESSION['cdb_auth'];
//判断会员登陆
list($userpw, $uname, $uid) = isset($c_auth) ? explode("\t", authcode($c_auth, 'DECODE')) : array('', '', 0);
include_once Getincludefun("odbc");
//调用数据库操作
$GETSQL = new Codbc();
if ($uid < '1' || $c_auth == '') {
    Cookie("cdb_sid", '');
    Cookie("cdb_auth", '');
    $action = "login";
} else {
    Cookie("cdb_sid", $c_sid);
    Cookie("cdb_auth", $c_auth);
    $sql_pop = $GETSQL->fSql("a.*,b.username", "`{$ODBC['tablepre']}group` a,`{$ODBC['tablepre']}members` b", "`group_id`=b.`groupid` AND b.`uid`='{$uid}'", "", "", "", "U_B");
    if ($sql_pop['group_admin'] != '1' && $sql_pop['group_system'] != 'administrator' && $sql_pop['group_authority'] != 'all') {
        Cookie("cdb_sid", '');
        Cookie("cdb_auth", '');
        $action = "login";
        if ($_GET['read'] == '1') {
            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("你没有功能管理权限"));
        }
Пример #4
0
$discuz_auth_key = md5($config['HTMLcode'] . $_SERVER['HTTP_USER_AGENT']);
$c_sid = $_COOKIE['sgX_sid'] ? $_COOKIE['sgX_sid'] : $_SESSION['sgX_sid'];
//判断会员登陆
$c_auth = $_COOKIE['sgX_auth'] ? $_COOKIE['sgX_auth'] : $_SESSION['sgX_auth'];
//判断会员登陆
list($userpw, $uname, $uid) = isset($c_auth) ? explode("\t", authcode($c_auth, 'DECODE')) : array('', '', 0);
include_once Getincludefun("odbc");
//调用数据库操作
$GETSQL = new Codbc();
if ($action == 'showmeu') {
    if (!empty($uid)) {
        //if($config['bbs'] == '1')
        //$pmsgN = $GETSQL->fNumrows("SELECT pmid FROM `sgX_pms` WHERE `msgtoid`='{$uid}' AND `new`='1'");
        //else
        //$pmsgN = $GETSQL->fNumrows("SELECT pmid FROM `{$ODBC['tablepre']}pms` WHERE `msgtoid`='{$uid}' AND `new`='1'");
        $sql_members = $GETSQL->fSql("uid,username,categories,cpid", "`{$ODBC['tablepre']}members`", "`uid`='{$uid}'", "", "", "", "U_B");
        ?>
		dw("欢迎 <?php 
        echo $sql_members['username'];
        ?>
 ");
		dw("<a href='javascript:;' onclick=\"_confirm_msg_show('确定退出系统', 'Userloginon(\\\'"+hostpath+"index.php?action=login&option=quit\\\');', '', '');\">退出</a> | ");
		dw("<span onMouseOver=\"$('meuheadmember').className='menu1'\" onMouseOut=\"$('meuheadmember').className='menu2'\"><a>我的功能</a>");
		dw("<span class=menu2 id=meuheadmember align=left><BR>");
		<?php 
        if ($sql_members['cpid'] == '0') {
            ?>
			dw("<a href='javascript:;' onClick=\"fshowwindows('"+hostpath+"index.php?action=update&option=buildhotel&type=edit',1,'升级为酒店服务');\" >升级酒店</a><BR><BR>");
			dw("<a href='javascript:;' onClick=\"fshowwindows('"+hostpath+"index.php?action=update&option=buildscenic&type=edit',1,'升级为景区服务');\">升级景区</a><BR><BR>");
			dw("<a href='javascript:;' onClick=\"fshowwindows('"+hostpath+"index.php?action=update&option=buildtravel&type=edit',1,'升级为旅行社');\">升级旅行社</a><BR><BR>");
		<?php