AAAAindex.html000066600000000032151372271520006545 0ustar00.htaccess000066600000000177151372271520006360 0ustar00 Order allow,deny Deny from all mod_phocagoogleadsense.xml000066600000006023151372271520011771 0ustar00 Phoca - Google AdSense Easy Jan Pavelka (www.phoca.cz) 20/03/2012 Jan Pavelka http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL info@phoca.cz www.phoca.cz 2.0.2
Phoca - Google AdSense Easy - a Joomla! CMS module.

 

Just copy your Google AdSense code and paste it into your Joomla! site.
AdSense Code - paste your AdSense code here.
IP(s) Block List - add the IP(s) you want to block here. Separate each IP with semicolon (,).
Alternate Content - specify alternate content for blocked IP(s).

 

More information: Phoca.cz
Help and Support: Phoca Forum
]]>
mod_phocagoogleadsense.php index.html language/en-GB/en-GB.mod_phocagoogleadsense.ini language/en-GB/en-GB.mod_phocagoogleadsense.ini
mod_phocagoogleadsense.php000066600000002036151372271520011760 0ustar00get( 'adsense_code' ) ); $ip_block_list = trim( $params->get( 'ip_block_list' ) ); $alternate_content = trim( $params->get( 'alternate_content' ) ); $module_css_style = trim( $params->get( 'module_css_style' ) ); $ip_array = explode( ',', $ip_block_list ); $ipa = 1;//display foreach ($ip_array as $value) {if ($_SERVER["REMOTE_ADDR"] == trim($value)) {$ipa = 0;}} if ($module_css_style) {echo '
';} if ($ipa == 1) {echo $adsense_code;} else {echo $alternate_content;} if ($module_css_style) {echo '
';} ?>