function ctrl_process_image() { include_lib('image_processing/image_processing.php'); $imageP = new ImageProcessing(); $preset = param(1); if (param(2)=='ext') { $file = 'http://'.param(3); } else { $file = cfg('projects_dir').param(2).'/'.param(3); } $imageP->show($file,$preset); }