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

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