| Revision 8,
398 bytes
checked in by root, 19 years ago
(diff) |
|
new import
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | $include_dir = realpath(dirname( __FILE__)); |
|---|
| 4 | require_once($include_dir . "/../data/lib/gdthumb.php"); |
|---|
| 5 | require_once($include_dir . "/../data/conf/conf.php"); |
|---|
| 6 | |
|---|
| 7 | $objThumb = new gdthumb(); |
|---|
| 8 | |
|---|
| 9 | $file = $_GET["image"]; |
|---|
| 10 | if(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.