Example #1
0
$giz = !ereg('gzip', $_SERVER['HTTP_ACCEPT_ENCODING']) || $_GET['read'] == '1' ? 0 : 1;
$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">
Example #2
0
    $cache_config['htmlteml'] = '0';
}
include_once Getincludefun("all");
//常用函数
$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']);
Example #3
0
$smarty->assign('id', $id);
$smarty->assign('nPage', $nPage);
$smarty->assign('Industry', $Industry);
$smarty->assign('type', $type);
$smarty->assign('Keyword', $Keyword);
$smarty->assign('userop', $userop);
include_once Getincludefun("all");
//常用函数
$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("你没有后台权限"));
        }
Example #4
0
$Industry = $_GET['Industry'] ? $_GET['Industry'] : "";
$type = $_GET['type'] ? $_GET['type'] : "";
$Keyword = $_GET['Keyword'] ? $_GET['Keyword'] : $_POST['Keyword'];
$userop = "action={$action}&id={$id}&option={$option}&Keyword={$Keyword}&type={$_GET['type']}&page={$nPage}&Industry={$Industry}";
$PHPSESSID = $_COOKIE['PHPSESSID'] ? $_COOKIE['PHPSESSID'] : $_SESSION['PHPSESSID'];
include_once Getincludefun("all");
//常用函数
$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>");