Advanced->Script Editor, added preliminary support for translations.

This commit is contained in:
James Rose
2012-11-24 05:23:48 +00:00
parent b4cd5b78b6
commit 22a7603d84
18 changed files with 257 additions and 49 deletions

View File

@@ -22,6 +22,7 @@
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
James Rose <james.o.rose@gmail.com>
*/
include "root.php";
require_once "includes/require.php";
@@ -33,7 +34,11 @@ else {
echo "access denied";
exit;
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$folder = $_GET["folder"];
$folder = str_replace ("\\", "/", $folder);
if (substr($folder, -1) != "/") { $folder = $folder.'/'; }
@@ -51,7 +56,7 @@ else {
echo "<form method='get' action=''>";
echo "<table>";
echo " <tr>";
echo " <td>Path:</td>";
echo " <td>".$text['label-path']."</td>";
echo " </tr>";
echo " <tr>";
echo " <td>".$folder.$file."</td>";
@@ -62,7 +67,7 @@ else {
echo "<table>";
echo " <tr>";
echo " <td>File Name:</td>";
echo " <td>".$text['label-file-name']."</td>";
echo " </tr>";
echo " <tr>";
@@ -72,7 +77,7 @@ else {
echo " <tr>";
echo " <td colspan='1' align='right'>";
echo " <input type='hidden' name='folder' value='$folder'>";
echo " <input type='submit' value='New File'>";
echo " <input type='submit' value='".$text['button-new-file']."'>";
echo " </td>";
echo " </tr>";
echo "</table>";