本文整理汇总了PHP中_LANG函数的典型用法代码示例。如果您正苦于以下问题:PHP _LANG函数的具体用法?PHP _LANG怎么用?PHP _LANG使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_LANG函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: LIB_getContents
function LIB_getContents($str, $html)
{
global $d;
if ($html == 'HTML') {
$pattern = explode(',', $d['admin']['secu_tags']);
$patterns = array();
foreach ($pattern as $val) {
if ($val) {
$patterns[] = "'<" . $val . "[^>]*?>'si";
}
}
$iframes = getIframes($str);
$secuDomain = explode(',', $d['admin']['secu_domain']);
foreach ($iframes as $im) {
foreach ($secuDomain as $dm) {
if (stripos($im, $dm)) {
$str = str_replace($im, str_ireplace('iframe', '@IFRAME@', $im), $str);
break;
}
}
}
$str = preg_replace($patterns, ' ', $str);
$str = str_replace("\t", ' ', $str);
$str = str_replace('@IFRAME@', 'iframe', $str);
$onAttributes = array('onabort', 'onactivate', 'onafterprint', 'onafterupdate', 'onbeforeactivate', 'onbeforecopy', 'onbeforecut', 'onbeforedeactivate', 'onbeforeeditfocus', 'onbeforepaste', 'onbeforeprint', 'onbeforeunload', 'onbeforeupdate', 'onblur', 'onbounce', 'oncellchange', 'onchange', 'onclick', 'oncontextmenu', 'oncontrolselect', 'oncopy', 'oncut', 'ondataavaible', 'ondatasetchanged', 'ondatasetcomplete', 'ondblclick', 'ondeactivate', 'ondrag', 'ondragdrop', 'ondragend', 'ondragenter', 'ondragleave', 'ondragover', 'ondragstart', 'ondrop', 'onerror', 'onerrorupdate', 'onfilterupdate', 'onfinish', 'onfocus', 'onfocusin', 'onfocusout', 'onhelp', 'onkeydown', 'onkeypress', 'onkeyup', 'onlayoutcomplete', 'onload', 'onlosecapture', 'onmousedown', 'onmouseenter', 'onmouseleave', 'onmousemove', 'onmoveout', 'onmouseover', 'onmouseup', 'onmousewheel', 'onmove', 'onmoveend', 'onmovestart', 'onpaste', 'onpropertychange', 'onreadystatechange', 'onreset', 'onresize', 'onresizeend', 'onresizestart', 'onrowexit', 'onrowsdelete', 'onrowsinserted', 'onscroll', 'onselect', 'onselectionchange', 'onselectstart', 'onstart', 'onstop', 'onsubmit', 'onunload');
$str = preg_replace('/<(.*?)>/ie', "'<' . preg_replace(array('/javascript:[^\"\\']*/i', '/(" . implode('|', $onAttributes) . ")[ \\t\\n]*=/i', '/\\s+/'), array('', '', ' '), stripslashes('\\1')) . '>'", $str);
if ($GLOBALS['my']['admin'] && !$d['admin']['secu_flash']) {
$mat = '<div class="sysMsgBox"><img src="' . $GLOBALS['g']['img_core'] . '/_public/ico_notice.gif" alt="" />' . _LANG('fl001', 'admin') . '</div>';
$str = preg_replace("#(\\<(embed|object)[^\\>]*)\\>(\\<\\/(embed|object)\\>)?#i", $mat, $str);
}
$_atkParam = $pattern = explode(',', $d['admin']['secu_param']);
foreach ($_atkParam as $_prm) {
$str = str_replace($_prm, '', $str);
}
} else {
$str = str_replace('<', '<', $str);
$str = str_replace('>', '>', $str);
$str = str_replace(' ', '&nbsp;', $str);
$str = str_replace("\t", ' ', $str);
$str = nl2br($str);
}
return $str;
}
示例2: header
<?php
header("Content-Type:text/html; charset=utf-8");
require_once '../inc/init.php';
require_once '../inc/cache.php';
require_once './inc/adminfun.php';
require_once "./language/language.php";
if (!isAdmin()) {
exit($_AL['all.notlogin']);
}
if (!hasPopedom("products")) {
exit(_LANG($_AL['admin.nopopedom'], array($_AL['index.product.man'])));
}
$action = strFilter($_GET['action']);
switch ($action) {
case "saveproducts":
try {
$doaction = strFilter($_POST['doaction']);
$pro['name'] = strFilter($_POST['name']);
$pro['alias'] = strFilter($_POST['alias']);
$pro['serialnum'] = strFilter($_POST['serialnum']);
$pro['price1'] = strFilter($_POST['price1']);
if (empty($pro['price1'])) {
unset($pro['price1']);
}
$pro['level'] = intval($_POST['level']);
$pro['store'] = intval($_POST['store']);
$pro['sold'] = intval($_POST['sold']);
$pro['cid'] = intval($_POST['cid']);
$pro['type'] = intval($_POST['type']);
/*$picids=array(
示例3: function
}
?>
<?php
if ($d['admin']['dblclick']) {
?>
document.ondblclick = function(event)
{
getContext('<li><a href="<?php
echo $g['s'];
?>
/?r=<?php
echo $r;
?>
&m=<?php
echo $module;
?>
"><?php
echo _LANG('a1037', 'search');
?>
</a></li><li class="divider"></li><li><a href="#." onclick="getId(\'rb-submit-button\').click();"><?php
echo _LANG('a1038', 'search');
?>
</a></li>',event);
}
<?php
}
?>
</script>
示例4: intval
if ($_GET['type'] == '') {
$type = -1;
} else {
$type = intval($_GET['type']);
}
if ($type > -1) {
$cond .= " and type={$type}";
}
if (in_array($orderby, array('id', 'posttime', 'hits'))) {
$orderbystr = $orderby . ' desc';
}
$curPage = intval($_GET["page"]);
$pager = new Pager();
$pager->init(20, $curPage, "admin.php?inc=article&action=list&k={$keyword}&channelid={$channelid}&orderby={$orderby}&page={page}");
$rows = $pager->queryRows($db, "articles", $cond, "*", $orderbystr);
$recstr = _LANG($_AL['all.totalrecords'], array($pager->recordNum));
echo <<<EOT
\t<div class="div_clear" style="height:10px;"></div>
\t<div class="tips_1">
{$_AL['all.keyword']}: <input class="text_css" type="text" size="20" value="{$keyword}" id="keyword" />
<select id="orderby"><option value="id">{$_AL['all.orderby']}</option><option value="posttime">{$_AL['all.posttime']}</option><option value="hits">{$_AL['all.hits']}</option></select>
<input class="button_css" type="button" value=" {$_AL['all.search']} " onclick="searcharticle()" />
{$recstr}</div>
\t<table class="table_1" width="100%">
\t\t<tr><td class="td_6"><a class="td_5_1a" href="admin.php?inc=article&action=add&channelid={$channelid}"><img src="images/ico_add.gif" border="0" /> {$_AL['article.add']}</a></td></tr>
\t</table>
EOT;
echo "<form id=\"articlesform\" onsubmit=\"return false;\">";
echo "<table class=\"table_1\" width=\"100%\">";
echo "<tr style=\"font-weight:bold;color:#333333;\"><td class=\"row_0\">" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[1]}px;\">{$_AL['all.select']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[2]}px;\">{$_AL['all.title']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[7]}px;\">{$_AL['all.hits']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[5]}px;\">{$_AL['all.posttime']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[8]}px;\">{$_AL['all.control']}</div>" . "";
示例5: _LANG
<?php
$d['admdash']['title'] = _LANG('1001', 'widget');
//타이틀
$d['admdash']['col'] = '6';
// 가로폭 100% = 12 , 50% = 6
$d['admdash']['more'] = '';
// 더보기 링크
示例6: _LANG
btn-block<?php
}
?>
" type="submit"><?php
echo _LANG('a4022', 'admin');
?>
</button>
</div>
</div>
</form>
</div>
<script>
function sslCheck(f)
{
getIframeForAction(f);
return confirm('<?php
echo _LANG('a0001', 'admin');
?>
');
}
</script>
示例7: fwrite
fwrite($fp, trim(stripslashes($css)) . "\n");
fclose($fp);
@chmod($vfile . '.css', 0707);
} else {
if (is_file($vfile . '.css')) {
unlink($vfile . '.css');
}
}
if (trim($js)) {
$fp = fopen($vfile . '.js', 'w');
fwrite($fp, trim(stripslashes($js)) . "\n");
fclose($fp);
@chmod($vfile . '.js', 0707);
} else {
if (is_file($vfile . '.js')) {
unlink($vfile . '.js');
}
}
$cachefile_mobile = str_replace('.php', '.cache', $vfile . '.mobile');
if (file_exists($cachefile_mobile)) {
unlink($cachefile_mobile);
}
getLink('', '', _LANG('a0003', 'site'), '');
} else {
$cachefile_pc = str_replace('.php', '.cache', $vfile);
if (file_exists($cachefile_pc)) {
unlink($cachefile_pc);
}
getLink('reload', 'parent.', _LANG('a0003', 'site'), '');
}
exit;
示例8: _LANG
$msgstr = $_SLANG['printmsg.nofun.member'];
$msglink = $msglink2;
break;
case "funshop_off":
$msgstr = $_SLANG['printmsg.nofun.order'];
$msglink = $msglink2;
break;
case "public_active_err":
$msgstr = $_SLANG['printmsg.activelink.outdate'];
$msglink = "<a href='public.php?action=getactive'><u>{$_SLANG['printmsg.sendactive']}</u> <img src=\"images/ico_msgp1.gif\" border=\"0\" align=\"absmiddle\" alt=\"\" /></a>";
break;
case "public_active_succeed":
$msgstr = $_SLANG['printmsg.active.succeed'];
$msglink = "<a href='login.php'><u>{$_SLANG['printmsg.login.now']}</u> <img src=\"images/ico_go.gif\" border=\"0\" align=\"absmiddle\" alt=\"\" /></a>";
break;
case "public_resetpass_err":
$msgstr = $_SLANG['printmsg.reset.outdate'];
$msglink = "<a href='public.php?action=forgetpass'><u>{$_SLANG['printmsg.reset.send']}</u> <img src=\"images/ico_msgp1.gif\" border=\"0\" align=\"absmiddle\" alt=\"\" /></a>";
break;
case "public_resetpass_succeed":
global $newpass;
$msgstr = _LANG($_SLANG['printmsg.reset.succeed'], array("<span class='msg_newpass'>{$newpass}</span>"));
$msglink = "<a href='login.php'><u>{$_SLANG['printmsg.login.now']}</u> <img src=\"images/ico_go.gif\" border=\"0\" align=\"absmiddle\" alt=\"\" /></a>";
break;
}
if ($msgstr == "") {
$msgstr = $msg_code;
}
require_once 'header.php';
require_once getTemplatePath('printmsg.htm');
footer();
示例9: _LANG
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel"><i class="fa fa-bell-o fa-lg"></i> <?php
echo _LANG('s3001', 'xlayout');
?>
<span id="rb-notification-badge-other" class="badge"><?php
echo $my['num_notice'];
?>
</span></h4>
</div>
<div class="modal-body">
<div id="rb-notifications-layer" class="list-group">
<!-- .rb-notifications-toggle 클릭시 여기에 알림정보를 실시간으로 받아옴 -->
</div>
</div>
<div class="modal-footer">
<div class="btn-group btn-group-justified">
<a href="#" class="btn btn-default"><?php
echo _LANG('s3002', 'xlayout');
?>
</a>
<a href="#" class="btn btn-default" data-dismiss="modal" aria-hidden="true"><?php
echo _LANG('s3003', 'xlayout');
?>
</a>
</div>
</div>
</div>
</div>
</div>
示例10: _LANG
echo _LANG('1015', 'widget-mk-menu-collapse');
?>
</label>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"></label>
<div class="col-sm-8">
<span class="help-block">
<small>
<?php
echo _LANG('1016', 'widget-mk-menu-collapse');
?>
<br>
<?php
echo _LANG('1017', 'widget-mk-menu-collapse');
?>
<br>
</small>
</span>
</div>
</div>
</form>
</div>
<style>
#mjointbox {padding-bottom:50px;}
#mjointbox h5 {border-bottom:#dfdfdf dashed 1px;padding:12px 0 15px 0;margin:0 0 30px 0;}
#mjointbox .rb-label {font-weight:normal;cursor:pointer;}
</style>
示例11: ArchiveExtractor
$extractor = new ArchiveExtractor();
$extractor->extractArchive($saveFile, $extPath1);
unlink($saveFile);
$_updateFile = $extPath1 . '/_update.php';
if (is_file($_updateFile)) {
include $_updateFile;
unlink($_updateFile);
}
DirCopy($extPath1, $folder);
DirDelete($extPath);
mkdir($extPath, 0707);
@chmod($extPath, 0707);
$fp = fopen($_ufile, 'w');
fwrite($fp, $date['today'] . ',0');
fclose($fp);
@chmod($_ufile, 0707);
if ($_updateversion != $d['admin']['version']) {
$d['admin']['version'] = $_updateversion;
$_tmpdfile = $g['dir_module'] . 'var/var.system.php';
$fp = fopen($_tmpdfile, 'w');
fwrite($fp, "<?php\n");
foreach ($d['admin'] as $key => $val) {
fwrite($fp, "\$d['admin']['" . $key . "'] = \"" . $val . "\";\n");
}
fwrite($fp, "?>");
fclose($fp);
@chmod($_tmpdfile, 0707);
}
getLink('reload', 'parent.', _LANG('ac004', 'admin'), '');
}
}
示例12: getLink
$tgFolder = $plfldPath . '/';
if (is_uploaded_file($tmpname)) {
if ($fileExt != 'zip' || substr($realname, 0, 13) != 'rb_dashboard_') {
getLink('reload', 'parent.', _LANG('a7001', 'market'), '');
}
move_uploaded_file($tmpname, $saveFile);
require $g['path_core'] . 'opensrc/unzip/ArchiveExtractor.class.php';
require $g['path_core'] . 'function/dir.func.php';
$extractor = new ArchiveExtractor();
$extractor->extractArchive($saveFile, $extPath1);
unlink($saveFile);
mkdir($plfldPath, 0707);
@chmod($plfldPath, 0707);
DirCopy($extPath1, $tgFolder);
DirDelete($extPath);
mkdir($extPath, 0707);
@chmod($extPath, 0707);
} else {
getLink('', '', _LANG('a7002', 'market'), '');
}
?>
<script>
var pt = parent.parent.parent ? parent.parent.parent : parent.parent;
var ex = pt.location.href.split('&_admpnl_');
var gx = ex[0] + '&_admpnl_=' + escape(pt.frames._ADMPNL_.location.href);
pt.location.href = gx;
</script>
<?php
exit;
//if ($reload == 'Y') getLink('reload',"parent.parent.",_LANG('a7003','market'),'');
//else getLink('',"parent.parent.$('#modal_window').modal('hide');",_LANG('a7003','market'),'');
示例13: _LANG
notEmpty: {
message: 'The password is required and cannot be empty'
},
}
},
}
});
});
var bootmsg = '<div class="media"><i class="pull-left fa fa-exclamation-circle fa-4x hidden-xs"></i><div class="media-body">';
bootmsg+= '<h4 class="media-heading"><?php
echo _LANG('tl002', 'admin');
?>
</h4>';
bootmsg+= '<?php
echo _LANG('tl003', 'admin');
?>
';
bootmsg+= '</div></div>';
$('.rb-confirm').on('click', function() {
bootbox.confirm(bootmsg, function(result){
document.loginform.idpwsave.checked = result;
});
});
function loginCheck(f)
{
getIframeForAction(f);
return true;
}
</script>
示例14: checkAdmin
<?php
if (!defined('__KIMS__')) {
exit;
}
checkAdmin(0);
if (!$namefile || strstr($namefile, '/')) {
exit;
}
$_newsites = '';
foreach ($aply_sites as $sites) {
$_newsites .= '[' . $sites . ']';
}
$_nameinfo = str_replace('|', '/', trim($name)) . '|' . $_newsites;
$_namefile = $g['dir_module'] . 'var/names/' . $namefile . '.txt';
$fp = fopen($_namefile, 'w');
fwrite($fp, $_nameinfo);
fclose($fp);
@chmod($_namefile, 0707);
getLink($g['s'] . '/?r=' . $r . '&m=admin&module=' . $m . '&searchfile=' . $searchfile . '&autoCheck=Y', 'parent.', _LANG('a2001', 'search'), '');
示例15: checkAdmin
if (!defined('__KIMS__')) {
exit;
}
checkAdmin(0);
$id = trim($_POST['id']);
$pw = trim($_POST['pw1']);
$name = trim($_POST['name']);
$nic = trim($_POST['nic']);
$nic = $nic ? $nic : $name;
$email = trim($_POST['email']);
if (!$id || !$name) {
getLink('', '', _LANG('a0001', 'admin'), '');
}
if (!$check_id || !$check_nic || !$check_email) {
getLink('', '', _LANG('a0001', 'admin'), '');
}
$tmpname = $_FILES['upfile']['tmp_name'];
$realname = $_FILES['upfile']['name'];
if ($avatar_delete) {
$photo = '';
$saveFile1 = $g['path_var'] . 'avatar/' . $avatar;
$saveFile2 = $g['path_var'] . 'avatar/180.' . $avatar;
} else {
$photo = $avatar;
if (is_uploaded_file($tmpname)) {
$fileExt = strtolower(getExt($realname));
$fileExt = $fileExt == 'jpeg' ? 'jpg' : $fileExt;
if (strstr('[jpg]', $fileExt)) {
$wh = getimagesize($tmpname);
if ($wh[0] > 180 && $wh[1] > 180) {