* modified the admin folder to be able to use a pseudo cascading of the resources...
[vsc.git] / img2.php
blob18a702d0aa5932c032dab0fd27b3557c1701b495
1 <?php
2 error_reporting(~E_ALL);
3 /**
4 * the file that outputs the images
5 * incoming variables:
6 * @ themeName _GET
7 */
8 ob_start();
9 require ('config.inc.php');
10 require (LIB_PATH.'functions.inc.php');
12 $imgDir = 'pics';
13 $id = tsPage::getRequest('id');
14 $resizeW = tsPage::getRequest('w');
15 $resizeH = tsPage::getRequest('h');
17 ob_end_clean();
18 $a = new tsImage2(GALLERY_PATH.$imgDir.DIRECTORY_SEPARATOR.$id);
19 //$a->testPath('./pics/'.$id);
20 $a->resize($resizeW,$resizeH);
21 $a->parse();
22 //echo "\n".'(c) HabarNam - 2006'
23 //echo $a->debug();