dev-master
9999999-dev https://github.com/hamidsamak/pheditorphp file editor
MIT
The Requires
- php >=5.4.0
by Hamid Samak
php file manager pheditor file editor
php file editor
Pheditor is a single-file editor and file manager written in PHP., (*1)
, (*2)
Install using composer:
composer create-project pheditor/pheditor
, (*3)
or just upload pheditor.php
to your web host (and/or rename it as you wish)., (*4)
By default Pheditor uses CDN to load required libraries but also it is possible to load assets from local directory., (*5)
For using local assets follow these steps:, (*6)
pheditor.php
and change LOCAL_ASSETS
definition to true
.define('LOCAL_ASSETS', true);
, (*7)
npm i
to install required dependencies.NOTES:
1. The default password is admin
. Please change the password after install or first login.
2. As the script gives permission to edit files, it is recommended to keep the address secret or protected depending on the web-server you are using., (*8)
Optional settings:, (*9)
The settings would be editable in the main PHP file (pheditor.php by default).
The settings are as below:
1. Define patterns for files and directories to view/edit (empty means all files & directories)
2. Log file path
3. Show/Hide hidden files
4. Limit access to the page only for an IP address (empty means access for all)
5. Show/Hide main pheditor file (pheditor.php) in files list to edit
6. History files path
7. Word wrap
8. Changing main directory (MAIN_DIR
)
9. Enable/Disable Terminal
10. Define allowed terminal commands
11. Change editor theme (EDITOR_THEME
) (theme list)
12. New file and directory permissions (DEFAULT_DIR_PERMISSION
and DEFAULT_FILE_PERMISSION
), (*10)
Using without password:, (*11)
You can empty the PASSWORD
constant in the source code to access the script without the password. But it is highly recommended to use it and change the default password after installation., (*12)
Access Levels and Permissions:, (*13)
There are eight permissions for users that is defined in PERMISSIONS
constant. You can remove any of them as you need., (*14)
Default value: newfile,newdir,editfile,deletefile,deletedir,renamefile,renamedir,changepassword,uploadfile,terminal,movefile
, (*15)
Thanks to:, (*16)
php file editor
MIT
php file manager pheditor file editor