Lang.inc.php

来自通约智库
笑笑讨论 | 贡献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();