Source for file ajax_attachment_browser.php
Documentation is available at ajax_attachment_browser.php
require_once( '../kernel/setup_inc.php' );
global $gContent, $gBitSmarty;
if( isset ( $_REQUEST['content_id'] )) {
$gContent->mContentId = $_REQUEST['content_id'];
$gBitSmarty->assign( 'attachmentBrowser', TRUE );
include_once( LIBERTY_PKG_PATH. 'attachment_browser.php' );
if( isset ( $_REQUEST['json'] )){
header( 'Content-type:application/json' );
$gBitSmarty->display( 'bitpackage:liberty/attachment_browser_json.tpl' );
echo $gBitSmarty->fetch( 'bitpackage:liberty/attachment_browser.tpl' );
|