date_default_timezone_set('Asia/Riyadh'); include 'db.php'; include "uCal.class.php"; $file_type=array('pdf','png','jpg','jpeg','zip','rar','doc','docx','xls','xlsx','txt','ppam','ppt','pptx','pptm','xps','pot','potx','potm','pps','ppsx','ppsm','ppa','ppam','ppax','ppt','pptx'); $file_type2 = join(",",$file_type); function dh($gd,$gm,$gy) { $date_h = new uCal; $dateh = $date_h->g2u($gd,$gm,$gy); if($dateh[day]<10) { $dateh[day]="0".$dateh[day]; } if($dateh[month]<10) { $dateh[month]="0".$dateh[month]; } return $dateh="$dateh[year]-$dateh[month]-$dateh[day]"; } ################################# function dh2($date) { $gd=$date[8].$date[9]; $gm=$date[5].$date[6]; $gy=$date[0].$date[1].$date[2].$date[3]; $date_h = new uCal; if($gy<=1900) { return $dateh="$date"; }else{ $dateh = $date_h->g2u($gd,$gm,$gy); if($dateh[day]<10) { $dateh[day]="0".$dateh[day]; } if($dateh[month]<10) { $dateh[month]="0".$dateh[month]; } return $dateh="$dateh[year]-$dateh[month]-$dateh[day]"; } } $gd=date("d"); $gm=date("m"); $gy=date("Y"); //echo $dateh=dh2("$gy-$gm-$gd"); #echo $dateh=dh($gd,$gm,$gy); #exit; /* foreach($_GET as $hack1=>$hack2) { if(strpos($hack2,'union')|| strpos($hack2,'select')|| strpos($hack2,'and')|| strpos($hack2,'order')|| #strpos($hack2,'or')|| strpos($hack2,',')|| strpos($hack2,' ')|| strpos($hack2,'=')|| strpos($hack2,'"')|| strpos($hack2,"'")|| strpos($hack2,'%')|| strpos($hack2,'+')|| strpos($hack2,'(')|| strpos($hack2,')')) { ################################# $where_come=$_SERVER['HTTP_REFERER']; $where_come=htmlspecialchars($where_come); ################################# $ip=$_SERVER['REMOTE_ADDR']; $ip=htmlspecialchars($ip); ################################# $date1=$date; $date1=htmlspecialchars($date1); ################################# $date2=$time; $date2=htmlspecialchars($date2); ################################# $all = $_SERVER['HTTP_USER_AGENT']; $all=htmlspecialchars($all); ################################# $fp = fopen('HACKER.htm', 'a+'); fwrite($fp,"