* refactored the tsPage::[get|set]Request to tsUrl::[get|set]Request
[vsc.git] / img2.php
blobea28ff8c7cea9d7a014d0e92bfda14d53ee50cf1
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 = tsUrl::getRequest('id');
14 $resizeW = tsUrl::getRequest('w');
15 $resizeH = tsUrl::getRequest('h');
17 $a = new tsImage2 ( tsImage2::getPath ($id) );
18 $a->testPath (tsImage2::getPath ($id));
19 //if (!empty($resizeH) && !empty($resizeW))
20 // $a->resize($resizeW,$resizeH);
21 $a->dispatch ();
22 echo "\n".'(c) HabarNam - 2006';
23 //echo $a->debug();