mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 04:12:00 +02:00
Issue #73 secure_image_render.php moved to e107_images/secimg.php
This commit is contained in:
47
e107_images/secimg.php
Normal file
47
e107_images/secimg.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*/
|
||||
|
||||
/* Example Custom secure_image_custom.php file:
|
||||
<?php
|
||||
|
||||
$secureimg['image'] = "code_bg_custom"; // filename excluding the .ext
|
||||
$secureimg['size'] = "15";
|
||||
$secureimg['angle'] = "0";
|
||||
$secureimg['x'] = "6";
|
||||
$secureimg['y'] = "22";
|
||||
$secureimg['font'] = "imagecode.ttf";
|
||||
$secureimg['color'] = "90,90,90"; // red,green,blue
|
||||
|
||||
?>
|
||||
*/
|
||||
// error_reporting(E_ALL);
|
||||
define('e107_INIT', true);
|
||||
|
||||
define('e_BASE',realpath("..".DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR);
|
||||
@include(e_BASE.'e107_config.php');
|
||||
if(!isset($mySQLserver))
|
||||
{
|
||||
if(defined('e_DEBUG'))
|
||||
{
|
||||
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"));
|
||||
|
||||
$sim = new secure_image();
|
||||
|
||||
$sim->render($_SERVER['QUERY_STRING']);
|
||||
|
||||
exit;
|
||||
|
||||
?>
|
Reference in New Issue
Block a user