年年我发



返回   年年我发 > 网站建设 > 建站交流 > Web Directory
用户名
密码
 
注册账号 论坛帮助 会员列表 日历事件网赚工具 标记版面已读

回复
 
主题工具 搜索本主题 显示模式
  #1   IP: 218.2.66.181
旧 2007-03-19, 01:19 PM
sunshine sunshine 当前离线
高级会员
 
注册日期: 2006-01-05
帖子: 387
精华: 0
现金: 4897 元
资产: 4897 元
声望: 10 sunshine 正向着好的方向发展
默认 PHP Link Directory Automatically Approved Links

Disclaimer: THIS SHOULD NEVER BE INSTALLED ON A SITE THAT IS OPEN TO THE GENERAL PUBLIC!

I had a request for a link directory for a private organization that was not open to the public and therefore not spiderable or anything either. They didn't want to take the time to approve links since any link a member submitted was valid and good anyhow. Since many are non-technical and most wouldn't take the tim eto learn how to approve links, we modified phpld2 to automatically approve the submissions. I thought I would share it in case anyone else had a similar situation.

In submit.php simply modify the two red lines to the shown values:
引用:
} else {
SmartyValidate :: connect($tpl);
$data = get_table_data('link');
$data['STATUS'] = 2;
$data['IPADDRESS'] = get_client_ip();
$data['VALID'] = 2;
$data['LINK_TYPE'] = $link_type;
Disclaimer: THIS SHOULD NEVER BE INSTALLED ON A SITE THAT IS OPEN TO THE GENERAL PUBLIC!
回复时引用此帖

wellcome to www.0058.net
回复


当前查看此主题的会员: 1 (0 位会员和 1 位游客)
 
主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

论坛启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码
论坛跳转


所有时间均为北京时间. 现在的时间是 01:02 AM, Free Patent & Patent Ideas


Powered by vBulletin 3.5.2 Chinese Exhibition Happy New Year
©2000 - 2008,Jelsoft Enterprises Ltd  Desiccant Molecular Sieve Weight Loss Bentonite Trade Manager