fixed some erros

This commit is contained in:
root committed 2017-06-29 06:34:13 -04:00
1 parent 78c93db0fa
commit b879aae8e2
3 files changed
+73 -1

No files matched your search

+7 -1
View File
@@ -1,7 +1,13 @@
<?php
if ((isset($_GET['id']) && is_numeric($_GET['id'])) === FALSE) die;
if (!function_exists('getimagesizefromstring')) {
function getimagesizefromstring($string_data)
{
$uri = 'data://application/octet-stream;base64,' . base64_encode($string_data);
return getimagesize($uri);
}
}
include "images.php";
$imageId = $_GET['id'];
$image = Images::GetImage($imageId);