Vergleich admin/modules/home/credits.php - 1.8.1 - 1.8.4

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 45Zeile 45

$mybb_credits = $cache->read('mybb_credits');



$mybb_credits = $cache->read('mybb_credits');


	if($mybb->get_input('fetch_new', 1) == 1 || $mybb->get_input('fetch_new', 1) == -2 || ($mybb->get_input('fetch_new', 1) != -1 && (!is_array($mybb_credits) || $mybb_credits['last_check'] <= TIME_NOW - 60*60*24*14)))

	if($mybb->get_input('fetch_new', MyBB::INPUT_INT) == 1 || $mybb->get_input('fetch_new', MyBB::INPUT_INT) == -2 || ($mybb->get_input('fetch_new', MyBB::INPUT_INT) != -1 && (!is_array($mybb_credits) || $mybb_credits['last_check'] <= TIME_NOW - 60*60*24*14)))

	{
$new_mybb_credits = array(
'last_check' => TIME_NOW

	{
$new_mybb_credits = array(
'last_check' => TIME_NOW

Zeile 57Zeile 57
		if(!$contents)
{
flash_message($lang->error_communication, 'error');

		if(!$contents)
{
flash_message($lang->error_communication, 'error');

			if($mybb->get_input('fetch_new', 1) == -2)

			if($mybb->get_input('fetch_new', MyBB::INPUT_INT) == -2)

			{
admin_redirect('index.php?module=tools-cache');
}

			{
admin_redirect('index.php?module=tools-cache');
}

			admin_redirect('index.php?module=home-credits&amp;fetch_new=-1');

			admin_redirect('index.php?module=home-credits');

		}

$parser = new XMLParser($contents);

		}

$parser = new XMLParser($contents);

Zeile 73Zeile 73
			foreach($team['member'] as $member)
{
$members[] = array(

			foreach($team['member'] as $member)
{
$members[] = array(

					'name' => $member['name']['value'],
'username' => $member['username']['value'],
'profile' => $member['profile']['value'],
'lead' => (bool) $member['attributes']['lead'] or false

					'name' => htmlspecialchars_uni($member['name']['value']),
'username' => htmlspecialchars_uni($member['username']['value']),
'profile' => htmlspecialchars_uni($member['profile']['value']),
'lead' => (bool)$member['attributes']['lead'] or false

				);
}
$mybbgroup[] = array(

				);
}
$mybbgroup[] = array(

				'title' => $team['attributes']['title'],

				'title' => htmlspecialchars_uni($team['attributes']['title']),

				'members' => $members
);
}

				'members' => $members
);
}

Zeile 88Zeile 88

$cache->update('mybb_credits', $new_mybb_credits);



$cache->update('mybb_credits', $new_mybb_credits);


		if($mybb->get_input('fetch_new', 1) == -2)

		if($mybb->get_input('fetch_new', MyBB::INPUT_INT) == -2)

		{
$lang->load('tools_cache');

		{
$lang->load('tools_cache');

			flash_message($lang->success_cache_reloaded, 'sucess');

			flash_message($lang->success_cache_reloaded, 'success');

			admin_redirect('index.php?module=tools-cache');
}

			admin_redirect('index.php?module=tools-cache');
}

		$mybb_credits = $new_mybb_credits;





		else
{
flash_message($lang->success_credits_updated, 'success');
admin_redirect('index.php?module=home-credits');
}

	}

if(empty($mybb_credits) || (is_array($mybb_credits) && empty($mybb_credits['credits'])))

	}

if(empty($mybb_credits) || (is_array($mybb_credits) && empty($mybb_credits['credits'])))