mContext->mUser->isInRole('Site.GuestUser')) { exit('

guest user is not allowed to access this page!!

'); } $uuid = $root->mContext->mRequest->getRequest('uuid'); if (!isGUID($uuid)) exit('

bad asset uuid!! ('.htmlspecialchars($uuid).')

'); $xsize = $root->mContext->mRequest->getRequest('xsize'); if (!isNumeric($xsize, true)) exit('

bad xsize!! ('.htmlspecialchars($xsize).')

'); $ysize = $root->mContext->mRequest->getRequest('ysize'); if (!isNumeric($ysize, true)) exit('

bad ysize!! ('.htmlspecialchars($ysize).')

'); $prog = env_get_config('image_processor_jp2'); //$path = env_get_config('image_processor_path'); $cache = CMS_MODULE_PATH.'/helper/texture_cache'; $ret = opensim_display_texture_data($uuid, $prog, $xsize, $ysize, $cache, true); if (!$ret) exit(); ?>