]*?>.*?@si', '@<[\/\!]*?[^<>]*?>@si', '@]*?>.*?@siU', '@@' ); $a = preg_replace($search, '', $a); $a = str_replace("'","`",$a); return $a; } function catlog($user,$log){ $id=getMax('id','cat_sys',''); runSQL("INSERT INTO cat_sys(id,user,log) VALUES($id,'$user','$log')"); } function load_app($file) { require("modul/".$file.".php"); } function load_mod($file){ require("sys/".$file.".php"); } function load_p($file) { require("print/".$file.".php"); } function compare($a,$b){ $a=$a.key_token; $a=md5($a); if($a!=$b){ echo ""; } } function get_token($a){ $a=$a.key_token; return md5($a); } function get_url($a){ /* online version ---- */ $url=$_SERVER["REQUEST_URI"]; $url=substr($url, 1); $url=explode("/",str_replace(".sios","",$url)); return $url[$a]; /* offline version $url=str_replace(NDOM,"",$_SERVER["REQUEST_URI"]); $url=explode("/",str_replace(".sas","",$url)); return $url[$a]; */ } function tanggal($a){ $tanggal=date_create($a); $tgl=date_format($tanggal,'d'); $thn=date_format($tanggal,'Y'); $bln=date_format($tanggal,'m'); if($bln=="01"){$bulan="Januari";} else if($bln=="02"){$bulan="Februari";} else if($bln=="03"){$bulan="Maret";} else if($bln=="04"){$bulan="April";} else if($bln=="05"){$bulan="Mei";} else if($bln=="06"){$bulan="Juni";} else if($bln=="07"){$bulan="Juli";} else if($bln=="08"){$bulan="Agustus";} else if($bln=="09"){$bulan="September";} else if($bln=="10"){$bulan="Oktober";} else if($bln=="11"){$bulan="November";} else if($bln=="12"){$bulan="Desember";} $tanggal=$tgl." ".$bulan." ".$thn; return $tanggal; } ?>