Vergleich inc/functions_archive.php - 1.2.13 - 1.2.14

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

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

 * $Id: functions_archive.php 2932 2007-03-10 05:48:55Z chris $

 * $Id: functions_archive.php 3717 2008-03-16 22:09:01Z Tikitiki $

 */

/**

 */

/**

Zeile 216Zeile 216
{
global $lang;
archive_error($lang->archive_nopermission);

{
global $lang;
archive_error($lang->archive_nopermission);

 
}

/**
* Check the password given on a certain forum for validity
*
* @param int The forum ID
* @param boolean The Parent ID
*/
function check_forum_password_archive($fid, $pid=0)
{
global $forum_cache;

$showform = true;

if(!is_array($forum_cache))
{
$forum_cache = cache_forums();
if(!$forum_cache)
{
return false;
}
}

// Loop through each of parent forums to ensure we have a password for them too
$parents = explode(',', $forum_cache[$fid]['parentlist']);
rsort($parents);
if(!empty($parents))
{
foreach($parents as $parent_id)
{
if($parent_id == $fid || $parent_id == $pid)
{
continue;
}

if($forum_cache[$parent_id]['password'] != "")
{
check_forum_password_archive($parent_id, $fid);
}
}
}

$password = $forum_cache[$fid]['password'];
if($password)
{
archive_error_no_permission();
}

}
?>

}
?>