0) {
$i=0;
if (count($a_public_includes_details) > 0) {
foreach($a_public_includes_details as $row) {
if ($row["publicincludeid"] == $publicincludeid) {
//echo "child id: ".$i."
\n";
unset($a_public_includes_details[$i]);
}
$i++;
}
}
}
//if the public include xml file exists then delete it
if (file_exists($v_conf_dir."/dialplan/public/".$publicincludefilename)) {
unlink($v_conf_dir."/dialplan/public/".$publicincludefilename);
}
unset($publicincludefilename);
unset($a_public_includes[$_GET['id']]);
write_config();
sync_package_v_public_includes();
header("Location: v_public_includes.php");
exit;
}
}
}
include("head.inc");
?>
$v_label: Public\n";
}
?>