Advanced->Script Editor, added preliminary support for translations.
This commit is contained in:
parent
b4cd5b78b6
commit
22a7603d84
|
|
@ -0,0 +1,93 @@
|
|||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2012
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
James Rose <james.o.rose@gmail.com>
|
||||
*/
|
||||
$text['message-add']['en-us'] = 'Add Complete';
|
||||
$text['label-folder']['en-us'] = 'Folder:';
|
||||
$text['label-before-selection']['en-us'] = 'Before Selection:';
|
||||
$text['label-after-selection']['en-us'] = 'After Selection:';
|
||||
$text['label-notes']['en-us'] = 'Notes:';
|
||||
$text['button-add']['en-us'] = 'Add';
|
||||
$text['message-delete']['en-us'] = 'Delete Complete';
|
||||
|
||||
$text['message-give-up']['en-us'] = 'Giving up :( Cannot create an XMLHTTP instance';
|
||||
$text['message-problem']['en-us'] = 'There was a problem with the request.';
|
||||
$text['label-clip-library']['en-us'] = 'Clip Library';
|
||||
|
||||
$text['button-edit-clip']['en-us'] = 'Edit Clip';
|
||||
$text['button-add-clip']['en-us'] = 'Add Clip';
|
||||
$text['message-delete-clip']['en-us'] = 'Are you sure you want to delete the selected clip?';
|
||||
$text['button-delete']['en-us'] = ' Delete ';
|
||||
$text['button-close']['en-us'] = ' Close ';
|
||||
|
||||
$text['label-path']['en-us'] = 'Path:';
|
||||
$text['label-file-name']['en-us'] = 'File Name:';
|
||||
$text['button-new-file']['en-us'] = 'New File';
|
||||
$text['label-file-name-orig']['en-us'] = 'Original File Name:';
|
||||
$text['label-rename-file-to']['en-us'] = 'Rename File To:';
|
||||
|
||||
$text['label-files']['en-us'] = 'Files';
|
||||
|
||||
$text['button-add-file']['en-us'] = 'Add File';
|
||||
$text['button-add-dir']['en-us'] = 'Add Dir'; //add directory
|
||||
$text['button-rename-file']['en-us'] = 'Rename File';
|
||||
$text['message-delete-file']['en-us'] = 'Are you sure you want to delete the selected file?';
|
||||
$text['button-del-file']['en-us'] = 'Delete File';
|
||||
$text['message-delete-folder']['en-us'] = 'Are you sure you want to delete the selected folder?';
|
||||
$text['button-del-dir']['en-us'] = 'Delete Dir'; //delete directory
|
||||
|
||||
$text['message-error']['en-us'] = 'Error!!';
|
||||
|
||||
$text['label-folder-name']['en-us'] = 'Folder Name:';
|
||||
$text['button-new-folder']['en-us'] = 'New Folder';
|
||||
|
||||
$text['button-delete-this']['en-us'] = 'Are you sure want to delete this?';
|
||||
|
||||
$text['button-search']['en-us'] = 'Search';
|
||||
$text['button-add']['en-us'] = 'Add';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$text['button-back']['en-us'] = 'Back';
|
||||
$text['button-save']['en-us'] = 'Save';
|
||||
$text['title']['en-us'] = 'Service Add';
|
||||
|
||||
$text['description']['en-us'] = 'Shows a list of processes and provides ability to start and stop them.';
|
||||
$text['label-name']['en-us'] = 'Name:';
|
||||
$text['description-name']['en-us'] = 'Enter the service name.';
|
||||
$text['label-type']['en-us'] = 'Type:';
|
||||
$text['description-type']['en-us'] = 'Select the service type.';
|
||||
$text['label-data']['en-us'] = 'Data:';
|
||||
$text['description-data']['en-us'] = 'Enter the service data.';
|
||||
$text['label-start']['en-us'] = 'Start Command:';
|
||||
$text['description-start']['en-us'] = 'Enter the command to start the service.';
|
||||
$text['label-stop']['en-us'] = 'Stop Comand';
|
||||
$text['description-stop']['en-us'] = 'Enter the command to stop the service.';
|
||||
$text['label-description']['en-us'] = 'Description:';
|
||||
$text['description-description']['en-us'] = 'Enter the service description.';
|
||||
|
||||
?>
|
||||
|
|
@ -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";
|
||||
|
|
@ -34,6 +35,12 @@ else {
|
|||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
if (count($_POST)>0) {
|
||||
$clip_name = check_str($_POST["clip_name"]);
|
||||
$clip_folder = check_str($_POST["clip_folder"]);
|
||||
|
|
@ -68,7 +75,7 @@ if (count($_POST)>0) {
|
|||
|
||||
require_once "header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"1;url=clipoptions.php\">\n";
|
||||
echo "Add Complete";
|
||||
echo $text['message-add'];
|
||||
require_once "footer.php";
|
||||
return;
|
||||
}
|
||||
|
|
@ -90,29 +97,29 @@ if (count($_POST)>0) {
|
|||
echo " </tr>";
|
||||
|
||||
echo " <tr>";
|
||||
echo " <td>Folder:</td>";
|
||||
echo " <td>".$text['label-folder']."</td>";
|
||||
echo " <td><input type='text' class='txt' name='clip_folder'></td>";
|
||||
echo " </tr>";
|
||||
|
||||
echo " <tr>";
|
||||
echo " <td colspan='2'>Before Selection:<br>";
|
||||
echo " <td colspan='2'>".$text['label-before-selection']."<br>";
|
||||
echo " <textarea name='clip_text_start' class='txt'></textarea>";
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
|
||||
echo " <tr>";
|
||||
echo " <td colspan='2'>After Selection:<br>";
|
||||
echo " <td colspan='2'>".$text['label-after-selection']."<br>";
|
||||
echo " <textarea name='clip_text_end' class='txt'></textarea>";
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
|
||||
echo " <tr>";
|
||||
echo " <td colspan='2'>Notes:<br>";
|
||||
echo " <td colspan='2'>".$text['label-notes']."<br>";
|
||||
echo " <textarea name='clip_desc' class='txt'></textarea>";
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
|
||||
echo " <td colspan='2' align='right'><input type='submit' name='submit' value='Add'></td>";
|
||||
echo " <td colspan='2' align='right'><input type='submit' name='submit' value='".$text['button-add']."'></td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
echo "</form>";
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
@ -34,6 +35,12 @@ else {
|
|||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//get the uuid from http values
|
||||
$clip_uuid = check_str($_GET["id"]);
|
||||
|
||||
|
|
@ -49,7 +56,7 @@ else {
|
|||
//redirect the browser
|
||||
require_once "header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"1;url=clipoptions.php\">\n";
|
||||
echo "Delete Complete";
|
||||
echo $text['message-delete'];
|
||||
require_once "footer.php";
|
||||
return;
|
||||
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
@ -35,6 +36,12 @@ else {
|
|||
exit;
|
||||
}
|
||||
//require_once "edit/header.php";
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
|
||||
echo "<html>";
|
||||
echo "<head>";
|
||||
|
|
@ -81,7 +88,7 @@ echo " }\n";
|
|||
echo " }\n";
|
||||
echo "\n";
|
||||
echo " if (!http_request) {\n";
|
||||
echo " alert('Giving up :( Cannot create an XMLHTTP instance');\n";
|
||||
echo " alert('".$text['message-give-up']."');\n";
|
||||
echo " return false;\n";
|
||||
echo " }\n";
|
||||
echo " http_request.onreadystatechange = function() { returnContent(http_request); };\n";
|
||||
|
|
@ -112,7 +119,7 @@ echo "\n";
|
|||
|
||||
echo " }\n";
|
||||
echo " else {\n";
|
||||
echo " alert('There was a problem with the request.');\n";
|
||||
echo " alert('".$text['message-problem']."');\n";
|
||||
echo " }\n";
|
||||
echo " }\n";
|
||||
echo "\n";
|
||||
|
|
@ -159,7 +166,7 @@ echo "<div align='center' valign='1'>";
|
|||
echo "<table width='100%' height='100%' border='0' cellpadding='0' cellspacing='2'>\n";
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"left\" valign='top' nowrap>\n";
|
||||
echo " <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD><a href='javascript:void(0);' onclick=\"window.open('clipoptions.php?id=".$row[id]."','null','left=20,top=20,width=310,height=300,toolbar=0,resizable=0');\" style='text-decoration:none;' title=''><IMG SRC=\"images/folder.gif\" border='0'> Clip Library</a><DIV style=''>\n"; //display:none
|
||||
echo " <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD><a href='javascript:void(0);' onclick=\"window.open('clipoptions.php?id=".$row[id]."','null','left=20,top=20,width=310,height=300,toolbar=0,resizable=0');\" style='text-decoration:none;' title=''><IMG SRC=\"images/folder.gif\" border='0'> ".$text['label-clip-library']."</a><DIV style=''>\n"; //display:none
|
||||
|
||||
$sql = "select * from v_clips ";
|
||||
$sql .= "order by clip_folder ";
|
||||
|
|
|
|||
|
|
@ -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,6 +34,12 @@ 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']];
|
||||
}
|
||||
|
||||
require_once "header.php";
|
||||
|
||||
echo "<div align='left'>";
|
||||
|
|
@ -53,13 +60,13 @@ echo " <table width='' class='border'>";
|
|||
//echo " <tr><th>Options</th></tr>\n";
|
||||
//echo " <tr><td colspan='1'><img src='images/spacer.gif' width='100%' height='1' style='background-color: #BBBBBB;'></td></tr>\n";
|
||||
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"window.location='clipupdate.php?id='+document.getElementById('clip_uuid').value;\" value='Edit Clip'></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"window.location='clipadd.php'\" value='Add Clip'></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"window.location='clipupdate.php?id='+document.getElementById('clip_uuid').value;\" value='".$text['button-edit-clip']."'></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"window.location='clipadd.php'\" value='".$text['button-add-clip']."'></td></tr>\n";
|
||||
//echo " <tr><td><input type='button' class='btn' name='' onclick=\"window.location='clipadd.php'\" value=' Search '></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"if (confirm('Are you sure you want to delete the selected clip?')){ window.location='clipdelete.php?id='+document.getElementById('clip_uuid').value; }\" value=' Delete '></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"if (confirm('".$text['message-delete-clip']."')){ window.location='clipdelete.php?id='+document.getElementById('clip_uuid').value; }\" value='".$text['button-delete']."'></td></tr>\n";
|
||||
echo " <tr><td><br><br><br><br><br><br><br><br><br><br><br></td></tr>\n";
|
||||
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick='javascript:self.close();' value=' Close '></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick='javascript:self.close();' value='".$text['button-close']."'></td></tr>\n";
|
||||
echo " </table>";
|
||||
|
||||
echo "</td>\n";
|
||||
|
|
|
|||
|
|
@ -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,6 +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']];
|
||||
}
|
||||
|
||||
echo "<html>";
|
||||
echo "<head>";
|
||||
|
|
@ -81,7 +87,7 @@ function space($count) {
|
|||
echo " }\n";
|
||||
echo "\n";
|
||||
echo " if (!http_request) {\n";
|
||||
echo " alert('Giving up :( Cannot create an XMLHTTP instance');\n";
|
||||
echo " alert('".$text['message-give-up']."');\n";
|
||||
echo " return false;\n";
|
||||
echo " }\n";
|
||||
echo " http_request.onreadystatechange = function() { returnContent(http_request); };\n";
|
||||
|
|
@ -105,7 +111,7 @@ function space($count) {
|
|||
echo " parent.editAreaLoader.setValue('edit1', http_request.responseText); \n";
|
||||
echo " }\n";
|
||||
echo " else {\n";
|
||||
echo " alert('There was a problem with the request.');\n";
|
||||
echo " alert('".$text['message-problem']."');\n";
|
||||
echo " }\n";
|
||||
echo " }\n";
|
||||
echo " }\n";
|
||||
|
|
@ -153,7 +159,7 @@ echo "<body>";
|
|||
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"left\" valign='top' nowrap>\n";
|
||||
echo " <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD><a onclick=\"window.open('clipoptions.php','Clip Options','left=20,top=20,width=500,height=500,toolbar=0,resizable=0');\" style='text-decoration:none;' title=''><IMG SRC=\"images/folder.gif\" border='0'> Clip Library</a><DIV style=''>\n"; //display:none
|
||||
echo " <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD><a onclick=\"window.open('clipoptions.php','Clip Options','left=20,top=20,width=500,height=500,toolbar=0,resizable=0');\" style='text-decoration:none;' title=''><IMG SRC=\"images/folder.gif\" border='0'> ".$text['label-clip-library']."</a><DIV style=''>\n"; //display:none
|
||||
|
||||
$sql = "select * from v_clips ";
|
||||
$sql .= "order by clip_folder ";
|
||||
|
|
|
|||
|
|
@ -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/checkauth.php";
|
||||
|
|
|
|||
|
|
@ -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>";
|
||||
|
|
|
|||
|
|
@ -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,6 +34,13 @@ 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']];
|
||||
}
|
||||
|
||||
require_once "header.php";
|
||||
|
||||
function isfile($filename) {
|
||||
|
|
@ -140,7 +148,7 @@ echo " }\n";
|
|||
echo " }\n";
|
||||
echo "\n";
|
||||
echo " if (!http_request) {\n";
|
||||
echo " alert('Giving up :( Cannot create an XMLHTTP instance');\n";
|
||||
echo " alert('".$text['message-give-up']."');\n";
|
||||
echo " return false;\n";
|
||||
echo " }\n";
|
||||
echo " http_request.onreadystatechange = function() { returnContent(http_request); };\n";
|
||||
|
|
@ -179,7 +187,7 @@ echo "\n";
|
|||
//echo "\n";
|
||||
echo " }\n";
|
||||
echo " else {\n";
|
||||
echo " alert('There was a problem with the request.');\n";
|
||||
echo " alert('".$text['message-problem']."');\n";
|
||||
echo " }\n";
|
||||
echo " }\n";
|
||||
echo "\n";
|
||||
|
|
@ -227,7 +235,7 @@ echo " <td align=\"left\" valign='top' nowrap>\n";
|
|||
//echo " <br>";
|
||||
|
||||
echo "\n";
|
||||
echo " <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD><a href='javascript:void(0);' onclick=\"if (typeof(clipwin)!='undefined') { clipwin.close(); } clipwin = window.open('fileoptions.php?folder=".urlencode($_SERVER["DOCUMENT_ROOT"])."','null','left=20,top=20,width=310,height=300,toolbar=0,resizable=0');\" style='text-decoration:none;' title=''><IMG SRC=\"images/folder.gif\" border='0'> Files </a><DIV style=''>\n"; //display:none
|
||||
echo " <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD><a href='javascript:void(0);' onclick=\"if (typeof(clipwin)!='undefined') { clipwin.close(); } clipwin = window.open('fileoptions.php?folder=".urlencode($_SERVER["DOCUMENT_ROOT"])."','null','left=20,top=20,width=310,height=300,toolbar=0,resizable=0');\" style='text-decoration:none;' title=''><IMG SRC=\"images/folder.gif\" border='0'> ".$text['label-files']." </a><DIV style=''>\n"; //display:none
|
||||
//echo " <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD><A onClick=\"Toggle(this)\"><IMG SRC=\"images/plus.gif\"> <IMG SRC=\"images/folder.gif\"> Files </A><DIV style=''>\n"; //display:none
|
||||
|
||||
echo recur_dir($_SESSION['switch']['scripts']['dir']);
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
@ -34,6 +35,12 @@ else {
|
|||
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.'/'; }
|
||||
|
|
@ -65,7 +72,7 @@ else {
|
|||
|
||||
echo "<table>";
|
||||
echo " <tr>";
|
||||
echo " <td>File Name:</td>";
|
||||
echo " <td>".$text['label-file-name']."</td>";
|
||||
echo " </tr>";
|
||||
|
||||
echo " <tr>";
|
||||
|
|
@ -75,7 +82,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>";
|
||||
|
|
|
|||
|
|
@ -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,6 +34,13 @@ 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']];
|
||||
}
|
||||
|
||||
require_once "header.php";
|
||||
|
||||
$file = $_GET["file"];
|
||||
|
|
@ -48,7 +56,7 @@ echo "<td colspan='2'>";
|
|||
|
||||
echo "<table border='0'>";
|
||||
echo "<form method='post' name='frm' action=''>";
|
||||
echo "<tr><td>Path:</td><td width='95%'><input type='text' name='folder' id='folder' style=\"width: 100%;\" value=''></td><tr>\n";
|
||||
echo "<tr><td>".$text['label-path']."</td><td width='95%'><input type='text' name='folder' id='folder' style=\"width: 100%;\" value=''></td><tr>\n";
|
||||
echo "<tr><td>File:</td><td width='95%' style=\"width: 60%;\"><input type='text' name='filename' id='filename' style=\"width: 100%;\" value=''></div></td></tr>\n";
|
||||
echo "</form>";
|
||||
echo "</table>";
|
||||
|
|
@ -66,13 +74,13 @@ echo "<td valign='top' style=\"height: 100%;\">";
|
|||
|
||||
echo "<div align='left'>";
|
||||
echo "<table width='100%' class='border'>";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"window.location='filenew.php?folder='+document.getElementById('folder').value;\" value='Add File'></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"window.location='foldernew.php?folder='+document.getElementById('folder').value;\" value='Add Dir'></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"window.location='filerename.php?folder='+document.getElementById('folder').value+'&filename='+document.getElementById('filename').value;\" value='Rename File'></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"if (confirm('Are you sure you want to delete the selected file?')){ window.location='filedelete.php?folder='+document.getElementById('folder').value+'&file='+document.getElementById('filename').value; }\" value='Delete File'></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"if (confirm('Are you sure you want to delete the selected folder?')){ window.location='folderdelete.php?folder='+document.getElementById('folder').value; }\" value='Delete Dir'></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"window.location='filenew.php?folder='+document.getElementById('folder').value;\" value='".$text['button-add-file']."'></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"window.location='foldernew.php?folder='+document.getElementById('folder').value;\" value='".$text['button-add-dir']."'></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"window.location='filerename.php?folder='+document.getElementById('folder').value+'&filename='+document.getElementById('filename').value;\" value='".$text['button-rename-file']."'></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"if (confirm('".$text['message-delete-file']."')){ window.location='filedelete.php?folder='+document.getElementById('folder').value+'&file='+document.getElementById('filename').value; }\" value='".$text['button-del-file']."'></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick=\"if (confirm('".$text['message-delete-folder']."')){ window.location='folderdelete.php?folder='+document.getElementById('folder').value; }\" value='".$text['button-del-dir']."'></td></tr>\n";
|
||||
echo " <tr><td><br><br><br><br><br></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick='javascript:self.close();' value='Close'></td></tr>\n";
|
||||
echo " <tr><td><input type='button' class='btn' name='' onclick='javascript:self.close();' value='".$text['button-close']."'></td></tr>\n";
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
|
|
|
|||
|
|
@ -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,6 +34,13 @@ 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']];
|
||||
}
|
||||
|
||||
require_once "header.php";
|
||||
|
||||
function isfile($filename) {
|
||||
|
|
@ -125,7 +133,7 @@ echo " }\n";
|
|||
echo " }\n";
|
||||
echo "\n";
|
||||
echo " if (!http_request) {\n";
|
||||
echo " alert('Giving up :( Cannot create an XMLHTTP instance');\n";
|
||||
echo " alert('".$text['message-give-up']."');\n";
|
||||
echo " return false;\n";
|
||||
echo " }\n";
|
||||
echo " http_request.onreadystatechange = function() { returnContent(http_request); };\n";
|
||||
|
|
@ -162,7 +170,7 @@ echo "\n";
|
|||
//echo "\n";
|
||||
echo " }\n";
|
||||
echo " else {\n";
|
||||
echo " alert('There was a problem with the request.');\n";
|
||||
echo " alert('".$text['message-problem']."');\n";
|
||||
echo " }\n";
|
||||
echo " }\n";
|
||||
echo "\n";
|
||||
|
|
@ -211,7 +219,7 @@ echo "<table width='100%' height='100%' border='0' cellpadding='0' cellspacing=
|
|||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"left\" valign='top' nowrap>\n";
|
||||
echo "\n";
|
||||
echo " <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD><IMG SRC=\"images/folder.gif\" border='0'> Files <DIV style=''>\n"; //display:none
|
||||
echo " <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD><IMG SRC=\"images/folder.gif\" border='0'> ".$text['label-files']." <DIV style=''>\n"; //display:none
|
||||
//echo " <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD><A onClick=\"Toggle(this, '')\"><IMG SRC=\"images/plus.gif\"> <IMG SRC=\"images/folder.gif\"> Files </A><DIV style=''>\n"; //display:none
|
||||
|
||||
//echo "<TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD nowrap WIDTH=12></TD><TD nowrap><A onClick=\"Toggle(this, '')\"><IMG SRC=\"images/plus.gif\"> <IMG SRC=\"images/gear.png\"> Tools </A><DIV style='display:none'>\n";
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
@ -34,6 +35,12 @@ else {
|
|||
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.'/'; }
|
||||
|
|
@ -57,7 +64,7 @@ else { //display form
|
|||
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.$filename."</td>";
|
||||
|
|
@ -66,7 +73,7 @@ else { //display form
|
|||
echo " <td><br></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Original file name:</td>";
|
||||
echo " <td>".$text['label-file-name-orig']."</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>".$filename."</td>";
|
||||
|
|
@ -77,7 +84,7 @@ else { //display form
|
|||
|
||||
echo "<table>";
|
||||
echo " <tr>";
|
||||
echo " <td>Rename file to:</td>";
|
||||
echo " <td>".$text['label-rename-file-to']."</td>";
|
||||
echo " </tr>";
|
||||
|
||||
echo " <tr>";
|
||||
|
|
@ -88,7 +95,7 @@ else { //display form
|
|||
echo " <td colspan='1' align='right'>";
|
||||
echo " <input type='hidden' name='folder' value='$folder'>";
|
||||
echo " <input type='hidden' name='filename' value='$filename'>";
|
||||
echo " <input type='submit' value='Rename File'>";
|
||||
echo " <input type='submit' value='".$text['button-rename-file']."'>";
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
@ -34,11 +35,17 @@ else {
|
|||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
$filename = $_POST["file"]; //filename with the path
|
||||
$filename = str_replace ("\\", "/", $filename);
|
||||
$content = $_POST["content"];
|
||||
|
||||
$handle = fopen($filename, 'wb') or die("Error!!");
|
||||
$handle = fopen($filename, 'wb') or die($text['message-error']);
|
||||
fwrite($handle, $content);
|
||||
fclose($handle);
|
||||
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
@ -34,6 +35,12 @@ else {
|
|||
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);
|
||||
$foldername = $_GET["foldername"];
|
||||
|
|
@ -50,7 +57,7 @@ else { //display form
|
|||
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."</td>";
|
||||
|
|
@ -61,7 +68,7 @@ else { //display form
|
|||
|
||||
echo "<table>";
|
||||
echo " <tr>";
|
||||
echo " <td>Folder Name:</td>";
|
||||
echo " <td>".$text['label-folder-name']."</td>";
|
||||
echo " </tr>";
|
||||
|
||||
echo " <tr>";
|
||||
|
|
@ -71,7 +78,7 @@ else { //display form
|
|||
echo " <tr>";
|
||||
echo " <td colspan='1' align='right'>";
|
||||
echo " <input type='hidden' name='folder' value='$folder'>";
|
||||
echo " <input type='submit' value='New Folder'>";
|
||||
echo " <input type='submit' value='".$text['button-new-folder']."'>";
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
|
|
|
|||
|
|
@ -22,8 +22,15 @@
|
|||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
James Rose <james.o.rose@gmail.com>
|
||||
*/
|
||||
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
echo "<html>";
|
||||
echo "<head>";
|
||||
echo "<title></title>";
|
||||
|
|
@ -69,7 +76,7 @@ echo "<SCRIPT language=\"JavaScript\">\n";
|
|||
echo "<!--\n";
|
||||
echo "function confirmdelete(url)\n";
|
||||
echo "{\n";
|
||||
echo " var confirmed = confirm(\"Are you sure want to delete this.\");\n";
|
||||
echo " var confirmed = confirm($text['button-delete-this']);\n";
|
||||
echo " if (confirmed == true) {\n";
|
||||
echo " window.location=url;\n";
|
||||
echo " }\n";
|
||||
|
|
|
|||
|
|
@ -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,6 +34,13 @@ 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']];
|
||||
}
|
||||
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n";
|
||||
|
|
@ -89,7 +97,7 @@ echo " <title></title>";
|
|||
echo " }\n";
|
||||
echo "\n";
|
||||
echo " if (!http_request) {\n";
|
||||
echo " alert('Giving up :( Cannot create an XMLHTTP instance');\n";
|
||||
echo " alert('".$text['message-give-up']."');\n";
|
||||
echo " return false;\n";
|
||||
echo " }\n";
|
||||
echo " http_request.onreadystatechange = function() { returnContent(http_request); };\n";
|
||||
|
|
@ -114,7 +122,7 @@ echo " <title></title>";
|
|||
echo " parent.editAreaLoader.setValue('edit1', http_request.responseText); \n";
|
||||
echo " }\n";
|
||||
echo " else {\n";
|
||||
echo " alert('There was a problem with the request.');\n";
|
||||
echo " alert('".$text['message-problem']."');\n";
|
||||
echo " }\n";
|
||||
echo " }\n";
|
||||
echo " }\n";
|
||||
|
|
|
|||
|
|
@ -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/checkauth.php";
|
||||
|
|
@ -32,6 +33,13 @@ 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']];
|
||||
}
|
||||
|
||||
require_once "admin/edit/header.php";
|
||||
echo "<div align='left'>";
|
||||
echo "<table width='175' border='0' cellpadding='0' cellspacing='2'>\n";
|
||||
|
|
@ -90,8 +98,8 @@ else { //received results
|
|||
echo "</table>\n";
|
||||
|
||||
echo "<table width='175'><tr><td align='right'>\n";
|
||||
echo "<input type='button' class='btn' name='' onclick=\"window.location='clipsearch.php'\" value='Search'> \n";
|
||||
echo "<input type='button' class='btn' name='' onclick=\"window.location='clipadd.php'\" value='Add'> \n";
|
||||
echo "<input type='button' class='btn' name='' onclick=\"window.location='clipsearch.php'\" value='".$text['button-search']."'> \n";
|
||||
echo "<input type='button' class='btn' name='' onclick=\"window.location='clipadd.php'\" value='".$text['button-add']."'> \n";
|
||||
echo "</td></tr><table>\n";
|
||||
echo "</div>";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue