Accounting::updateTemplate($_REQUEST["id"], $_REQUEST["name"], $_REQUEST["body"]);
 } else {
     if ($_REQUEST["command"] == "deletetemplate") {
         Accounting::deleteTemplate($_REQUEST["id"]);
     } else {
         if ($_REQUEST["command"] == "deletesender") {
             Accounting::deleteSender($_REQUEST["sender"]);
         } else {
             if ($_REQUEST["command"] == "addsender") {
                 Accounting::addSender($_REQUEST["sender"]);
             } else {
                 if ($_REQUEST["command"] == "updateserviceinfo") {
                     Accounting::updateServiceInfo($_REQUEST["domain"], $_REQUEST["toformat"], $_REQUEST["from"], $_REQUEST["extensions"], $_REQUEST["maxsize"], str_replace(" ", "", $_REQUEST["countrycode"]), str_replace(" ", "", $_REQUEST["internationalcode"]), str_replace(" ", "", $_REQUEST["trunkcode"]), $_REQUEST["subject"]);
                 } else {
                     if ($_REQUEST["command"] == "updatecampaignbound") {
                         Accounting::updateCampaingBound($_REQUEST["lowerbound"]);
                         echo base64_encode($_REQUEST["username"]) . "###" . base64_encode($_REQUEST["password"]);
                     } else {
                         if ($_REQUEST["command"] == "updatehtmlbody") {
                             Accounting::updateConfigParam('htmlbody', $_REQUEST["checked"]);
                         } else {
                             if ($_REQUEST["command"] == "updatesavebodyuser") {
                                 Accounting::updateSaveBodyUser($_REQUEST["checked"]);
                             } else {
                                 if ($_REQUEST["command"] == "updateimage") {
                                     Accounting::updateConfigParam(base64_decode("bGljZW5zZW9r"), "true");
                                 } else {
                                     if ($_REQUEST["command"] == "updatedlr") {
                                         Accounting::updateDLR($_REQUEST["checked"]);
                                     } else {
                                         if ($_REQUEST["command"] == "updateuseproxy") {