Change the script editor app_languages.php file to utf-8 format and adjust some of the code in filelist.php.

This commit is contained in:
Mark Crane 2012-11-24 06:53:38 +00:00
parent 7e806a2d89
commit f645f78088
2 changed files with 77 additions and 80 deletions

View File

@ -1,4 +1,4 @@
<?php
<?php
/*
FusionPBX
Version: MPL 1.1

View File

@ -35,18 +35,15 @@ else {
exit;
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//add css and javascript
require_once "header.php";
function isfile($filename) {
//define function is_file
function is_file($filename) {
//if (@filesize($filename) > 0) { return true; } else { return false; }
}
//define function space
function space($count) {
$r=''; $i=0;
while($i < $count) {
@ -56,6 +53,7 @@ function space($count) {
return $r;
}
//define function recure_dir
function recur_dir($dir) {
clearstatcache();
$htmldirlist = '';
@ -128,7 +126,6 @@ function recur_dir($dir) {
echo "<script type=\"text/javascript\" language=\"javascript\">\n";
echo " function makeRequest(url, strpost) {\n";
//echo " alert(url); \n";
echo " var http_request = false;\n";
echo "\n";
echo " if (window.XMLHttpRequest) { // Mozilla, Safari, ...\n";