Ticket #1482 (closed Feature Requests: fixed)

Opened 5 years ago

Last modified 1 year ago

Direct access to module files

Reported by: gregmac Assigned to:
Priority: major Milestone: 2.9
Component: FreePBX Framework Version: SVN-HEAD
Keywords: Cc:
Confirmation: Unreviewed SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

We need a new method to access files inside modules (see #1442)

I'm thinking, eg, direct.php/phpinfo/logfiles or something like that (using PATH_INFO, just to make things simple), along with a handler function inside the module, phpinfo_direct($param), where 'logfiles' gets passed as $param. Then the handler function can do whatever it wants - display the contents of a file, or generate output.

If the function returns true, then direct.php will wrap the output in the usual header/footer (but no menu).. otherwise, it just displays the output directly (which would allow the function to return an image, or any other content-type with appropriate headers).

Change History

12/01/06 13:57:49 changed by p_lindheimer

  • version changed from 2.2rc1 to SVN-HEAD.
  • milestone set to 2.3.

12/04/06 15:47:46 changed by gregmac

  • priority changed from minor to major.

01/08/07 13:46:49 changed by

  • milestone deleted.

Milestone 2.3 deleted

01/08/07 14:06:45 changed by vgster

  • milestone set to 2.3.

11/28/10 22:36:28 changed by mbrevda

  • confirmation set to Unreviewed.
  • engine_version changed.
  • svn_rev changed.

Someone correct me if I'm wrong, but dosen the file handler in config.php answer here?

11/29/10 00:57:26 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.
  • component changed from Core to FreePBX Framework.
  • milestone changed from Cut Line to 2.9.

not quite sure if that is what is being asked for, but I believe that is probably close and yes it does. For now I'd say we just close this.