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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

126百宝箱第二版分享--符合kk插件规范(建议所有第一版的升级,6月15日更新)

[复制链接]
 楼主| cfking 发表于 2008-6-14 19:20:42 | 显示全部楼层

回复 59# tonywong 的帖子

我这儿不存在变形啊?
回复

使用道具 举报

zhangjinlu 发表于 2008-6-14 19:31:34 | 显示全部楼层
我的UCH是这样装的,http://www.520cal.cn/home/目录下
装了这个插件后不能使用,点击提示错误。
http://www.520cal.cn/home/plug.php?plugname=bbx
回复

使用道具 举报

 楼主| cfking 发表于 2008-6-14 19:54:50 | 显示全部楼层

回复 62# zhangjinlu 的帖子

给我个账号~
由于你的不是根目录 有可能出现这个问题
回复

使用道具 举报

黄花菜88 发表于 2008-6-14 19:54:52 | 显示全部楼层
楼主能不能把plug.php换为其他,比如plug_xx.php,每个插件制作都用这个文件名就容易被覆盖了
回复

使用道具 举报

sharson_hr 发表于 2008-6-14 20:33:54 | 显示全部楼层
支持楼上的
我还没有用
用的话就把以前的PLUG覆盖掉了啊
回复

使用道具 举报

cndew 发表于 2008-6-14 20:38:09 | 显示全部楼层
好东西当然要顶下
回复

使用道具 举报

 楼主| cfking 发表于 2008-6-14 20:40:36 | 显示全部楼层

回复 64# 黄花菜88 的帖子

看1楼最后的补充~
回复

使用道具 举报

bluelake168 发表于 2008-6-14 21:05:45 | 显示全部楼层
问题更多
回复

使用道具 举报

dashou 发表于 2008-6-14 21:12:50 | 显示全部楼层
原帖由 cfking 于 2008-6-14 20:40 发表
看1楼最后的补充~


这个是改哪里的?

原来用的KK的心理测试的那个plug.php的代码是这样的:
  1. <?php include_once('./common.php'); checkclose(); if(file_exists(S_ROOT."./plugs/license.php")) { include_once(S_ROOT."./plugs/license.php"); if(md5($_SERVER[HTTP_HOST].'daxuesheng_whaha_discuz')==$license) { $S_URL=$_SERVER[HTTP_HOST]; }else{ $S_URL='www.yidilian.cn'; } }else{ showmessage('没发现授权文件,请到Discuz论坛UCH专区免费下载更新。<br />3秒钟后跳转', 'https://discuz.dismall.com/thread-937876-1-1.html', 3); } $plugnames = array('testask'); $plugname = (empty($_GET['plugname']) || !in_array($_GET['plugname'], $plugnames))?'index':$_GET['plugname']; $theurl = "plug.php?plugname=$plugname"; $space = $_SGLOBAL['supe_uid']?getspace($_SGLOBAL['supe_uid']):array(); $plug=array(); $plug['name']=$plugname; $plug['uid']=$_GET['uid']?$_GET['uid']:$_SGLOBAL['supe_uid']; $plug['do']=$_GET['do']?$_GET['do']:'index'; $plug['config']=''; include_once(S_ROOT."./plugs/plug_{$plugname}.php"); $menuactives = array('network'=>' class="active"'); include_once template("plug_$plugname"); ?>
复制代码
回复

使用道具 举报

leedstyh 发表于 2008-6-14 22:29:22 | 显示全部楼层
LZ,有个问题,你这个和afencn的方法,都有个问题。

src="/assist/calendar/index.htm"

上面这条语句使得其他人都可以不用登录就可以直接使用到这些功能了,比如下面这个地址
http://u.xhttw.com/assist/calendar/index.htm
这使得之前那些检查是否登录的语句没什么用了,能不能改进下?
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 09:25 , Processed in 0.145549 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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