去除 部分云平台相关代码和文件
This commit is contained in:
parent
97429c57eb
commit
1aa699a61f
|
@ -19,7 +19,7 @@ require_once './source/function/function_home.php';
|
|||
|
||||
$discuz = C::app();
|
||||
|
||||
$cachelist = array('magic','userapp','usergroups', 'diytemplatenamehome');
|
||||
$cachelist = array('magic','usergroups', 'diytemplatenamehome');
|
||||
$discuz->cachelist = $cachelist;
|
||||
$discuz->init();
|
||||
|
||||
|
|
|
@ -1,508 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id: index.php 22348 2011-05-04 01:16:02Z monkey $
|
||||
*/
|
||||
|
||||
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||
@set_time_limit(1000);
|
||||
|
||||
if(function_exists('set_magic_quotes_runtime')) {
|
||||
@set_magic_quotes_runtime(0);
|
||||
}
|
||||
|
||||
define('IN_DISCUZ', TRUE);
|
||||
define('IN_COMSENZ', TRUE);
|
||||
define('ROOT_PATH', dirname(__FILE__).'/../');
|
||||
|
||||
require ROOT_PATH.'./source/discuz_version.php';
|
||||
require ROOT_PATH.'./install/include/install_var.php';
|
||||
if(function_exists('mysql_connect')) {
|
||||
require ROOT_PATH.'./install/include/install_mysql.php';
|
||||
} else {
|
||||
require ROOT_PATH.'./install/include/install_mysqli.php';
|
||||
}
|
||||
require ROOT_PATH.'./install/include/install_function.php';
|
||||
require ROOT_PATH.'./install/include/install_lang.php';
|
||||
|
||||
$view_off = getgpc('view_off');
|
||||
|
||||
define('VIEW_OFF', $view_off ? TRUE : FALSE);
|
||||
|
||||
$allow_method = array('show_license', 'env_check', 'app_reg', 'db_init', 'ext_info', 'install_check', 'tablepre_check');
|
||||
|
||||
$step = intval(getgpc('step', 'R')) ? intval(getgpc('step', 'R')) : 0;
|
||||
$method = getgpc('method');
|
||||
|
||||
header('Content-Type: text/html; charset='.CHARSET);
|
||||
|
||||
if(empty($method) || !in_array($method, $allow_method)) {
|
||||
$method = isset($allow_method[$step]) ? $allow_method[$step] : '';
|
||||
}
|
||||
|
||||
if(empty($method)) {
|
||||
show_msg('method_undefined', $method, 0);
|
||||
}
|
||||
|
||||
if(file_exists($lockfile) && $method != 'ext_info') {
|
||||
show_msg('install_locked', '', 0);
|
||||
} elseif(!class_exists('dbstuff')) {
|
||||
show_msg('database_nonexistence', '', 0);
|
||||
}
|
||||
|
||||
timezone_set();
|
||||
|
||||
$uchidden = getgpc('uchidden');
|
||||
|
||||
if(in_array($method, array('app_reg', 'ext_info'))) {
|
||||
$isHTTPS = ($_SERVER['HTTPS'] && strtolower($_SERVER['HTTPS']) != 'off') ? true : false;
|
||||
$PHP_SELF = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
|
||||
$bbserver = 'http'.($isHTTPS ? 's' : '').'://'.preg_replace("/\:\d+/", '', $_SERVER['HTTP_HOST']).($_SERVER['SERVER_PORT'] && $_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443 ? ':'.$_SERVER['SERVER_PORT'] : '');
|
||||
$default_ucapi = $bbserver.'/ucenter';
|
||||
$default_appurl = $bbserver.substr($PHP_SELF, 0, strrpos($PHP_SELF, '/') - 8);
|
||||
}
|
||||
|
||||
if($method == 'show_license') {
|
||||
|
||||
transfer_ucinfo($_POST);
|
||||
show_license();
|
||||
|
||||
} elseif($method == 'env_check') {
|
||||
|
||||
VIEW_OFF && function_check($func_items);
|
||||
|
||||
env_check($env_items);
|
||||
|
||||
dirfile_check($dirfile_items);
|
||||
|
||||
show_env_result($env_items, $dirfile_items, $func_items, $filesock_items);
|
||||
|
||||
} elseif($method == 'app_reg') {
|
||||
|
||||
@include ROOT_PATH.CONFIG;
|
||||
@include ROOT_PATH.CONFIG_UC;
|
||||
if(!defined('UC_API')) {
|
||||
define('UC_API', '');
|
||||
}
|
||||
if(getgpc('install_ucenter') == 'yes') {
|
||||
header("Location: index.php?step=3&install_ucenter=yes");
|
||||
die;
|
||||
}
|
||||
$submit = true;
|
||||
$error_msg = array();
|
||||
if(isset($form_app_reg_items) && is_array($form_app_reg_items)) {
|
||||
foreach($form_app_reg_items as $key => $items) {
|
||||
$$key = getgpc($key, 'p');
|
||||
if(!isset($$key) || !is_array($$key)) {
|
||||
$submit = false;
|
||||
break;
|
||||
}
|
||||
foreach($items as $k => $v) {
|
||||
$tmp = $$key;
|
||||
$$k = $tmp[$k];
|
||||
if(empty($$k) || !preg_match($v['reg'], $$k)) {
|
||||
if(empty($$k) && !$v['required']) {
|
||||
continue;
|
||||
}
|
||||
$submit = false;
|
||||
VIEW_OFF or $error_msg[$key][$k] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$submit = false;
|
||||
}
|
||||
|
||||
$ucapi = defined('UC_API') && UC_API ? UC_API : $default_ucapi;
|
||||
|
||||
if($submit) {
|
||||
|
||||
$app_type = 'DISCUZX'; // Only For Discuz!
|
||||
|
||||
$app_name = $sitename ? $sitename : SOFT_NAME;
|
||||
$app_url = $siteurl ? $siteurl : $default_appurl;
|
||||
|
||||
$ucapi = $ucurl ? $ucurl : (defined('UC_API') && UC_API ? UC_API : $default_ucapi);
|
||||
$ucip = isset($ucip) ? $ucip : '';
|
||||
$ucfounderpw = $ucpw;
|
||||
$app_tagtemplates = 'apptagtemplates[template]='.urlencode('<a href="{url}" target="_blank">{subject}</a>').'&'.
|
||||
'apptagtemplates[fields][subject]='.urlencode($lang['tagtemplates_subject']).'&'.
|
||||
'apptagtemplates[fields][uid]='.urlencode($lang['tagtemplates_uid']).'&'.
|
||||
'apptagtemplates[fields][username]='.urlencode($lang['tagtemplates_username']).'&'.
|
||||
'apptagtemplates[fields][dateline]='.urlencode($lang['tagtemplates_dateline']).'&'.
|
||||
'apptagtemplates[fields][url]='.urlencode($lang['tagtemplates_url']);
|
||||
|
||||
$ucapi = preg_replace("/\/$/", '', trim($ucapi));
|
||||
if(empty($ucapi) || !preg_match("/^(http:\/\/)/i", $ucapi)) {
|
||||
show_msg('uc_url_invalid', $ucapi, 0);
|
||||
} else {
|
||||
if(!$ucip) {
|
||||
$temp = @parse_url($ucapi);
|
||||
$ucip = gethostbyname($temp['host']);
|
||||
if(ip2long($ucip) == -1 || ip2long($ucip) === FALSE) {
|
||||
show_msg('uc_dns_error', $ucapi, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
include_once ROOT_PATH.'./uc_client/client.php';
|
||||
|
||||
$ucinfo = dfopen($ucapi.'/index.php?m=app&a=ucinfo&release='.UC_CLIENT_RELEASE, 500, '', '', 1, $ucip);
|
||||
list($status, $ucversion, $ucrelease, $uccharset, $ucdbcharset, $apptypes) = explode('|', $ucinfo);
|
||||
if($status != 'UC_STATUS_OK') {
|
||||
show_msg('uc_url_unreachable', $ucapi, 0);
|
||||
} else {
|
||||
$dbcharset = strtolower($dbcharset ? str_replace('-', '', $dbcharset) : $dbcharset);
|
||||
$ucdbcharset = strtolower($ucdbcharset ? str_replace('-', '', $ucdbcharset) : $ucdbcharset);
|
||||
if(UC_CLIENT_VERSION > $ucversion) {
|
||||
show_msg('uc_version_incorrect', $ucversion, 0);
|
||||
} elseif($dbcharset && $ucdbcharset != $dbcharset) {
|
||||
show_msg('uc_dbcharset_incorrect', '', 0);
|
||||
}
|
||||
|
||||
$postdata = "m=app&a=add&ucfounder=&ucfounderpw=".urlencode($ucpw)."&apptype=".urlencode($app_type)."&appname=".urlencode($app_name)."&appurl=".urlencode($app_url)."&appip=&appcharset=".CHARSET.'&appdbcharset='.DBCHARSET.'&'.$app_tagtemplates.'&release='.UC_CLIENT_RELEASE;
|
||||
$ucconfig = dfopen($ucapi.'/index.php', 500, $postdata, '', 1, $ucip);
|
||||
if(empty($ucconfig)) {
|
||||
show_msg('uc_api_add_app_error', $ucapi, 0);
|
||||
} elseif($ucconfig == '-1') {
|
||||
show_msg('uc_admin_invalid', '', 0);
|
||||
} else {
|
||||
list($appauthkey, $appid) = explode('|', $ucconfig);
|
||||
$ucconfig_array = explode('|', $ucconfig);
|
||||
$ucconfig_array[] = $ucapi;
|
||||
$ucconfig_array[] = $ucip;
|
||||
if(empty($appauthkey) || empty($appid)) {
|
||||
show_msg('uc_data_invalid', '', 0);
|
||||
} elseif($succeed = save_uc_config($ucconfig_array, ROOT_PATH.CONFIG_UC)) {
|
||||
if(VIEW_OFF) {
|
||||
show_msg('app_reg_success');
|
||||
} else {
|
||||
$step = $step + 1;
|
||||
header("Location: index.php?step=$step");
|
||||
exit;
|
||||
}
|
||||
} else {
|
||||
show_msg('config_unwriteable', '', 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if(VIEW_OFF) {
|
||||
|
||||
show_msg('missing_parameter', '', 0);
|
||||
|
||||
} else {
|
||||
|
||||
show_form($form_app_reg_items, $error_msg);
|
||||
|
||||
}
|
||||
|
||||
} elseif($method == 'db_init') {
|
||||
|
||||
if(getgpc('install_ucenter') == 'yes') {
|
||||
define('DZUCFULL', true);
|
||||
} else {
|
||||
define('DZUCFULL', false);
|
||||
}
|
||||
|
||||
$submit = true;
|
||||
|
||||
$default_config = $_config = array();
|
||||
$default_configfile = './config/config_global_default.php';
|
||||
|
||||
if(!file_exists(ROOT_PATH.$default_configfile)) {
|
||||
exit('config_global_default.php was lost, please reupload this file.');
|
||||
} else {
|
||||
include ROOT_PATH.$default_configfile;
|
||||
$default_config = $_config;
|
||||
}
|
||||
|
||||
if(file_exists(ROOT_PATH.CONFIG)) {
|
||||
include ROOT_PATH.CONFIG;
|
||||
} else {
|
||||
$_config = $default_config;
|
||||
}
|
||||
|
||||
$dbhost = $_config['db'][1]['dbhost'];
|
||||
$dbname = $_config['db'][1]['dbname'];
|
||||
$dbpw = $_config['db'][1]['dbpw'];
|
||||
$dbuser = $_config['db'][1]['dbuser'];
|
||||
$tablepre = $_config['db'][1]['tablepre'];
|
||||
|
||||
$adminemail = 'admin@admin.com';
|
||||
|
||||
$error_msg = array();
|
||||
if(isset($form_db_init_items) && is_array($form_db_init_items)) {
|
||||
foreach($form_db_init_items as $key => $items) {
|
||||
$$key = getgpc($key, 'p');
|
||||
if(!isset($$key) || !is_array($$key)) {
|
||||
$submit = false;
|
||||
break;
|
||||
}
|
||||
foreach($items as $k => $v) {
|
||||
$tmp = $$key;
|
||||
$$k = $tmp[$k];
|
||||
if(empty($$k) || !preg_match($v['reg'], $$k)) {
|
||||
if(empty($$k) && !$v['required']) {
|
||||
continue;
|
||||
}
|
||||
$submit = false;
|
||||
VIEW_OFF or $error_msg[$key][$k] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$submit = false;
|
||||
}
|
||||
|
||||
if($submit && !VIEW_OFF && $_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
if($password != $password2) {
|
||||
$error_msg['admininfo']['password2'] = 1;
|
||||
$submit = false;
|
||||
}
|
||||
$forceinstall = isset($_POST['dbinfo']['forceinstall']) ? $_POST['dbinfo']['forceinstall'] : '';
|
||||
$dbname_not_exists = true;
|
||||
if(!empty($dbhost) && empty($forceinstall)) {
|
||||
$dbname_not_exists = check_db($dbhost, $dbuser, $dbpw, $dbname, $tablepre);
|
||||
if(!$dbname_not_exists) {
|
||||
$form_db_init_items['dbinfo']['forceinstall'] = array('type' => 'checkbox', 'required' => 0, 'reg' => '/^.*+/');
|
||||
$error_msg['dbinfo']['forceinstall'] = 1;
|
||||
$submit = false;
|
||||
$dbname_not_exists = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($submit) {
|
||||
|
||||
$step = $step + 1;
|
||||
if(empty($dbname)) {
|
||||
show_msg('dbname_invalid', $dbname, 0);
|
||||
} else {
|
||||
$mysqlmode = function_exists("mysql_connect") ? 'mysql' : 'mysqli';
|
||||
$link = ($mysqlmode == 'mysql') ? @mysql_connect($dbhost, $dbuser, $dbpw) : new mysqli($dbhost, $dbuser, $dbpw);
|
||||
if(!$link) {
|
||||
$errno = ($mysqlmode == 'mysql') ? mysql_errno($link) : $link->errno;
|
||||
$error = ($mysqlmode == 'mysql') ? mysql_error($link) : $link->error;
|
||||
if($errno == 1045) {
|
||||
show_msg('database_errno_1045', $error, 0);
|
||||
} elseif($errno == 2003) {
|
||||
show_msg('database_errno_2003', $error, 0);
|
||||
} else {
|
||||
show_msg('database_connect_error', $error, 0);
|
||||
}
|
||||
}
|
||||
$mysql_version = ($mysqlmode == 'mysql') ? mysql_get_server_info() : $link->server_info;
|
||||
if($mysql_version > '4.1') {
|
||||
if($mysqlmode == 'mysql') {
|
||||
mysql_query("CREATE DATABASE IF NOT EXISTS `$dbname` DEFAULT CHARACTER SET ".DBCHARSET, $link);
|
||||
} else {
|
||||
$link->query("CREATE DATABASE IF NOT EXISTS `$dbname` DEFAULT CHARACTER SET ".DBCHARSET);
|
||||
}
|
||||
} else {
|
||||
if($mysqlmode == 'mysql') {
|
||||
mysql_query("CREATE DATABASE IF NOT EXISTS `$dbname`", $link);
|
||||
} else {
|
||||
$link->query("CREATE DATABASE IF NOT EXISTS `$dbname`");
|
||||
}
|
||||
}
|
||||
|
||||
if(($mysqlmode == 'mysql') ? mysql_errno($link) : $link->errno) {
|
||||
show_msg('database_errno_1044', ($mysqlmode == 'mysql') ? mysql_error($link) : $link->error, 0);
|
||||
}
|
||||
if($mysqlmode == 'mysql') {
|
||||
mysql_close($link);
|
||||
} else {
|
||||
$link->close();
|
||||
}
|
||||
}
|
||||
|
||||
if(strpos($tablepre, '.') !== false || intval($tablepre{0})) {
|
||||
show_msg('tablepre_invalid', $tablepre, 0);
|
||||
}
|
||||
|
||||
if($username && $email && $password) {
|
||||
if(strlen($username) > 15 || preg_match("/^$|^c:\\con\\con$| |[,\"\s\t\<\>&]|^Guest/is", $username)) {
|
||||
show_msg('admin_username_invalid', $username, 0);
|
||||
} elseif(!strstr($email, '@') || $email != stripslashes($email) || $email != dhtmlspecialchars($email)) {
|
||||
show_msg('admin_email_invalid', $email, 0);
|
||||
} else {
|
||||
if(!DZUCFULL) {
|
||||
$adminuser = check_adminuser($username, $password, $email);
|
||||
if($adminuser['uid'] < 1) {
|
||||
show_msg($adminuser['error'], '', 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
show_msg('admininfo_invalid', '', 0);
|
||||
}
|
||||
|
||||
|
||||
$uid = DZUCFULL ? 1 : $adminuser['uid'];
|
||||
$authkey = md5($_SERVER['SERVER_ADDR'].$_SERVER['HTTP_USER_AGENT'].$dbhost.$dbuser.$dbpw.$dbname.$username.$password.$pconnect.substr($timestamp, 0, 8)).random(18);
|
||||
$_config['db'][1]['dbhost'] = $dbhost;
|
||||
$_config['db'][1]['dbname'] = $dbname;
|
||||
$_config['db'][1]['dbpw'] = $dbpw;
|
||||
$_config['db'][1]['dbuser'] = $dbuser;
|
||||
$_config['db'][1]['tablepre'] = $tablepre;
|
||||
$_config['admincp']['founder'] = (string)$uid;
|
||||
$_config['security']['authkey'] = $authkey;
|
||||
$_config['cookie']['cookiepre'] = random(4).'_';
|
||||
$_config['memory']['prefix'] = random(6).'_';
|
||||
|
||||
save_config_file(ROOT_PATH.CONFIG, $_config, $default_config);
|
||||
|
||||
$db = new dbstuff;
|
||||
|
||||
$db->connect($dbhost, $dbuser, $dbpw, $dbname, DBCHARSET);
|
||||
|
||||
if(!VIEW_OFF) {
|
||||
show_header();
|
||||
show_install();
|
||||
}
|
||||
|
||||
if(DZUCFULL) {
|
||||
install_uc_server();
|
||||
}
|
||||
|
||||
$sql = file_get_contents($sqlfile);
|
||||
$sql = str_replace("\r\n", "\n", $sql);
|
||||
|
||||
runquery($sql);
|
||||
runquery($extrasql);
|
||||
|
||||
$sql = file_get_contents(ROOT_PATH.'./install/data/install_data.sql');
|
||||
$sql = str_replace("\r\n", "\n", $sql);
|
||||
runquery($sql);
|
||||
|
||||
$onlineip = $_SERVER['REMOTE_ADDR'];
|
||||
$timestamp = time();
|
||||
$backupdir = substr(md5($_SERVER['SERVER_ADDR'].$_SERVER['HTTP_USER_AGENT'].substr($timestamp, 0, 4)), 8, 6);
|
||||
$ret = false;
|
||||
if(is_dir(ROOT_PATH.'data/backup')) {
|
||||
$ret = @rename(ROOT_PATH.'data/backup', ROOT_PATH.'data/backup_'.$backupdir);
|
||||
}
|
||||
if(!$ret) {
|
||||
@mkdir(ROOT_PATH.'data/backup_'.$backupdir, 0777);
|
||||
}
|
||||
if(is_dir(ROOT_PATH.'data/backup_'.$backupdir)) {
|
||||
$db->query("REPLACE INTO {$tablepre}common_setting (skey, svalue) VALUES ('backupdir', '$backupdir')");
|
||||
}
|
||||
$chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz';
|
||||
$siteuniqueid = 'DX'.$chars[date('y')%60].$chars[date('n')].$chars[date('j')].$chars[date('G')].$chars[date('i')].$chars[date('s')].substr(md5($onlineip.$timestamp), 0, 4).random(4);
|
||||
|
||||
$db->query("REPLACE INTO {$tablepre}common_setting (skey, svalue) VALUES ('authkey', '$authkey')");
|
||||
$db->query("REPLACE INTO {$tablepre}common_setting (skey, svalue) VALUES ('siteuniqueid', '$siteuniqueid')");
|
||||
$db->query("REPLACE INTO {$tablepre}common_setting (skey, svalue) VALUES ('adminemail', '$email')");
|
||||
|
||||
install_extra_setting();
|
||||
|
||||
$db->query("REPLACE INTO {$tablepre}common_setting (skey, svalue) VALUES ('backupdir', '".$backupdir."')");
|
||||
|
||||
$password = md5(random(10));
|
||||
|
||||
$db->query("REPLACE INTO {$tablepre}common_member (uid, username, password, adminid, groupid, email, regdate) VALUES ('$uid', '$username', '$password', '1', '1', '$email', '".time()."');");
|
||||
|
||||
$notifyusers = addslashes('a:1:{i:1;a:2:{s:8:"username";s:'.strlen($username).':"'.$username.'";s:5:"types";s:20:"11111111111111111111";}}');
|
||||
$db->query("REPLACE INTO {$tablepre}common_setting (skey, svalue) VALUES ('notifyusers', '$notifyusers')");
|
||||
|
||||
$db->query("UPDATE {$tablepre}common_cron SET lastrun='0', nextrun='".($timestamp + 3600)."'");
|
||||
|
||||
install_data($username, $uid);
|
||||
|
||||
$testdata = $portalstatus = 1;
|
||||
$groupstatus = $homestatus = 0;
|
||||
|
||||
if($testdata) {
|
||||
install_testdata($username, $uid);
|
||||
}
|
||||
|
||||
if(!$portalstatus) {
|
||||
$db->query("REPLACE INTO {$tablepre}common_setting (skey, svalue) VALUES ('portalstatus', '0')");
|
||||
}
|
||||
|
||||
if(!$groupstatus) {
|
||||
$db->query("REPLACE INTO {$tablepre}common_setting (skey, svalue) VALUES ('groupstatus', '0')");
|
||||
}
|
||||
|
||||
if(!$homestatus) {
|
||||
$db->query("REPLACE INTO {$tablepre}common_setting (skey, svalue) VALUES ('homestatus', '0')");
|
||||
}
|
||||
$yearmonth = date('Ym_', time());
|
||||
loginit($yearmonth.'ratelog');
|
||||
loginit($yearmonth.'illegallog');
|
||||
loginit($yearmonth.'modslog');
|
||||
loginit($yearmonth.'cplog');
|
||||
loginit($yearmonth.'errorlog');
|
||||
loginit($yearmonth.'banlog');
|
||||
|
||||
dir_clear(ROOT_PATH.'./data/template');
|
||||
dir_clear(ROOT_PATH.'./data/cache');
|
||||
dir_clear(ROOT_PATH.'./data/threadcache');
|
||||
dir_clear(ROOT_PATH.'./uc_client/data');
|
||||
dir_clear(ROOT_PATH.'./uc_client/data/cache');
|
||||
|
||||
foreach($serialize_sql_setting as $k => $v) {
|
||||
$v = addslashes(serialize($v));
|
||||
$db->query("REPLACE INTO {$tablepre}common_setting VALUES ('$k', '$v')");
|
||||
}
|
||||
|
||||
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}common_member");
|
||||
$totalmembers = $db->result($query, 0);
|
||||
$userstats = array('totalmembers' => $totalmembers, 'newsetuser' => $username);
|
||||
$ctype = 1;
|
||||
$data = addslashes(serialize($userstats));
|
||||
$db->query("REPLACE INTO {$tablepre}common_syscache (cname, ctype, dateline, data) VALUES ('userstats', '$ctype', '".time()."', '$data')");
|
||||
|
||||
VIEW_OFF && show_msg('initdbresult_succ');
|
||||
|
||||
if(!VIEW_OFF) {
|
||||
echo '<script type="text/javascript">function setlaststep() {document.getElementById("laststep").disabled=false;window.location=\'index.php?method=ext_info\';}</script><script type="text/javascript">setTimeout(function(){window.location=\'index.php?method=ext_info\'}, 30000);</script><iframe src="../misc.php?mod=initsys" style="display:none;" onload="setlaststep()"></iframe>'."\r\n";
|
||||
show_footer();
|
||||
}
|
||||
|
||||
}
|
||||
if(VIEW_OFF) {
|
||||
|
||||
show_msg('missing_parameter', '', 0);
|
||||
|
||||
} else {
|
||||
show_form($form_db_init_items, $error_msg);
|
||||
|
||||
}
|
||||
|
||||
} elseif($method == 'ext_info') {
|
||||
@touch($lockfile);
|
||||
if(VIEW_OFF) {
|
||||
show_msg('ext_info_succ');
|
||||
} else {
|
||||
show_header();
|
||||
echo '</div><div class="main" style="margin-top: -123px;padding-left:30px"><span id="platformIntro"></span>';
|
||||
echo '<iframe frameborder="0" width="700" height="550" allowTransparency="true" src="http://addon.discuz.com/api/outer.php?id=installed&siteurl='.urlencode($default_appurl).'&version='.DISCUZ_VERSION.'"></iframe>';
|
||||
echo '<p align="right"><a href="'.$default_appurl.'">'.$lang['install_finish'].'</a></p><br />';
|
||||
echo '</div>';
|
||||
show_footer();
|
||||
}
|
||||
|
||||
} elseif($method == 'install_check') {
|
||||
|
||||
if(file_exists($lockfile)) {
|
||||
show_msg('installstate_succ');
|
||||
} else {
|
||||
show_msg('lock_file_not_touch', $lockfile, 0);
|
||||
}
|
||||
|
||||
} elseif($method == 'tablepre_check') {
|
||||
|
||||
$dbinfo = getgpc('dbinfo');
|
||||
extract($dbinfo);
|
||||
if(check_db($dbhost, $dbuser, $dbpw, $dbname, $tablepre)) {
|
||||
show_msg('tablepre_not_exists', 0);
|
||||
} else {
|
||||
show_msg('tablepre_exists', $tablepre, 0);
|
||||
}
|
||||
}
|
|
@ -13,7 +13,7 @@ define('CURSCRIPT', 'portal');
|
|||
require './source/class/class_core.php';
|
||||
$discuz = C::app();
|
||||
|
||||
$cachelist = array('userapp', 'portalcategory', 'diytemplatenameportal');
|
||||
$cachelist = array('portalcategory', 'diytemplatenameportal');
|
||||
$discuz->cachelist = $cachelist;
|
||||
$discuz->init();
|
||||
|
||||
|
|
|
@ -1,93 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id: block_myapp.php 28626 2012-03-06 09:10:25Z zhangguosheng $
|
||||
*/
|
||||
|
||||
if(!defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
class block_myapp extends discuz_block{
|
||||
|
||||
var $setting = array();
|
||||
|
||||
function block_myapp(){
|
||||
$this->setting = array(
|
||||
'titlelength' => array(
|
||||
'title' => 'myapp_titlelength',
|
||||
'type' => 'text',
|
||||
'default' => 40
|
||||
),
|
||||
'startrow' => array(
|
||||
'title' => 'myapp_startrow',
|
||||
'type' => 'text',
|
||||
'default' => 0
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
function name() {
|
||||
return lang('blockclass', 'blockclass_myapp_script_myapp');
|
||||
}
|
||||
|
||||
function blockclass() {
|
||||
return array('myapp', lang('blockclass', 'blockclass_html_myapp'));
|
||||
}
|
||||
|
||||
function fields() {
|
||||
return array(
|
||||
'url' => array('name' => lang('blockclass', 'blockclass_myapp_field_url'), 'formtype' => 'text', 'datatype' => 'string'),
|
||||
'title' => array('name' => lang('blockclass', 'blockclass_myapp_field_title'), 'formtype' => 'title', 'datatype' => 'title'),
|
||||
'icon' => array('name' => lang('blockclass', 'blockclass_myapp_field_icon'), 'formtype' => 'text', 'datatype' => 'string'),
|
||||
'icon_small' => array('name' => lang('blockclass', 'blockclass_myapp_field_icon_small'), 'formtype' => 'text', 'datatype' => 'string'),
|
||||
'icon_abouts' => array('name' => lang('blockclass', 'blockclass_myapp_field_icon_abouts'), 'formtype' => 'text', 'datatype' => 'string'),
|
||||
);
|
||||
}
|
||||
|
||||
function getsetting() {
|
||||
global $_G;
|
||||
$settings = $this->setting;
|
||||
|
||||
return $settings;
|
||||
}
|
||||
|
||||
function getdata($style, $parameter) {
|
||||
global $_G;
|
||||
|
||||
$parameter = $this->cookparameter($parameter);
|
||||
|
||||
$titlelength = !empty($parameter['titlelength']) ? intval($parameter['titlelength']) : 40;
|
||||
$startrow = !empty($parameter['startrow']) ? intval($parameter['startrow']) : '0';
|
||||
$items = !empty($parameter['items']) ? intval($parameter['items']) : 10;
|
||||
|
||||
$bannedids = !empty($parameter['bannedids']) ? explode(',', $parameter['bannedids']) : array();
|
||||
$bansql = $bannedids ? ' AND appid NOT IN ('.dimplode($bannedids).')' : '';
|
||||
|
||||
$sql = 'SELECT * FROM '.DB::table('common_myapp')." WHERE flag>=0 $bansql ORDER BY flag DESC, displayorder LIMIT $startrow, $items";
|
||||
$query = DB::query($sql);
|
||||
while($data = DB::fetch($query)) {
|
||||
$list[] = array(
|
||||
'id' => $data['appid'],
|
||||
'idtype' => 'appid',
|
||||
'title' => cutstr(str_replace('\\\'', ''', $data['appname']), $titlelength, ''),
|
||||
'url' => 'userapp.php?id='.$data['appid'],
|
||||
'pic' => '',
|
||||
'picflag' => '',
|
||||
'summary' => '',
|
||||
'fields' => array(
|
||||
'icon' => 'http://appicon.manyou.com/logos/'.$data['appid'],
|
||||
'icon_small' => 'http://appicon.manyou.com/icons/'.$data['appid'],
|
||||
'icon_abouts' => 'http://appicon.manyou.com/abouts/'.$data['appid'],
|
||||
)
|
||||
);
|
||||
}
|
||||
return array('html' => '', 'data' => $list);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
|
@ -1,30 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id: table_common_myapp.php 27906 2012-02-16 08:15:08Z zhengqingpeng $
|
||||
*/
|
||||
|
||||
if(!defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
class table_common_myapp extends discuz_table
|
||||
{
|
||||
public function __construct() {
|
||||
|
||||
$this->_table = 'common_myapp';
|
||||
$this->_pk = 'appid';
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
public function fetch_all_by_flag($flag, $glue = '=', $sort = 'ASC') {
|
||||
$glue = helper_util::check_glue($glue);
|
||||
return DB::fetch_all("SELECT * FROM %t WHERE flag{$glue}%d ORDER BY ".DB::order('displayorder', $sort), array($this->_table, $flag), $this->_pk);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
|
@ -1,24 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id: cache_userapp.php 24946 2011-10-18 02:54:40Z zhengqingpeng $
|
||||
*/
|
||||
|
||||
if(!defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
function build_cache_userapp() {
|
||||
$data = array();
|
||||
foreach(C::t('common_myapp')->fetch_all_by_flag(1) as $myapp) {
|
||||
$myapp['icon'] = getmyappiconpath($myapp['appid'], $myapp['iconstatus']);
|
||||
$data[$myapp['appid']] = $myapp;
|
||||
}
|
||||
|
||||
savecache('userapp', $data);
|
||||
}
|
||||
|
||||
?>
|
|
@ -1,101 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id: function_manyou.php 28663 2012-03-07 05:50:37Z zhangguosheng $
|
||||
*/
|
||||
|
||||
if(!defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
|
||||
function manyou_getuserapp($panel = 0) {
|
||||
global $_G;
|
||||
|
||||
$myapps = $panelapp = $_G['my_menu'] = $userapplist = $_G['my_panelapp'] = array();
|
||||
$showcount = $_G['my_menu_more'] = 0;
|
||||
|
||||
if($_G['uid'] && $_G['setting']['my_app_status']) {
|
||||
space_merge($_G['member'], 'field_home');
|
||||
if($_G['member']['menunum'] < 3) $_G['member']['menunum'] = 10;
|
||||
$userapps = C::t('home_userapp')->fetch_all_by_uid_appid($_G['uid'], 0, 'menuorder');
|
||||
$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'];
|
||||
$value['userpanelarea'] = $myapps[$value['appid']]['userpanelarea'];
|
||||
$value['appstatus'] = $myapps[$value['appid']]['appstatus'];
|
||||
|
||||
$value['icon'] = getmyappiconpath($value['appid'], $value['iconstatus']);
|
||||
if($value['iconstatus']=='0' && empty($_G['myapp_icon_downloaded'])) {
|
||||
$_G['myapp_icon_downloaded'] = '1';
|
||||
downloadmyappicon($value['appid']);
|
||||
}
|
||||
if($value['allowsidenav'] && !empty($value['appname'])) {
|
||||
|
||||
$_G['my_userapp'][$value['appid']] = $value;
|
||||
if($panel) {
|
||||
$userapplist[$value['appid']] = $value;
|
||||
if($value['userpanelarea'] && $value['userpanelarea'] < 3) {
|
||||
$panelapp[$value['appid']] = $value;
|
||||
$_G['my_panelapp'][$value['userpanelarea']][$value['appid']] = $value;
|
||||
}
|
||||
} else {
|
||||
if(!isset($_G['cache']['userapp'][$value['appid']])) {
|
||||
if($_G['member']['menunum'] > 100 || $showcount < $_G['member']['menunum']) {
|
||||
$_G['my_menu'][] = $value;
|
||||
$showcount++;
|
||||
} else {
|
||||
$_G['my_menu_more'] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
} elseif (!$value['allowsidenav']) {
|
||||
if(isset($_G['cache']['userapp'][$value['appid']])) {
|
||||
unset($_G['cache']['userapp'][$value['appid']]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if(!empty($userapplist)) {
|
||||
foreach($panelapp as $appid => $value) {
|
||||
if(isset($_G['cache']['userapp'][$value['appid']])) {
|
||||
unset($_G['cache']['userapp'][$appid]);
|
||||
}
|
||||
}
|
||||
foreach($userapplist as $appid => $value) {
|
||||
if(!isset($_G['cache']['userapp'][$value['appid']]) && !isset($panelapp[$value['appid']])) {
|
||||
if($_G['member']['menunum'] > 100 || $showcount < $_G['member']['menunum']) {
|
||||
$_G['my_menu'][] = $value;
|
||||
$showcount++;
|
||||
} else {
|
||||
$_G['my_menu_more'] = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function downloadmyappicon($appid) {
|
||||
$iconpath = getglobal('setting/attachdir').'./'.'myapp/icon/'.$appid.'.jpg';
|
||||
if(!is_dir(dirname($iconpath))) {
|
||||
dmkdir(dirname($iconpath));
|
||||
}
|
||||
C::t('common_myapp')->update($appid, array('iconstatus'=>'-1'));
|
||||
$ctx = stream_context_create(array('http' => array('timeout' => 10)));
|
||||
$icondata = file_get_contents(getmyappiconpath($appid, 0), false, $ctx);
|
||||
if($icondata) {
|
||||
file_put_contents($iconpath, $icondata);
|
||||
C::t('common_myapp')->update($appid, array('iconstatus'=>'1', 'icondowntime'=>TIMESTAMP));
|
||||
}
|
||||
}
|
|
@ -1,103 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id: function_userapp.php 25756 2011-11-22 02:47:45Z zhangguosheng $
|
||||
*/
|
||||
|
||||
if(!defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
function _my_env_get($var) {
|
||||
global $_G, $space;
|
||||
|
||||
if($var == 'owner') {
|
||||
return $space['uid'];
|
||||
} elseif($var == 'viewer') {
|
||||
return $_G['uid'];
|
||||
} elseif($var == 'prefix_url') {
|
||||
if(!isset($_G['prefix_url'])) {
|
||||
$_G['prefix_url'] = $_G['siteurl'];
|
||||
}
|
||||
return $_G['prefix_url'];
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
function _my_get_friends($uid) {
|
||||
global $_G;
|
||||
|
||||
$var = "my_get_friends_$uid";
|
||||
if(!isset($_G[$var])) {
|
||||
$_G[$var] = array();
|
||||
$query = C::t('home_friend')->fetch_all($uid);
|
||||
foreach($query as $value) {
|
||||
$_G[$var][] = $value['fuid'];
|
||||
}
|
||||
}
|
||||
return $_G[$var];
|
||||
}
|
||||
|
||||
function _my_get_name($uid) {
|
||||
$member = getuserbyuid($uid);
|
||||
return $member ? $member['username'] : '';
|
||||
}
|
||||
|
||||
function _my_get_profilepic($uid, $size='small') {
|
||||
return UC_API.'/avatar.php?uid='.$uid.'&size='.$size;
|
||||
}
|
||||
|
||||
function _my_are_friends($uid1, $uid2) {
|
||||
global $_G;
|
||||
|
||||
$var = "my_are_friends_{$uid1}_{$uid2}";
|
||||
if(!isset($_G[$var])) {
|
||||
$_G[$var] = false;
|
||||
$query = C::t('home_friend')->fetch_all_by_uid_fuid($uid1, $uid2);
|
||||
foreach($query as $value) {
|
||||
$_G[$var] = true;
|
||||
}
|
||||
}
|
||||
return $_G[$var];
|
||||
}
|
||||
|
||||
function _my_user_is_added_app($uid, $appid) {
|
||||
global $_G;
|
||||
|
||||
$var = "my_user_is_added_app_{$uid}_{$appid}";
|
||||
if(!isset($_G[$var])) {
|
||||
$_G[$var] = false;
|
||||
if($value = C::t('home_userapp')->fetch_by_uid_appid($uid, $appid)) {
|
||||
$_G[$var] = true;
|
||||
}
|
||||
}
|
||||
return $_G[$var];
|
||||
}
|
||||
|
||||
function _my_get_app_url($appid, $suffix) {
|
||||
global $_G;
|
||||
|
||||
if(!isset($_G['prefix_url'])) {
|
||||
$_G['prefix_url'] = getsiteurl();
|
||||
}
|
||||
return $_G['prefix_url']."userapp.php?mod=app&id=$appid";
|
||||
}
|
||||
|
||||
function _my_get_app_position($appid) {
|
||||
global $_G;
|
||||
|
||||
$var = "my_get_app_position_{$appid}";
|
||||
if(!isset($_G[$var])) {
|
||||
$_G[$var] = 'wide';
|
||||
if($value = C::t('common_myapp')->fetch($appid)) {
|
||||
if($value['narrow']) $_G[$var] = 'narrow';
|
||||
}
|
||||
}
|
||||
return $_G[$var];
|
||||
}
|
||||
|
||||
?>
|
|
@ -1,397 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id: lang_admincp_cloud.php 33991 2013-09-16 07:25:00Z nemohou $
|
||||
*/
|
||||
|
||||
if(!defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
$extend_lang = array
|
||||
(
|
||||
'header_cloud' => '云平台',
|
||||
'header_navcloud' => 'Discuz!云平台',
|
||||
'nav_cloud' => 'Discuz!云平台',
|
||||
|
||||
'menu_cloud_open' => '开通Discuz!云平台',
|
||||
'menu_cloud_upgrade' => '开通Discuz!云平台',
|
||||
'menu_cloud_applist' => '平台首页',
|
||||
'menu_cloud_siteinfo' => '站点信息',
|
||||
'menu_cloud_doctor' => '云平台诊断工具',
|
||||
|
||||
'menu_setting_manyou' => '漫游应用设置',
|
||||
'menu_setting_qqconnect' => 'QQ互联设置',
|
||||
|
||||
'menu_cloud_manyou' => '漫游应用',
|
||||
'menu_cloud_connect' => 'QQ互联',
|
||||
'menu_cloud_search' => '纵横搜索',
|
||||
'menu_cloud_stats' => '腾讯分析',
|
||||
'menu_cloud_security' => '防水墙',
|
||||
'menu_cloud_smilies' => 'SOSO表情',
|
||||
'menu_cloud_qqgroup' => '社区QQ群',
|
||||
'menu_cloud_union' => 'Discuz!联盟',
|
||||
'menu_cloud_storage' => '旋风存储',
|
||||
'menu_cloud_mobile' => '手机客户端',
|
||||
|
||||
'close' => '关闭',
|
||||
'continue' => '继续',
|
||||
'message_title' => '提示信息',
|
||||
'jump_to_cloud' => '您即将转向Discuz!云平台(http://cp.discuz.qq.com)完成开通流程',
|
||||
'cloud_waiting' => '请稍候...',
|
||||
|
||||
'cloud_status_error' => '出了点小错,由于站点ID/通信KEY等关键信息丢失导致Discuz!云平台服务出现异常,使用<a href="admin.php?action=cloud&operation=doctor">诊断工具</a>检测站点ID和KEY,如有疑问请访问<a href="http://www.discuz.net/forum-3926-1.html" target="_blank">官方论坛</a>寻求帮助',
|
||||
|
||||
'cloud_timecheck' => '服务器时间检查',
|
||||
'cloud_introduction' => '查看介绍',
|
||||
'cloud_confirm_open' => '确认开通',
|
||||
'cloud_confirm_upgrade' => '确认升级',
|
||||
'cloud_page_loading' => '页面加载中...',
|
||||
'cloud_time_out' => '您无法访问Discuz!云平台,请尝试<a href="javascript:;" onClick="location.reload()">刷新</a>。',
|
||||
'cloud_unknown_dns' => '您的站点目前无法连接Discuz!云平台,请检查您服务器网络设置,使用<a href="admin.php?action=cloud&operation=doctor">诊断工具</a>检测DNS解析和接口连通性。<a href="http://cp.discuz.qq.com/faq?fId=1305690058&ADTAG=CP.CLOUD.FAQ.FID" target="_blank">查看帮助</a>,如有疑问请访问<a href="http://www.discuz.net/forum-3926-1.html" target="_blank">官方论坛</a>求助',
|
||||
|
||||
'cloud_category' => '设置站点分类',
|
||||
'cloud_site_name' => '站点名称',
|
||||
'cloud_site_url' => '站点URL',
|
||||
'cloud_site_category' => '站点分类',
|
||||
'cloud_select' => '请选择',
|
||||
'cloud_agree_protocal' => '我已仔细阅读并同意',
|
||||
'read_protocal' => '《Discuz!云平台服务使用协议》',
|
||||
'cloud_will_open' => '我要开通',
|
||||
'cloud_will_upgrade' => '我要升级',
|
||||
'cloud_protocal' => 'Discuz!云平台服务协议',
|
||||
'cloud_select_category' => '请选择站点分类',
|
||||
'cloud_select_sub_category' => '请选择二级分类',
|
||||
'cloud_select_return' => '请选择站点分类,返回',
|
||||
'cloud_open_success' => 'Discuz!云平台开通成功 ',
|
||||
'cloud_upgrade_success' => 'Discuz!云平台升级成功 ',
|
||||
'cloud_network_busy' => '网络繁忙,稍后请重新操作,原因:<br />{errorMessage} (ERRCODE:{errorCode})',
|
||||
'cloud_turnto_applist' => '您的站点已开通Discuz!云平台,现跳转到平台首页',
|
||||
'cloud_site_id' => '站点ID',
|
||||
'cloud_api_ip_btn' => '设置云平台接口IP',
|
||||
'cloud_api_ip' => '云平台接口IP',
|
||||
'cloud_api_ip_comment' => '若站点服务器由于DNS解析问题无法连接到云平台接口,请填写api.discuz.qq.com的IP地址,使用<a href="admin.php?action=cloud&operation=doctor">诊断工具</a>检测,<a href="http://cp.discuz.qq.com/faq?fId=1304068911&ADTAG=CP.CLOUD.FAQ.FID" target="_blank">查看帮助</a>',
|
||||
'cloud_manyou_ip' => '漫游接口IP',
|
||||
'cloud_manyou_ip_comment' => '若站点服务器由于DNS解析问题无法连接到漫游接口,请填写api.manyou.com的IP地址,使用<a href="admin.php?action=cloud&operation=doctor">诊断工具</a>检测,<a href="http://faq.comsenz.com/viewnews-400" target="_blank">查看帮助</a>',
|
||||
'cloud_connect_api_ip' => 'QQ互联接口IP',
|
||||
'cloud_connect_api_ip_comment' => '若站点服务器由于DNS解析问题无法连接到QQ互联接口,请填写openapi.qzone.qq.com的IP地址,使用<a href="admin.php?action=cloud&operation=doctor">诊断工具</a>检测,<a href="http://cp.discuz.qq.com/faq?fId=1322796393&ADTAG=CP.CLOUD.FAQ.FID" target="_blank">查看帮助</a>',
|
||||
'cloud_ipsetting_success' => '云平台接口IP设置成功 ',
|
||||
'cloud_open_first' => '请先开启相关应用',
|
||||
'cloud_sync' => '同步站点信息',
|
||||
'cloud_sync_success' => '站点信息同步成功 ',
|
||||
'cloud_sync_failure' => '站点信息同步失败,原因:<br />{errorMessage} (ERRCODE:{errorCode})<br /><br />如有疑问,请访问<a href="http://www.discuz.net/forum-3926-1.html" target="_blank">官方论坛</a>寻求帮助',
|
||||
'cloud_resetkey' => '更换站点KEY',
|
||||
'cloud_reset_success' => '站点KEY更换成功 ',
|
||||
|
||||
'cloud_siteinfo_tips' => '<li>如果站点名称或者站点URL有变动,请点击“同步站点信息”按钮。</li><li>站点KEY是站点与云平台通信的验证密钥,若近期有危险操作泄漏站点KEY等信息,请点击“更换站点KEY”按钮。<span style="color:red;">请谨慎使用此功能。</span></li>',
|
||||
|
||||
'cloud_doctor_normal' => '正常',
|
||||
'cloud_doctor_tips' => '<li>Discuz!云平台诊断工具是帮助您分析站点上的状况,是否能与云平台正常通信等功能。</li><li>站点ID是您的站点在云平台的唯一标识,请勿和其他站点共用一套站点ID和站点通信KEY</li>',
|
||||
|
||||
'cloud_doctor_setidkey' => '修改Discuz!上的站点ID和KEY',
|
||||
'cloud_doctor_connect_fix' => '<a href="./admin.php?action=cloud&operation=doctor&op=fixGuest">点击修复</a>',
|
||||
'cloud_doctor_setidkey_tips' => '<li style="color:red">修改Discuz!上的站点ID和KEY,可能会导致通信错误、签名错误以及其他的故障,请勿在没有官方人员指导的情况下修改。</li><li style="color:red">修改ID、KEY和状态前,请先备份论坛的common_setting表。</li>',
|
||||
'cloud_site_key' => '站点通信KEY',
|
||||
'cloud_site_key_safetips' => '(出于安全考虑,部分隐藏)',
|
||||
'cloud_site_key_comment' => '站点通信KEY请勿对外公布',
|
||||
'cloud_site_status' => '状态',
|
||||
'cloud_idkeysetting_success' => '站点ID/KEY状态设置成功 ',
|
||||
'cloud_idkeysetting_siteid_failure' => '站点ID必须为纯数字,请勿随意修改。如有必要,请在客服人员协助下修改。',
|
||||
'cloud_idkeysetting_sitekey_failure' => '站点通信KEY必须为32位,请勿随意修改。如有必要,请在客服人员协助下修改。',
|
||||
|
||||
'cloud_doctor_result_success' => '<img align="absmiddle" src="static/image/admincp/cloud/right.gif" />',
|
||||
'cloud_doctor_result_failure' => '<img align="absmiddle" src="static/image/admincp/cloud/wrong.gif" /> ',
|
||||
|
||||
'cloud_doctor_api_test_other' => '测试云平台其他接口IP',
|
||||
'cloud_doctor_manyou_test_other' => '测试漫游其他接口IP',
|
||||
'cloud_doctor_qzone_test_other' => '测试QQ互联其他接口IP',
|
||||
'cloud_doctor_api_test_success' => '%s 请求接口 %s 成功,耗时 %01.3f 秒 %s',
|
||||
'cloud_doctor_api_test_failure' => '%s 请求接口 %s 失败,请咨询空间商 %s',
|
||||
'cloud_doctor_status_0' => '尚未开通云平台',
|
||||
'cloud_doctor_status_1' => '已开通云平台',
|
||||
'cloud_doctor_status_2' => '注册云平台,等待完成',
|
||||
|
||||
'cloud_doctor_title_status' => '系统状态',
|
||||
'cloud_doctor_modify_siteidkey' => '手动修改站点ID/KEY',
|
||||
'cloud_doctor_close_yes' => '是 (前台Connect将不显示)',
|
||||
|
||||
'cloud_site_version' => '产品版本',
|
||||
'cloud_site_release' => '产品发布日期',
|
||||
|
||||
'cloud_doctor_title_result' => '检测结果(<a href="#" onClick="self.location.reload();">重新检测</a>)',
|
||||
|
||||
'cloud_doctor_fsockopen_function' => 'fsockopen函数',
|
||||
'cloud_doctor_gethostbyname_function' => 'DNS解析函数',
|
||||
'cloud_doctor_function_disable' => '函数被禁用,请联系空间商',
|
||||
|
||||
'cloud_doctor_dns_api' => '云平台域名解析',
|
||||
'cloud_doctor_dns_api_test' => '云平台主接口测试',
|
||||
'cloud_doctor_other_api_test' => '云平台其他接口测试',
|
||||
'cloud_doctor_dns_manyou' => '漫游域名解析',
|
||||
'cloud_doctor_dns_manyou_test' => '漫游主接口测试',
|
||||
'cloud_doctor_other_manyou_test' => '漫游其他接口测试',
|
||||
'cloud_doctor_dns_qzone' => 'QQ互联域名解析',
|
||||
'cloud_doctor_dns_qzone_test' => 'QQ互联主接口测试',
|
||||
'cloud_doctor_other_qzone_test' => 'QQ互联其他接口测试',
|
||||
'cloud_doctor_site_test' => '云平台到站点测试',
|
||||
'cloud_doctor_time_check' => '<img src="{imgdir}/loading.gif" class="vm"> 请稍候...',
|
||||
'cloud_doctor_site_test_result' => '<div id="cloud_doctor_site_test_result_div"><img src="{imgdir}/loading.gif" class="vm"> 请稍候...</div>',
|
||||
|
||||
'cloud_doctor_setting_ip' => '手动设置的IP:',
|
||||
|
||||
'cloud_doctor_dns_success' => '%s DNS解析的IP:%s %s <a href="javascript:;" onClick="showWindow(\'cloudApiIpWin\', \'%s?action=cloud&operation=siteinfo&anchor=cloud_ip&callback=doctor\'); return false;">设置接口IP</a>',
|
||||
'cloud_doctor_dns_failure' => '<img align="absmiddle" src="static/image/admincp/cloud/wrong.gif" /> %s DNS解析失败 %s <a href="javascript:;" onClick="showWindow(\'cloudApiIpWin\', \'%s?action=cloud&operation=siteinfo&anchor=cloud_ip&callback=doctor\'); return false;">设置接口IP</a>',
|
||||
|
||||
'cloud_doctor_title_plugin' => '系统插件检测',
|
||||
'cloud_doctor_system_plugin_status' => '系统插件状态',
|
||||
'cloud_doctor_system_plugin_status_false' => ' 系统插件未初始化 <a href="misc.php?mod=initsys&formhash={formhash}" target="_doctor_initframe" onClick="$(\'_doctor_initframe\').onload = function () {self.location.reload();};">点击修复</a><iframe id="_doctor_initframe" name="_doctor_initframe" src="" width="0" height="0" style="display:none;"></iframe>',
|
||||
'cloud_doctor_plugin_module_error' => 'common_plugin表modules字段值不正确',
|
||||
|
||||
'cloud_doctor_title_connect' => 'QQ互联检测',
|
||||
'cloud_doctor_connect_app_id' => 'QQ互联appid',
|
||||
'cloud_doctor_connect_guestgroup' => 'QQ互联游客用户组',
|
||||
'cloud_doctor_connect_app_key' => 'QQ互联appkey',
|
||||
'cloud_doctor_connect_reopen' => '当前站点appid/appkey丢失,请<a href="admin.php?action=cloud&operation=applist">重新开通</a>QQ互联',
|
||||
|
||||
'cloud_application_close' => '您的站点未开启此项云服务,请开启相应插件',
|
||||
'cloud_application_disable' => '您的站点已被禁止使用此项云服务,如果有疑问请访问<a href="http://www.discuz.net/forum.php?gid=3923" target="_blank">官方论坛</a>寻求帮助',
|
||||
|
||||
'cloud_search_tips' => '<li>开启漫游搜索功能后,用户可以使用基于漫游的搜索功能。</li>',
|
||||
|
||||
'cloud_stats' => '腾讯分析',
|
||||
'cloud_stats_tips' => '<li>选择的样式会显示在论坛底部的右下方。</li>',
|
||||
'cloud_stats_status' => '启用腾讯分析',
|
||||
'cloud_stats_icon_set' => '选择样式',
|
||||
'cloud_stats_icon_none' => '不显示图标和文字',
|
||||
'cloud_stats_icon_word9' => '腾讯分析',
|
||||
'cloud_stats_icon_word10' => '网站统计',
|
||||
'cloud_stats_setting' => '设置图标',
|
||||
'cloud_stats_summary' => '网站概况',
|
||||
|
||||
'cloud_smilies' => 'SOSO表情',
|
||||
'cloud_smilies_tips' => '<li>搜尽天下表情,为网站带来无穷的乐趣与体验。</li><li>省略繁琐的上传表情流程,无缝“偷渡”QQ表情到您的网站,论坛表情变得不再单调无味。</li>',
|
||||
|
||||
'cloud_smilies_status' => '启用SOSO 表情',
|
||||
'cloud_storage' => '旋风存储',
|
||||
'cloud_storage_tips' => '<li>为网站节省空间带宽,让用户享受超大文件的高速存储,上传下载尽在云端。</li><li>体验高速上传下载,支持单个文件高达2GB的附件上传,附件永久有效,为论坛降低成本。</li>',
|
||||
|
||||
'cloud_change_info' => '变更信息',
|
||||
'cloud_change_qq' => '更换绑定QQ',
|
||||
|
||||
'setting_manyou' => '漫游应用设置',
|
||||
'setting_manyou_tips' => '<li>开启漫游应用功能后,用户可以自由选择各种不同的应用(诸如德克萨斯扑克、弹弹堂、十年一剑......)在站内进行使用。</li><li>漫游应用功能由 <a target="_blank" href="http://www.manyou.com/www/">MYOP开放平台</a> 提供, Manyou Open Platform(Manyou开放平台/MYOP)服务是由 Comsenz 公司为应用开发者提供的开放平台,启用漫游服务前,<a href="http://wiki.developer.manyou.com/wiki/index.php?title=MYOP%E7%BD%91%E7%AB%99%E6%9C%8D%E5%8A%A1%E5%8D%8F%E8%AE%AE&printable=yes" target="_blank">请先阅读MYOP网站服务协议</a></li>',
|
||||
'setting_manyou_base' => '基本设置',
|
||||
'setting_manyou_base_status' => '启用漫游应用',
|
||||
'setting_manyou_base_status_comment' => '选择是否开启漫游应用。如果关闭漫游应用,您的网站用户将不能使用任何基于漫游的应用',
|
||||
'setting_manyou_search_status' => '启用漫游搜索',
|
||||
'setting_manyou_search_status_comment' => '漫游搜索是专为 Discuz! 产品量身定做的高效、全文搜索服务,无须网站的 MySQL 资源',
|
||||
'setting_manyou_search_invite' => '漫游搜索邀请码',
|
||||
'setting_manyou_search_invite_comment' => '目前处于测试阶段,需要输入邀请码方可开通漫游搜索,<a href="http://www.discuz.net/thread-1669366-1-1.html" target="_blank">点击这里申请邀请码</a>',
|
||||
'setting_manyou_base_status_no' => '尚未开启漫游功能,不能进行此管理。',
|
||||
'setting_manyou_base_ip' => '漫游应用的 IP',
|
||||
'setting_manyou_base_ip_comment' => '默认为空。如果您的服务器因 DNS 解析问题无法使用漫游应用服务,请填写漫游应用的 IP 地址。<a href="http://faq.comsenz.com/viewnews-400" target="_blank">查看漫游应用的 IP</a>',
|
||||
'setting_manyou_base_close_prompt' => '关闭漫游应用的更新提示',
|
||||
'setting_manyou_base_close_prompt_comment' => '您的站点开启了漫游应用多应用服务后,当平台有了新的信息的时候漫游应用会自动提示给管理员。关闭本功能后,您将不再获取更新提示。',
|
||||
'setting_manyou_base_open_app_prompt' => '开启漫游应用公告',
|
||||
'setting_manyou_base_open_app_prompt_comment' => '当平台有了新的应用公告时,用户打开浏览器的时候会弹出窗口提示,类似漫游应用更新提示',
|
||||
'setting_manyou_base_refresh' => '同步漫游信息',
|
||||
'setting_manyou_base_refresh_comment' => '如果更改了导航名称、搜索设置等,请同步漫游信息。',
|
||||
'setting_manyou_base_showgift_comment' => '如果您开启了漫游应用平台的礼物应用后,可以在首页显示“推荐礼物”。',
|
||||
'setting_manyou_manage' => '漫游应用管理',
|
||||
'setting_manyou_search_manage' => '漫游搜索管理',
|
||||
|
||||
'connect_menu_setting' => '基本设置',
|
||||
'connect_menu_service' => '其他',
|
||||
'connect_menu_stat' => '数据统计',
|
||||
'connect_setting_allow' => '开启QQ注册/绑定/登录服务',
|
||||
'connect_setting_allow_comment' => '开启后,用户可以通过QQ帐号登录站点,以及进行更多和QQ相关的操作',
|
||||
'connect_setting_siteid' => 'QQ绑定站点ID',
|
||||
'connect_setting_sitekey' => 'QQ绑定站点密钥',
|
||||
'connect_setting_feed_allow' => '开启发帖同步推送到QQ空间动态',
|
||||
'connect_setting_feed_allow_comment' => '开启后,用户发帖可以同步推送到QQ空间动态,展现给用户的QQ空间好友',
|
||||
'connect_setting_feed_fids' => '允许推送的论坛版块',
|
||||
'connect_setting_feed_group' => '群组是否允许推送',
|
||||
'connect_setting_feed_group_comment' => '设置在群组发表的主题是否可以推送到QQ空间动态',
|
||||
'connect_setting_t_allow' => '开启发帖同步推送到腾讯微博',
|
||||
'connect_setting_t_allow_comment' => '开启后,用户发帖可以同步推送到腾讯微博,展现给用户的微博听众',
|
||||
'connect_setting_t_fids' => '允许推送的论坛版块',
|
||||
'connect_setting_t_group' => '群组是否允许推送',
|
||||
'connect_setting_t_group_comment' => '设置在群组发表的主题是否可以推送到腾讯微博',
|
||||
'connect_setting_t_reply_showauthor' => '显示评论或转播的微博用户链接',
|
||||
'connect_setting_t_reply_showauthor_comment' => '设置"是",回流时会在内容下方标注评论或转播的微博用户昵称和微博地址',
|
||||
'connect_setting_t_reply' => '允许微博评论和转播内容回流',
|
||||
'connect_setting_t_reply_comment' => '推送主题或分享主题到腾讯微博后,是否允许微博评论和转播内容回流',
|
||||
'connect_setting_like_allow' => '显示本站QQ认证空间喜欢的链接',
|
||||
'connect_setting_like_allow_comment' => '用户点击本站QQ认证空间喜欢的链接,将立即成为本站QQ认证空间的粉丝,随时收取认证空间的动态',
|
||||
'connect_setting_like_url' => '认证空间QQ号码',
|
||||
'connect_setting_like_url_comment' => '设置认证空间的 QQ 号码,提交认证申请请<a href="http://opensns.qq.com/" target="_blank">点击这里</a>',
|
||||
'connect_setting_turl_allow' => '显示本站官方微博快速收听按钮',
|
||||
'connect_setting_turl_allow_comment' => '用户点击本站官方微博快速收听按钮,将立即成为您所设置的腾讯微博帐号听众,随时收取微博的动态',
|
||||
'connect_setting_turl_qq' => '官方微博QQ号码',
|
||||
'connect_setting_turl_qq_comment' => '设置官方微博的QQ号码',
|
||||
'connect_setting_turl_qq_failed' => '官方微博QQ号码设置失败,请确保该QQ号的有效性',
|
||||
'connect_setting_qshare_allow' => '开启Q-Share功能',
|
||||
'connect_setting_qshare_allow_comment' => '用户选中帖子内容中的任何一段文本时,可方便快捷的将选中的文本内容和区域内图片转播到腾讯微博',
|
||||
'connect_setting_weibo_appkey' => '腾讯微博开放平台AppKey',
|
||||
'connect_setting_weibo_appkey_comment' => '填写AppKey将在腾讯微博中显示设置的来源字段信息,可不填写。怎样申请AppKey?请访问腾讯微博开放平台,<a href="http://open.t.qq.com/apps_welcome.php" target="_blank">创建应用获取AppKey</a>',
|
||||
'connect_member_info' => '用户信息',
|
||||
'connect_member_bindlog' => 'QQ绑定日志',
|
||||
'connect_member_bindlog_type' => '操作',
|
||||
'connect_member_bindlog_username' => '用户名',
|
||||
'connect_member_bindlog_date' => '日期',
|
||||
'connect_member_bindlog_type_1' => '绑定',
|
||||
'connect_member_bindlog_type_2' => '解除绑定',
|
||||
'connect_member_bindlog_uin' => 'QQ帐号绑定日志',
|
||||
'connect_member_bindlog_uid' => '用户帐号绑定日志',
|
||||
'connect_guest_group_name' => 'QQ游客',
|
||||
|
||||
'qqgroup_menu_list' => '绑定管理',
|
||||
'qqgroup_menu_manager' => '设置名称',
|
||||
'qqgroup_menu_setting' => '推送设置',
|
||||
'qqgroup_menu_block' => '推送信息',
|
||||
'qqgroup_menu_history' => '推送历史',
|
||||
|
||||
'qqgroup_msg_deficiency' => '请至少推送一条头条主题和一条列表主题',
|
||||
'qqgroup_msg_save_succeed' => '恭喜,信息成功推送到QQ群',
|
||||
'qqgroup_msg_upload_succeed' => '图片上传成功 ',
|
||||
'qqgroup_msg_upload_failure' => '图片上传失败,请选择长宽为75*75的图片,支持JPG、GIF、PNG格式,文件小于5M,并检查服务器是否开启GD库',
|
||||
'qqgroup_msg_remote_exception' => '抱歉,出了点小错。错误原因:{errmsg} 错误代号:{errno}',
|
||||
'qqgroup_msg_unknown_dns' => '抱歉,出现未知错误,请检查您的服务器与Discuz!云平台连接',
|
||||
'qqgroup_msg_remote_error' => '抱歉,服务器出错了。请稍后再试',
|
||||
|
||||
'qqgroup_search_order_views' => '浏览数倒序',
|
||||
'qqgroup_search_order_replies' => '回复数倒序',
|
||||
'qqgroup_search_order_heats' => '热度倒序',
|
||||
'qqgroup_search_order_dateline' => '发布时间倒序',
|
||||
'qqgroup_search_order_lastpost' => '最后回复倒序',
|
||||
'qqgroup_search_order_recommends' => '主题评价倒序',
|
||||
|
||||
'qqgroup_search_dateline_1' => '1小时内发布的主题',
|
||||
'qqgroup_search_dateline_2' => '24小时内发布的主题',
|
||||
'qqgroup_search_dateline_3' => '7天内发布的主题',
|
||||
'qqgroup_search_dateline_4' => '1个月内发布的主题',
|
||||
'qqgroup_search_dateline_0' => '不限制',
|
||||
|
||||
'qqgroup_search_tid' => '主题ID:',
|
||||
'qqgroup_search_button' => '搜索',
|
||||
'qqgroup_search_threadslist' => '主题列表',
|
||||
'qqgroup_search_inforum' => '所在版块',
|
||||
'qqgroup_search_operation' => '操作',
|
||||
|
||||
'qqgroup_search_loading' => '加载中...',
|
||||
'qqgroup_search_nothreads' => '未找到指定条件的主题,请尝试更换筛选条件重新搜索',
|
||||
|
||||
'qqgroup_ctrl_add_miniportal_topic' => '推送到头条',
|
||||
'qqgroup_ctrl_add_miniportal_normal' => '推送到列表',
|
||||
'qqgroup_ctrl_up' => '向上移动',
|
||||
'qqgroup_ctrl_down' => '向下移动',
|
||||
'qqgroup_ctrl_edit' => '编辑',
|
||||
'qqgroup_ctrl_remove' => '移出',
|
||||
'qqgroup_ctrl_upload_image' => '上传图片',
|
||||
'qqgroup_ctrl_choose_image' => '选择图片:',
|
||||
'qqgroup_ctrl_choose_image_tips' => '请选择长宽为75*75的图片,支持JPG、GIF、PNG格式,文件小于5M。',
|
||||
'qqgroup_ctrl_close' => '关闭',
|
||||
|
||||
'qqgroup_preview_tips_topic' => '点击左侧 <img src="static/image/admincp/cloud/qun_op_top.png" align="absmiddle" /> 将信息推送到头条',
|
||||
'qqgroup_preview_tips_normal' => '点击左侧 <img src="static/image/admincp/cloud/qun_op_list.png" align="absmiddle" /> 将信息推送到列表',
|
||||
'qqgroup_preview_more' => '更多',
|
||||
'qqgroup_preview_shortname' => '页卡标题',
|
||||
'qqgroup_preview_button' => '推送信息',
|
||||
'attach_img' => '图片附件',
|
||||
|
||||
'qqgroup_feed_setting' => '推送设置',
|
||||
'qqgroup_usergroup_feed_list' => '允许推送的用户组',
|
||||
'qqgroup_usergroup_feed_list_comment' => '所选用户组拥有推送权限,可以按住 CTRL 多选',
|
||||
'qqgroup_setting_tips' => '<li>主题查看页的“推送到QQ群”功能,可将帖子即时推送到QQ群聊天框。</li><li><img src="static/image/admincp/cloud/feed.png" align="left"></li>',
|
||||
|
||||
'security_member_list' => '违规用户',
|
||||
'security_member_tips' => '<li>违规用户来自于防水墙识别为垃圾帖的发帖用户,不包含白名单用户。</li><li>“忽略本次”操作将从违规列表中忽略指定用户,如果用户再次违规仍将会被加入违规用户列表。</li>',
|
||||
'security_member_ignore_this' => '忽略本次',
|
||||
'security_thread_list' => '违规主题',
|
||||
'security_post_list' => '违规回帖',
|
||||
'security_members_name' => '用户名',
|
||||
'security_members_eviltype' => '恶意类型',
|
||||
'security_post_eviltype' => '恶意类型',
|
||||
'security_thread_eviltype' => '恶意类型',
|
||||
'security_isreported' => '是否已经上报过',
|
||||
'security_admin_operate' => '状态',
|
||||
'security_isreported_yes' => '是',
|
||||
'security_isreported_no' => '否',
|
||||
'security_type_1' => '政治',
|
||||
'security_type_2' => '色情',
|
||||
'security_type_3' => '灌水',
|
||||
'security_type_4' => '挂马',
|
||||
'security_type_5' => '广告',
|
||||
'security_type_6' => '其他',
|
||||
'security_opreateresult_0' => '回收站',
|
||||
'security_opreateresult_1' => '正常',
|
||||
'security_opreateresult_2' => '已删除',
|
||||
'security_opreateresult_3' => '忽略',
|
||||
'security_subject' => '标题',
|
||||
'security_forum' => '版块',
|
||||
'security_author' => '作者/发帖时间',
|
||||
'security_view' => '查看',
|
||||
'security_view_thread' => '查看主题',
|
||||
'security_clicktotoggle' => '点击折叠/展开详细内容',
|
||||
'security_foldall' => '全部折叠',
|
||||
'security_exfoldall' => '全部展开',
|
||||
'security_userdeleted' => '该用户已被管理人员删除',
|
||||
'security_postdeleted' => '该帖子已被网站管理人员从回收站彻底删除',
|
||||
'security_modreason' => '防水墙自动处理',
|
||||
'security_restore_user' => '恢复该用户',
|
||||
'security_change_usergroup' => '更改用户组',
|
||||
'security_reopen' => '您的站点未成功开通防水墙,请<a href="'.ADMINSCRIPT.'?action=cloud&operation=security&anchor=reopen">再次开通</a>',
|
||||
|
||||
'recyclebin_search_security_thread' => '仅包含防水墙处理的主题',
|
||||
'recyclebin_search_security_post' => '仅包含防水墙处理的回帖',
|
||||
|
||||
'security_index' => '首页',
|
||||
'security_index_list' => '首页',
|
||||
'security_setting' => '白名单设置',
|
||||
'security_blanklist' => '白名单设置',
|
||||
'security_setting_list' => '白名单设置',
|
||||
'security_reopen_list' => '再次开通',
|
||||
'security_tips' => '小技巧',
|
||||
'security_tips_1' => '<li><p>系统识别到违规主题和违规回帖后,自动将主题和回帖放入<a href="admin.php?action=recyclebin" style="text-decoration:none; color:#0000FF;">回收站</a></p></li>',
|
||||
'security_white_list_setting' => '白名单设置',
|
||||
'security_usergroup_white_list' => '用户组白名单',
|
||||
'security_usergroup_white_list_comment' => '所选用户组内用户的操作,防水墙不做处理,可以按住 CTRL 多选',
|
||||
'security_forum_white_list' => '版块白名单',
|
||||
'security_forum_white_list_comment' => '所选版块内的主题和回复,防水墙不做处理,可以按住 CTRL 多选',
|
||||
'security_recyclebin_thread' => '到回收站处理主题',
|
||||
'security_recyclebin_post' => '到回收站处理回帖',
|
||||
'security_thread_status' => '主题状态',
|
||||
'security_post_status' => '回帖状态',
|
||||
'security_thread_member' => '用户状态',
|
||||
'security_thread_member_group' => '用户组',
|
||||
'security_cron_lastpost' => '更新版块最后发表(防水墙相关)',
|
||||
'security_cron_daily' => '防水墙每日优化',
|
||||
'setting_update_succeed' => '当前设置更新成功',
|
||||
'security_createtime' => '违规日期',
|
||||
'security_safe_list' => '安全设置',
|
||||
'security_safe_login_open' => '开启安全登录功能',
|
||||
'security_safe_login_open_comment' => '有效防止恶意注册!选择是,用户必须将论坛帐号与QQ帐号绑定后,才能在论坛发帖,回复',
|
||||
'security_qq_login_alone_open' => '开启QQ独立登录',
|
||||
'security_qq_login_alone_open_comment' => '有效防止盗号!开启后只能使用QQ号登录,即便盗取了论坛帐号也无法登录发帖',
|
||||
|
||||
'search_menu_setting' => '设置',
|
||||
'search_menu_service' => '功能配置',
|
||||
'search_setting_allow_hot_topic' => '开启热门话题',
|
||||
'search_setting_allow_forum_recommend' => '开启版块推荐词',
|
||||
'search_setting_allow_thread_related' => '开启主题相关帖',
|
||||
'search_setting_allow_thread_related_comment' => '展示在主题帖下方,根据帖子内容计算出站内相关的帖子,挖掘相似主题,拓展用户阅读深度。',
|
||||
'search_setting_allow_recommend_related' => '开启相关推荐',
|
||||
'search_setting_allow_recommend_related_comment' => '当用户通过搜索引擎点到站内帖子页时,会在页面左下角产生一个浮动的推荐页面,帮助访客发现更多站内相关内容。',
|
||||
'search_setting_allow_forum_related' => '开启版块相关帖',
|
||||
'search_setting_allow_collection_related' => '开启淘帖相关帖',
|
||||
'search_menu_settingsearch' => '搜索设置',
|
||||
'search_menu_basicsetting' => '基本设置',
|
||||
'search_menu_modulesetting' => '模块设置',
|
||||
'search_modulesetting_tips' => '纵横搜索提供的推荐服务,在不占用网站资源的前提下,通过云计算能力为网站用户提升访问深度。',
|
||||
);
|
||||
|
||||
$GLOBALS['admincp_actions_normal'][] = 'cloud';
|
||||
|
||||
?>
|
|
@ -3,14 +3,13 @@
|
|||
}-->
|
||||
<!--{template common/header}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em> {lang invite_friends}<!--{if $userapp}-->{lang and_play_together} $userapp[appname]<!--{/if}--></div>
|
||||
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em> {lang invite_friends}</div>
|
||||
</div>
|
||||
<div id="ct" class="ct2 wp cl">
|
||||
<div class="mn">
|
||||
<div class="bm bml">
|
||||
<h1 class="bm_h mt">{lang welcome}<a href="home.php?mod=space&uid=$uid" target="_blank">{$space[username]}</a> {lang invite_you_to_friends}<!--{if $userapp}-->{lang play_together} $userapp[appname]<!--{/if}-->.</h1>
|
||||
<h1 class="bm_h mt">{lang welcome}<a href="home.php?mod=space&uid=$uid" target="_blank">{$space[username]}</a> {lang invite_you_to_friends}.</h1>
|
||||
<div class="bm_c">
|
||||
<!--{if $userapp}--><img src="http://appicon.manyou.com/logos/{$userapp[appid]}" alt="{$userapp[appname]}" class="y mbm" /><!--{/if}-->
|
||||
{lang become_friend}
|
||||
</div>
|
||||
<hr class="da mtm mbm" />
|
||||
|
|
|
@ -130,31 +130,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<!--{if $_G['setting']['my_app_status']}-->
|
||||
<script type="text/javascript">
|
||||
function my_sync_tip(msg, close_time) {;
|
||||
showDialog(msg, 'notice');
|
||||
}
|
||||
function my_sync_friend() {
|
||||
my_sync_tip('{lang syn_friend}', 0);
|
||||
var my_scri = document.createElement("script");
|
||||
document.getElementsByTagName("head")[0].appendChild(my_scri);
|
||||
my_scri.charset = "UTF-8";
|
||||
var url = "http://uchome.manyou.com/user/syncFriends";
|
||||
my_scri.src = url + "?sId=$_G['setting'][my_siteid]&uUchId=$space[uid]&ts=$_G[timestamp]&key=<!--{eval echo md5($_G['setting'][my_siteid] . $_G['setting'][my_sitekey] . $space[uid] . $_G[timestamp]);}-->";
|
||||
}
|
||||
</script>
|
||||
<div class="bm mtm">
|
||||
<div class="bm_h cl">
|
||||
<h3>{lang cannot_find_friend}</h3>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<p>{lang click_syn}</p>
|
||||
<p class="pns mtm hm"><button type="button" onclick="my_sync_friend(); return false;" title="{lang friend_manyou_message}" class="pn"><em>{lang refresh_friend}</em></button></p>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<div class="bm mtm">
|
||||
<div class="bm_h cl">
|
||||
<a href="home.php?mod=spacecp&ac=friend&op=group" class="y xi2">{lang volume_group}</a>
|
||||
|
|
|
@ -26,9 +26,6 @@
|
|||
<li$actives[we]><a href="home.php?mod=space&do=home&view=we">{lang friend_feed}</a></li>
|
||||
<li$actives[me]><a href="home.php?mod=space&do=home&view=me">{lang my_feed}</a></li>
|
||||
<li$actives[all]><a href="home.php?mod=space&do=home&view=all">{lang view_all}</a></li>
|
||||
<!--{if $_G['setting']['my_app_status']}-->
|
||||
<li$actives[app]><a href="home.php?mod=space&do=home&view=app">{lang view_app_feed}</a></li>
|
||||
<!--{/if}-->
|
||||
<!--{hook/space_home_navlink}-->
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -344,9 +341,6 @@
|
|||
<li$actives[we]><a href="home.php?mod=space&do=home&view=we">{lang friend_feed}</a></li>
|
||||
<li$actives[me]><a href="home.php?mod=space&do=home&view=me">{lang my_feed}</a></li>
|
||||
<li$actives[all]><a href="home.php?mod=space&do=home&view=all">{lang view_all}</a></li>
|
||||
<!--{if $_G['setting']['my_app_status']}-->
|
||||
<li$actives[app]><a href="home.php?mod=space&do=home&view=app">{lang view_app_feed}</a></li>
|
||||
<!--{/if}-->
|
||||
<!--{hook/space_home_navlink}-->
|
||||
<!--{if $_G['setting']['magicstatus'] && $_G['setting']['magics']['thunder']}-->
|
||||
<li class="y"><a id="a_magic_thunder" href="home.php?mod=magic&mid=thunder" onclick="showWindow('magics', this.href, 'get', 0)" style="padding-left: 18px; background: url({STATICURL}image/magic/thunder.small.gif) no-repeat 0 50%;">{$_G[setting][magics][thunder]}</a></li>
|
||||
|
@ -370,12 +364,6 @@
|
|||
<a href="home.php?mod=space&do=home&view=all&order=dateline"$orderactives[dateline]>{lang newest_feed}</a><span class="pipe">|</span>
|
||||
<a href="home.php?mod=space&do=home&view=all&order=hot"$orderactives[hot]>{lang hot_feed}</a>
|
||||
</p>
|
||||
<!--{elseif $_GET[view] == 'app' && $_G['setting']['my_app_status']}-->
|
||||
<p class="tbmu">
|
||||
<a href="home.php?mod=space&do=home&view=app&type=we"$typeactives[we]>{lang what_friend_playing}</a><span class="pipe">|</span>
|
||||
<a href="home.php?mod=space&do=home&view=app&type=me"$typeactives[me]>{lang own}</a><span class="pipe">|</span>
|
||||
<a href="home.php?mod=space&do=home&view=app&type=all"$typeactives[all]>{lang what_everybody_playing}</a>
|
||||
</p>
|
||||
<!--{elseif $groups}-->
|
||||
<p class="tbmu">
|
||||
<!--{if !$_G[setting][homestyle] && $_G['setting']['magicstatus'] && $_G['setting']['magics']['thunder']}-->
|
||||
|
@ -433,9 +421,6 @@
|
|||
<!--{/if}-->
|
||||
|
||||
<!--{if $list}-->
|
||||
<!--{if $_GET[view] == 'app' && $_G['setting']['my_app_status']}-->
|
||||
<!--{template home/space_home_feed_app}-->
|
||||
<!--{else}-->
|
||||
<!--{loop $list $day $values}-->
|
||||
<!--{if $_GET['view']!='hot'}-->
|
||||
<h4 class="et">
|
||||
|
@ -449,7 +434,6 @@
|
|||
<!--{/loop}-->
|
||||
</ul>
|
||||
<!--{/loop}-->
|
||||
<!--{/if}-->
|
||||
<!--{elseif $feed_users}-->
|
||||
<div class="xld xlda mtm">
|
||||
<!--{loop $feed_users $day $users}-->
|
||||
|
@ -490,7 +474,7 @@
|
|||
<!--{/loop}-->
|
||||
</div>
|
||||
<!--{else}-->
|
||||
<p class="emp"><!--{if $_GET[view] == 'app' && $_G['setting']['my_app_status']}-->{lang no_app_feed}<!--{else}-->{lang no_feed}<!--{/if}--></p>
|
||||
<p class="emp">{lang no_feed}</p>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{if $filtercount}-->
|
||||
|
@ -542,8 +526,6 @@
|
|||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{eval helper_manyou::checkupdate();}-->
|
||||
|
||||
<script type="text/javascript">
|
||||
function filter_more(id) {
|
||||
if($('feed_filter_div_'+id).style.display == '') {
|
||||
|
|
|
@ -1,47 +0,0 @@
|
|||
<div class="xld xlda mtm">
|
||||
<!--{loop $list $appicon $values}-->
|
||||
<dl class="bbda cl">
|
||||
<dd class="m avt">
|
||||
<a href="userapp.php?mod=app&id=$appicon"><img src="http://appicon.manyou.com/logos/$appicon" alt="" /></a>
|
||||
</dd>
|
||||
<dd class="cl">
|
||||
<ul class="el">
|
||||
<!--{loop $values $value}-->
|
||||
<li class="cl">
|
||||
<a class="t" href="userapp.php?icon=$value[icon]" title="{lang just_look_dynamic}">
|
||||
<img width="16" height="16" {if $_G[cache][myapp][$value[icon]][icon]}src="$_G[cache][myapp][$value[icon]][icon]" onerror="this.onerror=null;this.src='http://appicon.manyou.com/icons/$value[icon]'"{else} src="http://appicon.manyou.com/icons/$value[icon]"{/if} />
|
||||
</a>
|
||||
$value[title_template]
|
||||
<span class="xg1"><!--{date($value[dateline], 'n-j H:i')}--></span>
|
||||
|
||||
<div class="ec">
|
||||
<!--{if $value['image_1']}-->
|
||||
<a href="$value[image_1_link]"{$value[target]}><img src="$value[image_1]" class="tn" /></a>
|
||||
<!--{/if}-->
|
||||
<!--{if $value['image_2']}-->
|
||||
<a href="$value[image_2_link]"{$value[target]}><img src="$value[image_2]" class="tn" /></a>
|
||||
<!--{/if}-->
|
||||
<!--{if $value['image_3']}-->
|
||||
<a href="$value[image_3_link]"{$value[target]}><img src="$value[image_3]" class="tn" /></a>
|
||||
<!--{/if}-->
|
||||
<!--{if $value['image_4']}-->
|
||||
<a href="$value[image_4_link]"{$value[target]}><img src="$value[image_4]" class="tn" /></a>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{if $value['body_template']}-->
|
||||
<div class="detail"{if $value['image_3']} style="clear: both; zoom: 1;"{/if}>
|
||||
$value[body_template]
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{if $value['body_general']}-->
|
||||
<div class="quote"><blockquote>$value[body_general]</blockquote></div>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<!--{/loop}-->
|
||||
</div>
|
|
@ -28,65 +28,6 @@
|
|||
<!--{/if}-->
|
||||
</ul>
|
||||
|
||||
<!--{if $view=='userapp'}-->
|
||||
|
||||
<script type="text/javascript">
|
||||
function manyou_add_userapp(hash, url) {
|
||||
if(isUndefined(url)) {
|
||||
$(hash).innerHTML = "<tr><td colspan=\"2\">{lang successfully_ignored_information}</td></tr>";
|
||||
} else {
|
||||
$(hash).innerHTML = "<tr><td colspan=\"2\">{lang is_guide_you_in}</td></tr>";
|
||||
}
|
||||
var x = new Ajax();
|
||||
x.get('home.php?mod=misc&ac=ajax&op=deluserapp&hash='+hash, function(s){
|
||||
if(!isUndefined(url)) {
|
||||
location.href = url;
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="ct_vw cl">
|
||||
<div class="ct_vw_sd">
|
||||
<ul class="mtw">
|
||||
<!--{if $list}--><li><a href="home.php?mod=space&do=notice&view=userapp">{lang all_applications_news}</a></li><!--{/if}-->
|
||||
<!--{loop $apparr $type $val}-->
|
||||
<li class="mtn">
|
||||
<a href="home.php?mod=userapp&id=$val[0][appid]&uid=$space[uid]" title="$val[0][typename]"><img src="http://appicon.manyou.com/icons/$val[0][appid]" alt="$val[0][typename]" class="vm" /></a>
|
||||
<a href="home.php?mod=space&do=notice&view=userapp&type=$val[0][appid]"> <!--{eval echo count($val);}--> {lang unit} $val[0][typename] <!--{if $val[0][type]}-->{lang request}<!--{else}-->{lang invite}<!--{/if}--></a>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ct_vw_mn">
|
||||
<!--{if $list}-->
|
||||
<!--{loop $list $key $invite}-->
|
||||
<h4 class="mtw mbm">
|
||||
<a href="home.php?mod=space&do=notice&view=userapp&op=del&appid=$invite[0][appid]" class="y xg1">{lang ignore_invitations_application}</a>
|
||||
<a href="home.php?mod=userapp&id=$invite[0][appid]&uid=$space[uid]" title="$apparr[$invite[0][appid]]"><img src="http://appicon.manyou.com/icons/$invite[0][appid]" alt="$apparr[$invite[0][appid]]" class="vm" /></a>
|
||||
{lang notice_you_have} <!--{eval echo count($invite);}--> {lang unit} $invite[0][typename] <!--{if $invite[0][type]}-->{lang request}<!--{else}-->{lang invite}<!--{/if}-->
|
||||
</h4>
|
||||
<div class="xld xlda">
|
||||
<!--{loop $invite $value}-->
|
||||
<dl class="bbda cl">
|
||||
<dd class="m avt mbn">
|
||||
<a href="home.php?mod=space&uid=$value[fromuid]"><!--{avatar($value[fromuid],small)}--></a>
|
||||
</dd>
|
||||
<dt id="$value[hash]">
|
||||
<div class="xw0 xi3">$value[myml]</div>
|
||||
</dt>
|
||||
</dl>
|
||||
<!--{/loop}-->
|
||||
</div>
|
||||
<!--{/loop}-->
|
||||
<!--{if $multi}--><div class="pgs cl">$multi</div><!--{/if}-->
|
||||
<!--{else}-->
|
||||
<div class="emp">{lang no_request_applications_invite}</div>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--{else}-->
|
||||
<!--{if empty($list)}-->
|
||||
<div class="emp mtw ptw hm xs2">
|
||||
<!--{if $new == 1}-->
|
||||
|
@ -150,8 +91,6 @@
|
|||
|
||||
<!--{if $multi}--><div class="pgs cl">$multi</div><!--{/if}-->
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="appl">
|
||||
|
|
|
@ -5,8 +5,5 @@
|
|||
<!--{loop $_G['notice_structure'] $key $type}-->
|
||||
<li $opactives[$key]><em class="notice_$key"></em><a href="home.php?mod=space&do=notice&view=$key"><!--{eval echo lang('template', 'notice_'.$key)}--><!--{if $_G['member']['category_num'][$key]}-->($_G['member']['category_num'][$key])<!--{/if}--></a></li>
|
||||
<!--{/loop}-->
|
||||
<!--{if $_G['setting']['my_app_status']}-->
|
||||
<li$actives[userapp]><em class="notice_userapp"></em><a href="home.php?mod=space&do=notice&view=userapp">{lang applications_news}{if $mynotice}($mynotice){/if}</a></li>
|
||||
<!--{/if}-->
|
||||
</ul>
|
||||
</div>
|
|
@ -29,13 +29,6 @@
|
|||
</p>
|
||||
</form>
|
||||
|
||||
<!--{elseif $_GET['op'] == 'getuserapp'}-->
|
||||
|
||||
<!--{loop $my_userapp $value}-->
|
||||
<!--{if $value['allowsidenav']}-->
|
||||
<li><!--{if $value[appstatus]}--><span class="{if $value[appstatus]==1}appnew{else}apphot{/if}"></span><!--{/if}--><a href="userapp.php?mod=app&id=$value[appid]"><img {if $value[icon]}src="$value[icon]" onerror="this.onerror=null;this.src='http://appicon.manyou.com/icons/$value[appid]'"{else} src="http://appicon.manyou.com/icons/$value[appid]"{/if}>$value[appname]</a></li>
|
||||
<!--{/if}-->
|
||||
<!--{/loop}-->
|
||||
<!--{elseif $_GET['op']=='modifyunitprice'}-->
|
||||
|
||||
<h3 class="flb">
|
||||
|
|
|
@ -3,9 +3,6 @@
|
|||
<ul>
|
||||
<li$actives[avatar]><a href="home.php?mod=spacecp&ac=avatar">{lang memcp_avatar}</a></li>
|
||||
<li$actives[profile]><a href="home.php?mod=spacecp&ac=profile">{lang memcp_profile}</a></li>
|
||||
<!--{if $_G['setting']['verify']['enabled'] && allowverify() || $_G['setting']['my_app_status'] && $_G['setting']['videophoto']}-->
|
||||
<li$actives[verify]><a href="{if $_G['setting']['verify']['enabled']}home.php?mod=spacecp&ac=profile&op=verify{else}home.php?mod=spacecp&ac=videophoto{/if}">{lang memcp_verify}</a></li>
|
||||
<!--{/if}-->
|
||||
<li$actives[credit]><a href="home.php?mod=spacecp&ac=credit">{lang memcp_credit}</a></li>
|
||||
<li$actives[usergroup]><a href="home.php?mod=spacecp&ac=usergroup">{lang memcp_usergroup}</a></li>
|
||||
<li$actives[privacy]><a href="home.php?mod=spacecp&ac=privacy">{lang memcp_privacy}</a></li>
|
||||
|
|
|
@ -365,15 +365,6 @@ function succeedhandle_$_GET['handlekey'] (url, message, values) {
|
|||
<th>{lang show_message}</th>
|
||||
<td><input type="text" name="showmessage" value="$para[showmessage]" class="px" /> {lang show_message_tips}</td>
|
||||
</tr>
|
||||
<!--{elseif $blockname == 'myapp'}-->
|
||||
<!--{eval $para['logotype'] = empty($para['logotype']) ? 'icon' : $para['logotype'];}-->
|
||||
<tr>
|
||||
<th>{lang myapp_img}</th>
|
||||
<td>
|
||||
<label><input type="radio" name="logotype" value="logo"{if $para[logotype] == 'logo'} checked="checked"{/if}>{lang big}</label>
|
||||
<label><input type="radio" name="logotype" value="icon"{if $para[logotype] == 'icon'} checked="checked"{/if}>{lang small}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -223,8 +223,6 @@
|
|||
<!--{eval $uid = $uids[$key];$icon_uid="$icon|$uid";}-->
|
||||
<label>
|
||||
<!--{if is_numeric($icon)}-->
|
||||
<img src="http://appicon.manyou.com/icons/{$icon}" alt="" class="vm" />
|
||||
<!--{else}-->
|
||||
<img src="{STATICURL}image/feed/{$icon}.gif" alt="" class="vm" />
|
||||
<!--{/if}-->
|
||||
<input type="checkbox" class="pc" name="privacy[filter_icon][$icon_uid]" value="1" checked="checked" />
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
<!--{if $verify['available'] && (empty($verify['groupid']) || in_array($_G['groupid'], $verify['groupid']))}-->
|
||||
<!--{if $vid != 7}-->
|
||||
<li $opactives['verify'.$vid]><a href="home.php?mod=spacecp&ac=profile&op=verify&vid=$vid">$verify['title']</a></li>
|
||||
<!--{elseif $_G['setting']['my_app_status'] && $vid == 7}-->
|
||||
<li $opactives[videophoto]><a href="home.php?mod=spacecp&ac=videophoto">{lang video_certification}</a></li>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<!--{/loop}-->
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
'group' => '{lang mail_system_group}',
|
||||
'task' => '{lang mail_system_task}',
|
||||
'pmreport' => '{lang mail_system_pmreport}',
|
||||
'myapp' => '{lang mail_system_myapp}',
|
||||
'mod_member' => '{lang mail_system_mod_member}',
|
||||
'friend' => '{lang mail_system_friend}',
|
||||
'show' => '{lang mail_system_show}',
|
||||
|
|
|
@ -1,66 +0,0 @@
|
|||
<!--{eval $_G['home_tpl_titles'] = array($app['appname']);}-->
|
||||
<!--{template common/header}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>$_G[setting][navs][5][navname]
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="http://static.manyou.com/scripts/my_iframe.js"></script>
|
||||
<script language="javascript">
|
||||
var prefixURL = "$my_prefix";
|
||||
var suffixURL = "$my_suffix";
|
||||
var queryString = '';
|
||||
var url = "http://apps.manyou.com/{$my_appId}";
|
||||
var oldHash = null;
|
||||
var timer = null;
|
||||
var appId = '$my_appId';
|
||||
|
||||
var server = new MyXD.Server("ifm0");
|
||||
server.registHandler('iframeHasLoaded');
|
||||
server.registHandler('setTitle');
|
||||
server.start();
|
||||
|
||||
|
||||
function iframeHasLoaded(ifm_id) {
|
||||
MyXD.Util.showIframe(ifm_id);
|
||||
document.getElementById('loading').style.display = 'none';
|
||||
}
|
||||
|
||||
function htmlspecialchars_decode(string) {
|
||||
string = string.toString();
|
||||
string = string.replace(/&/g, '&');
|
||||
string = string.replace(/</g, '<');
|
||||
string = string.replace(/>/g, '>');
|
||||
string = string.replace(/"/g, '"');
|
||||
string = string.replace(/'/g, "'");
|
||||
return string;
|
||||
|
||||
}
|
||||
function setTitle(x) {
|
||||
<!--{eval $my_site_name=dhtmlspecialchars($_G['setting']['sitename'], ENT_QUOTES);}-->
|
||||
var my_site_name = htmlspecialchars_decode('{$my_site_name}');
|
||||
|
||||
x = htmlspecialchars_decode(x);
|
||||
document.title = x + my_site_name;
|
||||
}
|
||||
|
||||
</script>
|
||||
<div id="ct" class="wp cl">
|
||||
<div class="mn">
|
||||
<!--{hook/userapp_app_top}-->
|
||||
<div id="mx2note" style="display: none; padding: 150px 0; text-align: center; background-color: #FFFFBF; color: #DB0000; letter-spacing: 1px;">
|
||||
{lang no_maxthon2_message}
|
||||
</div>
|
||||
<div id="loading" style="display: block; padding: 100px 0; text-align: center; color: #999;">
|
||||
<img src="{IMGDIR}/loading.gif" alt="loading..." class="vm" /> {lang page_loading}
|
||||
</div>
|
||||
<iframe id="ifm0" frameborder="0" width="100%" scrolling="no" height="810" style="position: absolute; top: -5000px; left: -5000px;" src="{$url}"></iframe>
|
||||
<!--{hook/userapp_app_bottom}-->
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
if(top.location != location) {
|
||||
top.location.href = location.href;
|
||||
}
|
||||
</script>
|
||||
<!--{template common/footer}-->
|
|
@ -1,147 +0,0 @@
|
|||
<!--{eval
|
||||
$_G[home_tpl_titles] = array(lang('userapp/template', 'app_management'));
|
||||
}-->
|
||||
<!--{template common/header}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>$_G[setting][navs][5][navname]
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--{if $_GET['ac'] == 'deleteapp'}-->
|
||||
|
||||
<h3 class="flb">
|
||||
<em id="return_$_GET[handlekey]">{lang remove_app}</em>
|
||||
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
|
||||
</h3>
|
||||
<form id="editcommentform_{$cid}" name="editcommentform_{$cid}" method="post" autocomplete="off" action="userapp.php?mod=manage&my_suffix=%2Fuserapp%2Funinstall%3FappId%3D$_GET[appid]">
|
||||
<input type="hidden" name="referer" value="{echo dreferer()}" />
|
||||
<input type="hidden" name="delappsubmit" value="true" />
|
||||
<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_GET[handlekey]" /><!--{/if}-->
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<div class="c">
|
||||
{lang remove_app_message}
|
||||
</div>
|
||||
<p class="o pns">
|
||||
<button type="submit" name="delappsubmit_btn" id="delappsubmit_btn" value="true" class="pn pnc"><strong>{lang determine}</strong></button>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<!--{elseif $_GET['ac'] == 'menu'}-->
|
||||
|
||||
<div id="ct" class="wp cl">
|
||||
<div class="mn">
|
||||
<div class="bm bw0">
|
||||
<h1 class="mt bbs"><img alt="app" src="static/image/common/appsetting.gif" alt="appsetting" class="vm" /> {lang app_management}</h1>
|
||||
<div class="myset cl">
|
||||
<div class="mgapp" id="applistcontent">
|
||||
<h3 class="pbn bbda cl">
|
||||
<a href="userapp.php?mod=manage&my_suffix=%2Fapp%2Flist" class="y xg1 xw0">{lang app_add}</a>
|
||||
{lang my}$_G[setting][navs][5][navname]
|
||||
</h3>
|
||||
<!--{if $my_userapp}-->
|
||||
<script type="text/javascript" src="{$_G[setting][jspath]}home_drag.js?{VERHASH}"></script>
|
||||
<form id="userappform" name="userappform" method="post" autocomplete="off" action="userapp.php?mod=manage&ac=menu">
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<input type="hidden" name="ordersubmit" value="true" />
|
||||
<div id="Drags0">
|
||||
<div id="DragContainer0">
|
||||
<!--{loop $my_userapp $key $value}-->
|
||||
<div id="$key" class="apps dragable">
|
||||
<span class="y">
|
||||
<a href="userapp.php?mod=manage&my_suffix=%2Fuserapp%2FmodifyPrivacy%3FappId%3D$value[appid]">{lang edit_settings}</a>
|
||||
<a href="userapp.php?mod=manage&ac=deleteapp&appid=$value[appid]" id="delete_$value[appid]" onclick="showWindow(this.id, this.href, 'get', 0)">{lang remove}</a>
|
||||
</span>
|
||||
<img {if $value[icon]}src="$value[icon]" onerror="this.onerror=null;this.src='http://appicon.manyou.com/icons/$value[appid]'"{else} src="http://appicon.manyou.com/icons/$value[appid]"{/if} />
|
||||
<a href="userapp.php?mod=app&id=$value[appid]">$value[appname]</a>(<a href="userapp.php?mod=manage&my_suffix=%2Fuserapp%2Fabout%3FappId%3D$value[appid]" target="_blank">{lang introduction}</a>)
|
||||
<input type="hidden" name="order[]" value="$value[appid]">
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
<p class="mtm mbm">
|
||||
{lang left_menu_view_num}
|
||||
<select name="menunum" class="ps">
|
||||
<option value="5"$menunum[5]>5</option>
|
||||
<option value="10"$menunum[10]>10</option>
|
||||
<option value="15"$menunum[15]>15</option>
|
||||
<option value="20"$menunum[20]>20</option>
|
||||
<option value="25"$menunum[25]>25</option>
|
||||
<option value="30"$menunum[30]>30</option>
|
||||
<option value="999"$menunum[999]>{lang all}</option>
|
||||
</select>
|
||||
</p>
|
||||
<p class="pns">
|
||||
<button type="submit" name="ordersubmitbtn" class="pn"><em>{lang save_settings}</em></button>
|
||||
</p>
|
||||
</form>
|
||||
<script type="text/javascript">init_drag2();</script>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="note xg1 mtw">
|
||||
<h4>{lang use_assistant}</h4>
|
||||
{lang user_assistant_message}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--{else}-->
|
||||
<div id="ct" class="wp cl">
|
||||
<div class="mn">
|
||||
<script type="text/javascript" src="http://static.manyou.com/scripts/my_iframe.js"></script>
|
||||
<script language="javascript">
|
||||
var prefixURL = "$my_prefix";
|
||||
var suffixURL = "$my_suffix";
|
||||
var queryString = '';
|
||||
var url = "{$url}";
|
||||
var oldHash = null;
|
||||
var timer = null;
|
||||
var server = new MyXD.Server("ifm0");
|
||||
server.registHandler('iframeHasLoaded');
|
||||
server.registHandler('setTitle');
|
||||
server.start();
|
||||
|
||||
function iframeHasLoaded(ifm_id) {
|
||||
MyXD.Util.showIframe(ifm_id);
|
||||
document.getElementById('loading').style.display = 'none';
|
||||
}
|
||||
|
||||
function htmlspecialchars_decode(string) {
|
||||
string = string.toString();
|
||||
string = string.replace(/&/g, '&');
|
||||
string = string.replace(/</g, '<');
|
||||
string = string.replace(/>/g, '>');
|
||||
string = string.replace(/"/g, '"');
|
||||
string = string.replace(/'/g, "'");
|
||||
return string;
|
||||
|
||||
}
|
||||
|
||||
function setTitle(x) {
|
||||
<!--{eval $my_site_name=dhtmlspecialchars($_G['setting']['sitename'], ENT_QUOTES);}-->
|
||||
var my_site_name = htmlspecialchars_decode('{$my_site_name}');
|
||||
|
||||
x = htmlspecialchars_decode(x);
|
||||
document.title = x + ' - <!--{if $space}--><!--{eval echo daddslashes($space[username])}--> - <!--{/if}-->' + my_site_name + ' - Powered by UCenter Home';
|
||||
}
|
||||
|
||||
</script>
|
||||
<iframe id="ifm0" frameborder="0" width="100%" scrolling="no" height="810" style="position: absolute; top: -5000px; left: -5000px;" src="{$url}"></iframe>
|
||||
|
||||
<div id="mx2note" style="display: none; padding: 150px 0; text-align: center; background-color: #FFFFBF; color: #DB0000; letter-spacing: 1px;">
|
||||
{lang no_maxthon2_message}
|
||||
</div>
|
||||
<div id="loading" style="display: block; padding: 100px 0; text-align: center; color: #999;">
|
||||
<img src="{IMGDIR}/loading.gif" alt="loading..." class="vm" /> {lang page_loading}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--{if $_G['group']['radminid'] == 1}-->
|
||||
<!--{eval helper_manyou::checkupdate();}-->
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<!--{template common/footer}-->
|
|
@ -1,25 +0,0 @@
|
|||
<!--{if !empty($_G['my_menu']) && !empty($_G['cache']['userapp'])}-->
|
||||
<hr class="da">
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{if !empty($_G['my_menu'])}-->
|
||||
<ul id="my_userapp">
|
||||
<!--{hook/userapp_menu_top}-->
|
||||
<!--{loop $_G['my_menu'] $value}-->
|
||||
<li id="userapp_li_$value[appid]"><!--{if $value[appstatus]}--><span class="{if $value[appstatus]==1}appnew{else}apphot{/if}"></span><!--{/if}--><a href="userapp.php?mod=app&id=$value[appid]" title="$value[appname]"><img {if $value[icon]}src="$value[icon]" onerror="this.onerror=null;this.src='http://appicon.manyou.com/icons/$value[appid]'"{else} src="http://appicon.manyou.com/icons/$value[appid]"{/if} alt="$value[appname]" />$value[appname]</a></li>
|
||||
<!--{/loop}-->
|
||||
<!--{hook/userapp_menu_middle}-->
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
<!--{if $_G['my_menu_more']}-->
|
||||
<p class="pbm bbda xg1 cl"><a href="javascript:;" class="unfold" id="a_app_more" onclick="userapp_open();">{lang open}</a></p>
|
||||
<!--{/if}-->
|
||||
<!--{if checkperm('allowmyop')}-->
|
||||
<ul class="myo mtm">
|
||||
<li><a href="userapp.php?mod=manage&my_suffix=%2Fapp%2Flist%3Fsort%3Dtime"><img src="{IMGDIR}/app_add.gif" alt="app_add" />{lang app_add}</a></li>
|
||||
<!--{if $_G['uid'] || !empty($_G['cache']['userapp'])}-->
|
||||
<li><a href="userapp.php?mod=manage&ac=menu"><img src="{IMGDIR}/app_set.gif" alt="app_set" />{lang app_management}</a></li>
|
||||
<!--{/if}-->
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
<!--{hook/userapp_menu_bottom}-->
|
|
@ -1,43 +0,0 @@
|
|||
<!--{template common/header_ajax}-->
|
||||
|
||||
<!--{if $_GET['action'] == 'menu'}-->
|
||||
<!--{if isset($list[1]) && $list[1]}-->
|
||||
<ul class="mrec">
|
||||
<!--{loop $list[1] $app}-->
|
||||
<li>
|
||||
<a href="$app['url']" target="_top">
|
||||
<img src="$app['pic']"><br/>
|
||||
$app[name]
|
||||
</a>
|
||||
<span class="icon_hotapp">{lang recommend_unit}</span>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
<ul class="uused">
|
||||
<!--{loop $usedList $app}-->
|
||||
<li>
|
||||
<a href="$app['url']" target="_top">
|
||||
<img src="$app['pic']"><br/>
|
||||
$app[name]
|
||||
</a>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
<ul class="adv">
|
||||
<li class="icon_myapp"><a href="userapp.php?#/userapp/list" title="{lang myapp}">{lang myapp}</a></li>
|
||||
<li class="icon_myapp icon_appcenter"><a href="userapp.php" title="{lang appcenter}">{lang appcenter}</a></li>
|
||||
<li class="cl"></li>
|
||||
<!--{if isset($list[3]) && $list[3]}-->
|
||||
<!--{loop $list[3] $app}-->
|
||||
<li class="ad_img hm">
|
||||
<a href="$app['url']" target="_top">
|
||||
<img src="$app['pic']"><br/>
|
||||
$app[name]
|
||||
</a>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
<!--{/if}-->
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
<!--{template common/footer_ajax}-->
|
Loading…
Reference in New Issue