Zeile 30 | Zeile 30 |
---|
$sub_tabs['credits_about'] = array( 'title' => $lang->about_the_team,
|
$sub_tabs['credits_about'] = array( 'title' => $lang->about_the_team,
|
'link' => "http://www.mybb.com/about/team",
| 'link' => "https://mybb.com/about/team",
|
'link_target' => "_blank", );
| 'link_target' => "_blank", );
|
Zeile 45 | Zeile 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 );
require_once MYBB_ROOT."inc/class_xml.php";
|
{ $new_mybb_credits = array( 'last_check' => TIME_NOW );
require_once MYBB_ROOT."inc/class_xml.php";
|
$contents = fetch_remote_file("http://www.mybb.com/mybb_team.xml");
| $contents = fetch_remote_file("https://mybb.com/mybb_team.xml");
|
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 88 | Zeile 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&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'])))
|