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 still just need the domain part - ( for example .gmeditor.com ) - note the dot before the domain name.
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 ecoder above your editable files, else change the read and write permissions to hide and avoid changes to the code base by the editor itself.
- this option can be set both for remote ( live ) and local ( testing ) server environments - note that it appears twice.
$code['domain_cookie'] - if using a sub domain or root domain you still just need the domain part - ( for example .gmeditor.com ) - note the dot before the domain name.
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:
- 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.