清除云平台相关代码
This commit is contained in:
parent
2e9ada8ca4
commit
0999aab3c4
|
@ -1,12 +0,0 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=gbk" />
|
||||
<script language="javascript" type="text/javascript" src="http://static.manyou.com/scripts/my_iframe.js"></script>
|
||||
<script language="javascript">
|
||||
var channel = new MyXD.Channel();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
|
@ -1,9 +0,0 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<script language="javascript" type="text/javascript" src="http://discuz.gtimg.cn/cloud/scripts/discuz_channel.js" defer="defer" charset="utf-8"></script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
|
@ -1,9 +0,0 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=GBK">
|
||||
<script type="text/javascript" src="http://widgets.manyou.com/misc/scripts/ab.js" charset="UTF-8"></script>
|
||||
</head>
|
||||
<body onload="MYABC.onCBPageLoad()">
|
||||
</body>
|
||||
</html>
|
|
@ -1 +0,0 @@
|
|||
|
|
@ -1,37 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id: my.php 34170 2013-10-28 02:58:29Z nemohou $
|
||||
*/
|
||||
|
||||
define('IN_API', true);
|
||||
define('CURSCRIPT', 'api');
|
||||
define('DISABLEDEFENSE', true);
|
||||
define('DISABLEXSSCHECK', true);
|
||||
require_once('../../source/class/class_core.php');
|
||||
require_once('../../source/function/function_home.php');
|
||||
|
||||
$cachelist = array();
|
||||
$discuz = C::app();
|
||||
|
||||
$discuz->cachelist = $cachelist;
|
||||
$discuz->init_cron = false;
|
||||
$discuz->init_setting = true;
|
||||
$discuz->init_user = false;
|
||||
$discuz->init_session = false;
|
||||
|
||||
$discuz->init();
|
||||
|
||||
$siteId = $_G['setting']['my_siteid'];
|
||||
$siteKey = $_G['setting']['my_sitekey'];
|
||||
$timezone = $_G['setting']['timeoffset'];
|
||||
$language = $_SC['language'] ? $_SC['language'] : 'zh_CN';
|
||||
$version = $_G['setting']['version'];
|
||||
$myAppStatus = $_G['setting']['my_app_status'];
|
||||
$mySearchStatus = $_G['setting']['my_search_status'];
|
||||
|
||||
$my = Cloud::loadClass('Service_Server_My', array($siteId, $siteKey, $timezone, $version, CHARSET, $language, $myAppStatus, $mySearchStatus));
|
||||
$my->run();
|
|
@ -52,7 +52,6 @@ INSERT INTO pre_common_cron VALUES ('10','1','system','每日验证问答更新'
|
|||
INSERT INTO pre_common_cron VALUES ('11','1','system','每日标签更新','cron_tag_daily.php','1269746633','1269792000','-1','-1','0','0');
|
||||
INSERT INTO pre_common_cron VALUES ('12','1','system','每日勋章更新','cron_medal_daily.php','1269746634','1269792000','-1','-1','0','0');
|
||||
INSERT INTO pre_common_cron VALUES ('13','1','system','清理过期动态','cron_cleanfeed.php','1269746634','1269792000','-1','-1','0','0');
|
||||
INSERT INTO pre_common_cron VALUES ('14','1','system','每日获取安全补丁','cron_checkpatch_daily.php','1269746639','1269792000','-1','-1','2','22');
|
||||
INSERT INTO pre_common_cron VALUES ('15','1','system','定时发布主题','cron_publish_halfhourly.php','1269746639','1269792000','-1','-1','-1','0 30');
|
||||
INSERT INTO pre_common_cron VALUES ('16','1','system','每周广播归档','cron_follow_daily.php','1269746639','1269792000','-1','-1','02','0');
|
||||
INSERT INTO pre_common_cron VALUES ('17','1','system','更新每日查看数','cron_todayviews_daily.php','1321500558','1321556400','-1','-1','3','0 5 10 15 20 25 30 35 40 45 50 55');
|
||||
|
|
|
@ -1,259 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id: admincp_cloud.php 33808 2013-08-15 11:22:45Z nemohou $
|
||||
*/
|
||||
|
||||
if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
@set_time_limit(600);
|
||||
cpheader();
|
||||
|
||||
if(empty($admincp) || !is_object($admincp)) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
$adminscript = ADMINSCRIPT;
|
||||
|
||||
$cloudDomain = 'http://cp.discuz.qq.com';
|
||||
|
||||
$utilService = Cloud::loadClass('Service_Util');
|
||||
$appService = Cloud::loadClass('Service_App');
|
||||
$cloudClient = Cloud::loadClass('Service_Client_Cloud');
|
||||
|
||||
try {
|
||||
$cloudstatus = $appService->checkCloudStatus();
|
||||
} catch (Cloud_Service_AppException $e) {
|
||||
if($operation == 'doctor' || $operation == 'siteinfo') {
|
||||
} else {
|
||||
cpmsg_error('cloud_status_error');
|
||||
}
|
||||
}
|
||||
|
||||
$forceOpen = !empty($_GET['force_open']) ? true : false;
|
||||
|
||||
if(!$operation || $operation == 'open') {
|
||||
|
||||
if($cloudstatus == 'cloud' && !$forceOpen) {
|
||||
cpmsg('cloud_turnto_applist', '', 'succeed', array(), '<p class="marginbot"><a href="###" onclick="top.location = \''.ADMINSCRIPT.'?frames=yes&action=cloud&operation=applist\'" class="lightlink">'.cplang('message_redirect').'</a></p><script type="text/JavaScript">setTimeout("top.location = \''.ADMINSCRIPT.'?frames=yes&action=cloud&operation=applist\'", 3000);</script>');
|
||||
} else {
|
||||
if ($_GET['getConfirmInfo']) {
|
||||
ajaxshowheader();
|
||||
ajaxshowfooter();
|
||||
}
|
||||
|
||||
$step = max(1, intval($_GET['step']));
|
||||
$type = $cloudstatus == 'upgrade' ? 'upgrade' : 'open';
|
||||
|
||||
if($step == 1) {
|
||||
|
||||
$utilService->generateUniqueId();
|
||||
|
||||
if($cloudstatus == 'upgrade' || ($cloudstatus == 'cloud' && $forceOpen)) {
|
||||
shownav('navcloud', 'menu_cloud_upgrade');
|
||||
$itemtitle = cplang('menu_cloud_upgrade');
|
||||
} else {
|
||||
shownav('navcloud', 'menu_cloud_open');
|
||||
$itemtitle = cplang('menu_cloud_open');
|
||||
}
|
||||
|
||||
echo '
|
||||
<div class="itemtitle">
|
||||
<h3>'.$itemtitle.'</h3>
|
||||
<ul style="margin-right: 10px;" class="tab1"></ul>
|
||||
<ul class="stepstat" id="nav_steps"></ul>
|
||||
<ul class="tab1"></ul>
|
||||
</div>
|
||||
|
||||
<div id="loading">
|
||||
<div id="loadinginner" style="display: block; padding: 100px 0; text-align: center; color: #999;">
|
||||
<img src="'.$_G['style']['imgdir'].'/loading.gif" alt="loading..." style="vertical-align: middle;" /> '.$lang['cloud_page_loading'].'
|
||||
</div>
|
||||
</div>
|
||||
<div style="display:none;" id="title"></div>';
|
||||
|
||||
showformheader('', 'onsubmit="return submitForm();"');
|
||||
|
||||
if($cloudstatus == 'upgrade' || ($cloudstatus == 'cloud' && $forceOpen)) {
|
||||
echo '<div style="margin-top:10px; color: red; padding-left: 10px;" id="manyou_update_tips"></div>';
|
||||
}
|
||||
|
||||
showtableheader('', '', 'id="mainArea" style="display:none;"');
|
||||
|
||||
echo '
|
||||
<tr><td id="" style="border:none;"><div id="msg" class="tipsblock"></div></td></tr>
|
||||
<tr><td style="border-top:none;"><br />
|
||||
<label><input onclick="if(this.checked) {$(\'submit_submit\').disabled=false; $(\'submit_submit\').style.color=\'#000\';} else {$(\'submit_submit\').disabled=true; $(\'submit_submit\').style.color=\'#aaa\';}" id="agreeProtocal" class="checkbox" type="checkbox" checked="checked" value="1" />' . cplang('cloud_agree_protocal') . '</label><a id="protocal_url" href="javascript:;" target="_blank">' . cplang('read_protocal') . '</a>
|
||||
</td>
|
||||
</tr>';
|
||||
|
||||
showsubmit('submit', 'cloud_will_open', '', '<script type="text/javascript">$(\'submit_submit\').disabled = true; $(\'submit_submit\').style.color = \'#aaa\';</script><span id="cloud_doctor_site_test_result_div"><img src="' . $_G['style']['imgdir'] . '/loading.gif" class="vm"> '.cplang('cloud_waiting').'</span>');
|
||||
showtablefooter();
|
||||
showformfooter();
|
||||
|
||||
echo '
|
||||
<div id="siteInfo" style="display:none;;">
|
||||
<h3 class="flb"><em>'.cplang('message_title').'</em><span><a href="javascript:;" class="flbc" onclick="hideWindow(\'open_cloud\');" title="'.cplang('close').'">'.cplang('close').'</a></span></h3>';
|
||||
|
||||
showformheader('cloud&operation=open&step=2'.(($cloudstatus == 'cloud' && $forceOpen) ? '&force_open=1' : ''), '');
|
||||
|
||||
echo '
|
||||
<div class="c">
|
||||
<div class="tplw">
|
||||
<p class="mbn tahfx">
|
||||
<strong>'.cplang('jump_to_cloud').'</strong><input type="hidden" id="cloud_api_ip" name="cloud_api_ip" value="" />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="o pns"><button type="submit" class="pn pnc" id="btn_1"><span>'.cplang('continue').'</span></button></div>';
|
||||
|
||||
showformfooter();
|
||||
echo "</div>";
|
||||
|
||||
echo <<<EOT
|
||||
<link rel="stylesheet" type="text/css" href="static/image/admincp/cloud/cloud.css" />
|
||||
<script type="text/javascript" src="static/image/admincp/cloud/cloud.js"></script>
|
||||
<script type="text/JavaScript">
|
||||
var cloudStatus = "$cloudstatus";
|
||||
var disallowfloat = 'siteInfo';
|
||||
var cloudApiIp = '';
|
||||
var dialogHtml = '';
|
||||
var getMsg = false;
|
||||
|
||||
var millisec = 10 * 1000; //10秒
|
||||
var expirationText = '{$lang['cloud_time_out']}';
|
||||
expirationTimeout = setTimeout("expiration()", millisec);
|
||||
</script>
|
||||
EOT;
|
||||
$introUrl = $cloudDomain.'/cloud/introduction';
|
||||
if($cloudstatus == 'upgrade') {
|
||||
$params = array('type' => 'upgrade');
|
||||
|
||||
if ($_G['setting']['my_app_status']) {
|
||||
$params['apps']['manyou'] = array('status' => true);
|
||||
}
|
||||
|
||||
if (isset($_G['setting']['my_search_status'])) {
|
||||
|
||||
$params['apps']['search'] = array('status' => !empty($_G['setting']['my_search_status']) ? true : false);
|
||||
|
||||
$oldSiteId = empty($_G['setting']['my_siteid_old'])?'':$_G['setting']['my_siteid_old'];
|
||||
$oldSitekeySign = empty($_G['setting']['my_sitekey_sign_old'])?'':$_G['setting']['my_sitekey_sign_old'];
|
||||
|
||||
if($oldSiteId && $oldSiteId != $_G['setting']['my_siteid'] && $oldSitekeySign) {
|
||||
$params['apps']['search']['oldSiteId'] = $oldSiteId;
|
||||
$params['apps']['search']['searchSig'] = $oldSitekeySign;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (isset($_G['setting']['connect'])) {
|
||||
$params['apps']['connect'] = array('status' => !empty($_G['setting']['connect']['allow']) ? true : false);
|
||||
|
||||
$oldSiteId = empty($_G['setting']['connectsiteid'])?'':$_G['setting']['connectsiteid'];
|
||||
$oldSitekey = empty($_G['setting']['connectsitekey'])?'':$_G['setting']['connectsitekey'];
|
||||
|
||||
if($oldSiteId && $oldSiteId != $_G['setting']['my_siteid'] && $oldSitekey) {
|
||||
$params['apps']['connect']['oldSiteId'] = $oldSiteId;
|
||||
$params['apps']['connect']['connectSig'] = substr(md5(substr(md5($oldSiteId.'|'.$oldSitekey), 0, 16)), 16, 16);
|
||||
}
|
||||
}
|
||||
|
||||
$params['ADTAG'] = 'CP.DISCUZ.INTRODUCTION';
|
||||
|
||||
$signUrl = $utilService->generateSiteSignUrl($params);
|
||||
$introUrl .= '?'.$signUrl;
|
||||
}
|
||||
|
||||
echo '<script type="text/JavaScript" charset="UTF-8" src="'.$introUrl.'"></script>';
|
||||
$doctorService = Cloud::loadClass('Service_Doctor');
|
||||
$doctorService->showCloudDoctorJS('open');
|
||||
|
||||
} elseif($step == 2) {
|
||||
|
||||
$statsUrl = $cloudDomain . '/cloud/stats/registerclick';
|
||||
echo '<script type="text/JavaScript" charset="UTF-8" src="'.$statsUrl.'"></script>';
|
||||
|
||||
try {
|
||||
if($_G['setting']['my_siteid'] && $_G['setting']['my_sitekey']) {
|
||||
|
||||
if($_G['setting']['my_app_status']) {
|
||||
$manyouClient = Cloud::loadClass('Service_Client_Manyou');
|
||||
$manyouClient->sync();
|
||||
}
|
||||
|
||||
$cloudClient->upgradeManyou(trim($_GET['cloud_api_ip']));
|
||||
|
||||
} else {
|
||||
$cloudClient->registerCloud(trim($_GET['cloud_api_ip']));
|
||||
}
|
||||
} catch (Cloud_Service_Client_RestfulException $exception) {
|
||||
switch ($exception->getCode()) {
|
||||
case 1:
|
||||
cpmsg('cloud_unknown_dns', '', 'error');
|
||||
case 2:
|
||||
$msgValues = array(
|
||||
'errorMessage' => $exception->getMessage(),
|
||||
'errorCode' => $exception->getCode()
|
||||
);
|
||||
cpmsg('cloud_network_busy', '', 'error', $msgValues);
|
||||
default:
|
||||
$msgValues = array();
|
||||
$errorMessage = $exception->getMessage();
|
||||
$checkUrl = preg_match('/<a.+?>.+?<\/a>/i', $errorMessage, $results);
|
||||
if($checkUrl) {
|
||||
foreach($results as $key => $result) {
|
||||
$errorMessage = str_replace($result, '{replace_' . $key . '}', $errorMessage);
|
||||
$msgValues = array('replace_' . $key => $result);
|
||||
}
|
||||
}
|
||||
cpmsg($errorMessage, '', 'error', $msgValues);
|
||||
}
|
||||
}
|
||||
|
||||
$params['ADTAG'] = 'CP.CLOUD.BIND.INDEX';
|
||||
$bindUrl = $cloudDomain . '/bind/index?' . $utilService->generateSiteSignUrl($params);
|
||||
echo '<script>top.location="' . $bindUrl . '";</script>';
|
||||
}
|
||||
}
|
||||
|
||||
} elseif($operation == 'applist') {
|
||||
|
||||
if($cloudstatus != 'cloud') {
|
||||
cpmsg('cloud_open_first', '', 'succeed', array(), '<p class="marginbot"><a href="###" onclick="top.location = \''.ADMINSCRIPT.'?frames=yes&action=plugins\'" class="lightlink">'.cplang('message_redirect').'</a></p><script type="text/JavaScript">setTimeout("top.location = \''.ADMINSCRIPT.'?frames=yes&action=plugins\'", 3000);</script>');
|
||||
}
|
||||
|
||||
$signParams = array('refer' => $_G['siteurl'], 'ADTAG' => 'CP.DISCUZ.APPLIST');
|
||||
$signUrl = $utilService->generateSiteSignUrl($signParams);
|
||||
$utilService->redirect($cloudDomain . '/cloud/appList/?' . $signUrl);
|
||||
|
||||
} elseif(in_array($operation, array('siteinfo', 'doctor'))) {
|
||||
|
||||
require libfile("cloud/$operation", 'admincp');
|
||||
|
||||
} elseif(in_array($operation, array('manyou', 'connect', 'security', 'stats', 'search', 'smilies', 'qqgroup', 'union', 'storage'))) {
|
||||
/* if($cloudstatus != 'cloud') {
|
||||
cpmsg('cloud_open_first', '', 'succeed', array(), '<p class="marginbot"><a href="###" onclick="top.location = \''.ADMINSCRIPT.'?frames=yes&action=plugins\'" class="lightlink">'.cplang('message_redirect').'</a></p><script type="text/JavaScript">setTimeout("top.location = \''.ADMINSCRIPT.'?frames=yes&action=plugins\'", 3000);</script>');
|
||||
}
|
||||
|
||||
if($operation != 'security') {
|
||||
$apps = $appService->getCloudApps();
|
||||
if(empty($apps) || empty($apps[$operation]) || $apps[$operation]['status'] == 'close') {
|
||||
cpmsg('cloud_application_close', 'action=plugins', 'error');
|
||||
}
|
||||
if($apps[$operation]['status'] == 'disable') {
|
||||
cpmsg('cloud_application_disable', 'action=plugins', 'error');
|
||||
}
|
||||
}
|
||||
*/
|
||||
require libfile("cloud/$operation", 'admincp');
|
||||
|
||||
} else {
|
||||
exit('Access Denied');
|
||||
}
|
|
@ -178,8 +178,6 @@ if(submitcheck('forumsubmit', 1)) {
|
|||
$updateclosed[] = $thread['tid'];
|
||||
} elseif($thread['threadexists']) {
|
||||
$tids[] = $thread['tid'];
|
||||
$log_handler = Cloud::loadClass('Cloud_Service_SearchHelper');
|
||||
$log_handler->myThreadLog('delete', array('tid' => $thread['tid']));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -468,9 +468,6 @@ var rowtypedata = [
|
|||
C::t('forum_moderator')->delete_by_fid($source);
|
||||
C::t('common_member_forum_buylog')->delete_by_fid($target);
|
||||
|
||||
$log_handler = Cloud::loadClass('Cloud_Service_SearchHelper');
|
||||
$log_handler->myThreadLog('mergeforum', array('fid' => $source, 'otherid' => $target));
|
||||
|
||||
$query = C::t('forum_access')->fetch_all_by_fid_uid($source);
|
||||
foreach($query as $access) {
|
||||
C::t('forum_access')->insert(array('uid' => $access['uid'], 'fid' => $target, 'allowview' => $access['allowview'], 'allowpost' => $access['allowpost'], 'allowreply' => $access['allowreply'], 'allowgetattach' => $access['allowgetattach']), false, true);
|
||||
|
@ -1873,9 +1870,6 @@ EOT;
|
|||
deletedomain($fid, 'forum');
|
||||
deletedomain($fid, 'subarea');
|
||||
if($currow + $pp > $total) {
|
||||
|
||||
$log_handler = Cloud::loadClass('Cloud_Service_SearchHelper');
|
||||
$log_handler->myThreadLog('delforum', array('fid' => $fid));
|
||||
C::t('forum_forum')->delete_by_fid($fid);
|
||||
C::t('common_nav')->delete_by_type_identifier(5, $fid);
|
||||
C::t('home_favorite')->delete_by_id_idtype($fid, 'fid');
|
||||
|
|
|
@ -1178,8 +1178,6 @@ EOF;
|
|||
|
||||
if($_GET['groupidnew'] != $member['groupid'] && (in_array($_GET['groupidnew'], array(4, 5)) || in_array($member['groupid'], array(4, 5)))) {
|
||||
$my_opt = in_array($_GET['groupidnew'], array(4, 5)) ? 'banuser' : 'unbanuser';
|
||||
$log_handler = Cloud::loadClass('Cloud_Service_SearchHelper');
|
||||
$log_handler->myThreadLog($my_opt, array('uid' => $member['uid']));
|
||||
banlog($member['username'], $member['groupid'], $_GET['groupidnew'], $groupexpirynew, $_GET['reason']);
|
||||
}
|
||||
|
||||
|
@ -1549,11 +1547,6 @@ EOF;
|
|||
uc_user_deleteavatar($member['uid']);
|
||||
}
|
||||
}
|
||||
if(!empty($my_data) && !empty($mylogtype)) {
|
||||
$log_handler = Cloud::loadClass('Cloud_Service_SearchHelper');
|
||||
$log_handler->myThreadLog($mylogtype, $my_data);
|
||||
}
|
||||
|
||||
|
||||
$setarr['adminid'] = $adminidnew;
|
||||
$setarr['groupid'] = $groupidnew;
|
||||
|
@ -3185,7 +3178,7 @@ function notifymembers($operation, $variable) {
|
|||
if(!function_exists('sendmail')) {
|
||||
include libfile('function/mail');
|
||||
}
|
||||
if($_GET['notifymember'] && in_array($_GET['notifymembers'], array('pm', 'notice', 'email', 'mobile'))) {
|
||||
if($_GET['notifymember'] && in_array($_GET['notifymembers'], array('pm', 'notice', 'email'))) {
|
||||
$uids = searchmembers($search_condition, $pertask, $current);
|
||||
|
||||
require_once libfile('function/discuzcode');
|
||||
|
@ -3207,19 +3200,6 @@ function notifymembers($operation, $variable) {
|
|||
$urladd .= '&gpmid='.$gpmid;
|
||||
}
|
||||
$members = C::t('common_member')->fetch_all($uids);
|
||||
if($_GET['notifymembers'] == 'mobile') {
|
||||
$toUids = array_keys($members);
|
||||
if($_G['setting']['cloud_status'] && !empty($toUids)) {
|
||||
try {
|
||||
$noticeService = Cloud::loadClass('Service_Client_Notification');
|
||||
$fromType = $_GET['system'] ? 1 : 2;
|
||||
$noticeService->addSiteMasterUserNotify($toUids, $subject, $message, $_G['uid'], $_G['username'], $fromType, TIMESTAMP);
|
||||
} catch (Cloud_Service_Client_RestfulException $e) {
|
||||
cpmsg('['.$e->getCode().']'.$e->getMessage(), '', 'error');
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
foreach($members as $member) {
|
||||
if($_GET['notifymembers'] == 'pm') {
|
||||
C::t('common_member_grouppm')->insert(array(
|
||||
|
@ -3266,7 +3246,6 @@ function notifymembers($operation, $variable) {
|
|||
$continue = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$newsletter_detail = array();
|
||||
if($continue) {
|
||||
|
@ -3307,14 +3286,6 @@ function notifymembers($operation, $variable) {
|
|||
function banlog($username, $origgroupid, $newgroupid, $expiration, $reason, $status = 0) {
|
||||
global $_G, $_POST;
|
||||
$cloud_apps = dunserialize($_G['setting']['cloud_apps']);
|
||||
if (isset($_POST['bannew']) && $_POST['formhash'] && $cloud_apps['security']['status'] == 'normal') {
|
||||
$securityService = Cloud::loadClass('Service_Security');
|
||||
if ($_POST['bannew']) {
|
||||
$securityService->logBannedMember($username, $reason);
|
||||
} else {
|
||||
$securityService->updateMemberRecover($username);
|
||||
}
|
||||
}
|
||||
writelog('banlog', dhtmlspecialchars("$_G[timestamp]\t{$_G[member][username]}\t$_G[groupid]\t$_G[clientip]\t$username\t$origgroupid\t$newgroupid\t$expiration\t$reason\t$status"));
|
||||
}
|
||||
|
||||
|
|
|
@ -102,7 +102,6 @@ EOT;
|
|||
|
||||
loadcache('posttableids');
|
||||
$posttable = in_array($_GET['posttableid'], $_G['cache']['posttableids']) ? $_GET['posttableid'] : 0;
|
||||
$log_handler = Cloud::loadClass('Cloud_Service_SearchHelper');
|
||||
foreach(C::t('forum_post')->fetch_all($posttable, ($pids ? explode(',', $pids) : $_GET['pidarray']), false) as $post) {
|
||||
$prune['forums'][] = $post['fid'];
|
||||
$prune['thread'][$post['tid']]++;
|
||||
|
@ -111,12 +110,6 @@ EOT;
|
|||
if($post['first']) {
|
||||
$tidsdelete[] = $post['tid'];
|
||||
}
|
||||
|
||||
if($post['first']) {
|
||||
$log_handler->myThreadLog('delete', array('tid' => $post['tid']));
|
||||
} else {
|
||||
$log_handler->myPostLog('delete', array('pid' => $post['pid']));
|
||||
}
|
||||
}
|
||||
|
||||
if($pidsdelete) {
|
||||
|
|
|
@ -113,11 +113,7 @@ if(!$operation) {
|
|||
$mstarttime = $_GET['mstarttime'];
|
||||
$mendtime = $_GET['mendtime'];
|
||||
|
||||
$appService = Cloud::loadClass('Service_App');
|
||||
$secStatus = $appService->getCloudAppStatus('security');
|
||||
if($secStatus){
|
||||
$security = $_GET['security'];
|
||||
}
|
||||
$secStatus = false;
|
||||
|
||||
$searchsubmit = $_GET['searchsubmit'];
|
||||
|
||||
|
|
|
@ -81,11 +81,7 @@ if(!$operation) {
|
|||
$pstarttime = $_GET['pstarttime'];
|
||||
$pendtime = $_GET['pendtime'];
|
||||
|
||||
$appService = Cloud::loadClass('Service_App');
|
||||
$secStatus = $appService->getCloudAppStatus('security');
|
||||
if($secStatus){
|
||||
$security = $_GET['security'];
|
||||
}
|
||||
$secStatus = false;
|
||||
|
||||
$searchsubmit = $_GET['searchsubmit'];
|
||||
|
||||
|
|
|
@ -369,11 +369,6 @@ EOT;
|
|||
updateforumcount(intval($fid));
|
||||
}
|
||||
|
||||
$log_handler = Cloud::loadClass('Cloud_Service_SearchHelper');
|
||||
foreach($_GET['tidarray'] as $tid) {
|
||||
$log_handler->myThreadLog('move', array('tid' => $tid, 'otherid' => $_GET['toforum']));
|
||||
}
|
||||
|
||||
$cpmsg = cplang('threads_succeed');
|
||||
|
||||
} elseif($optype == 'movesort') {
|
||||
|
@ -400,10 +395,6 @@ EOT;
|
|||
updateforumcount(intval($fid));
|
||||
}
|
||||
|
||||
$log_handler = Cloud::loadClass('Cloud_Service_SearchHelper');
|
||||
foreach($_GET['tidarray'] as $tid) {
|
||||
$log_handler->myThreadLog('delete', array('tid' => $tid));
|
||||
}
|
||||
$cpmsg = cplang('threads_succeed');
|
||||
|
||||
} elseif($optype == 'deleteattach') {
|
||||
|
@ -424,11 +415,6 @@ EOT;
|
|||
C::t('forum_thread')->update($tidsarray, array('displayorder'=>$_GET['stick_level']));
|
||||
$my_act = $_GET['stick_level'] ? 'sticky' : 'update';
|
||||
|
||||
$log_handler = Cloud::loadClass('Cloud_Service_SearchHelper');
|
||||
foreach($_GET['tidarray'] as $tid) {
|
||||
$log_handler->myThreadLog($my_act, array('tid' => $tid));
|
||||
}
|
||||
|
||||
if($_G['setting']['globalstick']) {
|
||||
updatecache('globalstick');
|
||||
}
|
||||
|
@ -451,10 +437,6 @@ EOT;
|
|||
C::t('forum_thread')->update($tidsarray, array('digest'=>$_GET['digest_level']));
|
||||
$my_act = $_GET['digest_level'] ? 'digest' : 'update';
|
||||
|
||||
$log_handler = Cloud::loadClass('Cloud_Service_SearchHelper');
|
||||
foreach($_GET['tidarray'] as $tid) {
|
||||
$log_handler->myThreadLog($my_act, array('tid' => $tid));
|
||||
}
|
||||
$cpmsg = cplang('threads_succeed');
|
||||
|
||||
} elseif($optype == 'addstatus') {
|
||||
|
@ -462,11 +444,6 @@ EOT;
|
|||
C::t('forum_thread')->update($tidsarray, array('closed'=>$_GET['status']));
|
||||
$my_opt = $_GET['status'] ? 'close' : 'open';
|
||||
|
||||
$log_handler = Cloud::loadClass('Cloud_Service_SearchHelper');
|
||||
foreach($_GET['tidarray'] as $tid) {
|
||||
$log_handler->myThreadLog($my_opt, array('tid' => $tid));
|
||||
}
|
||||
|
||||
$cpmsg = cplang('threads_succeed');
|
||||
|
||||
} elseif($operation == 'forumstick') {
|
||||
|
|
|
@ -261,12 +261,10 @@ if(!submitcheck('modsubmit') && !$_GET['fast']) {
|
|||
}
|
||||
$threadlist = C::t('forum_thread')->fetch_all($tids);
|
||||
|
||||
$log_handler = Cloud::loadClass('Cloud_Service_SearchHelper');
|
||||
foreach($postlist as $post) {
|
||||
$post['lastpost'] = $threadlist[$post['tid']]['lastpost'];
|
||||
|
||||
$pidarray[] = $post['pid'];
|
||||
$log_handler->myPostLog('validate', array('pid' => $post['pid']));
|
||||
if(getstatus($post['status'], 3) == 0) {
|
||||
updatepostcredits('+', $post['authorid'], 'reply', $post['fid']);
|
||||
$attachcount = C::t('forum_attachment_n')->count_by_id('tid:'.$post['tid'], 'pid', $post['pid']);
|
||||
|
|
|
@ -209,10 +209,7 @@ if(!submitcheck('modsubmit') && !$_GET['fast']) {
|
|||
if($moderation['delete']) {
|
||||
$deletetids = array();
|
||||
$recyclebintids = array();
|
||||
$log_handler = Cloud::loadClass('Cloud_Service_SearchHelper');
|
||||
foreach(C::t('forum_thread')->fetch_all_by_tid_displayorder($moderation['delete'], $displayorder, '>=', $fidadd[fids]) as $thread) {
|
||||
$log_handler->myThreadLog('delete', array('tid' => $thread['tid']));
|
||||
|
||||
if($recyclebins[$thread['fid']]) {
|
||||
$recyclebintids[] = $thread['tid'];
|
||||
} else {
|
||||
|
@ -243,7 +240,6 @@ if(!submitcheck('modsubmit') && !$_GET['fast']) {
|
|||
$forums = array();
|
||||
|
||||
$tids = $authoridarray = $moderatedthread = array();
|
||||
$log_handler = Cloud::loadClass('Cloud_Service_SearchHelper');
|
||||
foreach(C::t('forum_thread')->fetch_all_by_tid_fid($moderation['validate'], $fidadd['fids']) as $thread) {
|
||||
if($thread['displayorder'] != -2 && $thread['displayorder']!= -3) {
|
||||
continue;
|
||||
|
@ -252,8 +248,6 @@ if(!submitcheck('modsubmit') && !$_GET['fast']) {
|
|||
$poststatus = $poststatus['status'];
|
||||
$tids[] = $thread['tid'];
|
||||
|
||||
$log_handler->myThreadLog('validate', array('tid' => $thread['tid']));
|
||||
|
||||
if(getstatus($poststatus, 3) == 0) {
|
||||
updatepostcredits('+', $thread['authorid'], 'post', $thread['fid']);
|
||||
$attachcount = C::t('forum_attachment_n')->count_by_id('tid:'.$thread['tid'], 'tid', $thread['tid']);
|
||||
|
|
|
@ -166,8 +166,6 @@ if(empty($_GET['nothumb']) && $attach['isimage'] && $attach['thumb']) {
|
|||
|
||||
$filename = $_G['setting']['attachdir'].'/forum/'.$attach['attachment'];
|
||||
if(!$attach['remote'] && !is_readable($filename)) {
|
||||
$storageService = Cloud::loadClass('Service_Storage');
|
||||
$storageService->checkAttachment($attach);
|
||||
if(!$requestmode) {
|
||||
showmessage('attachment_nonexistence');
|
||||
} else {
|
||||
|
|
|
@ -123,7 +123,8 @@ class Cloud_Service_Connect {
|
|||
$params['sig'] = $this->connectGetSig($params, $this->connectGetSigKey());
|
||||
|
||||
$jsurl = $_G['connect']['discuz_new_feed_url'];
|
||||
$utilService = Cloud::loadClass('Service_Util');
|
||||
require_once DISCUZ_ROOT.'/source/plugin/qqconnect/lib/Util.php';
|
||||
$utilService = new Cloud_Service_Util();
|
||||
$jsurl .= '?' . $utilService->httpBuildQuery($params, '', '&');
|
||||
|
||||
return $jsurl;
|
||||
|
@ -395,7 +396,8 @@ class Cloud_Service_Connect {
|
|||
|
||||
$url = urlencode($url);
|
||||
|
||||
$utilService = Cloud::loadClass('Service_Util');
|
||||
require_once DISCUZ_ROOT.'/source/plugin/qqconnect/lib/Util.php';
|
||||
$utilService = new Cloud_Service_Util();
|
||||
$param_str = urlencode($utilService->httpBuildQuery($params, '', '&'));
|
||||
|
||||
$base_string = $method.'&'.$url.'&'.$param_str;
|
||||
|
@ -554,7 +556,8 @@ class Cloud_Service_Connect {
|
|||
function connectCookieLoginReport($loginTimes) {
|
||||
global $_G;
|
||||
|
||||
$utilService = Cloud::loadClass('Service_Util');
|
||||
require_once DISCUZ_ROOT.'/source/plugin/qqconnect/lib/Util.php';
|
||||
$utilService = new Cloud_Service_Util();
|
||||
$response = '';
|
||||
|
||||
if ($loginTimes) {
|
||||
|
|
|
@ -15,7 +15,8 @@ if(!$_G['uid']) {
|
|||
showmessage('not_loggedin', NULL, array(), array('login' => 1));
|
||||
}
|
||||
|
||||
$connectService = Cloud::loadClass('Service_Connect');
|
||||
require_once DISCUZ_ROOT.'/source/plugin/qqconnect/lib/Connect.php';
|
||||
$connectService = new Cloud_Service_Connect();
|
||||
$connectService->connectMergeMember();
|
||||
|
||||
if($_G['member']['conisbind']) {
|
||||
|
|
|
@ -21,7 +21,8 @@ parse_str(substr($_GET['referer'], 1), $refererarray);
|
|||
$referer = 'http://wsq.discuz.com/'.$_GET['referer'];
|
||||
|
||||
try {
|
||||
$connectOAuthClient = Cloud::loadClass('Service_Client_ConnectOAuth');
|
||||
require_once DISCUZ_ROOT.'/source/plugin/qqconnect/lib/ConnectOAuth.php';
|
||||
$connectOAuthClient = new Cloud_Service_Client_ConnectOAuth();
|
||||
} catch(Exception $e) {
|
||||
showmessage('qqconnect:connect_app_invalid');
|
||||
}
|
||||
|
@ -75,7 +76,8 @@ if($op == 'init') {
|
|||
$params = $_GET;
|
||||
|
||||
if(!isset($params['receive'])) {
|
||||
$utilService = Cloud::loadClass('Service_Util');
|
||||
require_once DISCUZ_ROOT.'/source/plugin/qqconnect/lib/Util.php';
|
||||
$utilService = new Cloud_Service_Util();
|
||||
echo '<script type="text/javascript">setTimeout("window.location.href=\'plugin.php?receive=yes&'.str_replace("'", "\'", $utilService->httpBuildQuery($_GET, '', '&')).'\'", 1)</script>';
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue