Change the app_languages.php file to utf-8 format and adjust a few minor things in the code.

This commit is contained in:
Mark Crane
2012-11-23 21:18:46 +00:00
parent 72e1a68c30
commit 1b70d1bb52
3 changed files with 6 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
<?php
<?php
$text['title-voicemail']['en-us'] = 'Voicemail';
$text['description-voicemail']['en-us'] = 'Show details about the voicemail settings including the voicemail count, and voicemail to email address.';

View File

@@ -114,8 +114,7 @@ $order = $_GET["order"];
list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page);
$offset = $rows_per_page * $page;
$sql = "";
$sql .= "select * from v_extensions ";
$sql = "select * from v_extensions ";
$sql .= "where domain_uuid = '$domain_uuid' ";
if (!(if_group("admin") || if_group("superadmin"))) {
if (count($_SESSION['user']['extension']) > 0) {
@@ -151,11 +150,8 @@ $order = $_GET["order"];
if ($result_count > 0) {
foreach($result as $row) {
// echo "<pre>\n";
// print_r($row);
// echo "</pre>\n";
$sql = "";
$sql .= "select count(*) as count from voicemail_msgs ";
$sql = "select count(*) as count from voicemail_msgs ";
$sql .= "where domain = '".$_SESSION['domains'][$domain_uuid]['domain_name']."' ";
$sql .= "and username = '".$row['extension']."' ";
// $prep_statement = $db->prepare(check_sql($sql));
@@ -200,4 +196,4 @@ echo "<br><br>";
//show the footer
require "includes/require.php";
require_once "includes/footer.php";
?>
?>

View File

@@ -43,8 +43,7 @@ if (count($_GET)>0) {
//delete the data
if (strlen($id)>0) {
$sql = "";
$sql .= "delete from voicemail_prefs ";
$sql = "delete from voicemail_prefs ";
$sql .= "where domain = '".$_SESSION['domains'][$domain_uuid]['domain_name']."' ";
$sql .= "and username = '$domain_uuid' ";
$count = $db->exec(check_sql($sql));