* modifications of main page templates
[vsc.git] / img2.php
blobf0ce6ff9d2fa99728e4bec87195690c4a3830ce0
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 $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();