更改

跳转至: 导航搜索

Lang.inc.php

添加1,418字节, 2022年11月22日 (二) 00:54
创建页面,内容为“<?php * * Created by PhpStorm. * User: yzg * Date: 2016/9/30 * Time: 9:49: if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { exit('Access Denied');...”
<?php
/**
* Created by PhpStorm.
* User: yzg
* Date: 2016/9/30
* Time: 9:49
*/
if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
exit('Access Denied');
}

$plugin = 'xigua_re';

loadcache('pluginlanguage_script');

if(submitcheck('dosubmit')){
if(checkmobile()){
cpmsg('no zuo no die!', "action=plugins&operation=config&do=$pluginid&identifier=xigua_re&pmod=lang", 'succeed');
}


$cache = DB::result_first("select data from ".DB::table('common_syscache')." where cname='pluginlanguage_template'");
$data = unserialize($cache);
$data[$plugin] = $_GET['configary1'];
C::t('common_syscache')->update('pluginlanguage_template', $data);
unset($data);

$cache = DB::result_first("select data from ".DB::table('common_syscache')." where cname='pluginlanguage_script'");
$data = unserialize($cache);
$data[$plugin] = $_GET['configary1'];
C::t('common_syscache')->update('pluginlanguage_script', $data);


cpmsg(lang('plugin/xigua_re', 'succeed'), "action=plugins&operation=config&do=$pluginid&identifier=xigua_re&pmod=lang", 'succeed');
}

showformheader("plugins&operation=config&do=$pluginid&identifier=xigua_re&pmod=lang");
showtableheader();


foreach ($_G['cache']['pluginlanguage_script'][$plugin] as $arr => $item) {
showsetting($arr, 'configary1['.$arr.']', $item, 'text', 0, 0 );
}

showsubmit('dosubmit');
showtablefooter();
showformfooter();
383
个编辑

导航菜单