function get_extend($dir) { $tree = array(); if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) != false) { if ($file != "." && $file != "..") { $extend_lang = @(include DISCUZ_ROOT . './source/plugin/yinxingfei_zzza/extend/' . $file . '/extend_lang/' . currentlang() . '.php'); $tree[$file]['file'] = $file; $tree[$file]['name'] = $extend_lang['name']; $tree[$file]['type'] = $extend_lang['type']; $tree[$file]['identifier'] = $extend_lang['identifier']; $tree[$file]['version'] = $extend_lang['version']; $tree[$file]['copyright'] = $extend_lang['copyright']; $tree[$file]['description'] = $extend_lang['description']; $tree[$file]['menu'] = $extend_lang['menu']; } } closedir($dh); } } return $tree; }
<?php /* [55625.COM!] (C)2001-2013 55625.COM Inc. BY QQ:114512039 Lovenr */ if (!defined('IN_DISCUZ')) { exit('Access Denied'); } require_once libfile('function/discuzcode'); global $_G; include_once 'language.' . currentlang() . '.php'; if (!isset($_G['cache']['plugin'])) { loadcache('plugin'); } @extract($_G['cache']['plugin']['dz55625_haodian']); $appl = $_G['siteurl'] . "plugin.php?id=dz55625_haodian:mobile_haodian" . ($_G['mobile'] ? "&mobile=2" : ""); $uc = $_G['setting']['ucenterurl']; $listclass = parconfig($listclass); $mobile_action = addslashes($_G['gp_mod']) ? addslashes($_G['gp_mod']) : "mobile_list"; if ($mobile_action == "mobile_list") { $mobile_list_status = addslashes($_G['gp_mobile_list_status']) ? addslashes($_G['gp_mobile_list_status']) : 0; $sql_temp = ""; if ($mobile_list_status == 1) { $sql_temp = " and click='1'"; } elseif ($mobile_list_status == 2) { $sql_temp = " and top='1'"; } elseif ($mobile_list_status == 3) { $sql_temp = " and sad > 0"; } $file = DISCUZ_ROOT . "./source/plugin/dz55625_haodian/config.php";
$pluginarray['enablefile'] = 'enable.php'; } if (file_exists($plugindir . '/disable.php')) { $pluginarray['disablefile'] = 'disable.php'; } exportdata('Discuz! Plugin', $plugin['identifier'], $pluginarray); } elseif ($operation == 'import') { if (submitcheck('importsubmit') || isset($_GET['dir'])) { cloudaddons_validator($_GET['dir'] . '.plugin'); if (!isset($_GET['installtype'])) { $pdir = DISCUZ_ROOT . './source/plugin/' . $_GET['dir']; $d = dir($pdir); $xmls = ''; $count = 0; $noextra = false; $currentlang = currentlang(); while ($f = $d->read()) { if (preg_match('/^discuz\\_plugin_' . $_GET['dir'] . '(\\_\\w+)?\\.xml$/', $f, $a)) { $extratxt = $extra = substr($a[1], 1); if ($extra) { if ($currentlang && $currentlang == $extra) { dheader('location: ' . ADMINSCRIPT . '?action=plugins&operation=import&dir=' . $_GET['dir'] . '&installtype=' . rawurlencode($extra)); } } else { $noextra = true; } $url = ADMINSCRIPT . '?action=plugins&operation=import&dir=' . $_GET['dir'] . '&installtype=' . rawurlencode($extra); $xmls .= ' <input type="button" class="btn" onclick="location.href=\'' . $url . '\'" value="' . ($extra ? $extratxt : $lang['plugins_import_default']) . '"> '; $count++; } }
<?php if (!defined('IN_DISCUZ')) { exit('Access Denied'); } require_once 'language.' . currentlang() . '.php'; require_once DISCUZ_ROOT . './source/plugin/yangcong/secken.class.php'; $app_id = $_G['cache']['plugin']['yangcong']['appid']; $app_key = $_G['cache']['plugin']['yangcong']['appkey']; $auth_id = $_G['cache']['plugin']['yangcong']['auth_id']; $yangcong = new secken($app_id, $app_key, $auth_id); $bindhash = isset($_POST['handlekey']) ? trim($_POST['handlekey']) : 'L' . random(4); //进行绑定请求 if (submitcheck('confirmsubmit')) { //查询详细事件信息 $info = $yangcong->getResult($_POST['event_id']); if (!empty($info['uid'])) { $bind_info = C::t('#yangcong#yangcong')->getBindInfo($_G['uid'], $info['uid']); //如果已经绑定,跳转到解绑页面 if (!empty($bind_info['uid'])) { showmessage($lang['has_bind'], 'home.php?mod=spacecp&ac=plugin&id=yangcong:binding', null, array('alert' => 'info', 'msgtype' => 3, 'showmsg' => 1, 'handle' => 0)); } //更新绑定纪录 if (!empty($bind_info['uid'])) { C::t('#yangcong#yangcong')->updateBindInfo($_G['uid'], $info['uid']); } else { $data = array(); $data = array('uid' => $_G['uid'], 'yangcong' => $info['uid']); C::t('#yangcong#yangcong')->insertBindInfo($data); } showmessage($lang['bind_success'], 'home.php?mod=spacecp&ac=plugin&id=yangcong:binding', null, array('alert' => 'info', 'msgtype' => 3, 'showmsg' => 1, 'handle' => 0, 'showdialog' => 1, 'locationtime' => 1));
<meta http-equiv="Cache-control" content="<?php if($_G['setting']['mobile']['mobilecachetime'] > 0) { ?><?php echo $_G['setting']['mobile']['mobilecachetime'];?><?php } else { ?>no-cache<?php } ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <meta name="format-detection" content="telephone=no" /> <meta name="keywords" content="<?php if(!empty($metakeywords)) { echo dhtmlspecialchars($metakeywords); } ?>" /> <meta name="description" content="<?php if(!empty($metadescription)) { echo dhtmlspecialchars($metadescription); ?> <?php } ?>,<?php echo $_G['setting']['bbname'];?>" /> <title><?php if(!empty($navtitle)) { ?><?php echo $navtitle;?> - <?php } if(empty($nobbname)) { ?> <?php echo $_G['setting']['bbname'];?> - <?php } ?> 手机版 - Powered by Discuz!</title> <link rel="stylesheet" href="./template/strong_mobile/style.css" type="text/css" media="all"> <script src="./template/strong_mobile/js/jquery-1.9.1.min.js" type="text/javascript"></script> <script type="text/javascript">var STYLEID = '<?php echo STYLEID;?>', STATICURL = '<?php echo STATICURL;?>', IMGDIR = '<?php echo IMGDIR;?>', VERHASH = '<?php echo VERHASH;?>', charset = '<?php echo CHARSET;?>', discuz_uid = '<?php echo $_G['uid'];?>', cookiepre = '<?php echo $_G['config']['cookie']['cookiepre'];?>', cookiedomain = '<?php echo $_G['config']['cookie']['cookiedomain'];?>', cookiepath = '<?php echo $_G['config']['cookie']['cookiepath'];?>', showusercard = '<?php echo $_G['setting']['showusercard'];?>', attackevasive = '<?php echo $_G['config']['security']['attackevasive'];?>', disallowfloat = '<?php echo $_G['setting']['disallowfloat'];?>', creditnotice = '<?php if($_G['setting']['creditnotice']) { ?><?php echo $_G['setting']['creditnames'];?><?php } ?>', defaultstyle = '<?php echo $_G['style']['defaultextstyle'];?>', REPORTURL = '<?php echo $_G['currenturl_encode'];?>', SITEURL = '<?php echo $_G['siteurl'];?>', JSPATH = '<?php echo $_G['setting']['jspath'];?>';</script> <script src="<?php echo STATICURL;?>js/mobile/common.js?<?php echo VERHASH;?>" type="text/javascript" charset="<?php echo CHARSET;?>"></script> </head> <body class="bg" id="wrap"> <?php if(!empty($_G['setting']['pluginhooks']['global_header_mobile'])) echo $_G['setting']['pluginhooks']['global_header_mobile'];?><?php $language = 'language.'.currentlang().'.php'; include ("./template/strong_mobile/".$language);?><div class="sb-slidebar" > <ul class="s-cbl-ul"> <li><a href="forum.php" ><img src="./template/strong_mobile/images/s_shouye.png" /><?php echo $lang['home'];; ?></a></li> <li><a href="forum.php?forumlist=1" ><img src="./template/strong_mobile/images/s_luntan.png" /><?php echo $lang['forum'];; ?></a></li> <li><a href="portal.php?mod=list&catid=1" ><img src="./template/strong_mobile/images/s_wz.png" /><?php echo $lang['arc'];; ?></a></li> <li><a href="group.php" ><img src="./template/strong_mobile/images/s_group.png" /><?php echo $lang['group'];; ?></a></li> <li><a href="misc.php?mod=tag" ><img src="./template/strong_mobile/images/s_tab.png" /><?php echo $lang['biaoqian'];; ?></a></li> <li><a href="forum.php?mod=forumdisplay&fid=64&mobile=2" ><img src="./template/strong_mobile/images/s_tupian.png" /><?php echo $lang['pic'];; ?></a></li> <li><a href="forum.php?mod=guide&view=hot" ><img src="./template/strong_mobile/images/s_retie.png" /><?php echo $lang['guide'];; ?></a></li> <li><a href="group.php?mod=my" ><img src="./template/strong_mobile/images/s_group.png" /><?php echo $lang['mygroup'];; ?></a></li> <li><a href="home.php?mod=space&uid=<?php echo $_G['uid'];?>&do=favorite&view=me&type=thread" ><img src="./template/strong_mobile/images/s_shoucang.png" /><?php echo $lang['favorite'];; ?></a></li> <li><a href="home.php?mod=space&uid=<?php echo $_G['uid'];?>&do=thread&view=me" ><img src="./template/strong_mobile/images/s_zhuti.png" /><?php echo $lang['wodezhuti'];; ?></a></li> <li><a href="home.php?mod=space&do=pm" ><img src="./template/strong_mobile/images/s_xiaoxi.png" /><?php echo $lang['mypm'];; ?></a></li> <li><a href="home.php?mod=space&uid=<?php echo $_G['uid'];?>" ><img src="./template/strong_mobile/images/s_ziliao.png" /><?php echo $lang['profile'];; ?></a></li>
} else { $appname = $appnamebak['pluginname']; } } } $applist .= "<tr><td width='50%'>" . $appname . " " . APP_VER . " (" . $appid . "/)</td><td width='50%' align='right'><a href='plugin.php?id=huxcity:huxcity&mod=admin&action=appaddsave&appid=" . $appid . "&formhash=" . $_G['formhash'] . "'>" . $appinstalllang . "</a></td></tr>"; } } $applist .= "</table>"; } elseif ($action == 'appaddsave') { if (addslashes($_GET['formhash']) == formhash()) { $appid = dhtmlspecialchars(addslashes($_GET['appid'])); include DISCUZ_ROOT . './source/plugin/huxcity/mod/' . $appid . '/version.php'; //require_once DISCUZ_ROOT.'./source/discuz_version.php'; //include "$city_root/mod/$appid/lang/$huxapplang.lang.php"; $langpathadmin = $appmod_root . '/' . $appid . '/lang/lang.' . currentlang() . '.php'; if (file_exists($langpathadmin)) { include $langpathadmin; } else { include "{$city_root}/mod/{$appid}/lang/{$huxapplang}.lang.php"; } $huxapplangname = $appid . 'lang'; $appnamebak = ${$huxapplangname}; if ($huxapplangname == 'consortialang') { $appname = $conlang['pluginname']; } else { if ($appnamebak['pluginname'] == '') { $appname = $appid; } else { if ($appid == 'consortia') { $appname = $conlang['pluginname'];
function global_login_extra() { global $lang; require_once 'language.' . currentlang() . '.php'; return yangcong_tpl_login_extra(); }
$type = DB::result_first("SELECT type FROM " . DB::table('yinxingfei_zzza_kuozhan') . " WHERE kzid = '" . $_GET['kzid'] . "'"); if ($type == 'zp_theme') { $ifcz = DB::result_first("SELECT COUNT(*) FROM " . DB::table('yinxingfei_zzza_kuozhan') . " WHERE type = 'zp_theme' and available = '1'"); if ($ifcz > 0) { if ($_GET['isqr'] != 'yes') { cpmsg('是否确定替换当前正在使用的转盘主题扩展?', 'action=plugins&operation=config&identifier=yinxingfei_zzza&pmod=extend&caozuo=kaiqi&isqr=yes&kzid=' . $_GET['kzid'], 'form', '', '', TRUE, ADMINSCRIPT . '?action=plugins&operation=config&identifier=yinxingfei_zzza&pmod=extend'); } DB::query("UPDATE " . DB::table('yinxingfei_zzza_kuozhan') . " SET available = '0' WHERE type = 'zp_theme'", 'UNBUFFERED'); } } DB::query("UPDATE " . DB::table('yinxingfei_zzza_kuozhan') . " SET available = '1' WHERE kzid= '" . $_GET['kzid'] . "'", 'UNBUFFERED'); cpmsg('扩展开启成功', 'action=plugins&operation=config&identifier=yinxingfei_zzza&pmod=extend', 'succeed'); } elseif ($_GET['caozuo'] == 'extend') { $ifcz = DB::result_first("SELECT COUNT(*) FROM " . DB::table('yinxingfei_zzza_kuozhan') . " WHERE identifier = '" . $_GET['file'] . "' AND available = '1'"); if ($ifcz > 0) { $extend_lang = @(include DISCUZ_ROOT . './source/plugin/yinxingfei_zzza/extend/' . $_GET['file'] . '/extend_lang/' . currentlang() . '.php'); if ($_GET['ac']) { if (!file_exists(DISCUZ_ROOT . './source/plugin/yinxingfei_zzza/extend/' . $_GET['file'] . '/' . $_GET['file'] . '.' . $_GET['ac'] . '.extend.php')) { cpmsg('扩展文件不存在!', '', 'error'); } include DISCUZ_ROOT . './source/plugin/yinxingfei_zzza/extend/' . $_GET['file'] . '/' . $_GET['file'] . '.' . $_GET['ac'] . '.extend.php'; } else { include DISCUZ_ROOT . './source/plugin/yinxingfei_zzza/extend/' . $_GET['file'] . '/' . $_GET['file'] . '.extend.php'; } } else { cpmsg('扩展不存在或未开启', 'action=plugins&operation=config&identifier=yinxingfei_zzza&pmod=extend', 'error'); } } else { showtips('<li>请勿随意安装未知开发者发布的扩展,避免网站存在漏洞被黑</li><li>需要定制扩展功能的站长请加QQ:<strong>327220053</strong></li><li>请访问:<strong><a href="http://app.yinxingfei.com" target="_blank">http://app.yinxingfei.com</a></strong>,获取更多帮助与最新开发动态,每日摇摇乐站长QQ群:<strong>187204948</strong></li>'); require DISCUZ_ROOT . './source/plugin/yinxingfei_zzza/module/extend_on.php'; require DISCUZ_ROOT . './source/plugin/yinxingfei_zzza/module/extend_off.php';
$VeRsIoN = C::t('#huxcity#hux_common_plugin')->result_by_identifier('huxcity', 'version'); // $VeRsIoN = $_G['cache']['huxcity']['version']; //} $appconfigsql = C::t('#huxcity#hux_city_config')->fetch_by_appid($index); loadcache('huxcity_data'); if (app_is_install($index)) { $appconfigss = $_G['cache']['huxcity_data'][$index]; $appconfigs = explode('||', $appconfigss); } else { $appconfigs = explode('||', $appconfigsql['configs']); } foreach ($appconfigs as $value) { $appconfigss = explode(':', $value); $appconfig[$appconfigss[0]] = $appconfigss[1]; } $langpath = $appmod_root . '/' . $index . '/lang/lang.' . currentlang() . '.php'; if (file_exists($langpath)) { include $langpath; } else { include "{$city_root}/mod/{$index}/lang/{$huxapplang}.lang.php"; } $jobnum = C::t('#huxcity#hux_city_job')->count_by_appid_status($index, 1); $jobuserlistsql = C::t('#huxcity#hux_city_job')->fetch_all_by_appid_status($index, 1, 'username'); foreach ($jobuserlistsql as $jobuserlist) { $jobuserlists[] = $jobuserlist['username']; } $jobuserlists = array_unique($jobuserlists); $jobuserlists = array_filter($jobuserlists); $appshowname = C::t('#huxcity#hux_city_app')->result_by_appid($index, 'appname'); if ($citysetting['onlineopen'] == '1') { include $city_root . '/huxcity.online.php';
preg_match('/s=\'(.*?)\';v=\'(.*?)\';/is', $zend_check, $v_arr); $msg = $v_arr[1]; if ($msg == 'OK') { return 1; } return -2; } return 1; } if ($operation == 'delete') { //卸载 } else { if ($operation == 'import') { //安装 require_once libfile('class/xml'); $extra = currentlang(); $extra = $extra ? '_' . $extra : ''; if (file_exists(PICK_PATH . '/discuz_plugin_milu_pick' . $extra . '.xml')) { $importtxt = @implode('', file(PICK_PATH . '/discuz_plugin_milu_pick' . $extra . '.xml')); } elseif (file_exists($entrydir . '/discuz_plugin_milu_pick.xml')) { $importtxt = @implode('', file(PICK_PATH . '/discuz_plugin_milu_pick_xml')); } if ($importtxt) { $pluginarray = getimportdata('Discuz! Plugin', 0, 1); $_G['cache']['pluginlanguage_script']['milu_pick'] = $pluginarray['language']['scriptlang']; if (!empty($pluginarray['plugin']['name'])) { $entryversion = dhtmlspecialchars($pluginarray['plugin']['version']); if (strexists(strtolower($entryversion), 'vip')) { //vip版本 $zend_check = zend_check(); if ($zend_check == -1) {