Rev | Line | |
---|
[8] | 1 | <?php |
---|
| 2 | |
---|
| 3 | $include_dir = realpath(dirname( __FILE__)); |
---|
[12194] | 4 | require_once($include_dir . "/define.php"); |
---|
| 5 | |
---|
[12182] | 6 | require_once($include_dir . HTML2DATA_DIR. "lib/gdthumb.php"); |
---|
| 7 | require_once($include_dir . HTML2DATA_DIR. "conf/conf.php"); |
---|
[8] | 8 | |
---|
| 9 | $objThumb = new gdthumb(); |
---|
| 10 | |
---|
| 11 | $file = $_GET["image"]; |
---|
| 12 | if(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 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.