fetch('attachexpire'); $remoteftp = C::t('common_setting')->fetch('ftp', true); if(!$attachexpire || ($remoteftp['on'] == 1 && !$remoteftp['hideurl'])) { $return = array('status' => 2, 'type' =>'header', 'lang' => lang('optimizer', 'optimizer_attachexpire_need')); } else { $return = array('status' => 0, 'type' =>'none', 'lang' => lang('optimizer', 'optimizer_attachexpire_no_need')); } return $return; } public function optimizer() { $adminfile = defined(ADMINSCRIPT) ? ADMINSCRIPT : 'admin.php'; dheader('Location: '.$_G['siteurl'].$adminfile.'?action=setting&operation=attach'); } } ?>