Hi all,
I want to know how to overwrite .inc files from the plugin files in my custom plugin. I want to updates the upload.inc file inside "<root>/program/steps/settings/upload.inc" file.
Because i have added the html editor for my plugin, so i cant able to get uploaded images from the session. I have to update the upload.inc file and solve this.
But i need to avoid the updates in upload.inc.
So Anyone helps me to.
You can't overwrite the .inc files from a plugin but most likely what you want to do can be done with plugins. Can you elaborate on what your trying to accomplish?
I have added the html editor in my plugin.
If i want to attach Image from html editor it doesn't display the image because i wrote the plugin with the name of plugin.customname.
So the image will be stored in the session variable like as
EX :
$_SESSION['plugin']['customname']['id']
But default its works without the plugin key so i have to update that upload.inc file with the following codes.
"if((strpos($type, '.')) !== false){
$arr = explode('.', $type);
$RCMAIL->display_uploaded_file($_SESSION[$arr[0]][$arr[1]]['files'][$id]);
}else{
$RCMAIL->display_uploaded_file($_SESSION[$type]['files'][$id]);
}"
the Default is "$RCMAIL->display_uploaded_file($_SESSION[$type]['files'][$id]);".