Exemplo n.º 1
0
 function _set_gammurc_($var_handphoneno)
 {
     require_once "../" . def_directory_classes_master . "class_handphone.php";
     $var_class_handphone = new _class_handphone_();
     if ($var_class_handphone->_is_primary_exist_($var_handphoneno)) {
         $var_class_handphone->_set_handphone_($var_handphoneno);
         $var_class_handphone->_set_data_($var_handphoneno);
         $var_contents = '[gammu]' . "\n" . 'model=' . $var_class_handphone->var_model . "\n" . 'port=' . $var_class_handphone->var_port . "\n" . 'connection=' . $var_class_handphone->var_connection . "\n";
         $var_file = fopen("../gammu/gammurc", "w");
         $var_file2 = fopen("gammurc", "w");
         fputs($var_file, $var_contents);
         fputs($var_file2, $var_contents);
         fclose($var_file);
         fclose($var_file2);
     }
 }
Exemplo n.º 2
0
"
					method="post">
				<table border="0" cellpadding="3" cellspacing="0" align="center"
					class="myform">
					<tr>
						<td align="left"><?php 
echo _set_label_("", "Konektifitas");
?>
</td>
						<td><?php 
echo _set_label_("", " : ");
?>
</td>
						<td align="left"><?php 
require_once "../" . def_directory_classes_master . "class_handphone.php";
$var_class_handphone = new _class_handphone_();
echo $var_class_handphone->_set_pulldown_("slt_handphoneno");
?>
</td>
					</tr>
					<tr>
						<td align="left"><?php 
echo _set_label_("", "Auto Refresh");
?>
</td>
						<td><?php 
echo _set_label_("", " : ");
?>
</td>
						<td align="left"><?php 
echo _set_input_("txt_autorefresh", $var_class_setting->var_autorefresh, "text", 'maxlength="3" style="width: 50px;"');
Exemplo n.º 3
0
                <?php 
if (isset($HTTP_GET_VARS["process"]) && $HTTP_GET_VARS["process"] == "add") {
    ?>
                <td valign="top">
                    <?php 
    require_once def_directory_modules . "handphone/" . "module_add.php";
    ?>
                </td>
                <?php 
} else {
    if (isset($HTTP_GET_VARS["process"]) && $HTTP_GET_VARS["process"] == "delete") {
        if (isset($HTTP_GET_VARS["processid"])) {
            $var_handphoneno = _set_variable_http_("processid");
            if (_is_not_null_($var_handphoneno)) {
                require_once "../" . def_directory_classes_master . "class_handphone.php";
                $var_class_handphone = new _class_handphone_();
                if (!$var_class_handphone->_is_primary_exist_($var_handphoneno)) {
                    ?>
                <td valign="top">
                    <?php 
                    if (isset($HTTP_GET_VARS["action"])) {
                        require_once def_directory_modules . "handphone/" . "module_delete.php";
                    } else {
                        $session_error = "Harap Mengikuti Prosedur";
                        _set_session_register_("session_error");
                        require_once def_directory_modules . "handphone/" . "module_error.php";
                    }
                    ?>
                </td>
                <?php 
                } else {