<?php if (!defined('BASEPATH')) { exit('No direct script access allowed'); } $CI =& get_instance(); $options = mso_get_option('samborsky_feedburner_count', 'plugins', array()); if ($post = mso_check_post(array('submit_set_default'))) { mso_checkreferer(); feedburner_count_set_default(); $options = mso_get_option('samborsky_feedburner_count', 'plugins', array()); } else { if ($post = mso_check_post(array('submit', 'feed_name', 'update_interval', 'template'))) { mso_checkreferer(); $options = mso_get_option('samborsky_feedburner_count', 'plugins', array()); $options['feed_name'] = $_POST['feed_name']; $options['update_interval'] = $_POST['update_interval']; $options['template'] = base64_encode($_POST['template']); $options['last_update'] = 0; $options['count'] = 'n/a'; mso_add_option('samborsky_feedburner_count', $options, 'plugins'); } } if ($options['template']) { $options['template'] = base64_decode($options['template']); } ?> <h1>Настройка FeedBurner Count от <a href="http://www.samborsky.com/">samborsky.com</a></h1> Здравствуйте, последний раз счетчик обновлялся <strong><?php echo $options['last_update'] ? round((time() - $options['last_update']) / 60) . ' мин. назад' : 'Еще не обновлялся'; ?>
function feedburner_count_activate($args) { feedburner_count_set_default(); return $args; }