Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ include "root.php"; require "includes/require.php"; require_once "includes/checkauth.php"; if (permission_exists('voicemail_status_delete')) { //access granted } else { echo "access denied"; exit; } if (count($_GET)>0) { $id = $_GET["id"]; } //pdo voicemail database connection include "includes/lib_pdo_vm.php"; //delete the data if (strlen($id)>0) { $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)); unset($sql); } //add multi-lingual support echo "\n"; foreach($text as $key => $value) { $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //redirect the user require "includes/require.php"; require_once "includes/header.php"; echo "\n"; echo "
\n"; echo $text['label-prefs-delete']."\n"; echo "
\n"; require_once "includes/footer.php"; return; ?>