Vergleich inc/functions_archive.php - 1.2.1 - 1.2.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

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

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

 *

 *

 * $Id: functions_archive.php 2180 2006-09-02 07:36:22Z chris $

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

 */

/**

 */

/**

Zeile 42Zeile 42
	{
$charset = "utf-8";
}

	{
$charset = "utf-8";
}

 
	
$dir = '';
if($lang->settings['rtl'] == 1)
{
$dir = " dir=\"rtl\"";
}

if($lang->settings['htmllang'])
{
$htmllang = " xml:lang=\"".$lang->settings['htmllang']."\" lang=\"".$lang->settings['htmllang']."\"";
}
else
{
$htmllang = " xml:lang=\"en\" lang=\"en\"";
}


	$GLOBALS['fulltitle'] = $fulltitle;
$GLOBALS['fullurl'] = $fullurl;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

	$GLOBALS['fulltitle'] = $fulltitle;
$GLOBALS['fullurl'] = $fullurl;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<html xmlns="http://www.w3.org/1999/xhtml"<?php echo $dir; echo $htmllang; ?>>

<head>
<title><?php echo $title; ?></title>
<meta http-equiv="content-type" content="text/html; charset=<?php echo $charset; ?>" />

<head>
<title><?php echo $title; ?></title>
<meta http-equiv="content-type" content="text/html; charset=<?php echo $charset; ?>" />

Zeile 164Zeile 180
</div>
</div>
<div id="footer">

</div>
</div>
<div id="footer">

<?php echo $lang->powered_by; ?> <a href="http://www.mybboard.com">MyBB</a> <?php echo $mybbversion; ?><br /><?php echo $lang->copyright; ?> &copy; 2002-<?php echo date("Y"); ?> <a href="http://www.mybboard.com">MyBB Group</a>

<?php echo $lang->powered_by; ?> <a href="http://www.mybboard.net">MyBB</a> <?php echo $mybbversion; ?><br /><?php echo $lang->copyright; ?> &copy; 2002-<?php echo date("Y"); ?> <a href="http://www.mybboard.net">MyBB Group</a>

</div>
</body>
</html>

</div>
</body>
</html>

Zeile 180Zeile 196
{
global $lang, $mybb, $sent_header;
if(!$sent_header)

{
global $lang, $mybb, $sent_header;
if(!$sent_header)

	{

	{

		archive_header("", $mybb->settings['bbname'], $mybb->settings['bburl']."/index.php");
}
?>

		archive_header("", $mybb->settings['bbname'], $mybb->settings['bburl']."/index.php");
}
?>

Zeile 191Zeile 207
<?php
archive_footer();
exit;

<?php
archive_footer();
exit;

}


}


/**
* Ouput a "no permission"page.

/**
* Ouput a "no permission"page.

 */

 */

function archive_error_no_permission()

function archive_error_no_permission()

{

{

	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();
}

}
?>

}
?>