sparky Posted May 5, 2008 Share Posted May 5, 2008 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 0 Quote Link to comment Share on other sites More sharing options...
generic Posted May 5, 2008 Share Posted May 5, 2008 dont you want to protect the directory so others wont access it? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted May 5, 2008 Author Share Posted May 5, 2008 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'); } 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted May 5, 2008 Author Share Posted May 5, 2008 Updated file attached 0 Quote Link to comment Share on other sites More sharing options...
dansgalaxy Posted August 12, 2008 Share Posted August 12, 2008 Erm okay i just installed and all it shows is a white page.. Somes wrong Dan 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.