function checkCloudWind() { if (YUN_APPLY_RETRY) { return YUN_APPLY_FALSE; } CloudWind::createCloudWindTables(); $setting = $this->getPlatformSettings(); if (isset($setting['uniqueid']) && $setting['uniqueid'] && isset($setting['cloudstatus']) && $setting['cloudstatus'] == $this->_status_open) { return $this->_apply_result_success; } if (isset($setting['cloudstatus']) && $setting['cloudstatus'] == $this->_status_fail) { return $this->_apply_result_verify; } if (isset($setting['cloudstatus']) && $setting['cloudstatus'] == $this->_status_reset) { $settingService = $this->getPlatformSettingService(); $settingService->resetSetting(); return YUN_APPLY_FALSE; } return isset($setting['cloudstatus']) && $setting['cloudstatus'] == $this->_status_apply ? YUN_APPLY_TRUE : YUN_APPLY_FALSE; }
$user_a = explode('|', $winddb['icon']); $usericon = ''; if ($facetype == 1) { $usericon = setIcon($proicon, $facetype, $user_a); } elseif ($_G['allowportait'] && $facetype == 2) { $httpurl = S::getGP('httpurl', 'P'); if (strncmp($httpurl[0], 'http://', 7) != 0 || strrpos($httpurl[0], '|') !== false) { refreshto("profile.php?action=modify&info_type={$info_type}&facetype={$facetype}", getLangInfo('msg', 'illegal_customimg'), 2, true); } $proicon = S::escapeChar($httpurl[0]); $httpurl[1] = (int) $httpurl[1]; $httpurl[2] = (int) $httpurl[2]; $httpurl[3] = (int) $httpurl[3]; $httpurl[4] = (int) $httpurl[4]; list($user_a[2], $user_a[3]) = flexlen($httpurl[1], $httpurl[2], $httpurl[3], $httpurl[4]); $usericon = setIcon($proicon, $facetype, $user_a); unset($httpurl); } pwFtpClose($ftp); //update member $usericon && ($result = $userService->update($winduid, array('icon' => $usericon))); // defend start CloudWind::yunUserDefend('editprofile', $winduid, $windid, $timestamp, 0, $result === true ? 101 : 102, '', '', '', array('profile' => 'icon')); // defend end //* $_cache = getDatastore(); //* $_cache->delete('UID_'.$winduid); //job sign initJob($winduid, "doUpdatedata"); refreshto("profile.php?action=modify&info_type={$info_type}", 'operate_success', 2, true); } }
<?php /** * 云搜索后台管理 * @author L.IuHu.I@2011 developer.liuhui@gmail.com */ require_once R_P . 'lib/cloudwind/cloudwind.class.php'; $_service = CloudWind::getPlatformCheckServerService(); if ($_service->checkCloudWind() < 9) { ObHeader($admin_file . '?adminjob=yunbasic'); } if (!$_service->getSiteScale()) { Showmsg('亲,您的站点现在没有搜索负载压力,过段时间再开启云搜索吧亲~'); } if (!$db_yunsearch_search) { if ($_POST['step'] == 2) { CLOUDWIND_SECURITY_SERVICE::gp(array('db_yunsearch_search'), 'P', 2); setConfig('db_yunsearch_search', $db_yunsearch_search); updatecache_c(); Showmsg('云搜索设置成功 '); } ifcheck($db_yunsearch_search, 'yunsearch_search'); } $yunManageUrl = $_service->getYunSearchManageUrl(); include PrintEot('yunsearch');
<?php require_once R_P . 'lib/cloudwind/cloudwind.class.php'; $_service = CloudWind::getPlatformCheckServerService(); if ($_service->checkCloudWind() < 9) { ObHeader($admin_file . '?adminjob=yunbasic'); } CLOUDWIND_SECURITY_SERVICE::gp(array('step')); if ($step == 'reset') { $bool = CloudWind::resetCloudwind(); $message = $bool ? '重置云服务成功' : '重置云服务失败'; Showmsg($message); } list($bbsname, $bbsurl, $bbsversion, $cloudversion) = $_service->getSiteInfo(); list($fsockopen, $parse_url, $isgethostbyname, $gethostbyname) = $_service->getFunctionsInfo(); list($searchHost, $searchIP, $searchPort, $searchPing) = $_service->getSearchHostInfo(); list($defendHost, $defendIp, $defendPort, $defendPing) = $_service->getDefendHostInfo(); $description = $_service->getBaseDescription(); $showReset = true; include PrintEot('yuncheckserver');
// update posts hits if ($c_htm || $db_hits_store == 2) { $db_hithour == 0 && ($db_hithour = 4); $hit_wtime = $hit_control * $db_hithour; $hit_wtime > 24 && ($hit_wtime = 0); $hitsize = @filesize(D_P . 'data/bbscache/hits.txt'); if ($hitsize && ($hitsize > 1024 || $timestamp - $hit_tdtime > $hit_wtime * 3600) && procLock('hitupdate')) { require_once R_P . 'require/hitupdate.php'; procUnLock('hitupdate'); } } if ($higholnum < $usertotal) { pwQuery::update('pw_bbsinfo', 'id=:id', array(1), array('higholnum' => $usertotal, 'higholtime' => $timestamp)); $higholnum = $usertotal; } if ($hposts < $tposts) { pwQuery::update('pw_bbsinfo', 'id=:id', array(1), array('hposts' => $tposts)); $hposts = $tposts; } $mostinbbstime = get_date($higholtime); if (!$ol_offset && $db_onlinelmt != 0 && $usertotal >= $db_onlinelmt) { Cookie('ol_offset', '', 0); Showmsg('most_online'); } if ($plantime && $timestamp > $plantime && procLock('task')) { require_once R_P . 'require/task.php'; procUnLock('task'); } require_once PrintEot('index'); CloudWind::yunSetCookie(SCR); footer();
if ($groupid == 'guest') { pwCache::getData(D_P . 'data/groupdb/group_2.php'); } elseif (file_exists(D_P . "data/groupdb/group_{$groupid}.php")) { pwCache::getData(S::escapePath(D_P . "data/groupdb/group_{$groupid}.php")); } else { pwCache::getData(D_P . 'data/groupdb/group_1.php'); } visitRightByGroup(); if ($_G['pwdlimitime'] && !defined('PRO') && !S::inArray($windid, $manager) && $timestamp - 86400 * $_G['pwdlimitime'] > $winddb['pwdctime']) { Showmsg('pwdchange_prompt'); } require_once R_P . 'aCloud/aCloud.php'; ACloud_App_Guiding::runApps(SCR); require_once R_P . 'lib/cloudwind/cloudwind.class.php'; $cloud_information = CloudWind::getUserInfo(); CloudWind::sendUserInfo($cloud_information); //响应 /** * 跳转 * * @global string $db_ifjump * @param string $URL 跳转url * @param string $content 跳转提示信息 * @param int $statime 几秒后跳转 * @param bool $forcejump */ function refreshto($URL, $content, $statime = 1, $forcejump = false) { if (defined('AJAX')) { Showmsg($content); }
} } else { S::gp(array('friendtype')); if ($friendtype > 0) { $checkftid = $db->get_value("SELECT ftid FROM pw_friendtype WHERE uid=" . S::sqlEscape($winduid) . " AND ftid=" . S::sqlEscape($friendtype)); if (empty($checkftid)) { Showmsg('friend_type_not_exists'); } } if (!$friendcheck) { $friendService = L::loadClass('Friend', 'friend'); /* @var $friendService PW_Friend */ $friendService->addFriend($winduid, $friend['uid'], '', $friendtype); $result = $friendService->addFriend($friend['uid'], $winduid); // defend start CloudWind::yunUserDefend('addfriend', $winduid, $windid, $timestamp, 0, $result === true ? 101 : 102, !S::IsBool($result) ? $reason : '', '', '', array('uniqueid' => $winduid . '-' . $friend['uid'])); // defend end $userCacheService = L::loadClass('UserCache', 'user'); /* @var $userCacheService PW_UserCache */ $userCacheService->delete($winduid, 'recommendUsers'); M::sendNotice(array($friend['username']), array('title' => getLangInfo('writemsg', 'friend_add_title_1', array('username' => $windid)), 'content' => getLangInfo('writemsg', 'friend_add_content_1', array('uid' => $winduid, 'username' => $windid)))); //job sign initJob($winduid, "doAddFriend", array('user' => $friend['username'])); if (empty($reload)) { Showmsg('friend_update_success'); } else { Showmsg('ajax_friend_update_success'); } } elseif ($friendcheck == 1) { S::gp(array('checkmsg'), 'P'); if (strlen($checkmsg) > 255) {
if (empty($action)) { if ($_POST['step'] == 2) { CLOUDWIND_SECURITY_SERVICE::gp(array('db_yundefend_shield', 'db_yundefend_shieldpost', 'db_yundefend_shielduser'), 'P', 2); setConfig('db_yundefend_shield', $db_yundefend_shield); setConfig('db_yundefend_shieldpost', $db_yundefend_shieldpost); setConfig('db_yundefend_shielduser', $db_yundefend_shielduser); updatecache_c(); Showmsg('云盾设置成功 '); } ifcheck($db_yundefend_shield, 'yundefend_shield'); ifcheck($db_yundefend_shieldpost, 'yundefend_shieldpost'); ${'yundefend_shielduser_' . intval($db_yundefend_shielduser)} = 'checked="checked"'; $dundescribe = $_service->getDunDescribe(); $current['config'] = 'current'; } elseif ($action == 'verify') { CLOUDWIND_SECURITY_SERVICE::gp(array('page')); $page = $page > 1 ? intval($page) : 1; $postVerifyService = CloudWind::getDefendPostVerifyService(); if ($_POST['step'] == 2) { CLOUDWIND_SECURITY_SERVICE::gp(array('ids')); foreach ($ids as $key => $operate) { list($tid, $pid) = explode("_", $key); $postVerifyService->verify($operate, $tid, $pid); } Showmsg('云盾审核成功 ', $basename . "&action=verify&page=" . $page); } $total = $postVerifyService->countPostVerify(); $lists = $total ? $postVerifyService->getPostVerify($page, 100) : array(); $current['verify'] = 'current'; } include PrintEot('yundefend');
} $upmembers['safecv'] = $safecv; } $pwSQL = array_merge($upmembers, array('email' => $proemail)); //update memdata if ($upmemdata) { $userService->update($winduid, array(), $upmemdata); } //update meminfo if ($upmeminfo) { updateThreadTrade($upmeminfo, $winduid); } unset($upmemdata, $upmeminfo); $result = $userService->update($winduid, $pwSQL); // defend start CloudWind::yunUserDefend('editprofile', $winduid, $windid, $upmemdata['pwdctime'], 0, 101, '', '', '', array('profile' => array_keys($pwSQL))); // defend end /* platform weibo app */ $siteBindService = L::loadClass('WeiboSiteBindService', 'sns/weibotoplatform/service'); /* @var $siteBindService PW_WeiboSiteBindService */ if ($siteBindService->isOpen() && $upmembers['password']) { $weiboLoginService = L::loadClass('WeiboLoginService', 'sns/weibotoplatform/service'); /* @var $weiboLoginService PW_WeiboLoginService */ $weiboLoginService->setLoginUserPasswordHasReset($winduid); Cookie("winduser", StrCode($winduid . "\t" . PwdCode($upmembers['password']) . "\t" . $upmembers['safecv'])); Cookie("ck_info", $db_ckpath . "\t" . $db_ckdomain); Cookie('lastvisit', '', 0); //自动获取勋章_start require_once R_P . 'require/functions.php'; doMedalBehavior($winduid, 'continue_login'); //自动获取勋章_end
<?php define('SCR', 'searcher'); require_once 'global.php'; require_once R_P . 'lib/cloudwind/cloudwind.class.php'; CloudWind::yunSearchEntry(); $_searchHelper = new PW_SearchHelper(); $_searchHelper->checkLevel(); S::gp(array("keyword", "type", "condition", "fid", "step", "username", "starttime", "endtime", "threadrange", "diaryusername", "diarystarttime", "diaryendtime", "diaryrange", "page", "fid", "sch_time", "digest", 'authorid', "ttable", "ptable", 'sortby')); $_searchHelper->checkSearchCondition($starttime, $endtime, $diarystarttime, $diaryendtime); if ($sch_time == 'newatc' || $digest == 1 || $sch_time == 'today') { list($type, $condition) = $_searchHelper->getSpecialCondition(); } $searchPassType = $db_search_type ? array_keys($db_search_type) : array_keys($_searchHelper->getDefaultSearcherType()); if ($type && !in_array($type, array_merge(array('special'), (array) $searchPassType))) { Showmsg("抱歉,搜索类型不存在"); } $searcherService = L::loadclass('searcher', 'search'); /* @var $searcherService PW_Searcher */ list($page, $isSphinx, $threadrange, $diaryrange) = $_searchHelper->initCondition($page, $threadrange, $diaryrange); list($perpage, $searchURL) = array(20, ''); if ($type && !$keyword) { //默认数据 $perpage = 50; switch ($type) { case "thread": pwCache::getData(D_P . 'data/bbscache/search_config.php'); list($searchForumPart1, $searchForumPart2) = $_searchHelper->getSearchForum(); $timesFilterList = $_searchHelper->getTimesFilterListByPostTimes(array(1, 24, 168, 720)); $expandCondition = array('fid' => $fid, 'starttime' => $starttime, 'endtime' => $endtime); list($total, $threads) = $searcherService->searchDefault($type, $page, $perpage, $expandCondition);
if ($t_subtypedb) { $t_subtypedb = pwJsonEncode($t_subtypedb); $t_sub_exits = 1; } $db_forcetype = $t_exits && $t_per == '2' ? 1 : 0; // 是否需要强制主题分类 $db_maxtypenum == 0 && ($db_maxtypenum = 5); if ($winddb['shortcut']) { $myshortcut = 'true'; } else { $myshortcut = 'false'; } if (defined('M_P') && file_exists(M_P . 'thread.php')) { require_once M_P . 'thread.php'; } CloudWind::yunSetCookie(SCR, '', $fid); require_once PrintEot($threadBehavior->template); $noticecache = 900; $foruminfo['enddate'] && $foruminfo['enddate'] <= $timestamp && ($foruminfo['aidcache'] = $timestamp - $noticecache); if ($foruminfo['aidcache'] && $timestamp - $foruminfo['aidcache'] > $noticecache - 1 && ($foruminfo['startdate'] > $timestamp || $foruminfo['enddate'] && ($foruminfo['enddate'] <= $timestamp || $foruminfo['aids']))) { $foruminfo['aid'] && ($foruminfo['aids'] .= ",{$foruminfo['aid']}"); require_once R_P . 'require/updatenotice.php'; updatecache_i_i($fid, $foruminfo['aids']); } footer(); function getstart($start, $asc, $count) { global $db_perpage, $page, $numofpage; $limit = $db_perpage; if ($page > 20 && $page > ceil($numofpage / 2)) { $asc = $asc == 'DESC' ? 'ASC' : 'DESC';
<?php define('SCR', 'yi'); /** * 云计算入口文件(开启社区云时代) * @link http://www.phpwind.com * @link http://www.phpwind.net/thread-htm-fid-131.html * @copyright Copyright © 2003-2010 phpwind.com * @license */ define("COL", 1); require_once 'global.php'; @header("Content-Type:text/html; charset=utf8"); CloudWind::yunRouter();
} elseif ($action == 'quit') { if (!$db_pptifopen || !$db_pptcmode) { checkVerify('loginhash'); } require_once R_P . 'require/checkpass.php'; if ($groupid == '6') { $bandb = $db->get_one("SELECT type FROM pw_banuser WHERE uid=" . S::sqlEscape($winduid) . " AND fid='0'"); if ($bandb['type'] == 3) { Cookie('force', $winduid); } } //* 当用户“退出”时,删除该用户在pw_online_user表中的记录 $onlineService = L::loadClass('OnlineService', 'user'); $onlineService->deleteOnlineUser($winduid); // defend start CloudWind::yunUserDefend('quit', $winduid, $windid, $timestamp, 0, 101, '', '', '', ''); // defend end Loginout(); require_once R_P . 'uc_client/uc_client.php'; $showmsginfo = uc_user_synlogout(); //passport if ($db_pptifopen && $db_ppttype == 'server' && ($db_ppturls || $forward)) { $jumpurl = $forward ? $forward : $db_ppturls; $forward = $pre_url; require_once R_P . 'require/passport_server.php'; } //passport Cookie("jobpop", 0); /*jobpop*/ Cookie('clearm_' . $winduid, '', 0); if (preg_match('/u.php$/i', $pre_url)) {
$db->update("INSERT INTO pw_userbinding SET " . S::sqlSingle(array('id' => $arr[$uid]['id'], 'uid' => $winduid, 'password' => $userdb['password']))); $id = $arr[$uid]['id']; } elseif (isset($arr[$winduid]) && isset($arr[$uid])) { if ($arr[$uid]['id'] == $arr[$winduid]['id']) { Showmsg('userbinding_has'); } else { $db->update("UPDATE pw_userbinding SET id=" . S::sqlEscape($arr[$winduid]['id']) . ' WHERE id=' . S::sqlEscape($arr[$uid]['id'])); $id = $arr[$winduid]['id']; } } else { Showmsg('undefined_action'); } $db->update("UPDATE pw_userbinding u LEFT JOIN pw_members m ON u.uid=m.uid SET m.userstatus=m.userstatus|(1<<11) WHERE u.id=" . S::sqlEscape($id)); _clearMembersCache($id); // defend start CloudWind::yunUserDefend('bindaccount', $winduid, $windid, $timestamp, 0, 101, '', '', '', array('uniqueid' => $uid)); // defend end refreshto("profile.php?action=modify&info_type=binding", 'operate_success', 2, true); } elseif ($_POST['step'] == '4') { PostCheck(); S::gp(array('selid')); if ($selid && is_array($selid)) { $arr = array(); $query = $db->query("SELECT u2.uid FROM pw_userbinding u1 LEFT JOIN pw_userbinding u2 ON u1.id=u2.id WHERE u1.uid=" . S::sqlEscape($winduid)); while ($rt = $db->fetch_array($query)) { $arr[] = $rt['uid']; } if ($delarr = array_intersect($arr, $selid)) { $db->update("DELETE FROM pw_userbinding WHERE uid IN(" . S::sqlImplode($delarr) . ')'); $tmp = $delarr + array($winduid); if (count(array_unique($tmp)) == count($arr)) {
function getOnlineUserInfo() { if (!$GLOBALS['winduid'] && !GetCookie('cloudClientUid')) { Cookie("cloudClientUid", CloudWind::getNotLoginUid()); } $cloudClientUid = GetCookie('cloudClientUid') ? GetCookie('cloudClientUid') : CloudWind::getNotLoginUid(); return array('uid' => $GLOBALS['winduid'] ? $GLOBALS['winduid'] : $cloudClientUid, 'username' => $GLOBALS['windid'] ? $GLOBALS['windid'] : '游客'); }
function applyCloudWind($siteName, $siteUrl) { unset($GLOBALS['CloudWind_Configs']); require_once R_P . 'lib/cloudwind/cloudwind.class.php'; $checkService = CloudWind::getPlatformCheckServerService(); if (!$checkService->checkHost() || !$checkService->getServerStatus() || !($marksite = $checkService->markSite())) { return false; } list($adminName, $adminPhone) = array('siteAdmin', '13888888888'); $applyStatus = CloudWind::yunApplyPlatform($siteUrl, $siteName, $adminName, $adminPhone, $marksite); if (!$applyStatus) { $checkService->markSite(false); return false; } return true; }
$diaryService->updateDiaryContentByAttach($did, $attachIds); $db->update("UPDATE pw_attachs SET did=" . S::sqlEscape($did) . " WHERE aid IN(" . S::sqlImplode($aids) . ")"); } if ($dtided != $dtid) { $db->update("UPDATE pw_diarytype SET num=num-1 WHERE uid=" . S::sqlEscape($winduid) . " AND dtid=" . S::sqlEscape($dtided)); $db->update("UPDATE pw_diarytype SET num=num+1 WHERE uid=" . S::sqlEscape($winduid) . " AND dtid=" . S::sqlEscape($dtid)); } if ($privacyed == 2 && $privacy != 2) { countPosts('+1'); } elseif ($privacyed != 2 && $privacy == 2) { if ($affected_rows = delAppAction('diary', $did)) { countPosts("-{$affected_rows}"); } } // defend start CloudWind::YunPostDefend($winduid, $windid, $groupid, $did, $atc_title, $atc_content, 'editdiary'); // defend end $url = "{$basename}a=detail&did={$did}"; $msg = defined('AJAX') ? "success\t" . $url : 'operate_success'; refreshto($url, $msg); } } elseif ($a == 'copydiary') { define('AJAX', 1); define('F_M', true); banUser(); S::gp(array('did')); empty($did) && Showmsg('data_error'); $dtsel = ''; $query = $db->query("SELECT * FROM pw_diarytype WHERE uid=" . S::sqlEscape($winduid) . " ORDER BY dtid"); while ($rt = $db->fetch_array($query)) { $dtsel .= "<option value=\"{$rt['dtid']}\">{$rt['name']}</option>";
} if (!$_checkService->getServerStatus()) { list($fsockopen, $parse_url, $isgethostbyname, $gethostbyname) = $_checkService->getFunctionsInfo(); list($searchHost, $searchIP, $searchPort, $searchPing) = $_checkService->getSearchHostInfo(); list($defendHost, $defendIp, $defendPort, $defendPing) = $_checkService->getDefendHostInfo(); } else { $step = 3; } } elseif ($step == 3) { if (!$_checkService->getServerStatus()) { Showmsg('环境检测末通过,请联系论坛空间提供商解决'); } } elseif ($step == 4) { CLOUDWIND_SECURITY_SERVICE::gp(array('siteurl', 'sitename', 'bossname', 'bossphone', 'search', 'defend')); if (!$siteurl || !$sitename || !$bossname || !$bossphone) { Showmsg('站点信息请填写完整', $basename . '&step=3'); } if (!($marksite = $_checkService->markSite())) { Showmsg('云服务验证失败,请重试', $basename . '&step=3'); } if (!CloudWind::yunApplyPlatform($siteurl, $sitename, $bossname, $bossphone, $marksite)) { $marksite = $_checkService->markSite(false); Showmsg('申请云服务失败,请检查网络或重试', $basename . '&step=3'); } is_null($db_yun_model) && $_checkService->setYunMode(array()); $_checkService->initServices($search, $defend); $step = 5; } else { $yundescribe = $_checkService->getYunDescribe(); } include PrintEot('yunbasic');
S::slashes($userdb); S::gp(array('prooicq', 'proaliww', 'proicq', 'proyahoo', 'promsn', 'proauthmobile', 'oicq', 'aliww'), 'P'); //联系方式 处理 //$prooicq && !is_numeric($prooicq) && Showmsg('illegal_OICQ'); $proicq && !is_numeric($proicq) && Showmsg('illegal_OICQ'); $oicq && !is_numeric($oicq) && Showmsg('QQ号码只能输入数字'); if ($aliww && strlen($aliww) > 31) { Showmsg('阿里旺旺账号字符不能超过30'); } //update member $pwSQL = array('icq' => $proicq); /* modify for authentication */ if (!getstatus($userdb['userstatus'], PW_USERSTATUS_AUTHMOBILE)) { $proauthmobile && !preg_match('/^1(3|5|8)[0-9]{9}$/', $proauthmobile) && Showmsg('illegal_authmobile'); $pwSQL['authmobile'] = $proauthmobile; } /* modify for authentication */ $userService->update($winduid, $pwSQL); //* $_cache = getDatastore(); //* $_cache->delete('UID_'.$winduid); //update customerfield data $customfieldService = L::loadClass('CustomerFieldService', 'user'); /* @var $customfieldService PW_CustomerFieldService */ $customfieldService->saveProfileCustomerData('contact'); // defend start CloudWind::yunUserDefend('editprofile', $winduid, $windid, $timestamp, 0, 101, '', '', '', array('profile' => 'updatelink')); // defend end //job sign initJob($winduid, "doUpdatedata"); refreshto("profile.php?action=modify&info_type={$info_type}", 'operate_success', 2, true); }
$isAtcEmail = (int) $atc_email; $isAtcNewrp = (int) $atc_newrp; $userService = L::loadClass('UserService', 'user'); $userService->setUserStatus($winduid, PW_USERSTATUS_REPLYEMAIL, $isAtcEmail); $userService->setUserStatus($winduid, PW_USERSTATUS_REPLYSITEEMAIL, $isAtcNewrp); $j_p = "read.php?tid={$tid}&ds=1"; if ($db_htmifopen) { $j_p = urlRewrite($j_p); } if (empty($j_p) || $pwforum->foruminfo['cms']) { $j_p = "read.php?tid={$tid}&ds=1"; } $pinfo = defined('AJAX') ? "success\t" . $j_p : ""; if (!$iscontinue) { if ($postdata->getIfcheck()) { if ($prompts = $pwpost->getprompt()) { isset($prompts['allowhide']) && ($pinfo = getLangInfo('refreshto', "post_limit_hide")); isset($prompts['allowsell']) && ($pinfo = getLangInfo('refreshto', "post_limit_sell")); isset($prompts['allowencode']) && ($pinfo = getLangInfo('refreshto', "post_limit_encode")); } } } //defend start CloudWind::YunPostDefend($winduid, $windid, $groupid, $tid, $atc_title, $atc_content, 'thread', array('fid' => $fid, 'tid' => $tid, 'forumname' => $pwforum->foruminfo['name'])); //defend end //job sign //require_once(R_P.'require/functions.php'); //initJob($winduid,"doPost",array('fid'=>$fid)); pwHook::runHook('after_post'); refreshto($j_p, $pinfo); }
$db_forcetype = 0; if (!$admincheck && !$foruminfo['allowrp'] && !$_G['allowrp']) { $groupid == 'guest' ? $anonymity = true : ($fastpost = ''); } } //referer if ($db_htmifopen) { $requestURI = substr($pwServer['HTTP_REFERER'], strlen($db_bbsurl) + 1); $refererParams = parseRewriteQueryString($requestURI); } else { $refererPU = parse_url($pwServer['HTTP_REFERER']); parse_str($refererPU['query'], $refererParams); } require_once PrintEot('read'); //if (strrpos($pwServer['HTTP_REFERER'],'post.php') === false) { CloudWind::yunSetCookie(SCR, $tid, $fid); //} footer(); function viewread($read, $start_limit) { global $db, $_G, $isGM, $pwSystem, $groupid, $attach_url, $winduid, $tablecolor, $tpc_author, $tpc_buy, $tpc_pid, $tpc_tag, $count, $orderby, $pageinverse, $timestamp, $db_onlinetime, $attachdir, $attachpath, $readcolorone, $readcolortwo, $lpic, $ltitle, $imgpath, $db_ipfrom, $db_showonline, $stylepath, $db_windpost, $db_windpic, $db_signwindcode, $fid, $tid, $pid, $_MEDALDB, $rewardtype, $db_shield, $db_iftag, $db_md_ifopen; global $ping_logs, $buyAids, $creditdb, $admincheck; if ($read['istop'] == 'topped') { $read['lou'] = $read['floor']; } elseif ($read['robfloor']) { $read['lou'] = $read['robfloor']; } else { $read['lou'] = $orderby != 'desc' || $start_limit == 0 ? $start_limit : $count - $start_limit; } $read['jupend'] = $start_limit == $count - 1 ? "<a name=a></a><a name={$read['pid']}></a>" : "<a name={$read['pid']}></a>"; $orderby == 'desc' && ($read['jupend'] = $start_limit == 1 ? "<a name=a></a><a name={$read['pid']}></a>" : "<a name={$read['pid']}></a>");