Exemple #1
0
/** Labs Code By cn0zz
if ($db_htmifopen) {
	$link_ref_canonical = ($_GET['fpage'] || $_GET['uid'] || $_GET['skinco']) ? "read{$db_dir}tid-$tid".($page>1 ? "-page-$page" : '').$db_ext : '';
} else {
	$link_ref_canonical = ($_GET['fpage'] || $_GET['uid'] || $_GET['skinco']) ? "read.php?tid=$tid".($page>1 ? "&page=$page" : '') : '';
}
*/
/*SEO*/
$_summary = strip_tags(stripWindCode($read['content']));
$_summary = str_replace(array('"', "\n", "\r", ' ', '&', '<', '', ' '), '', $_summary);
$_summary = substrs($_summary, 255);
if ($ifConvert) {
    $wordsfb = L::loadClass('FilterUtil', 'filter');
    $_summary = $wordsfb->convert($_summary);
}
bbsSeoSettings('read', '', $foruminfo['name'], $foruminfo['topictype'][$read['type']], $read['subject'], $read['tags'], $_summary);
/*SEO*/
require_once R_P . 'require/showimg.php';
Update_ol();
$readdb = $authorids = array();
//主题印戳
if ($forumset['overprint']) {
    $overPrintService = L::loadclass("overprint", 'forum');
    $overprint = $overPrintService->getOverPrintIcon($read['overprint']);
}
if ($forumset['viewpic'] && !$winduid) {
    $viewpic = 1;
}
if ($read['modelid'] || $foruminfo['modelid']) {
    L::loadClass('posttopic', 'forum', false);
    $postTopic = new postTopic($read);
Exemple #2
0
}
$notice_A = $noticedb;
unset($noticedb);
$topics = $article = $tposts = 0;
//SEO Settings
bbsSeoSettings('index');
$newpic = (int) GetCookie('newpic');
$forumdb = $catedb = $showsub = array();
$c_htm = 0;
$sqlwhere = '';
$updateDaily = 1;
if ($cateid > 0) {
    $catestyle = $forum[$cateid]['style'];
    $catestyle && file_exists(D_P . "data/style/{$catestyle}.php") && ($skin = $catestyle);
    $_seo = array('title' => $forum[$cateid]['title'], 'metaDescription' => $forum[$cateid]['metadescrip'], 'metaKeywords' => $forum[$cateid]['keywords']);
    bbsSeoSettings('thread', $_seo, $forum[$cateid]['name'], '');
    $sqlwhere = 'AND (f.fid=' . S::sqlEscape($cateid) . ' OR f.fup=' . S::sqlEscape($cateid) . ')';
    $updateDaily = 0;
} elseif ($db_forumdir) {
    require_once R_P . 'require/dirname.php';
}
require_once R_P . 'require/header.php';
!$db_showcms && ($sqlwhere .= " AND f.cms!='1'");
/*The app client*/
if ($db_siteappkey && ($db_apps_list['17']['status'] == 1 || is_array($db_threadconfig))) {
    $appclient = L::loadClass('appclient');
    if (is_array($db_threadconfig)) {
        $threadright = (array) $appclient->getThreadRight();
    }
}
/*The app client*/
Exemple #3
0
 function setSeosetting($read)
 {
     list($this->vars['webPageTitle'], $this->vars['metaDescription'], $this->vars['metaKeywords']) = bbsSeoSettings('read', '', $this->vars['forumname'], '', &$read['subject']);
 }
Exemple #4
0
<?php

define('COL', 1);
require_once 'global.php';
$url = $pwServer['HTTP_REFERER'] && strpos($pwServer['HTTP_REFERER'], $db_adminfile) === false && strpos($pwServer['HTTP_REFERER'], $db_bbsurl) !== false ? $pwServer['HTTP_REFERER'] : $db_bfn;
if ($_GET['m'] == 'bbs') {
    $url = $db_bbsurl . '/index.php?m=bbs';
}
bbsSeoSettings('index');
if ($db_columns) {
    if ($_GET['action'] == 'columns') {
        extract(L::style());
        Cookie('columns', 2);
        require_once PrintEot('columns');
        exit;
    } else {
        Cookie('columns', '1');
        echo "<script type=\"text/javascript\">top.location.href=\"" . $url . "\"</script>";
        exit;
    }
} else {
    ObHeader('index.php');
}
Exemple #5
0
<?php

!defined('R_P') && exit('Forbidden');
$db_menuinit .= ",'td_userinfomore' : 'menu_userinfomore'";
require_once R_P . 'require/credit.php';
$creditdb = array('money' => $winddb['money'], 'rvrc' => $userrvrc, 'credit' => $winddb['credit'], 'currency' => $winddb['currency']);
$creditdb += (array) $credit->get($winduid, 'CUSTOM');
/*SEO*/
bbsSeoSettings();
S::gp(array('action'));
require_once R_P . 'require/showimg.php';
list($faceurl) = showfacedesign($winddb['icon'], 1, 's');
$pro_tab = 'userpay';
if (empty($action)) {
    $orderdb = array();
    $query = $db->query("SELECT * FROM pw_clientorder WHERE uid=" . S::sqlEscape($winduid) . " ORDER BY date DESC LIMIT 5");
    while ($rt = $db->fetch_array($query)) {
        $rt['date'] = get_date($rt['date']);
        $orderdb[] = $rt;
    }
    require_once GetLang('logtype');
    $query = $db->query("SELECT * FROM pw_creditlog WHERE uid=" . S::sqlEscape($winduid) . " ORDER BY id DESC LIMIT 5");
    while ($rt = $db->fetch_array($query)) {
        $rt['adddate'] = get_date($rt['adddate']);
        $rt['descrip'] = descriplog($rt['descrip']);
        $logdb[] = $rt;
    }
    !$db_creditpay && ($db_creditpay = array());
    $paycredit = key($db_creditpay);
    $pay_link = "<span class=\"btn\"><span><button onClick=\"location.href='userpay.php?action=buy';\">马上充值</button></span></span>";
    //* include_once pwCache::getPath(D_P.'data/bbscache/ol_config.php');
Exemple #6
0
        }
        $pwPostHide = $pwSystem['posthide'];
        $pwSellHide = $pwSystem['sellhide'];
        $pwEncodeHide = $pwSystem['encodehide'];
        $pwAnonyHide = $pwSystem['anonyhide'];
    } else {
        $managecheck = $ajaxcheck = $pwAnonyHide = $pwPostHide = $pwSellHide = $pwEncodeHide = 1;
    }
}
if (!$admincheck) {
    !$foruminfo['allowvisit'] && forum_creditcheck();
    $foruminfo['forumsell'] && forum_sell($fid);
}
/*SEO*/
$_seo = array('title' => $foruminfo['title'], 'metaDescription' => $foruminfo['metadescrip'], 'metaKeywords' => $foruminfo['keywords']);
bbsSeoSettings('thread', $_seo, $foruminfo['name']);
/*SEO*/
require_once M_P . 'require/header.php';
$msg_guide = $pwforum->headguide($guidename);
S::gp(array('page', 'type', 'subtype', 'search', 'orderway', 'asc', 'special', 'modelid', 'pcid', 'topicsearch'));
$db_maxpage && $page > $db_maxpage && ($page = $db_maxpage);
(int) $page < 1 && ($page = 1);
$admin_T = array();
if ($foruminfo['forumadmin']) {
    $forumadmin = explode(',', $foruminfo['forumadmin']);
    foreach ($forumadmin as $key => $value) {
        if ($value) {
            if (!$db_adminshow) {
                if ($key == 10) {
                    $admin_T['admin'] .= '...';
                    break;