Attachments for Admins Fix

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
jrewolinski
Posts: 8
Joined: Tue Aug 04, 2009 6:01 pm

Attachments for Admins Fix

Post by jrewolinski »

/*************************************
Title:
Version: 2.1
Author:
Demo:
Download:
Website:

Short description: Admin's can't access attachments


*************************************/

For some reason, when logged in as an admin. I can't open any of the attachments to the KB articles. If I'm logged out, they open up fine. Problem is, some of my private articles have attachments. I don't rember this happening before, so I'm not sure what might have changed. I've only done a few software updates to the Ubuntu install on this set.

The attachment link, is trying to find the download_attachment.php file in the admin directory though. And that file doesn't exist.
example attachment link:
http://mydomain.com/hdesk/admin/downloa ... p?kb_att=6

Actually I believe I just fixed it. The following line, needs to be modified in the admin/knowledgebase_private.php file.

Code: Select all

echo '<img src="../img/clip.png" width="16" height="16" alt="'.$att_name.'" style="align:text-bottom" /> <a href="download_attachment.php?kb_att='.$att_id.'" rel="nofollow">'.$att_name.'</a><br />';
Just needed to add a

Code: Select all

../
in front of the download_attachment.php
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

This was a small bug in the initial release (missing "../" as you already found out), but has been corrected months ago.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply