View', make_picture_url(array( 'image_id' => $image_id, 'category' => array( 'id' => $category['id'], 'name' => $category['name'], 'permalink' => $category['permalink'], ), )) ); unset($_POST); } } // categories $query = ' SELECT id, name, uppercats, global_rank FROM '.CATEGORIES_TABLE.' ;'; display_select_cat_wrapper($query, array(), 'category_parent_options'); // upload limit $upload_max_filesize = min( get_ini_size('upload_max_filesize'), get_ini_size('post_max_size') ); $upload_max_filesize_shorthand = ($upload_max_filesize == get_ini_size('upload_max_filesize')) ? get_ini_size('upload_max_filesize', false) : get_ini_size('post_max_filesize', false); if (!isset($_POST['safe_mode'])) { $_POST['safe_mode'] = !test_remote_download(); } // template $template->assign(array( 'upload_max_filesize' => $upload_max_filesize, 'upload_max_filesize_shorthand' => $upload_max_filesize_shorthand, 'gd_available' => function_exists('imagecreatetruecolor'), 'gvideo' => $conf['gvideo'], 'POST' => @$_POST, )); $template->set_filename('gvideo_content', realpath(GVIDEO_PATH . 'admin/template/add.tpl'));