Your IP : 172.28.240.42


Current Path : /var/www/html/clients/kampol.e-nk.ru/modules/mod_html/
Upload File :
Current File : /var/www/html/clients/kampol.e-nk.ru/modules/mod_html/mod_html.php

<?php
/*
* mod_html allows inclusion of HTML/JS/CSS and now PHP, in Joomla/Mambo Modules
* @copyright (c) Copyright: Fiji Web Design, www.fijiwebdesign.com.
* @author gabe@fijiwebdesign.com 
* @date June 17, 2008
* @package Joomla1.5
*/

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

// mod_html version
$ver = '1.0.0.Alpha1-J1.5';

// get module parameters
$php = $params->get( 'php' );
$eval_php = $params->get( 'eval_php' );
$discovery = $params->get( 'discovery' );

// remove annoying <br /> tags from module parameter
$php = str_replace('<br />', '', $php);

// show that site uses mod_html
$debug = $discovery ? JRequest::getVar('debug') : false;
if ($discovery) {
	echo "\r\n<!-- /mod_html version $ver (c) www.fijiwebdesign.com -->\r\n";
}
if ($debug == 'mod_html') {
	echo '<div style="border:1px solid red;padding:6px;">';
	echo '<div style="color:red;font-weight:bold;">Mod PHP</div>';
}

// evaluate the PHP code
if ($eval_php) {
	eval("\r\n?>\r\n ".$php."\r\n<?php\r\n");
} else {
	echo $php;
}

// end show site uses mod_html
if ($debug == 'mod_html') {
	echo '</div>';
}
if ($discovery) {
	echo "\r\n<!-- mod_html version $ver/ -->\r\n";
}

?>