gc(); $_GET['path'] = empty($_GET['path'])?CONFIG_SYS_ROOT_PATH . "ajax_image_editor_demo.jpg":$_GET['path']; if (!empty($_GET['path']) && file_exists($_GET['path']) && is_file($_GET['path']) && isUnderRoot($_GET['path'])) { $path = $_GET['path']; }else { die(IMG_GEN_IMG_NOT_EXISTS); } require_once(CLASS_HISTORY); $history = new History($path, $session); if (CONFIG_SYS_DEMO_ENABLE) { $sessionImageInfo = $history->getLastestRestorable(); $originalSessionImageInfo = $history->getOriginalImage(); if (sizeof($originalSessionImageInfo)) { $path = backslashToSlash($session->getSessionDir() . $originalSessionImageInfo['info']['name']); } } require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "class.image.php"); $image = new Image(); $imageInfo = $image->getImageInfo($path); ?> Ajax Image Editor
Modes