Vergleich admin/modules/home/credits.php - 1.8.3 - 1.8.6

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

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&amp;fetch_new=-1');
}

	}

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

	}

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