to install ecoder on a server ( local or remote ), you normally only need to change code in the file code.php ( found in the root folder ).
basics: ------------------------------------------------------------------------
$code['root'] - the full path to an editable ( readable & writeable ) folder, which can contain unlimited sub-folders.
$code['domain_cookie'] - if using a sub domain or root domain you should use only the domain part - ( for example .domain.com ) - note the dot before the domain name.
security: ------------------------------------------------------------------------
play it safe! - ecoder edits files directly on the server - while it can be configured to create backups of files that are changed, it can and does edit files that might be being served as part of a live website of application - you've been warned!
Here are some basic security tips, which if used in combination with the security features built into ecoder, should close most of the security vunerabilities.
advanced settings: --------------------------------------------------------------
$code['name'] - call it what you want, but you'll need to change more than this to really rename it ( branding images, code functions... )
$code['editor'] - basic ( quicker loading, but less features ). delux ( syntax highlighting and other plugins ). this option set's the default, but each file open can use a different setting ( set in the top right hand corner ).
$code['autosave'] - 1 or 0 - enable autosave by default on all documents opened.
$code['autosave_time'] - time in seconds betweeen AJAX saves.
$code['skin'] - name of css style sheet to use, as present there is only one ( called one! ).
$code['backup'] - 1 or 0. create a backup ( set as a hidden file, but could be changed to other prefered method ) of all files opened.
$code['secure'] - 1 or 0. if true checks for valid session, based on the value of $code['secure_variable'].
$code['secure_variable'] - the name of the session variable to check against, see above.
$code['secure_url'] - the url to redirect to if secure is true and the secure_variable is false.
$code['secure_root'] - if true, $code['root'] value passed in session variable - $_SESSION['tree_root'].
there are a number of other settings which control files types to display or block, but these are pretty self-explanatory.
notes: --------------------------------------------------------------
basics: ------------------------------------------------------------------------
$code['root'] - the full path to an editable ( readable & writeable ) folder, which can contain unlimited sub-folders.
- if possible place the folder containing the ecoder application above your editable files, if not change the folder permissions to hide the application and avoid changes to the code base by the editor itself.
- this option can be set both for remote ( production ) and local ( development ) server environments - note that it appears twice.
$code['domain_cookie'] - if using a sub domain or root domain you should use only the domain part - ( for example .domain.com ) - note the dot before the domain name.
security: ------------------------------------------------------------------------
play it safe! - ecoder edits files directly on the server - while it can be configured to create backups of files that are changed, it can and does edit files that might be being served as part of a live website of application - you've been warned!
Here are some basic security tips, which if used in combination with the security features built into ecoder, should close most of the security vunerabilities.
- keep the data directory outside of the web folder, maybe even at /home/USERNAME/DOMAIN.COM_ecoder, for example.
- consider setting up some sort of password protection on the application directory.
advanced settings: --------------------------------------------------------------
$code['name'] - call it what you want, but you'll need to change more than this to really rename it ( branding images, code functions... )
$code['editor'] - basic ( quicker loading, but less features ). delux ( syntax highlighting and other plugins ). this option set's the default, but each file open can use a different setting ( set in the top right hand corner ).
$code['autosave'] - 1 or 0 - enable autosave by default on all documents opened.
$code['autosave_time'] - time in seconds betweeen AJAX saves.
$code['skin'] - name of css style sheet to use, as present there is only one ( called one! ).
$code['backup'] - 1 or 0. create a backup ( set as a hidden file, but could be changed to other prefered method ) of all files opened.
$code['secure'] - 1 or 0. if true checks for valid session, based on the value of $code['secure_variable'].
$code['secure_variable'] - the name of the session variable to check against, see above.
$code['secure_url'] - the url to redirect to if secure is true and the secure_variable is false.
$code['secure_root'] - if true, $code['root'] value passed in session variable - $_SESSION['tree_root'].
there are a number of other settings which control files types to display or block, but these are pretty self-explanatory.
notes: --------------------------------------------------------------
- there is a .htaccess file in the root directory which includes a hardcoded path to a cron based error log script ( code/logs/cron.php ) - you will need to edit this path and set-up a cron tab to enable this feature - it might also require a few further tweaks, but is a good way to get automatic feedback about hidden errors in PHP scripts in the application itself - not in files that are being edited.
- ecoder was developed on apache on a linux server - it will work on IIS on windows, however some of the above instructions may not be exactly correct or relevant.