git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7522 b9a71923-0436-4b27-9f14-aed3839534dd

This commit is contained in:
rGaillard
2011-07-06 10:10:43 +00:00
parent 9ff675b1e2
commit 69f2f09dc5
4695 changed files with 0 additions and 339293 deletions
@@ -1,35 +0,0 @@
<?php
require_once('../../config/config.inc.php');
require_once('../init.php');
/**
* ajax preview
* @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn)
* @link www.phpletter.com
* @since 22/April/2007
*
*/
include_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php");
if(!empty($_GET['path']) && file_exists($_GET['path']) && is_file($_GET['path']))
{
include_once(CLASS_IMAGE);
$image = new Image(true);
if($image->loadImage($_GET['path']))
{
if($image->resize(CONFIG_IMG_THUMBNAIL_MAX_X, CONFIG_IMG_THUMBNAIL_MAX_Y, true, true))
{
$image->showImage();
}else
{
echo PREVIEW_NOT_PREVIEW . ".";
}
}else
{
echo PREVIEW_NOT_PREVIEW . "..";
}
}else
{
echo PREVIEW_NOT_PREVIEW . "...";
}