Vergleich global.php - 1.00 - 1.03

  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$

 * $Id: global.php 900 2005-11-18 03:31:58Z chris $

 */


 */


 
// This is a temporary patch put in place until 1.2 is released.
if((@ini_get("register_globals") || !@ini_get("gpc_order")) && (isset($_POST) || isset($_GET)))
{
foreach(array_keys($_GET+$_POST) as $key)
{
unset($$key);
}
}

require "./inc/init.php";

$groupscache = $cache->read("usergroups");

require "./inc/init.php";

$groupscache = $cache->read("usergroups");

Zeile 151Zeile 159
$templatelist .= "css,headerinclude,header,footer,gobutton,htmldoctype,header_welcomeblock_member,header_welcomeblock_guest,header_welcomeblock_member_admin";
$templatelist .= ",header_toplinks_weblogs,header_toplinks_gallery,header_toplinks_shoutbox,header_toplinks_arcade";
$templatelist .= ",nav,nav_sep,nav_bit,nav_sep_active,nav_bit_active";

$templatelist .= "css,headerinclude,header,footer,gobutton,htmldoctype,header_welcomeblock_member,header_welcomeblock_guest,header_welcomeblock_member_admin";
$templatelist .= ",header_toplinks_weblogs,header_toplinks_gallery,header_toplinks_shoutbox,header_toplinks_arcade";
$templatelist .= ",nav,nav_sep,nav_bit,nav_sep_active,nav_bit_active";

 
$templatelist = addslashes($templatelist);

$templates->cache($templatelist);

$datenow = mydate($mybb->settings['dateformat'], time(), '', false);

$templates->cache($templatelist);

$datenow = mydate($mybb->settings['dateformat'], time(), '', false);

Zeile 310Zeile 319
// Referrals system
if(!$mybb->user['uid'] && $mybb->settings['usereferrals'] == "yes" && intval($mybb->input['referrer']) > 0 && !$_COOKIE['mybb']['referrer'])
{

// Referrals system
if(!$mybb->user['uid'] && $mybb->settings['usereferrals'] == "yes" && intval($mybb->input['referrer']) > 0 && !$_COOKIE['mybb']['referrer'])
{

	$query = $db->query("SELECT * FROM ".TABLE_PREFIX."users WHERE uid='".$mybb->input['referrer']."'");

	$query = $db->query("SELECT * FROM ".TABLE_PREFIX."users WHERE uid='".intval($mybb->input['referrer'])."'");

	$referrer = $db->fetch_array($query);
if($referrer['uid'])
{

	$referrer = $db->fetch_array($query);
if($referrer['uid'])
{