Author Topic: How to effects the .inc files from plugins  (Read 2540 times)

Offline yogeshwaran

  • Newbie
  • *
  • Posts: 4
How to effects the .inc files from plugins
« on: November 17, 2015, 12:40:28 AM »
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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: How to effects the .inc files from plugins
« Reply #1 on: November 17, 2015, 12:51:54 AM »
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?

Offline yogeshwaran

  • Newbie
  • *
  • Posts: 4
Re: How to effects the .inc files from plugins
« Reply #2 on: November 17, 2015, 01:00:58 AM »
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]);".