mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Advanced->Script Editor, added preliminary support for translations.
This commit is contained in:
@@ -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>";
|
||||
|
||||
Reference in New Issue
Block a user