Example #1
0
     save_category();
     break;
 case 'saveedit':
     save_category(1);
     break;
 case 'opencat':
     category_status('open');
     break;
 case 'closecat':
     category_status('close');
     break;
 case 'new':
     images_form(0);
     break;
 case 'resize':
     resize_images();
     break;
 case 'edit':
     edit_image();
     break;
 case 'update':
     update_image();
     break;
 case 'delete':
     delete_image();
     break;
 case 'thumbs':
     update_thumbnails();
     break;
 default:
     show_images();
$d['h'] = clean_up_data($_GET['h']);
$d['crop_style'] = clean_up_data($_GET['crop_style']);
$d['image_id'] = clean_up_data($_GET['image_id']);
$d['av_image_id'] = clean_up_data($_GET['av_image_id']);
$d['av_type'] = clean_up_data($_GET['av_type']);
$d['image_func'] = clean_up_data($_GET['image_func']);
//pray($_GET);
//pray($d);
/**
* make sure there are images to be resized
* the conditional is used for testing gd and imagemagick functions
* but normally resize_images() is the only function call you need.
*/
$img_urls = "";
$av_img_urls = "";
$img_urls = resize_images($d['image_id']);
$av_img_urls = resize_av_images($d['av_image_id']);
$str = " img_urls: [" . $img_urls . "]";
// echo $str;
echo $img_urls . ":" . $av_img_urls;
echo ":";
pray($_GET);
/**
* removes any tags that might have been passed in
*/
function clean_up_data($val)
{
    $clean_val = strip_tags($val);
    return $clean_val;
}
/**