<?php
global $app, $settings, $str, $config;
?>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title></title>
	<link rel="stylesheet" type="text/css" href="css/ext.php?v=<?php echo $settings->currentVersion;?>" />
	<link rel="stylesheet" href="css/font-awesome/css/font-awesome.min.css?v=<?php echo $settings->currentVersion;?>">
	<script type="text/javascript" src="js/min.php?extjs=1&v=<?php echo $settings->currentVersion;?>"></script>
	<script src="customizables/custom_actions/code_editor/app.js?v=<?php echo $settings->currentVersion;?>"></script>
	<script src="?module=fileman&section=utils&page=translation.js&sec=<?php echo $str->forURL("Custom Actions: Text Editor")?>&lang=<?php echo $str->forURL($GLOBALS['currentLanguage'])?>"></script>
	<script src="customizables/custom_actions/code_editor/ace/ace.js" type="text/javascript" charset="utf-8"></script>
	<script src="customizables/custom_actions/code_editor/ace/ext-modelist.js" type="text/javascript" charset="utf-8"></script>
	<script>
		var URLRoot = '<?php echo $str->safeJS($config['url']['root'])?>';
		var path = '<?php echo $str->safeJS($this->data['relativePath'])?>';
		var filename = '<?php echo $str->safeJS($this->data['fileName'])?>';
		var windowId = '<?php echo $str->safeJS($str->fromHTML($_REQUEST['_tab_id']))?>';
	</script>
</head>

<body id="theBODY" onload="FR.init()">

<textarea style="display:none" id="textContents"><?php echo $str->safeHTML($str->convert2UTF8($this->data['fileContents']))?></textarea>

</body>
</html>