attachment.php
上传用户:gzy2002
上传日期:2010-02-11
资源大小:1785k
文件大小:1k
- <?php
- // +-------------------------------------------------------------+
- // | DeskPRO v [2.0.1 Production]
- // | Copyright (C) 2001 - 2004 Headstart Solutions Limited
- // | Supplied by WTN-WDYL
- // | Nullified by WTN-WDYL
- // | Distribution via WebForum, ForumRU and associated file dumps
- // +-------------------------------------------------------------+
- // | DESKPRO IS NOT FREE SOFTWARE
- // +-------------------------------------------------------------+
- // | License ID : Full Enterprise License =) ...
- // | License Owner : WTN-WDYL Team
- // +-------------------------------------------------------------+
- // | $RCSfile: attachment.php,v $
- // | $Date: 2004/02/10 01:34:25 $
- // | $Revision: 1.14 $
- // +-------------------------------------------------------------+
- // | File Details:
- // | - Attachment viewer
- // +-------------------------------------------------------------+
- error_reporting(E_ALL & ~E_NOTICE);
- require_once('./global.php');
- //Nullify WTN-WDYL Team
- // globalise variables
- $global = array (
- array('id')
- );
- rg($global);
- check_user();
- $result = $db->query_return("
- SELECT ticket.userid
- FROM ticket_attachments
- LEFT JOIN ticket ON (ticket_attachments.ticketid = ticket.id)
- WHERE ticket_attachments.id = " . intval($id) . "
- ");
- if ($result['userid'] != $session[userid]) {
- error('error_noticket_permission');
- }
- get_attachment($id, 'ticket_attachments');