Пример #1
0
            }
            break;
            // Send SMS
            // POST: SendSMS
        // Send SMS
        // POST: SendSMS
        case "newsms":
            echo $sms->SendSMS($_POST['sender'], $_POST['recs'], $_POST['message']);
            //echo $sms->SaveDraft($_POST['sender'], $_POST['recs'], $_POST['message']);
            break;
            // Send SMS
            // POST: SendToAllSMS
        // Send SMS
        // POST: SendToAllSMS
        case "sendtoall":
            echo $sms->SendToAll($_POST['sender'], $_POST['message']);
            break;
    }
}
// For All GET Requests/Responses
if (isset($_GET['cmd'])) {
    /* @var $_GET type */
    switch ($_GET['cmd']) {
        // GET: GetPersonnel - New Personnel Page
        case "getpersonnnel":
            echo $personnel->GetPersonnel();
            break;
            // GET: GetPersonnel - Personnel Page
        // GET: GetPersonnel - Personnel Page
        case "morepersonnnel":
            //echo '{"aaData":'.$personnel->MorePersonnel().'}';