Beispiel #1
0
function wap_msg($msg, $forward = '')
{
    extract($GLOBALS, EXTR_SKIP);
    include template('msg', $TP);
    wap_output();
    exit;
}
Beispiel #2
0
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();
}
Beispiel #3
0
if (strlen($kw) < $DT['min_kw'] || strlen($kw) > $DT['max_kw']) {
    $kw = '';
}
$keyword = $kw ? str_replace(array(' ', '*'), array('%', '%'), $kw) : '';
$len = 30;
//title length
$WAP_MODULE = array();
foreach ($MODULE as $v) {
    if (in_array($v['module'], $wap_modules) && $v['module'] != 'member' && $v['ismenu']) {
        $WAP_MODULE[] = $v;
    }
}
if (in_array($module, $wap_modules)) {
    if (in_array($action, array('category', 'area'))) {
        include $action . '.inc.php';
    } else {
        include $module . '.inc.php';
    }
} else {
    if (in_array($action, array('about'))) {
        include $action . '.inc.php';
    } else {
        if ($TP == 'touch') {
            $head_name = $DT['sitename'];
            $head_link = 'index.php';
        }
        include template('index', $TP);
    }
}
wap_output();
function wap_footer()
{
    echo "</body>\n";
    echo "</html>\n";
    wap_output();
    updatesession();
    exit;
}