} 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") {
                                     Accounting::updateUseProxy($_REQUEST["checked"]);
                                 } else {
                                     if ($_REQUEST["command"] == "updateenablereminder") {
                                         Accounting::updateUseReminder($_REQUEST["checked"]);
                                     } else {
                                         if ($_REQUEST["command"] == "savereminder") {
                                             Accounting::updateReminderSettings($_REQUEST["sender"], $_REQUEST["phonetype"]);