setDebug(false);
$aal->setCache(true);
add_action('admin_menu', 'aal_settings');
register_activation_hook(__FILE__, array($aal, 'activationTasks'));
register_deactivation_hook(__FILE__, array($aal, 'deactivationTasks'));
function aal_settings()
{
add_options_page(__('Amazon Auto Linker', 'aal'), __('Amazon Auto Linker', 'aal'), 'manage_options', __FILE__, 'aal_settings_page');
}
function aal_settings_page()
{
global $wpdb, $aal;
?>
Updating keywords database...';
try {
$aal->setCurlTimeout(120);
$updated = $aal->fetchKeywordsFromUrl();
if ($updated) {
//clear cache
$aal->clearAllCaches();
echo '
Keywords database updated successfully!
';
} else {
echo '
Error occured while updating keywords database. Your current database is unchanged!
';
}
} catch (Exception $e) {
echo '
' . $e->getMessage() . '
';
}
echo '
Go Back';
return;
}
?>
getNews();
if (!empty($news)):
echo '
' . __('Latest News', 'aal') . '
';
echo $news;
endif;
?>
getDonationTexts();
if ($donate) {
echo "
" . __('Donate Us') . "
";
echo $donate;
}
?>
Plugin Home :: License
Copyright © Sebastia Hovsepian.
runCronJobs();
}