-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgfxgen.php
46 lines (43 loc) · 1.27 KB
/
gfxgen.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
**********************
** BTManager v3.0.2 **
**********************
** http://www.btmanager.org/
** https://github.com/blackheart1/BTManager3.0.2
** http://demo.btmanager.org/index.php
** Licence Info: GPL
** Copyright (C) 2018
** Formerly Known As phpMyBitTorrent
** Created By Antonio Anzivino (aka DJ Echelon)
** And Joe Robertson (aka joeroberts/Black_Heart)
** Project Leaders: Black_Heart, Thor.
** File gfxgen.php 2018-09-22 00:00:00 Thor
**
** CHANGES
**
** 2018-09-22 - Updated Masthead, Github, !defined('IN_BTM')
**/
if (defined('IN_BTM'))
{
require_once($_SERVER['DOCUMENT_ROOT'].'/security.php');
die ("Error 404 - Page Not Found");
}
define("IN_BTM",true);
require_once("common.php");
$buffer = ob_get_clean();
if (function_exists('ob_gzhandler') && !ini_get('zlib.output_compression'))
ob_start('ob_gzhandler');
else
ob_start();
ob_implicit_flush(0);
$code = request_var('code', '');
$code = base64_decode($code);
$image = imagecreatefromjpeg("include/code_bg.jpg");
$text_color = imagecolorallocate($image, 80, 80, 80);
header("Content-type: image/jpeg");
imagestring ($image, 5, 12, 2, $code, $text_color);
imagejpeg($image, NULL, 75);
imagedestroy($image);
die();
?>