删除 漫游相关

This commit is contained in:
Comsenz 2017-07-28 20:17:14 +08:00
parent bbb40d3f14
commit c699f6025e
7 changed files with 10 additions and 81 deletions

View File

@ -14,40 +14,17 @@ if(!defined('IN_DISCUZ')) {
class helper_manyou {
public static function manyoulog($logtype, $uids, $action, $fid = '') {
global $_G;
if($_G['setting']['my_app_status'] && $logtype == 'user') {
$action = daddslashes($action);
$values = array();
$uids = is_array($uids) ? $uids : array($uids);
foreach($uids as $uid) {
$uid = intval($uid);
C::t('common_member_log')->insert(array('uid' => $uid, 'action' => $action, 'dateline' => TIMESTAMP), false, true);
}
}
}
public static function getuserapp($panel = 0) {
require_once libfile('function/manyou');
manyou_getuserapp($panel);
return true;
}
public static function getmyappiconpath($appid, $iconstatus=0) {
if($iconstatus > 0) {
return getglobal('setting/attachurl').'./'.'myapp/icon/'.$appid.'.jpg';
}
return 'http://appicon.manyou.com/icons/'.$appid;
return '';
}
public static function checkupdate() {
global $_G;
if($_G['setting']['my_app_status'] && empty($_G['setting']['my_closecheckupdate']) && $_G['group']['radminid'] == 1) {
$sid = $_G['setting']['my_siteid'];
$ts = $_G['timestamp'];
$key = md5($sid.$ts.$_G['setting']['my_sitekey']);
echo '<script type="text/javascript" src="http://notice.uchome.manyou.com/notice?sId='.$sid.'&ts='.$ts.'&key='.$key.'" charset="UTF-8"></script>';
}
}
}

View File

@ -1867,7 +1867,6 @@ function cknewuser($return=0) {
}
function manyoulog($logtype, $uids, $action, $fid = '') {
helper_manyou::manyoulog($logtype, $uids, $action, $fid);
}
function useractionlog($uid, $action) {
@ -1879,11 +1878,11 @@ function getuseraction($var) {
}
function getuserapp($panel = 0) {
return helper_manyou::getuserapp($panel);
return '';
}
function getmyappiconpath($appid, $iconstatus=0) {
return helper_manyou::getmyappiconpath($appid, $iconstatus);
return '';
}
function getexpiration() {
@ -1977,15 +1976,6 @@ function updatemoderate($idtype, $ids, $status = 0) {
}
function userappprompt() {
global $_G;
if($_G['setting']['my_app_status'] && $_G['setting']['my_openappprompt'] && empty($_G['cookie']['userappprompt'])) {
$sid = $_G['setting']['my_siteid'];
$ts = $_G['timestamp'];
$key = md5($sid.$ts.$_G['setting']['my_sitekey']);
$uchId = $_G['uid'] ? $_G['uid'] : 0;
echo '<script type="text/javascript" src="http://notice.uchome.manyou.com/notice/userNotice?sId='.$sid.'&ts='.$ts.'&key='.$key.'&uchId='.$uchId.'" charset="UTF-8"></script>';
}
}
function dintval($int, $allowarray = false) {
@ -2008,7 +1998,7 @@ function dintval($int, $allowarray = false) {
function makeSearchSignUrl() {
return getglobal('setting/my_search_data/status') ? helper_manyou::makeSearchSignUrl() : array();
return array();
}
function get_related_link($extent) {

View File

@ -571,28 +571,6 @@ function getblockhtml($blockname,$parameters = array()) {
case 'myapp':
$html = '';
$listclass = 'ptm ml mls cl';
$userapps = C::t('home_userapp')->fetch_all_by_uid_appid($uid, 0, 'menuorder', 'DESC', 0, $shownum);
$appids = array();
foreach($userapps as $app) {
$appids[$app['appid']] = $app['appid'];
}
if(!empty($appids)) {
$myapps = C::t('common_myapp')->fetch_all($appids);
}
foreach($userapps as $value) {
$value['iconstatus'] = $myapps[$value['appid']]['iconstatus'];
if(!empty($value['appname'])) {
$replace = array('appid'=>$value['appid'], 'appname'=>$value['appname']);
$parameters['logotype'] = !empty($parameters['logotype']) && in_array($parameters['logotype'], array('icon', 'logo')) ? $parameters['logotype'] : 'logo';
if($parameters['logotype'] == 'icon') {
$listclass = 'xl xl1 cl';
$replace['icon'] = getmyappiconpath($value['appid'], $value['iconstatus']);
}
$html .= lang('space', 'myapp_li_'.$parameters['logotype'], $replace);
}
}
$html = !$html ? '<p class="emp">'.lang('space','block_myapp_no_content').($space['self'] ? lang('space', 'block_myapp_no_content_publish', $space) : '').'</p>' : '<ul class="'.$listclass.'">'.$html.'</ul>';
break;
case 'block1':
case 'block2':

View File

@ -30,18 +30,6 @@ if($op == 'ignore') {
}
$formid = random(8);
} elseif($op == 'getuserapp') {
getuserapp();
if(empty($_GET['subop'])) {
$my_userapp = array();
foreach($_G['my_userapp'] as $value) {
if($value['allowsidenav'] && !isset($_G['cache']['userapp'][$value['appid']])) {
$my_userapp[] = $value;
}
}
} else {
$my_userapp = $_G['my_menu'];
}
} elseif($op == 'closefeedbox') {
dsetcookie('closefeedbox', 1);

View File

@ -141,7 +141,6 @@
</script>
<!--{/if}-->
<!--{eval userappprompt();}-->
<!--{if $_G['basescript'] != 'userapp'}-->
<div id="scrolltop">
<!--{if $_G[fid] && $_G['mod'] == 'viewthread'}-->

View File

@ -1,5 +1,4 @@
<!--{hook/global_userabout_top $_G['basescript'].'::'.CURMODULE}-->
<!--{eval getuserapp(1);}-->
<ul>
<!--{loop $_G['setting']['spacenavs'] $nav}-->
<!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->

View File

@ -588,8 +588,6 @@
</div>
<!--{/if}-->
</div>
<!--{if $_G['group']['radminid'] == 1}-->
<!--{eval helper_manyou::checkupdate();}-->
<!--{/if}-->
<!--{if empty($_G['setting']['disfixednv_forumindex']) }--><script>fixed_top_nv();</script><!--{/if}-->
<!--{template common/footer}-->