TheProjecter / osfilemanager

Automatically exported from code.google.com/p/osfilemanager
0 stars 0 forks source link

broken image because no editable rights #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

if a user has no editing permissions, his browser will display the edit icon as 
broken because empty img-tag will be created.
should be changed in that way that there is no img-tag in the output

screen attached.

but still good work!

Original issue reported on code.google.com by i...@dennisbach.de on 1 Apr 2011 at 12:52

Attachments:

GoogleCodeExporter commented 9 years ago
also see http://code.google.com/p/osfilemanager/issues/detail?id=4

thats the same problem

Original comment by i...@dennisbach.de on 1 Apr 2011 at 12:55

GoogleCodeExporter commented 9 years ago
Hi 
My Solution was pretty simple

elseif (substr($type,0,4) == "text" || $size == 0) $edit = "<a 
href=\"".$adminfile."?p=edit&fename=".$fileinfo."&d=$d\"><img src=\"$IMG_EDIT\" 
border=0>\n"; 

Replace with

//elseif (substr($type,0,4) == "text" || $size == 0) $edit = "<a 
href=\"".$adminfile."?p=edit&fename=".$fileinfo."&d=$d\"><img src=\"$IMG_EDIT\" 
border=0>\n"; 

And there are three others with else if so do all theese for them or delete the 
<img src=\"$IMG EDIT\".........................

And Vice verca do this and you'll be done...

Original comment by SERVER...@gmail.com on 16 Oct 2011 at 4:14

GoogleCodeExporter commented 9 years ago
I did it but an icon appeared so, as it does to all appear?...

Original comment by germanoa...@gmail.com on 27 Apr 2013 at 6:07