|
if ($_GET['a'] == "default") { conf_mount_rw(); exec("cp ".$v_conf_dir.".orig/dialplan/default.xml ".$v_conf_dir."/dialplan/default.xml"); $savemsg = "Default Restored"; conf_mount_ro(); } if ($_POST['a'] == "save") { conf_mount_rw(); $content = ereg_replace("\r","",$_POST['code']); $fd = fopen($v_conf_dir."/dialplan/default.xml", "w"); fwrite($fd, $content); fclose($fd); $savemsg = "Saved"; conf_mount_ro(); } $fd = fopen($v_conf_dir."/dialplan/default.xml", "r"); $content = fread($fd, filesize($v_conf_dir."/dialplan/default.xml")); fclose($fd); include("head.inc"); ?>
$v_label: Dialplan\n"; } ?>
|