Vergleich archive/global.php - 1.6.2 - 1.6.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: global.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id$

 */

// If archive mode does not work, uncomment the line below and try again

 */

// If archive mode does not work, uncomment the line below and try again

Zeile 41Zeile 41
}

// If the server OS is not Windows and not Apache or the PHP is running as a CGI or we have defined ARCHIVE_QUERY_STRINGS, use query strings - DIRECTORY_SEPARATOR checks if running windows

}

// If the server OS is not Windows and not Apache or the PHP is running as a CGI or we have defined ARCHIVE_QUERY_STRINGS, use query strings - DIRECTORY_SEPARATOR checks if running windows

if((DIRECTORY_SEPARATOR == '\\' && stripos($_SERVER['SERVER_SOFTWARE'], 'apache') == false) || stripos(SAPI_NAME, 'cgi') !== false || defined("ARCHIVE_QUERY_STRINGS"))
{
$url = $_SERVER['QUERY_STRING'];
$base_url = $mybb->settings['bburl']."/archive/index.php?";
$endpart = $url;
}
// Otherwise, we're using 100% friendly URLs
else

// if((DIRECTORY_SEPARATOR == '\\' && stripos($_SERVER['SERVER_SOFTWARE'], 'apache') == false) || strstr(php_sapi_name(),'cgi') || defined("ARCHIVE_QUERY_STRINGS"))
// http://dev.mybb.com/issues/1489 - remove automatic detection and rely on users to set the right option here
if($mybb->settings['seourls_archive'] == 1)






{
if($_SERVER['REQUEST_URI'])
{
$url = $_SERVER['REQUEST_URI'];
}
elseif($_SERVER['REDIRECT_URL'])

{
if($_SERVER['REQUEST_URI'])
{
$url = $_SERVER['REQUEST_URI'];
}
elseif($_SERVER['REDIRECT_URL'])

	{

	{

		$url = $_SERVER['REDIRECT_URL'];
}
elseif($_SERVER['PATH_INFO'])
{
$url = $_SERVER['PATH_INFO'];

		$url = $_SERVER['REDIRECT_URL'];
}
elseif($_SERVER['PATH_INFO'])
{
$url = $_SERVER['PATH_INFO'];

	}

	}

	else
{
$url = $_SERVER['PHP_SELF'];
}
$base_url = $mybb->settings['bburl']."/archive/index.php/";
$endpart = my_substr(strrchr($url, "/"), 1);

	else
{
$url = $_SERVER['PHP_SELF'];
}
$base_url = $mybb->settings['bburl']."/archive/index.php/";
$endpart = my_substr(strrchr($url, "/"), 1);

 
}
else
{
$url = $_SERVER['QUERY_STRING'];
$base_url = $mybb->settings['bburl']."/archive/index.php?";
$endpart = $url;

}

$action = "index";

}

$action = "index";

Zeile 81Zeile 82
	$todo = explode("-", $endpart, 3);
if($todo[0])
{

	$todo = explode("-", $endpart, 3);
if($todo[0])
{

		$action = $todo[0];

		$action = $action2 = $todo[0];

	}
$page = intval($todo[2]);
$id = intval($todo[1]);

	}
$page = intval($todo[2]);
$id = intval($todo[1]);

Zeile 104Zeile 105
	}
elseif($action == "thread")
{

	}
elseif($action == "thread")
{

		$query = $db->simple_select("threads", "*", "tid='{$id}' AND visible='1' AND closed NOT LIKE 'moved|%'");

		$query = $db->simple_select("threads", "*", "tid='{$id}' AND closed NOT LIKE 'moved|%'");

		$thread = $db->fetch_array($query);
if(!$thread['tid'])
{

		$thread = $db->fetch_array($query);
if(!$thread['tid'])
{

Zeile 120Zeile 121
			$action = "404";
}
}

			$action = "404";
}
}

	else if($action != 'index')

	elseif($action != 'index')

	{
$action = "404";
}

	{
$action = "404";
}