Source for file attachments.php
Documentation is available at attachments.php
* @author spider <spider@steelsun.com>
require_once("../kernel/setup_inc.php");
if( !$gBitUser->isRegistered() ) {
$gBitSystem->fatalError( tra( 'You need to be logged in to view this page.' ));
if( !empty( $listHash['login'] ) && $listHash['login'] == 'all' ) {
$listHash['user_id'] = NULL;
} elseif( !empty( $listHash['login'] ) ) {
if( $userInfo = $gBitUser->getUserInfo( array( 'login' => $listHash['login'] ) ) ) {
$listHash['user_id'] = $userInfo['user_id'];
$feedback['error'] = tra( 'That user does not exist.' );
$listHash['user_id'] = $gBitUser->mUserId;
$listHash['user_id'] = $gBitUser->mUserId;
$gBitSmarty->assign( 'listInfo', $listHash['listInfo'] );
$gBitSmarty->assign( 'attachments', $attachments );
$gBitSmarty->assign( 'feedback', $feedback );
$gBitSystem->display( 'bitpackage:liberty/attachments.tpl', tra( 'Attachments' ), array( 'display_mode' => 'display' ));
|