403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Old Sites/moke/components/com_myrssreader/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Old Sites/moke/components/com_myrssreader/models/layout.php
<?php
/**
* @package      My RSS Reader
* @copyright    Copyright (C) 2010 FalsinSoft. All rights reserved.
* @license      GNU/GPL
* @website      http://falsinsoft.blogspot.com
* @email        falsinsoft@gmail.com
* 
*/

defined('_JEXEC') or die( 'Restricted access' );

jimport( 'joomla.application.component.model' );

class MyRSSReaderModelLayout extends JModel
{
	function showBlogStyle($rss_feeds_list, $layout)
	{
		$html = '';

		foreach($rss_feeds_list as $feed)
		{	
			$html .= $this->_insertFeedContent($feed, $layout);	
		}
		
		return $html;
	}
	
	function showExpandCollapseStyle($rss_feeds_list, $layout)
	{
		JHTML::_('script', 'slide_effect.js', 'components/com_myrssreader/js/');

		$i = 1;
		
		$html = '<ul id="vertical">';
		
		foreach($rss_feeds_list as $feed)
		{
			$html .= '<li>';
			$html .= '<span class="collapse-title" style="font-size:15px;"><a name="'.$i.'" href="#'.$i.'">'.$feed->title.'</a></span>';
			
			$html .= '<div class="collapse">';
			$html .= '<div class="collapse-container"><br>';
			$html .= $this->_insertFeedContent($feed, $layout);
			$html .= '</div>';
			$html .= '</div>';
			
			$html .= '</li>';

			$i++;
		}
		
		$html .= '</ul>';
		
		return $html;
	}
	
	function _insertFeedContent($feed, $layout)
	{
		$html = '<table class="rss_box">';
		$html .= '<tr class="rss_box_cell"><td class="rss_box_cell">';
		
		switch($layout->feed_title_link)
		{
			case 0:
				$html .= '<span class="rss_title">'.$feed->title.'</span>';
				break;
			case 1:
				$html .= '<a href="'.$feed->link.'" class="rss_title">'.$feed->title.'</a>';
				break;
			case 2:
				$html .= '<a href="'.$feed->link.'" target="_blank" class="rss_title">'.$feed->title.'</a>';
				break;
		}
		
		if($layout->show_rss_feed_source == 1)
		{
			$html .= '<br><span class="web_rss_title">'.$layout->label->source.':&nbsp;&nbsp;</span><a href="'.$feed->web_link.'" target="_blank" class="web_rss_title">'.$feed->web_title.'</a>';
		}
		if($layout->show_rss_feed_date == 1)
		{
			$html .= '<br><span class="web_rss_title">'.JHTML::_('date', $feed->feed_date, JText::_('DATE_FORMAT_LC2')).'</span>';
		}
		$html .= '<br><br>';
		if($layout->show_rss_feed_body == 1)
		{
			$html .= $feed->content;
		}
		$html .= '<br><br>';
		$html .= '</td></tr>';
		$html .= '</table><br>';
		
		return $html;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit