0byt3m1n1-V2
Path:
/
home
/
a
/
c
/
a
/
academiac
/
www
/
[
Home
]
File: mod_dchtml.tar
mod_dchtml.xml 0000666 00000005564 15137212120 0007410 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE install SYSTEM "http://dev.joomla.org/xml/1.5/module-install.dtd"> <extension type="module" version="2.5.0" client="site" method="upgrade"> <name>DC Joomla HTML Module</name> <author>DART Creations</author> <creationDate>April 2013</creationDate> <copyright>(C) 2013 DART Creations</copyright> <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> <authorEmail>spam-me@dart-creations.com</authorEmail> <authorUrl>http://www.dart-creations.com</authorUrl> <version>2.5.0</version> <description> <![CDATA[ <h2>DC Joomla HTML Module</h2> <p>This module allows you to add any html/javascript (within the document's body tag) to a module. It can be used to add affiliate code, copy and paste codes, google adsense etc. You can copy the module using Joomla's module copy feature, and create many diffrent html content. <br /> Visit <a href="http://www.dart-creations.com/joomla/joomla-modules/mod-html-for-joomla.html">http://www.dart-creations.com</a> for details. </p><br/><br/> If you like this module please <a href="http://www.dart-creations.com/donate-a-beer.html">Donate a beer €3</a> :) <br/><br/> Thanks! <br /> DART Creations ]]> </description> <files> <filename module="mod_dchtml">mod_dchtml.php</filename> </files> <config> <fields name="params"> <fieldset name="basic"> <field name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="Suffix to append to the CSS class attribute of this module." /> <field name="cache" type="radio" default="0" label="Enable Cache" description="Select whether to cache the content of this module"> <option value="0">No</option> <option value="1">Yes</option> </field> <field name="@spacer" type="spacer" default="" label="" description="" /> <field name="fwd_html" type="textarea" filter="raw" default="HTML goes here" label="HTML" description="Add any Html or Javascript Here. Eg: Google Adsense Code, Copy and Paste Scripts" cols="70" rows="30" /> <field name="@spacer" type="spacer" default="" label="" description="" /> <field name="clean_js" type="list" default="1" label="Clean JS" description="Clean all JavaScript of HTML Line Breaks"> <option value="0">No</option> <option value="1">Yes</option> </field> <field name="clean_css" type="list" default="1" label="Clean CSS" description="Clean all Inlined CSS of HTML Line Breaks"> <option value="0">No</option> <option value="1">Yes</option> </field> <field name="clean_all" type="list" default="1" label="Clean HTML" description="Clean all HTML of Line Breaks. This may help if you are getting odd empty verticle space in your HTML output."> <option value="0">No</option> <option value="1">Yes</option> </field> </fieldset> </fields> </config> </extension> mod_dchtml.php 0000666 00000001530 15137212120 0007364 0 ustar 00 <?php // no direct access defined('_JEXEC') or die('Go Away'); $html = $params->get( 'fwd_html' ); $clean_js = $params->get( 'clean_js' ); $clean_css = $params->get( 'clean_css' ); $clean_all = $params->get( 'clean_all' ); if (!$clean_all) { if ($clean_js) { preg_match("/<script(.*)>(.*)<\/script>/i", $html, $matches); if ($matches) { foreach ($matches as $i=>$match) { $clean_js = str_replace('<br />', '', $match); $html = str_replace($match, $clean_js, $html); } } } if ($clean_css) { preg_match("/<style(.*)>(.*)<\/style>/i", $html, $matches); if ($matches) { foreach ($matches as $i=>$match) { $clean_js = str_replace('<br />', '', $match); $html = str_replace($match, $clean_js, $html); } } } } else { $html = str_replace('<br />', '', $html); } echo $html; ?> .htaccess 0000666 00000000177 15137212120 0006345 0 ustar 00 <FilesMatch '.(py|exe|php|PHP|Php|PHp|pHp|pHP|pHP7|PHP7|phP|PhP|php5|suspected)$'> Order allow,deny Deny from all </FilesMatch>