<?php
/**
 * @version $Header$
 *
 * @package blogs
 * @subpackage functions
 */

// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See below for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details.

/**
 * required setup
 */
require_once '../kernel/includes/setup_inc.php';

use Bitweaver\Blogs\BitBlog;
use Bitweaver\KernelTools;

if (!isset($_REQUEST["image_id"])) {
	$gBitSmarty->assign('msg', KernelTools::tra("No image id given"));
	$gBitSystem->display( 'error.tpl' , null, [ 'display_mode' => 'display' ]);
	die;
}

$imageInfo = BitBlog::getStoreFileInfo($_REQUEST["image_id"]);
$gBitSmarty->assign( 'imageInfo' , $imageInfo );
$gBitSystem->display( 'bitpackage:blogs/view_post_image.tpl' , null, [ 'display_mode' => 'display' ]);