Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Loader)
- *
- * @ Version : 2.0.0.4
- * @ Author : DeZender
- * @ Release on : 21.10.2015
- * @ Official site : http://DeZender.Net
- *
- */
- function is_alpha($c) {
- $alpha = $c >> 24 & 255;
- return $alpha == 127 ? (true) : (false);
- }
- function escanear($imagem) {
- $e = array("x" => array("left" => 0, "right" => 0), "y" => array("top" => 0, "bottom" => 0));
- $left = 0;
- $x = 0;
- while ($x < imagesx($imagem))
- {
- $__x = true;
- $y = 0;
- while ($y < imagesy($imagem))
- {
- $pixel = imagecolorat($imagem, $x, $y);
- $__x = !is_alpha($pixel) ? (false) : ($__x);
- $y++;
- continue;
- }
- if ($__x)
- {
- $left++;
- }
- else
- {
- break;
- }
- $x++;
- continue;
- }
- $e["x"]["left"] = $left;
- $right = 0;
- $x = imagesx($imagem) - 1;
- while (0 <= $x)
- {
- $__x = true;
- $y = 0;
- while ($y < imagesy($imagem))
- {
- $pixel = imagecolorat($imagem, $x, $y);
- $__x = !is_alpha($pixel) ? (false) : ($__x);
- $y++;
- continue;
- }
- if ($__x)
- {
- $right++;
- }
- else
- {
- break;
- }
- $x--;
- continue;
- }
- $e["x"]["right"] = $right;
- $top = 0;
- $y = 0;
- while ($y < imagesy($imagem))
- {
- $__y = true;
- $x = 0;
- while ($x < imagesx($imagem))
- {
- $pixel = imagecolorat($imagem, $x, $y);
- $__y = !is_alpha($pixel) ? (false) : ($__y);
- $x++;
- continue;
- }
- if ($__y)
- {
- $top++;
- }
- else
- {
- break;
- }
- $y++;
- continue;
- }
- $e["y"]["top"] = $top;
- $bottom = 0;
- $y = imagesy($imagem) - 1;
- while (0 <= $y)
- {
- $__y = true;
- $x = 0;
- while ($x < imagesx($imagem))
- {
- $pixel = imagecolorat($imagem, $x, $y);
- $__y = !is_alpha($pixel) ? (false) : ($__y);
- $x++;
- continue;
- }
- if ($__y)
- {
- $bottom++;
- }
- else
- {
- break;
- }
- $y--;
- continue;
- }
- $e["y"]["bottom"] = $bottom;
- return $e;
- }
- if (eregi('' . "^[0-9]+\$", $_GET["h"]) || eregi('' . "^[0-9]+\$", $_GET["b"]) || eregi('' . "^[0-9]+\$", $_GET["g"]) || eregi('' . "^[0-9]+\$", $_GET["f"]) || eregi('' . "^[0-9]+\$", $_GET["ex"]))
- {
- $width = 0;
- $height = 0;
- $left = 0;
- $top = 0;
- if (($ex = @imagecreatefrompng('' . "images/" . $_GET["ex"] . ".png")))
- {
- .......................................................................................
- ............................................
- ...............
Advertisement
Add Comment
Please, Sign In to add comment