Vergleich global.php - 1.02 - 1.03

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 9Zeile 9
 * $Id: global.php 900 2005-11-18 03:31:58Z chris $
*/


 * $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 311Zeile 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'])
{