| Server IP : 104.21.21.239 / Your IP : 216.73.217.139 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/banners/public_html/bway/ |
Upload File : |
<?php
require_once __DIR__ . '/db/mysql_bootstrap.php';
ignore_user_abort(true);
// turn off gzip compression
if ( function_exists( 'apache_setenv' ) ) {
apache_setenv( 'no-gzip', 1 );
}
ini_set('zlib.output_compression', 0);
// turn on output buffering if necessary
if (ob_get_level() == 0) {
ob_start();
}
// removing any content encoding like gzip etc.
header('Content-encoding: none', true);
// return 1x1 pixel transparent gif
header("Content-type: image/gif");
// needed to avoid cache time on browser side
header("Content-Length: 42");
header("Cache-Control: private, no-cache, no-cache=Set-Cookie, proxy-revalidate");
header("Expires: Wed, 11 Jan 2000 12:59:00 GMT");
header("Last-Modified: Wed, 11 Jan 2006 12:59:00 GMT");
header("Pragma: no-cache");
echo sprintf(
'%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c',
71,73,70,56,57,97,1,0,1,0,128,255,0,192,192,192,0,0,0,33,249,4,1,0,0,0,0,44,0,0,0,0,1,0,1,0,0,2,2,68,1,0,59
);
// flush all output buffers. No reason to make the user wait for OWA.
ob_flush();
flush();
ob_end_flush();
if(!defined('DEBUG')) define('DEBUG', false);
if (DEBUG) ini_set('error_reporting',2047);
/**
* Define Databases
*/
if(!defined('BWAY_BWW_DB')) define('BWAY_BWW_DB', '`bway_bww`');
if(!defined('BWAY_BWDB_DB')) define('BWAY_BWDB_DB', '`bway_bwdb`');
/**
* Database settings
* @var string
*/
function isSearchEngine()
{
$searchengines = array(
'Googlebot',
'Slurp',
'search.msn.com',
'nutch',
'simpy',
'bot',
'ASPSeek',
'crawler',
'msnbot',
'Libwww-perl',
'FAST',
'Baidu',
);
$is_se = false;
foreach ($searchengines as $searchengine){
if (!empty($_SERVER['HTTP_USER_AGENT']) and
false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), strtolower($searchengine)))
{
$is_se = true;
break;
}
}
if ($is_se) { return true; }
else {return false;}
}
try {
if(!isSearchEngine())
{
if(isset($_REQUEST['colid']) && ($_REQUEST['colid']>2055002))
{
$today = date("Y-m-d");
$colid = intval($_REQUEST['colid']);
$link = mysqli_init();
$flags = mysqlConfigureMysqliTls($link);
mysqli_real_connect($link, 'amazonaurora.cluster-cemzxojvmybt.us-east-1.rds.amazonaws.com', 'admin', 'xxatN6Lb8Kbwb9MiU1At', null, null, null, $flags);
$GLOBALS["___mysqli_ston"] = $link;
((bool)mysqli_query($GLOBALS["___mysqli_ston"], "USE amazonrds")) or die( "Unable to select database");
mysqli_set_charset($link, "utf8");
$sql = "insert delayed into bway_bww.columntrack (photoid,datef) values(".$colid.",'$today')";
$result=mysqli_query( $link, $sql);
}
}
} catch (Exception $e) {
// Silently fail - pixel already served, DB tracking is non-critical
} ?>