where(array('id'=>$_SESSION['uid']))->find();
if(C('close_help') == 1 && $users['sysuser'] == 0){
$data_g='notingh';
}else{
$textHelp=1;
if (C('server_topdomain')=='weimicms.cn' || $users['sysuser']){
$textHelp=0;
}
}
?>
$data = array(
'key' => C('server_key'),
'domain' => C('server_topdomain'),
'is_text' => $textHelp,
'data_g' => $data_g,
'data_m' => MODULE_NAME,
'data_a' => ACTION_NAME
);
if(!C('emergent_mode')):
if(function_exists('curl_init')){
$ch = curl_init();
curl_setopt($ch, CURLOPT_TIMEOUT, 4);
curl_setopt($ch, CURLOPT_URL, $server . 'oa/admin.php?m=help&c=view&a=get_list&'.http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$content = curl_exec($ch);curl_close($ch);
}else{
$opts = array(
'http'=>array(
'method'=>'GET',
'timeout'=>4,
)
);
$fp= stream_context_create($opts);
$content = file_get_contents( $server . 'oa/admin.php?m=help&c=view&a=get_list&'.http_build_query($data), false, $fp);
fpassthru($fp);
}
endif;
$content = json_decode($content,true);
相关帮助
正在加载帮助教程...
在线客服
{weimicms:$alert}
{weimicms::base64_decode(C('countsz'))}