Viewing file: ad.php (1.13 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
*
* @author Robert Johnston
*
* @package Forum Runner
* @version CVS/SVN: $Id: $
* @copyright (c) 2010 End of Time Studios, LLC
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
define('MCWD', (($getcwd = getcwd()) ? $getcwd : '.'));
chdir('../');
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
require_once(MCWD . '/include/general_phpbb.php');
$agent = strtolower($_SERVER['HTTP_USER_AGENT']);
if (strpos($agent, 'iphone') === false && strpos($agent, 'ipad') === false &&
strpos($agent, 'ipod') === false && strpos($agent, 'android') === false)
{
header('Location: '. str_replace('/forumrunner', '', generate_board_url()));
return;
}
$kw = $config['site_desc'];
print <<<EOF
<html><head><style>* {margin:0; padding:0;}</style></head><body>
<span style="display:none">$kw</span>
<center>
EOF;
print html_entity_decode(fr_get_config('fr_googleads_javascript'));
print <<<EOF
</center>
</body></html>
EOF;
?>
|