コード例 #1
0
    $type = $params->get('type', '');
    $twitter_timeline = $params->get('twitter_timeline', 'user');
    if ($type == 'rss' || $type == 'twitter' && $twitter_timeline == 'search') {
        require_once dirname(__FILE__) . '/helpers/rss.php';
        $content = modAjaxScrollerRssHelper::get($moduleid, $params);
    } else {
        if ($type == 'twitter') {
            require_once dirname(__FILE__) . '/helpers/twitter.php';
            $content = modAjaxScrollerTwitterHelper::get($moduleid, $params);
        } else {
            if ($type == 'banners') {
                require_once dirname(__FILE__) . '/helpers/banners.php';
                $content = modAjaxScrollerBannersHelper::get($moduleid, $params);
            } else {
                require_once dirname(__FILE__) . '/helpers/content.php';
                $content = modAjaxScrollerContentHelper::get($moduleid, $params);
            }
        }
    }
    if (!defined('_ISO')) {
        define('_ISO', 'charset=utf-8');
    }
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    header("Content-Type: text/html; " . _ISO);
    echo $content;
    exit(1);
}
// no direct access
コード例 #2
0
ファイル: content.php プロジェクト: atikahmed/joomla-probid
 function fetch_content($moduleid, $params, $current_id, $direction)
 {
     return modAjaxScrollerContentHelper::fetch_content($moduleid, $params, $current_id, $direction);
 }