Jump to content

Simple File Editor


Recommended Posts

Hi

When I get time I will be modifying the file selection part but for the moment it will enable some of you who were asking to be able to quickly edit your template files from within the admin control panel.

Please note this script does NOT use the database at all.

 

1)

Create a directory called Simple_File_Editor in the modules/admin directory.

 

2)

 

Rename the attached file called Simple_File_Editor.php.txt to Simple_File_Editor.php and copy it to the created directory.

 

3)

Open Simple_File_Editor.php and edit the path to your template directory

eg.

$filedir = "/home/user_directory/public_html/whmcs/templates";

 

Enjoy

Link to comment
Share on other sites

dont you want to protect the directory so others wont access it?

 

Hi

This script was put together really quick.

Please use at your own risk.

 

To protect the directory simply put a blank index.html file in it.

To stop anyone from executing the script add the below to the top of the script (eg.. the first line under "<?")

 

if ($_SESSION['adminloggedinstatus'] != 'true')

{

header ('Location: ../../../login.php');

}

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated