Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖

[发布] 刚刚挖的:虚拟在线会员+游客 不知道有没有人发过!

[复制链接]
eqmz 发表于 2007-7-31 03:17:16 | 显示全部楼层
回复

使用道具 举报

白饭如霜~ 发表于 2007-7-31 07:53:46 | 显示全部楼层
:L
回复

使用道具 举报

残花盛开 发表于 2007-8-14 08:12:46 | 显示全部楼层
留这用下..................
回复

使用道具 举报

kilwen 发表于 2007-8-14 09:17:36 | 显示全部楼层
不错!
试一下!
回复

使用道具 举报

cash163 发表于 2007-8-14 09:19:56 | 显示全部楼层
不喜欢造假 慢慢做吧
回复

使用道具 举报

浩南 发表于 2007-8-14 09:30:36 | 显示全部楼层
一个会员显示3个哈和
回复

使用道具 举报

jy531320 发表于 2007-8-24 11:19:24 | 显示全部楼层
还是不能虚拟用户随机读贴啊?
回复

使用道具 举报

ruojie00 发表于 2007-9-9 15:51:28 | 显示全部楼层
我的怎么找不到那个代码
<?php

/*
        [SupeSite/X-Space] (C)2001-2006 Comsenz Inc.
        首页

        $RCSfile: index.php,v $
        $Revision: 1.67 $
        $Date: 2007/04/25 15:04:37 $
*/

include_once('./include/main.inc.php');

//获取变量
if($_SCONFIG['urltype'] == '2' || $_SCONFIG['urltype'] == '5') $parsegetvar = empty($_SERVER['PATH_INFO'])?'':substr($_SERVER['PATH_INFO'], 1);
if(empty($parsegetvar)) $parsegetvar = empty($_SERVER['QUERY_STRING'])?''_SERVER['QUERY_STRING'];
if(!empty($parsegetvar)) {
        $parsegetvar = addslashes($parsegetvar);
        if($_SCONFIG['allowdomain'] == 3 && strpos($parsegetvar, '-') === false && !is_numeric(substr($parsegetvar, 0, 1))) mydomain($parsegetvar);
        $_SGET = parseparameter(str_replace(array('-','_'), '/', $parsegetvar));
} else {
        if(!empty($_SCONFIG['allowdomain'])) {
                if(strpos(S_URL, $_SERVER['HTTP_HOST']) === false) {
                        $hostarr = explode('.', $_SERVER['HTTP_HOST']);
                        if(count($hostarr) > 2) {
                                if(count($hostarr) > 3 && $hostarr[0] == 'www') {
                                        $hostdomain = $hostarr[1];
                                } else {
                                        $hostdomain = $hostarr[0];
                                }
                        }
                }
                if(!empty($hostdomain)) mydomain(rawurlencode($hostdomain));
        }
}

//变量处理
if(!empty($_SGET['viewnews'])) {
        $_SGET['action'] = 'viewnews';
        $_SGET['itemid'] = intval($_SGET['viewnews']);
} elseif(!empty($_SGET['viewspace'])) {
        $_SGET['action'] = 'viewspace';
        $_SGET['itemid'] = intval($_SGET['viewspace']);
} elseif(!empty($_SGET['viewthread'])) {
        $_SGET['action'] = 'viewthread';
        $_SGET['tid'] = intval($_SGET['viewthread']);
} elseif(!empty($_SGET['category'])) {
        $_SGET['action'] = 'category';
        $_SGET['catid'] = intval($_SGET['category']);
} elseif(!empty($_SGET['mygroup'])) {
        $_SGET['action'] = 'mygroup';
        $_SGET['gid'] = intval($_SGET['mygroup']);
} elseif(!empty($_SGET['spacelist'])) {
        $_SGET['action'] = 'spacelist';
        $_SGET['type'] = $_SGET['spacelist'];
} elseif(empty($_SGET['action']) && !empty($_SGET['uid'])) {
        $_SGET['action'] = 'space';
        $_SGET['uid'] = intval($_SGET['uid']);
} else {
        $_SGET['action'] = empty($_SGET['action'])?'index':trim(preg_replace("/[^a-z0-9\-\_]/i", '', trim($_SGET['action'])));
}

//站点关闭
if(!empty($_SCONFIG['closesite']) && $_SGET['action'] != 'login') {
        getcookie(1);
        if(empty($_SGLOBAL['group']['groupid']) || $_SGLOBAL['group']['groupid'] != 1) {
                if(empty($_SCONFIG['closemessage'])) $_SCONFIG['closemessage'] = 'site_close';
                messagebox('error', $_SCONFIG['closemessage'].'<p style="font-size:12px;"><a href="'.geturl("action/login").'">'.$lang['admin_login'].'</a></p>');
        }
}

//限制分页500
if(!empty($_SGET['page'])) {
        if($_SGET['page'] > 500) {
                messagebox('error', 'page_limit');
        }
}

//关键字、描述、导航、标题
$keywordarr = $descriptionarr = $guidearr = $titlearr = array();

//自定义频道
if($_SGET['action'] == 'channel') {
        $_SGET['name'] = empty($_SGET['name'])?'':trim(preg_replace("/[^a-z0-9\-\_]/i", '', trim($_SGET['name'])));
        if(!empty($_SGET['name'])) {
                $scriptfile = S_ROOT.'./channel/channel_'.$_SGET['name'].'.php';
                if(file_exists($scriptfile)) {
                        include_once($scriptfile);
                        exit();
                }
        }
}

//系统频道
if($_SGET['action'] != 'index') {
        $scriptfile = S_ROOT.'./'.$_SGET['action'].'.php';
        if(file_exists($scriptfile)) {
                include_once($scriptfile);
                exit();
        }
}

//默认首页
if(!empty($channels['default']) && $channels['default'] != 'index.php') {

        include_once(S_ROOT.'./'.$channels['default']);
       
} else {

        if(!empty($_SCONFIG['htmlindex'])) {
                $_SHTML['action'] = 'index';
                $_SGLOBAL['htmlfile'] = gethtmlfile($_SHTML);
                ehtml('get', $_SCONFIG['htmlindextime']);
                $_SCONFIG['debug'] = 0;
        }

        include_once(S_ROOT.'./include/common.inc.php');
        $title = $_SCONFIG['sitename'];
        $keywords = $_SCONFIG['sitename'];
        $description = $_SCONFIG['sitename'];
       
        include template('index');

        ob_out();
       
        if(!empty($_SCONFIG['htmlindex'])) {
                ehtml('make');
        } else {
                maketplblocknames('index');
                maketplblockvalue('cache');
        }
}

?>
回复

使用道具 举报

ruojie00 发表于 2007-9-9 15:52:02 | 显示全部楼层
找不到 $discuz_action = 1;
回复

使用道具 举报

luolinzhi 发表于 2008-1-14 19:26:11 | 显示全部楼层
www.niubian.net 我也做了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-28 08:54 , Processed in 0.099905 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表