|
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("/usr/local/freeswitch/conf/public/default/".$publicincludefilename)) {
unlink("/usr/local/freeswitch/conf/public/default/".$publicincludefilename);
}
unset($publicincludefilename);
unset($a_public_includes[$_GET['id']]);
write_config();
sync_package_freeswitch_public_includes();
header("Location: freeswitch_public_includes.php");
exit;
}
}
}
include("head.inc");
?>
FreeSWITCH: Public
|