perm_check('download_video',true); $pages->page_redir(); $key = $cbphoto->decode_key($_GET['download']); if(empty($key)) header("location:".BASEURL); else { $cbphoto->download_photo($key); } display_it(); ?>