コード例 #1
0
ファイル: outbox.php プロジェクト: ocpyosep78/ORDER-SMS
        } else {
            $session_error = "Harap Mengikuti Prosedur";
            _set_session_register_("session_error");
        }
    } elseif ($HTTP_GET_VARS["process"] == "handphone") {
        require_once "../" . def_directory_classes . "class_gammu.php";
        $var_class_gammu = new _class_gammu_("..\\gammu\\gammu.exe");
        $var_class_gammu->_gammu_outbox_(&$var_respon);
        if (_is_not_null_($var_respon)) {
            $session_error = $var_respon;
            _set_session_register_("session_error");
        }
    } elseif ($HTTP_GET_VARS["process"] == "deleteall") {
        if (isset($HTTP_GET_VARS["action"])) {
            require_once "../" . def_directory_classes_master . "class_outbox.php";
            $var_class_outbox = new _class_outbox_();
            $var_class_outbox->_delete_all_();
            $session_success = "Semua Data Sudah Dihapus";
            _set_session_register_("session_success");
            _set_location_(_set_link_(def_application_outbox));
        }
    }
}
if (isset($var_class_outbox) && is_object($var_class_outbox)) {
} else {
    require_once "../" . def_directory_classes_master . "class_outbox.php";
    $var_class_outbox = new _class_outbox_();
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
コード例 #2
0
ファイル: write.php プロジェクト: ocpyosep78/ORDER-SMS
<?php

require_once "includes/application_startup.php";
require_once "../" . def_directory_classes . "class_gammu.php";
$var_class_gammu = new _class_gammu_("..\\gammu\\gammu.exe");
if (_is_session_registered_("session_userid")) {
    if (isset($HTTP_GET_VARS["process"]) && $HTTP_GET_VARS["process"] == "") {
        $var_nohp = _set_variable_http_("txt_nohp", false);
        $var_pesan = _set_variable_http_("txt_pesan", false);
        if (_is_not_null_($var_nohp)) {
            if (_is_not_null_($var_pesan)) {
                require_once "../" . def_directory_classes_master . "class_outbox.php";
                $var_class_outbox = new _class_outbox_();
                $var_class_gammu->_gammu_send_(&$var_respon, $var_nohp, $var_pesan);
                $var_class_outbox->_save_data_($var_pesan, $var_nohp, "NOW()");
                if (_is_not_null_($var_respon)) {
                    $session_error = $var_respon;
                    _set_session_register_("session_error");
                } else {
                    $session_success = $var_respon;
                    _set_session_register_("session_success");
                }
            } else {
                $session_error = "Message Harap Diisi";
                _set_session_register_("session_error");
            }
        } else {
            $session_error = "Nomor HP Harap Diisi";
            _set_session_register_("session_error");
        }
    }