当前位置: 首页>>代码示例>>PHP>>正文


PHP wap_footer函数代码示例

本文整理汇总了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();
}
开发者ID:BGCX261,项目名称:zjnewcitycode-svn-to-git,代码行数:7,代码来源:global.php

示例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();
}
开发者ID:adi00,项目名称:wumaproject,代码行数:11,代码来源:wap_mod.php

示例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();
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:24,代码来源:wap.fun.php

示例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();
}
开发者ID:jechiy,项目名称:PHPWind,代码行数:21,代码来源:ms_index.php

示例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 . '&amp;username=$(username)&amp;password=$(password)&amp;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;
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:login.php

示例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();
}
开发者ID:jechiy,项目名称:PHPWind,代码行数:16,代码来源:wap_mod.php


注:本文中的wap_footer函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。