Portions created by the Initial Developer are Copyright (C) 2008-2016 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane James Rose */ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('script_editor_view')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text; $text = $language->get(); //set the directory $_SESSION["app"]["edit"]["dir"] = $_GET["dir"]; $title = strtoupper($_GET["dir"]); unset($mode); switch ($_GET["dir"]) { case 'xml': $mode['xml'] = 'selected'; break; case 'provision': $mode['xml'] = 'selected'; break; case 'php': $mode['php'] = 'selected'; break; case 'scripts': $mode['lua'] = 'selected'; break; case 'grammar': //use default default: $mode['text'] = 'selected'; } ?> <?=$title?>