1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 11:36:08 +02:00

Issue #1356 - Secure Image now using sessions and working with PHP 7.0.3

This commit is contained in:
Cameron
2016-02-26 11:54:57 -08:00
parent ffa8c41846
commit d295a434c3
3 changed files with 78 additions and 94 deletions

View File

@@ -22,8 +22,13 @@
?>
*/
// error_reporting(E_ALL);
define('e107_INIT', true);
// define('e107_INIT', true);
$_E107['no_online'] = true;
$_E107['no_forceuserupdate'] = true;
$_E107['no_menus'] = true;
require_once("../class2.php");
/*
define('e_BASE',realpath("..".DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR);
@include(e_BASE.'e107_config.php');
if(!isset($mySQLserver))
@@ -33,11 +38,13 @@ if(!isset($mySQLserver))
echo "FAILED TO LOAD ".e_BASE."e107_config.php in secimg.php";
}
exit;
}
}*/
require_once(realpath(e_BASE.$HANDLERS_DIRECTORY.DIRECTORY_SEPARATOR."secure_img_handler.php"));
require_once(e_HANDLER."secure_img_handler.php");
$sim = new secure_image();
if(!isset($_GET['id']))
@@ -56,6 +63,7 @@ else
$color = "cccccc";
}
$sim->render($code,$color);
exit;