Version 1.3.0
This commit is contained in:
1 parent
7ef3d1712a
commit
f87d29ba65
290 files changed
+50206
-17930
No files matched your search
@@ -2,15 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Board v1.1
|
||||
| Invision Power Board v1.3 Final
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| http://www.ibforums.com
|
||||
| (c) 2001 - 2003 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Sun, 04 Jan 2004 00:30:16 GMT
|
||||
| Release: 28e7bfb25f08ac72a789cb1b172fa185
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Browse Buddy Module
|
||||
@@ -87,18 +89,36 @@ class buddy {
|
||||
|
||||
$allow_forums[] = '0';
|
||||
|
||||
$DB->query("SELECT id, read_perms FROM ibf_forums");
|
||||
$DB->query("SELECT id, read_perms, password FROM ibf_forums");
|
||||
|
||||
while( $forum = $DB->fetch_row() )
|
||||
while( $i = $DB->fetch_row() )
|
||||
{
|
||||
if ( $forum['read_perms'] == '*' )
|
||||
{
|
||||
$allow_forums[] = $forum['id'];
|
||||
}
|
||||
else if ( preg_match( "/(^|,)".$ibforums->member['mgroup']."(,|$)/", $forum['read_perms']) )
|
||||
{
|
||||
$allow_forums[] = $forum['id'];
|
||||
}
|
||||
$pass = 1;
|
||||
|
||||
if ($i['password'] != "")
|
||||
{
|
||||
if ( ! $c_pass = $std->my_getcookie('iBForum'.$i['id']) )
|
||||
{
|
||||
$pass = 0;
|
||||
}
|
||||
|
||||
if ( $c_pass == $i['password'] )
|
||||
{
|
||||
$pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
$pass = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if ($pass == 1)
|
||||
{
|
||||
if ( $std->check_perms($i['read_perms']) == TRUE )
|
||||
{
|
||||
$allow_forums[] = $i['id'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$forum_string = implode( ",", $allow_forums );
|
||||
@@ -122,7 +142,11 @@ class buddy {
|
||||
// Get the number of posts since the last visit to topics we've started.
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
$DB->query("SELECT COUNT(tid) as replies FROM ibf_topics WHERE last_post > '".$ibforums->member['last_visit']."' AND approved=1 AND forum_id IN($forum_string) AND starter_id='".$ibforums->member['id']."'");
|
||||
$DB->query("SELECT COUNT(tid) as replies
|
||||
FROM ibf_topics WHERE last_post > '".$ibforums->member['last_visit']."'
|
||||
AND approved=1 AND forum_id IN($forum_string)
|
||||
AND posts > 0
|
||||
AND starter_id='".$ibforums->member['id']."'");
|
||||
|
||||
$topic = $DB->fetch_row();
|
||||
|
||||
|
||||
Reference in new issue
Block a user