One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
htdocs
/
edgpens_220704
/
Edit File:
sessions.php
<?php function in_array_recursive($needle, $haystack) { $it = new RecursiveIteratorIterator(new RecursiveArrayIterator($haystack)); foreach($it AS $element) { if($element == $needle) { return true; } } return false; } function change_date($date,$format){ // echo mktime($date); $dd = explode(" ", $date); $x1 = explode("-", $dd[0]); $x2 = explode(":", $dd[1]); $d1 = (!empty($x2[0])) ? $x2[0] : 0 ; // hour $d2 = (!empty($x2[1])) ? $x2[1] : 0 ; // min $d3 = (!empty($x2[2])) ? $x2[2] : 0 ; // sec $d4 = $x1[1]; // month $d5 = $x1[0]; // day $d6 = $x1[2]; // year if(!empty($date)) return date($format,mktime($d1,$d2,$d3,$d4,$d5,$d6)); else return ''; } function rand_filename($x = null,$y = null,$z = null, $test = null){ global $mysqli; /* $x = path $y = type/extension of file *.pdf etc $z = 1 ~ full path; 2 ~ name with ext; @anything ~ generate name only $x,$y,$z = null ~ generate name only */ $rn = intval( "0" . rand(1,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) ); // random(ish) 5 digit int $rs = chr(rand(65,90)) . chr(rand(65,90)) . chr(rand(65,90)) . chr(rand(65,90)) . chr(rand(65,90)); // random(ish) 5 character string $rand_name = $rn.$rs.$y; if(empty($x) && empty($y) && empty($z)): return $rn.$rs; else: $query = "SELECT * FROM permohonan_lampiran WHERE namaFail='{$rand_name}'"; $result = $mysqli->query($query); $row = $result->fetch_assoc(); if($row): return rand_filename($x,$y,$z); else: if($z == '1'): return $x.$rn.$rs.$y; elseif($z == '2'): return $rn.$rs.$y; else: return $rn.$rs; endif; endif; endif; } function rand_filename2($x = null,$y = null,$z = null, $test = null){ /* $x = path $y = type/extension of file *.pdf etc $z = 1 ~ full path; @anything ~ generate name only $x,$y,$z = null ~ generate name only */ $rn = intval( "0" . rand(1,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) ); // random(ish) 5 digit int $rs = chr(rand(65,90)) . chr(rand(65,90)) . chr(rand(65,90)) . chr(rand(65,90)) . chr(rand(65,90)); // random(ish) 5 character string if(empty($x) && empty($y) && empty($z)): return $rn.$rs; else: if(file_exists($x."{$rn}{$rs}{$y}")): return $this->rand_filename($x,$y,$z); else: if($z == '1'): return $x.$rn.$rs.$y; else: return $rn.$rs; endif; endif; endif; } function change_blank($x,$y = null,$z = null){ // $z for date/time : enter blank date type to change ~ 0000-00-00 / 00:00:00 if(empty($z)){ $y = (!empty($y)) ? $y : " " ; $retVal = (empty($x)) ? $y : $x ; }else{ $y = ($x == $z) ? $y : $x ; $retVal = $y; } return $retVal; } ?>
Simpan