本文整理汇总了PHP中getLangInfo函数的典型用法代码示例。如果您正苦于以下问题:PHP getLangInfo函数的具体用法?PHP getLangInfo怎么用?PHP getLangInfo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getLangInfo函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: alipayurl
function alipayurl($order_no, $fee, $paytype)
{
$param = array('_input_charset' => $this->charset, 'service' => 'create_direct_pay_by_user', 'notify_url' => $this->baseurl . '/alipay.php', 'return_url' => $this->baseurl . '/alipay.php', 'payment_type' => '1', 'subject' => getLangInfo('olpay', "olpay_{$paytype}_title", array('order_no' => $order_no)), 'body' => getLangInfo('olpay', "olpay_{$paytype}_content"), 'out_trade_no' => $order_no, 'total_fee' => $fee, 'seller_email' => $this->seller_email);
if ($this->alipay_key && $this->alipay_partnerID) {
$url = $this->alipay_url;
$param['partner'] = $this->alipay_partnerID;
ksort($param);
reset($param);
$arg = '';
foreach ($param as $key => $value) {
if ($value) {
$url .= "{$key}=" . urlencode($value) . "&";
$arg .= "{$key}={$value}&";
}
}
$url .= 'sign=' . md5(substr($arg, 0, -1) . $this->alipay_key) . '&sign_type=MD5';
} else {
$url = $this->pwpay_url;
foreach ($param as $key => $value) {
if ($value) {
$url .= "{$key}=" . urlencode($value) . "&";
}
}
}
return $url;
}
示例2: init
function init($id)
{
$this->_hid = $id;
require_once R_P . 'mode/house/require/core.php';
$houseService = house::loadClass('house');
$housefieldsService = House::loadService('HouseFieldsService');
$house = $houseService->getHouseInfoByHid($id);
empty($house) && Showmsg('data_error');
$title = $content = sprintf("[url=%s] %s [/url]", $this->_url . "&q=info&hid=" . $this->_hid, $house['name']);
$position = '';
if ($house['area']) {
$areaField = $housefieldsService->getCompsiteFieldsByType('area');
//所属区域
$area = $areaField[$house['area']];
$area = sprintf("[url=%s] %s [/url]", $this->_url . "&q=list&area=" . $house['area'], $area);
$postion .= $area;
}
if ($house['plate']) {
$plateField = $housefieldsService->getCompsiteFieldsByType('plate');
//所在商圈
$plate = $plateField[$house['plate']];
$plate = sprintf("[url=%s] %s [/url]", $this->_url . "&q=list&plate=" . $house['plate'], $plate);
$postion .= $plate;
}
$postion .= $house['address'];
$mailSubject = getLangInfo('app', 'house_recommend');
$mailContent = getLangInfo('app', 'ajax_sendweibo_houseinfo', array('title' => $title, 'postion' => $postion));
$this->_content = $content;
$this->_mailSubject = $mailSubject;
$this->_mailContent = $mailContent;
}
示例3: getChName
function getChName($key)
{
global $db_rvrcname, $db_moneyname, $db_creditname, $db_currencyname, $_CREDITDB;
switch ($key) {
case 'postnum':
$name = getLangInfo('other', 'upgrade_post');
break;
case 'digests':
$name = getLangInfo('other', 'sort_digests');
break;
case 'rvrc':
$name = $db_rvrcname;
break;
case 'money':
$name = $db_moneyname;
break;
case 'credit':
$name = $db_creditname;
break;
case 'currency':
$name = $db_currencyname;
break;
case 'onlinetime':
$name = getLangInfo('other', 'sort_onlinetime');
break;
case is_int($key):
$name = $_CREDITDB[$key][0];
break;
default:
$name = '';
}
return $name;
}
示例4: Showmsg
function Showmsg($msg_info)
{
$msg_info = getLangInfo('msg', $msg_info);
$response = ACloud_Sys_Core_Common::loadSystemClass('response');
$response->setErrorCode(99999);
$response->setResponseData($msg_info);
echo $response->getOutputData();
exit;
}
示例5: writetoollog
function writetoollog($log)
{
global $db, $db_bbsurl;
$log['type'] = getLangInfo('toollog', $log['type']);
$log['filename'] = Char_cv($log['filename']);
$log['username'] = Char_cv($log['username']);
$log['descrip'] = Char_cv(getLangInfo('toollog', $log['descrip'], $log));
$db->update("INSERT INTO pw_toollog SET " . pwSqlSingle(array('type' => $log['type'], 'filename' => $log['filename'], 'nums' => $log['nums'], 'money' => $log['money'], 'descrip' => $log['descrip'], 'uid' => $log['uid'], 'touid' => $log['touid'], 'username' => $log['username'], 'ip' => $log['ip'], 'time' => $log['time'])));
}
示例6: createfail
function createfail($checkpwd, $showinfo = '', $type = 'fail')
{
if ($checkpwd) {
$showinfo = 'fail' == $type && '' != $showinfo ? getLangInfo('msg', $showinfo) : $showinfo;
echo "{$type}\t{$showinfo}";
ajax_footer();
}
return false;
}
示例7: writeforumlog
function writeforumlog($log)
{
$log['username1'] = S::escapeChar($log['username1']);
$log['username2'] = S::escapeChar($log['username2']);
$log['field1'] = S::escapeChar($log['field1']);
$log['field2'] = S::escapeChar($log['field2']);
$log['field3'] = S::escapeChar($log['field3']);
$log['descrip'] = S::escapeChar(getLangInfo('log', $log['descrip'], $log));
$GLOBALS['db']->update("INSERT INTO pw_forumlog SET " . S::sqlSingle(array('type' => $log['type'], 'username1' => $log['username1'], 'username2' => $log['username2'], 'field1' => $log['field1'], 'field2' => $log['field2'], 'field3' => $log['field3'], 'descrip' => $log['descrip'], 'timestamp' => $log['timestamp'], 'ip' => $log['ip']), false));
}
示例8: wap_msg
function wap_msg($msg, $url = "", $t = "10")
{
@extract($GLOBALS, EXTR_SKIP);
global $db_bbsname, $db_obstart;
ob_end_clean();
$db_obstart && function_exists('ob_gzhandler') ? ob_start('ob_gzhandler') : ob_start();
wap_header('msg', $db_bbsname, $url, $t);
$msg = getLangInfo('wap', $msg);
wap_output("<p>{$msg}" . ($url ? " <a href='{$url}'>" . getLangInfo('wap', 'wap_msg_view') . "</a>" : '') . "</p>\n");
wap_footer();
}
示例9: alipayurl
function alipayurl($order_no, $fee, $paytype, $extra = '')
{
$param = array('_input_charset' => $this->charset, 'service' => 'create_direct_pay_by_user', 'notify_url' => $this->baseurl . '/alipay.php', 'return_url' => $this->baseurl . '/alipay.php', 'payment_type' => '1', 'subject' => getLangInfo('olpay', "olpay_{$paytype}_title", array('order_no' => $order_no)), 'body' => getLangInfo('olpay', "olpay_{$paytype}_content"), 'out_trade_no' => $order_no, 'total_fee' => $fee, 'extra_common_param' => $this->formatExtra($extra), 'seller_email' => $this->seller_email);
if ($this->alipay_key && $this->alipay_partnerID) {
$url = $this->urlCompound($this->alipay_url, $this->alipay_partnerID, $this->alipay_key, $param);
} else {
Showmsg('支付失败,本站点尚未填写支付宝商户信息(partnerID和key),请登录后台->网上支付填写!');
$url = $this->urlCompound($this->pwpay_url, $this->pwpay_partnerID, $this->pwpay_key, $param);
}
return $url;
}
示例10: alterinfo
function alterinfo()
{
if ($this->post->groupid != 3 && $this->atcdb['postdate'] + 300 < $GLOBALS['timestamp']) {
global $altername, $db_anonymousname, $timeofedit, $timestamp;
$altername = $this->data['anonymous'] && $this->post->uid == $this->atcdb['authorid'] ? $db_anonymousname : $this->post->username;
$timeofedit = get_date($timestamp);
$alterinfo = getLangInfo('post', 'edit_post');
} else {
$alterinfo = '';
}
return $alterinfo;
}
示例11: getParamDiscrip
function getParamDiscrip($type, $stamp = 'subject')
{
if ($type == 'title') {
$temp = getParamName($type, $stamp);
return $title . $temp;
} elseif ($type == 'descrip') {
return getLangInfo('other', 'element_descrip') . getLangInfo('other', 'element_length');
} elseif ($type == 'image') {
return getLangInfo('other', 'element_image_size');
} else {
return getLangInfo('other', 'element_' . $type) . getLangInfo('other', 'set_param_type');
}
}
示例12: getParamName
function getParamName($type, $stamp = 'subject')
{
if ($type == 'title') {
if ($stamp == 'forum') {
return getLangInfo('other', 'element_title_forum');
} elseif ($stamp == 'user') {
return getLangInfo('other', 'element_title_user');
} elseif ($stamp == 'tag') {
return getLangInfo('other', 'element_title_tag');
} else {
return getLangInfo('other', 'element_title');
}
}
return getLangInfo('other', 'element_' . $type);
}
示例13: _initAction
function _initAction($piece)
{
$datasourceService = $this->_getSourceService();
$temp = array();
$temp['title'] = getLangInfo('other', 'set_invoke_action');
$temp_func = '<select onchange="pieceActionChange(' . $piece['id'] . ',this.value);" name="p_action[' . $piece['id'] . ']">';
$stamp = $datasourceService->getSourceTypes();
foreach ($stamp as $key => $value) {
$selected = $key == $piece['action'] ? 'selected' : '';
$temp_func .= '<option value="' . $key . '" ' . $selected . '>' . $value['title'] . '</option>';
}
$temp['html'] = $temp_func;
$piece['p_action'] = $temp;
return $piece;
}
示例14: init
function init($id)
{
$this->_cid = $id;
require_once R_P . 'mode/cms/require/core.php';
$articleDB = C::loadDB('article');
$article = $articleDB->get($this->_cid);
empty($article) && Showmsg('data_error');
$this->_url = $this->_url . "&id=" . $this->_cid;
$title = $content = '我发现了一篇文章' . sprintf("[url=%s] %s [/url]", urlRewrite($this->_url), $article['subject']) . ',特别推荐。';
$descrip = $article['descrip'];
$mailSubject = getLangInfo('app', 'cms_recommend');
$mailContent = getLangInfo('app', 'ajax_sendweibo_cmsinfo', array('title' => $title, 'descrip' => $descrip));
$this->_content = $content;
$this->_mailSubject = $mailSubject;
$this->_mailContent = $mailContent;
}
示例15: Getrewhtml
function Getrewhtml($lou, $ifreward, $pid)
{
global $rewardtype, $rw_b_name, $rw_a_name, $groupid, $admincheck, $authorid, $winduid, $tid, $rewdb, $timeleave;
$html = "<div class=\"tips\" style=\"width:auto;\">";
if ($lou == 0) {
if ($rewardtype == '0') {
$html .= '<span class="s3">' . getLangInfo('bbscode', 'rewarding');
if ($timeleave > 3600) {
$html .= ceil($timeleave / 3600) . getLangInfo('bbscode', 'hour');
} elseif ($timeleave > 0) {
$html .= ceil($timeleave / 60) . getLangInfo('bbscode', 'minute');
} else {
$html .= getLangInfo('bbscode', 'timeover');
}
$html .= ')...</span><div class="tac">' . getLangInfo('bbscode', 'reward_bestanswer') . ": {$rewdb['cbval']} {$rw_b_name}</div>";
if ($rewdb['caval'] > 0) {
$html .= "<div class=\"tac\">" . getLangInfo('bbscode', 'reward_hlp') . ": {$rewdb['caval']} {$rw_a_name}</div>";
}
if ($groupid == '3' || $admincheck) {
$html .= "<div class=\"tac\"><a href=\"job.php?action=endreward&tid={$tid}\">" . getLangInfo('bbscode', 'reward_cancle') . '</a> </div>';
} elseif ($authorid == $winduid && $timeleave < 0) {
$html .= '<div class="tac"><a href="job.php?action=rewardmsg&tid=' . $tid . '" title="' . getLangInfo('bbscode', 'reward_title') . '" onClick="javascript:if(confirm(\'' . getLangInfo('bbscode', 'reward_msgtoadmin') . '\')){return true;}else{return false;}">' . getLangInfo('bbscode', 'reward_toadmin') . '</a> </div>';
}
} else {
$html .= "<span class=\"s3\">" . getLangInfo('bbscode', 'reward_finished') . "</span><div class=\"tac\">" . getLangInfo('bbscode', 'reward_bestanswer') . ": {$rewdb['cbval']} {$rw_b_name}</div>";
if ($rewardtype == 1) {
$html .= "<div class=\"tac\">" . getLangInfo('bbscode', 'reward_author') . ": {$rewdb['author']}</div>";
} else {
$html .= "<div class=\"tac\">" . getLangInfo('bbscode', 'reward_endinfo_' . $rewardtype) . "</div>";
}
}
} else {
if ($rewardtype == '1' && $ifreward > 1) {
$html .= "<span class=\"s3\">" . getLangInfo('bbscode', 'reward_best_get') . "</span>: (+{$rewdb['cbval']}) {$rw_b_name}";
} elseif ($ifreward == '1') {
$html .= "<span class=\"s3\">" . getLangInfo('bbscode', 'reward_help_get') . "</span>: (+1) {$rw_a_name}";
} elseif ($authorid == $winduid && $rewardtype == '0' && $ifreward == 0) {
$html .= "<span class=\"s3\">" . getLangInfo('bbscode', 'reward_manager') . "</span>: [<a href=\"job.php?action=reward&tid={$tid}&pid={$pid}&type=1\">" . getLangInfo('bbscode', 'reward_bestanswer') . "</a>]";
$rewdb['caval'] > 0 && ($html .= "[<a href=\"job.php?action=reward&tid={$tid}&pid={$pid}&type=2\">" . getLangInfo('bbscode', 'reward_help') . "</a>]");
}
}
$html .= "</div><div class=\"c\"></div>";
return $html;
}