App->conferences_active, added preliminary support for translations.

This commit is contained in:
James Rose
2012-11-24 17:58:54 +00:00
parent d8ff5814e4
commit 4104f5a51f
6 changed files with 166 additions and 53 deletions
+20 -2
View File
@@ -25,6 +25,18 @@
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
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>
*/
include "root.php";
require_once "includes/require.php";
@@ -37,6 +49,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 http values and set them as php variables
if (count($_GET)>0) {
$cmd = trim(check_str($_GET["cmd"]));
@@ -52,13 +70,13 @@ else {
//authorized;
} else {
//not found. this command is not authorized
echo "access denied";
echo $text['message-denied'];
exit;
}
//check if the domain is in the switch_cmd
if(stristr($name, $_SESSION['domain_name']) === FALSE) {
echo "access denied";
echo $text['message-denied'];
exit;
}