Esempio n. 1
0
 }
 if ($whmcs->get_req_var("pending")) {
     check_token("WHMCS.admin.default");
     changeOrderStatus($id, "Pending");
     redir("action=view&id=" . $id . "&backpending=true");
     exit;
 }
 if ($whmcs->get_req_var("cancelrefund")) {
     check_token("WHMCS.admin.default");
     checkPermission("Refund Invoice Payments");
     $error = cancelRefundOrder($id);
     redir("action=view&id=" . $id . "&cancelledrefunded=true&error=" . $error);
     exit;
 }
 if ($whmcs->get_req_var("activated") && isset($_COOKIE['WHMCSOrderAccept'])) {
     $errors = wGetCookie("OrderAccept", 1);
     wDelCookie("OrderAccept");
     if (count($errors)) {
         infoBox($aInt->lang("orders", "statusaccepterror"), implode("<br>", $errors), "error");
     } else {
         infoBox($aInt->lang("orders", "statusaccept"), $aInt->lang("orders", "statusacceptmsg"), "success");
     }
 }
 if ($whmcs->get_req_var("cancelled")) {
     infoBox($aInt->lang("orders", "statuscancelled"), $aInt->lang("orders", "statuschangemsg"));
 }
 if ($whmcs->get_req_var("frauded")) {
     infoBox($aInt->lang("orders", "statusfraud"), $aInt->lang("orders", "statuschangemsg"));
 }
 if ($whmcs->get_req_var("backpending")) {
     infoBox($aInt->lang("orders", "statuspending"), $aInt->lang("orders", "statuschangemsg"));
Esempio n. 2
0
    check_token("WHMCS.admin.default");
    $result = ServerChangePassword($id);
    wSetCookie("ModCmdResult", $result);
    redir("userid=" . $userid . "&id=" . $id . "&act=pwchange&ajaxupdate=1");
}
if ($modop == "custom") {
    check_token("WHMCS.admin.default");
    $result = ServerCustomFunction($id, $ac);
    if (substr($result, 0, 9) == "redirect|") {
        exit($result);
    }
    wSetCookie("ModCmdResult", $result);
    redir("userid=" . $userid . "&id=" . $id . "&act=custom&ajaxupdate=1");
}
if (in_array($whmcs->get_req_var("act"), array("create", "suspend", "unsuspend", "terminate", "updown", "pwchange", "custom"))) {
    if ($result = wGetCookie("ModCmdResult")) {
        if ($result != "success") {
            infoBox($aInt->lang("services", "moduleerror"), $result, "error");
        } else {
            infoBox($aInt->lang("services", "modulesuccess"), $aInt->lang("services", $act . "success"), "success");
        }
    }
}
if ($whmcs->get_req_var("success")) {
    infoBox($aInt->lang("global", "changesuccess"), $aInt->lang("global", "changesuccessdesc"));
}
$regdate = fromMySQLDate($regdate);
$nextduedate = fromMySQLDate($nextduedate);
$overidesuspenduntil = fromMySQLDate($overidesuspenduntil);
if ($disklimit == "0") {
    $disklimit = $aInt->lang("global", "unlimited");
Esempio n. 3
0
            update_query("tblcalendar", array("end" => $end), array("id" => $id));
        }
    }
    exit;
}
if ($action == "delete") {
    check_token("WHMCS.admin.default");
    delete_query("tblcalendar", array("id" => $id));
    exit;
}
if ($action == "recurdelete") {
    check_token("WHMCS.admin.default");
    delete_query("tblcalendar", array("recurid" => $recurid));
    redir();
}
$caldisplaytypes = wGetCookie("CalendarDisplayTypes", 1);
if ($caldisplaytypes['events'] == "on") {
    add_hook("CalendarEvents", "-999", "calendar_core_calendar");
}
if ($caldisplaytypes['services'] == "on") {
    add_hook("CalendarEvents", "-998", "calendar_core_products");
}
if ($caldisplaytypes['addons'] == "on") {
    add_hook("CalendarEvents", "-997", "calendar_core_addons");
}
if ($caldisplaytypes['domains'] == "on") {
    add_hook("CalendarEvents", "-996", "calendar_core_domains");
}
if ($caldisplaytypes['todo'] == "on") {
    add_hook("CalendarEvents", "-995", "calendar_core_todoitems");
}
Esempio n. 4
0
                infoBox($aInt->lang("domains", "idprotectfailed"), $values['error'], "error");
            } else {
                infoBox($aInt->lang("domains", "idprotectsuccess"), $aInt->lang("domains", "idprotectinfo"), "success");
            }
        }
    }
    $success = $domains->moduleCall("GetNameservers");
    if ($success) {
        $nsvalues = $domains->getModuleReturn();
    } else {
        if (!$infobox) {
            infoBox($aInt->lang("domains", "registrarerror"), $domains->getLastError());
        }
    }
    if ($conf == "renew") {
        $values = wGetCookie("DomRenewRes", 1);
        if ($values['error']) {
            infoBox($aInt->lang("domains", "renewfailed"), $values['error'], "error");
        } else {
            $successmessage = str_replace("%s", $registrationperiod, $aInt->lang("domains", "renewinfo"));
            infoBox($aInt->lang("domains", "renewsuccess"), $successmessage, "success");
        }
    }
    $success = $domains->moduleCall("GetRegistrarLock");
    if ($success) {
        $lockstatus = $domains->getModuleReturn();
    }
}
$clientnotes = array();
$result = select_query("tblnotes", "tblnotes.*,(SELECT CONCAT(firstname,' ',lastname) FROM tbladmins WHERE tbladmins.id=tblnotes.adminid) AS adminuser", array("userid" => $userid, "sticky" => "1"), "modified", "DESC");
while ($data = mysql_fetch_assoc($result)) {
Esempio n. 5
0
         }
         if (in_array($response['status'], array("info", "success", "error"))) {
             $status = $response['status'];
         }
     }
     $title = $aInt->lang("addonmodules", "moduleactivated");
     if (!$desc) {
         $desc = $aInt->lang("addonmodules", "moduleactivatedinfo");
     }
     if (!$status) {
         $status = "success";
     }
     infoBox($title, $desc, $status);
 }
 if ($whmcs->get_req_var("deactivated")) {
     $response = wGetCookie("AddonModActivate", 1);
     $desc = $status = "";
     if (is_array($response)) {
         if ($response['description']) {
             $desc = $response['description'];
         }
         if (in_array($response['status'], array("info", "success", "error"))) {
             $status = $response['status'];
         }
     }
     $title = $aInt->lang("addonmodules", "moduledeactivated");
     if (!$status) {
         $status = "success";
     }
     infoBox($title, $desc, $status);
 }