| Server IP : 195.130.67.5 / Your IP : 216.73.217.127 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 : /Old Sites/Engineering/V2/modules/mod_customcode/ |
Upload File : |
<?php
/*
* @package Custom Module for Joomla 1.5 from Joomlaspan.com. Based on mod_php from fijiwebdesign.
* @copyright Copyright (C) 2007 Joomlaspan.com/ Fijiwebdesign.com. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software.
* This extension is made for Joomla! 1.5;
** WE LOVE JOOMLA! **
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
if (!class_exists('modCustom')) {
class modCustom {
function parsePHPviaFile($custom) {
$tmpfname = tempnam("/tmp", "html");
$handle = fopen($tmpfname, "w");
fwrite($handle, $custom, strlen($custom));
fclose($handle);
include_once($tmpfname);
unlink($tmpfname);
}
}
}
$custcss = $params->get('js_custcss');
$custom_code = $params->get( 'custom_code' );
$parse_php = $params->get( 'parse_php' );
$custom_code = str_replace('<br />', '', $custom_code);
if ($custcss)
{
echo "<div style=\"" . $custcss . "\">\r\n";
}
if ($parse_php)
{
modCustom::parsePHPviaFile($custom_code);
} else {
echo $custom_code;
}
if ($custcss)
{
echo "</div>";
}
?>