« 让NucleusCMS的RSS Feed带上图片 | 主 页 | 让Randomquote里更多出现新条目 »

暂关Captcha,及Nucleuscms开发中调用Blog对象的方法


12/14/05。  cathayan.org版权所有,保留一切权利。转载请保留此说明。谢绝商业转载。

服务商升级PHP,新编的带着libgd,却没有装上Freetype支持,要用它写字的Captcha就不能用了,先关掉,估计机器人Spam也早忘了这里吧:mrgreen: 其实我觉得认字这一招也不一定很好嘛,也许可以在上面贴个头像,判断一下男女,机器识别也有点难度吧?

正好看了一下Log,里面一堆PHP Fatal error: Call to a member function on a non-object in...,检查一下,原来是几个插件没有跟上新形势,调用blog对象方法有误。经理解这一页的精神,感觉全局变量$blog应该是包含多个Blog信息的一个变量(Nucleus支持多Blog),在它这里直接调用针对某个Blog的方法是不行的,可以从$blog这里取得真正的单个Blog的ID,用ID来取得它的blog对象:

global $manager;
$blog =& $manager->getBlog($blogid);

站务记于此。

【更新】又加上了Captcha,Spam还是挺厉害的。另据观察Error log,现在网上一堆爬虫,目标全是upload.asp/upfile.asp,诸如此类,看上去某些asp的系统一直就被人盯着 :mrgreen:

12/14/05 14:17:52,由cathayan发表。目录:本站

7条评论

windix:

???????????
---
?TNND???!
?????????????????????????????????????? :) ????????????????????????

于 12/14/05 18:07:52 发表  http://www.douzi.org

windix:

BTW?????????????refer??????????????????????????????????????????refer??????????????????

于 12/14/05 18:09:55 发表  http://www.douzi.org

cathayan:

?????????????20??????????????Nice content/great/original/wonderful???????????????????????ZTMNB?

于 12/15/05 09:12:13 发表  

fishy:

Nucleus??referral????anti-spam???

于 12/15/05 10:15:33 发表  http://wang.yuxuan.org/blog/

cathayan:

PHP?OO??????????????????

$blog =&

&???????$blog = new blog(); ???$blog -> foo(); ???????????& $blog->foo()??

于 12/15/05 10:53:40 发表  

fengyue:

?????????????php??????PHP Fatal error: Call to a member function on a non-object in...??????????

????????????????
?????

于 03/11/06 23:25:17 发表  

ming:

sigh...lycos???????freetype?????-_-
于 06/07/06 13:42:24 发表  http://www.zming.net

This item is closed, it's not possible to add new comments to it or to vote on it
I am watching and will delete all spam.