This topic is locked

Any users can delete picture on edit page from Db and from disk

1/16/2008 12:18:09 PM
PHPRunner General questions
R
Rigmantas author

In new demo and previous versions I don't find it. Is it possible?

Rimantas

R
Rigmantas author 1/20/2008

How prevent delete picture in edit mode:


Rimantas.

Thanks

J
Jane 1/22/2008

Rimantas,
you can remove Delete option from edit page in the generated include/commonfunctions.php file --> BuildEditControl function manually.

R
Rigmantas author 1/22/2008

Rimantas,

you can remove Delete option from edit page in the generated include/commonfunctions.php file --> BuildEditControl function manually.


Thanks, I found where is BuildEditControl function, but I don't know where I can remove Delete option <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=25091&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />

Rimantas

J
Jane 1/23/2008

Hi,
you need to remove something like this:

$strtype.='<input type="Radio" name="'.$ctype.'" value="file1">'."Delete";

R
Rigmantas author 1/26/2008

Hi,

you need to remove something like this:


Thanks,

This don't work for me.

I found and remove something like this:

$strtype.='<input type="Radio" name="'.$ctype.'" value="upload1" onclick="controlfilename'.$cfieldname.'(false)">'."Delete";

This work.

Rimantas