本文整理汇总了PHP中wap_footer函数的典型用法代码示例。如果您正苦于以下问题:PHP wap_footer函数的具体用法?PHP wap_footer怎么用?PHP wap_footer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wap_footer函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: wap_norun
function wap_norun($title, $msg = '')
{
$msg = $msg ? $msg : $title;
wap_header($title);
echo '<p>' . $msg . '</p>';
wap_footer();
}
示例2: 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();
}
示例3: message
function message($key, $url = '')
{
global $link, $cmsgs;
wap_header(wap_lang('wap_infotip'));
$str = $cmsgs[$key] ? $cmsgs[$key] : $key;
if (($num = func_num_args()) > 2) {
$ars = func_get_args();
array_splice($ars, 1, 1);
$ars[0] =& $str;
$str = call_user_func_array('sprintf', $ars);
}
echo str_replace(array("\r\n", "\r", "\n"), '<br/>', wap_encode($str)) . '<br/>';
if ($url) {
switch ($url) {
case 'back':
echo '<onevent type="ontimer"><prev/><timer value="20"/></onevent>' . '<anchor>' . wap_lang('wap_rightnowgoback') . '<prev/></anchor><br/>';
break;
default:
echo '<onevent type="ontimer"><go href="' . wap_encode($url) . '"/><timer value="20"/></onevent>' . '<a href="' . wap_encode($url) . '">' . wap_lang('wap_rightnowgoback') . '</a><br/>';
}
}
echo $link;
wap_footer();
}
示例4: wap_sms_msg
function wap_sms_msg($msg, $url = "")
{
$ysmsg = is_array($msg) ? array_pop($msg) : $msg;
$msg = getWapLang('wap', $ysmsg);
if (!empty($msg) && $msg == $ysmsg) {
$msg = getLangInfo('msg', $ysmsg);
$msg = strip_tags($msg);
}
wap_header($url);
if ($msg) {
$str = '<br><div class="warning">' . $msg . '</div>';
$str .= '<div>
<a href="index.php?a=ms_index&action=send">发新消息</a><br />
<a href="index.php?a=ms_index&action=all">返回所有消息</a><br />
<a href="index.php?a=ms_index&action=self">返回已发消息</a></div>';
echo $str;
} else {
echo $ysmsg;
}
wap_footer();
}
示例5: dirname
include dirname(dirname(__FILE__)) . '/include/general.inc.php';
include 'wap.fun.php';
parse_str(un_virtual($_SERVER['QUERY_STRING']), $temparr);
//处理子站id
$nsid = empty($temparr['sid']) ? 0 : max(0, intval($temparr['sid']));
if ($nsid && empty($subsites[$nsid])) {
$nsid = 0;
}
switch_cache($nsid);
$sid = $nsid;
if_siteclosed($sid);
if (!$action) {
wap_header(wap_lang('wap_login'), '', 0);
$memberid && message('wap_login_re_ok', 'back');
echo wap_lang('wap_username') . '<br/><input name="username" size="15" emptyok="false"/><br/>' . wap_lang('wap_password') . '<br/><input name="password" size="15" emptyok="false"/><br/>' . '<br/><a href="?action=submit' . $wap_string . '&username=$(username)&password=$(password)&forward=' . M_REFERER . '">' . wap_lang('wap_justlogin') . '</a><br/>' . $link;
wap_footer();
} elseif ($action == 'submit') {
wap_header(wap_lang('wap_login'), '', 0);
if (!$username || !$password) {
message('wap_empty_input', 'back');
}
include M_ROOT . 'include/admin.fun.php';
strlen($username = trim($username)) < 3 && message('wap_member_name_fail', 'back');
if (!$password || $password != addslashes($password)) {
message('wap_password_fail', 'back');
}
$guestexp = '\\xA1\\xA1|^Guest|^\\xD3\\xCE\\xBF\\xCD|\\xB9\\x43\\xAB\\xC8';
preg_match("/^\\s*\$|^c:\\con\\con\$|[%,\\*\"\\s\t\\<\\>\\&]|{$guestexp}/is", $username) && message('wap_member_name_fail', 'back');
$errtimes = login_safecheck($username);
$errtimes++ < $maxerrtimes || message('wap_login_error_times');
$cantimes = $maxerrtimes - $errtimes;
示例6: wap_msg
function wap_msg($msg, $url = "")
{
$ysmsg = is_array($msg) ? array_pop($msg) : $msg;
$msg = getWapLang('wap', $ysmsg);
if (!empty($msg) && $msg == $ysmsg) {
$msg = getLangInfo('msg', $ysmsg);
$msg = strip_tags($msg);
}
wap_header($url);
if ($msg) {
echo '<br />', '<div class="warning">' . $msg . '</div>', '<div>' . ($url ? " <a href='{$url}'>" . getWapLang('wap', 'wap_msg_view') . "</a>" : '') . '</div>';
} else {
echo $ysmsg;
}
wap_footer();
}