basePath variable

To define the document root level of the server
This commit is contained in:
Matt Pass
2012-07-25 19:00:15 +01:00
parent 862777f067
commit f04cdad89d

View File

@@ -40,6 +40,7 @@ openLastFiles = <?php echo $ICEcoder["openLastFiles"] ? 'true' : 'false';?>;
tabWidth = <?php echo $ICEcoder["tabWidth"]; ?>;
<?php
echo 'fullPath = "'.$ICEcoder["root"].'";'.PHP_EOL;
echo 'basePath = "'.$_SERVER['DOCUMENT_ROOT'].'";'.PHP_EOL;
?>
window.onbeforeunload = function() {
for (var i=0; i<=top.ICEcoder.changedContent.length; i++) {