Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Disable Picture editor  (Read 3255 times)

0 Members and 1 Guest are viewing this topic.

jimge

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Disable Picture editor
« on: May 12, 2005, 09:03:26 pm »

one quick question...
How I can disable Coppermine Picture editor ("Crop and Rotate"-link)?
Thanks!
Logged

Nibbler

  • Guest
Re: Disable Picture editor
« Reply #1 on: May 12, 2005, 09:10:07 pm »

displayimage.php, find

Code: [Select]
function html_picture_menu($id)
{
    global $lang_display_image_php;

    return <<<EOT
     <a href="#" onClick="return MM_openBrWindow('picEditor.php?id=$id','Crop_Picture','scrollbars=yes,toolbar=no,status=yes,resizable=yes')" class="admin_menu" >{$lang_display_image_php['crop_pic']}</a> <a href="editOnePic.php?id=$id&what=picture"  class="admin_menu">{$lang_display_image_php['edit_pic']}</a> <a href="delete.php?id=$id&what=picture"  class="admin_menu" onclick="return confirm('{$lang_display_image_php['confirm_del']}'); return false; ">{$lang_display_image_php['del_pic']}</a>

EOT;
}

Just remove the first link.

+ You can delete picEditor.php too just to be sure.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.