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

 找回密码
 立即注册
搜索

UCH wap插件修改的SQL问题(隐私设置相关)

[复制链接]
傻虫 发表于 2009-9-19 13:25:19 | 显示全部楼层 |阅读模式
我下了 https://discuz.dismall.com/viewth ... 6&highlight=wap
的wap插件。

因为我的UCh有会员设置了隐私
所以我想改一下这个插件
本为是这样的
  1. //显示大家的日志
  2.         function get_allblog($username,$pages){
  3.                 $sql="select * from $GLOBALS[tabletitle]blog  where  username not in ('$username')   order by blogid desc";       
复制代码
然后我改成这样
  1. //显示大家的日志
  2.         function get_allblog($username,$pages){
  3.                 $sql="select * from $GLOBALS[tabletitle]blog  where  username not in ('$username') and friend=0  order by blogid desc";       
复制代码
为什么插件还是会显示设置了隐私和日志的?

但是我把
  1. function get_allalbum($username,$pages){
  2.                        
  3.                         $sql="select * from $GLOBALS[tabletitle]album where username not in ('$username')  order by albumid desc";
复制代码
改为
  1. function get_allalbum($username,$pages){
  2.                        
  3.                         $sql="select * from $GLOBALS[tabletitle]album where username not in ('$username') and friend=0 order by albumid desc";
复制代码
却可以过滤掉设置了隐私的相册
本人为php盲,
请问是我的语句有问题吗?谢谢!
回复

使用道具 举报

huaxuanso 发表于 2009-9-19 13:40:49 | 显示全部楼层
隐私可以设置的。。
回复

使用道具 举报

 楼主| 傻虫 发表于 2009-9-19 17:02:39 | 显示全部楼层
UCH有隐私设置,但是这个插件没有。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-11 12:58 , Processed in 0.104649 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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