box_admin_lang.php

来自「采用模块化设计,自由组合文章,软件,论坛等模块,安装方便快捷 模板支持Dre」· PHP 代码 · 共 30 行

PHP
30
字号
<?php

if (!defined('ROOT'))
    exit('Access Denied');
$a = allmods();
$b = $sys['lang'];
$tomod = $_GET['tomod'];
$tolang = $_GET['tolang'];
$tabs = array();

in_array($tomod, $a) or $tomod='';
in_array($tolang,$b) or e('语言不存在');

if(empty($tomod)){
$files = show_file('./languages/' . $tolang);
}else{
$files = show_file('./'.$tomod.'/languages/' . $tolang);
$files[]='modname.php';	
}

foreach ($files as $key=>$file)
{
    $tabs[html(substr($file, 0, stripos($file, '.')))] =
        '?mod=center&file=fra_admin_showlang&tomod=' . urlencode($tomod) .'&tolang='. urlencode($tolang).
        '&tofile=' . urlencode($file).'&k='.$key;
}
call_func('tabs');
$tab = tabs($tabs, DEBUG);

?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?