Vergleich inc/functions_search.php - 1.2.0 - 1.2.1

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * $Id: functions_search.php 2163 2006-08-30 05:53:05Z chris $

 * $Id: functions_search.php 2281 2006-09-27 12:24:50Z chris $

 */

/**

 */

/**

Zeile 95Zeile 95
 */
function get_unsearchable_forums($pid="0", $first=1)
{

 */
function get_unsearchable_forums($pid="0", $first=1)
{

	global $db, $forumcache, $permissioncache, $mybb, $unsearchableforums, $unsearchable, $templates, $forumpass;

	global $db, $forum_cache, $permissioncache, $mybb, $unsearchableforums, $unsearchable, $templates, $forumpass;

	$pid = intval($pid);

	$pid = intval($pid);

	if(!is_array($forumcache))

	if(!is_array($forum_cache))

	{
// Get Forums
$query = $db->query("SELECT f.* FROM ".TABLE_PREFIX."forums f ORDER BY f.pid, f.disporder");
while($forum = $db->fetch_array($query))
{

	{
// Get Forums
$query = $db->query("SELECT f.* FROM ".TABLE_PREFIX."forums f ORDER BY f.pid, f.disporder");
while($forum = $db->fetch_array($query))
{

			$forumcache[$forum['fid']] = $forum;

			$forum_cache[$forum['fid']] = $forum;

		}
}
if(!is_array($permissioncache))
{
$permissioncache = forum_permissions();
}

		}
}
if(!is_array($permissioncache))
{
$permissioncache = forum_permissions();
}

	foreach($forumcache as $fid => $forum)

	foreach($forum_cache as $fid => $forum)

	{
if($permissioncache[$forum['fid']])
{

	{
if($permissioncache[$forum['fid']])
{

Zeile 127Zeile 127
			if($_COOKIE['forumpass'][$forum['fid']] != md5($mybb->user['uid'].$forum['password']))
{
$pwverified = 0;

			if($_COOKIE['forumpass'][$forum['fid']] != md5($mybb->user['uid'].$forum['password']))
{
$pwverified = 0;

 
			}
}

$parents = explode(",", $forum['parentlist']);
if(is_array($parents))
{
foreach($parents as $parent)
{
if($forum_cache[$parent]['active'] == "no")
{
$forum['active'] = "no";
}

			}
}


			}
}


Zeile 406Zeile 418
		}
$datelimit = $now-(86400 * $search['postdate']);
$datecut .= "'$datelimit'";

		}
$datelimit = $now-(86400 * $search['postdate']);
$datecut .= "'$datelimit'";

		$post_datecut = "p.dateline $datecut";
$thread_datecut = "t.dateline $datecut";

		$post_datecut = " AND p.dateline $datecut";
$thread_datecut = " AND t.dateline $datecut";

	}

$forumin = "";

	}

$forumin = "";

Zeile 647Zeile 659
		}
$datelimit = $now-(86400 * $search['postdate']);
$datecut .= "'$datelimit'";

		}
$datelimit = $now-(86400 * $search['postdate']);
$datecut .= "'$datelimit'";

		$post_datecut = "p.dateline $datecut";
$thread_datecut = "t.dateline $datecut";

		$post_datecut = " AND p.dateline $datecut";
$thread_datecut = " AND t.dateline $datecut";

	}

$forumin = "";

	}

$forumin = "";