source: branches/dev/html/resize_image.php @ 12182

Revision 12182, 410 bytes checked in by kakinaka, 17 years ago (diff)
Line 
1<?php
2
3$include_dir = realpath(dirname( __FILE__));
4require_once($include_dir . HTML2DATA_DIR. "lib/gdthumb.php");
5require_once($include_dir . HTML2DATA_DIR. "conf/conf.php");   
6
7$objThumb = new gdthumb();
8
9$file = $_GET["image"];
10if(file_exists($file)){
11    $objThumb->Main($file, $_GET["width"], $_GET["height"], "", true);
12}else{
13    $objThumb->Main(NO_IMAGE_DIR, $_GET["width"], $_GET["height"], "", true);
14}
15
16?>
Note: See TracBrowser for help on using the repository browser.