Ejemplo n.º 1
0
    } else {
        $myotherDB[] = $rs;
    }
}
//我的图片主题
$myphotoDB = '';
$query = $db->query("SELECT * FROM {$pre}article WHERE ispic=1 AND uid='{$uid}' ORDER BY aid DESC LIMIT 6");
while ($rs = $db->fetch_array($query)) {
    $rs[picurl] = tempdir($rs[picurl]);
    $myphotoDB[] = $rs;
}
//论坛贴子
$mybbsDB = '';
if (ereg("^pwbbs", $webdb[passport_type])) {
    $query = $db->query("SELECT * FROM {$TB_pre}threads WHERE authorid='{$uid}' ORDER BY tid DESC LIMIT 10");
    while ($rs = $db->fetch_array($query)) {
        $mybbsDB[] = $rs;
    }
}
//过滤不健康的字
$rsdb[truename] = replace_bad_word($rsdb[truename]);
$rsdb[introduce] = replace_bad_word($rsdb[introduce]);
$rsdb[address] = replace_bad_word($rsdb[address]);
require get_member_tpl('homepage');
$content = ob_get_contents();
ob_end_clean();
ob_start();
if ($webdb[www_url] == '/.') {
    $content = str_replace('/./', '/', $content);
}
echo $content;
Ejemplo n.º 2
0
    showerr('URL被禁止的!');
}
unset($menudb, $base_menudb);
//设法获取后台自定义菜单
$query = $db->query("SELECT * FROM {$pre}admin_menu WHERE groupid='-{$lfjdb['groupid']}' AND fid=0 ORDER BY list DESC");
while ($rs = $db->fetch_array($query)) {
    $query2 = $db->query("SELECT * FROM {$pre}admin_menu WHERE fid='{$rs['id']}' ORDER BY list DESC");
    while ($rs2 = $db->fetch_array($query2)) {
        $menudb[$rs[name]][$rs2[name]]['link'] = $rs2['linkurl'];
    }
}
//后台不存在自定义菜单,则用默认的
if (!$menudb) {
    require_once dirname(__FILE__) . "/" . "menu.php";
    //获取模块系统的会员菜单
    $query = $db->query("SELECT * FROM {$pre}module WHERE type=2 AND ifclose=0 ORDER BY list DESC");
    while ($rs = $db->fetch_array($query)) {
        $array = @(include ROOT_PATH . "{$rs['dirname']}/member/menu.php");
        foreach ($array as $key => $value) {
            $value['link'] = "{$webdb['www_url']}/{$rs['dirname']}/member/" . $value['link'];
            $menudb["{$rs['name']}"][$key] = $value;
        }
    }
}
require get_member_tpl('index');
//针对内网的处理,$webdb[www_url]='/.'
if ($webdb[www_url] == '/.') {
    $content = str_replace('/./', '/', ob_get_contents());
    ob_end_clean();
    echo $content;
}
Ejemplo n.º 3
0
<?php

require_once get_member_tpl('head');
Ejemplo n.º 4
0
<?php

require_once dirname(__FILE__) . "/" . "global.php";
if (!$lfjid) {
    showerr("�㻹û��¼");
}
require dirname(__FILE__) . "/" . "head.php";
require get_member_tpl('map');
require dirname(__FILE__) . "/" . "foot.php";
Ejemplo n.º 5
0
<?php

require_once get_member_tpl('foot');
$content = ob_get_contents();
ob_end_clean();
ob_start();
if ($webdb[www_url] == '/.') {
    $content = str_replace('/./', '/', $content);
}
echo $content;