Mister Spy Say ="Hello Kids ... :D"
___ ____ _ _____
| \/ (_) | | / ___|
| . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _
| |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | |
| | | | \__ \ || __/ | /\__/ / |_) | |_| |
\_| |_/_|___/\__\___|_| \____/| .__/ \__, |
| | __/ |
|_| |___/
Bot Mister Spy V3
Mister Spy
Mister Spy
<?php
/**
* CommonPlugin for phplist
*
* This file is a part of CommonPlugin.
*
* @category phplist
* @package CommonPlugin
* @author Duncan Cameron
* @copyright 2011-2014 Duncan Cameron
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, Version 3
*/
/**
* This page serves plugin images
*
*/
function CommonPlugin_ServeImage($image)
{
$defaultExpire = 604800;
$filepath = dirname(__FILE__) . '/images/' . basename($image);
if (!file_exists($filepath)) {
header('HTTP/1.0 404 Not Found');
return;
}
$mtime = new DateTime('@' . filemtime($filepath));
$expiry = new DateTime();
$expiry->add(new DateInterval('PT' . $defaultExpire . 'S'));
header('Expires: ' . $expiry->format(DateTime::RFC1123));
header("Cache-Control: max-age=$defaultExpire");
header('Last-Modified: ' . $mtime->format(DateTime::RFC1123));
header('Pragma:');
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
$since = new DateTime($_SERVER['HTTP_IF_MODIFIED_SINCE']);
if ($mtime <= $since) {
header('HTTP/1.1 304 Not Modified');
return;
}
}
$ext = pathinfo($filepath, PATHINFO_EXTENSION);
$cTypes = array(
'png' => 'png',
'gif' => 'gif',
'jpg' => 'jpeg',
'jpeg' => 'jpeg',
'bmp' => 'bmp'
);
$type = isset($cTypes[$ext]) ? $cTypes[$ext] : 'jpeg';
header("Content-type: image/$type");
header('Content-Length: ' . filesize($filepath));
readfile($filepath);
}
ob_end_clean();
CommonPlugin_ServeImage($_GET['image']);
exit;
Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat