menu.jpg
 
Suka Bagi Uang, Adik Gus Ipul Menang

SURABAYA (Surabaya Pagi) – Tidak sia-sia sejak satu tahun belakangan ini, Saifullah Yusuf (Gus Ipul) Wakil Gubernur Jawa Timur menghabiskan waktu setiap Jumat sore hingga Minggu untuk kampanye adik kandungnya di Kabupaten Pasuruan. Dua lembaga survei penghitungan cepat pemilihan kepala daerah (Pilkada) Kabupaten Pasuruan, menempatkan Irsyad Yusuf – Riang Kulup sebagai pemenang. Irsyad, sang adik kandung Gus Ipul ini unggul 40% lebih dalam hasil quick count dari LSI (Lembaga Survey Indonesia) dan Proximity Survey.

Informasi yang berhasil dihimpun, selama itu Saifullah Yusuf tidak datang dengan tangan kosong untuk memenangkan adik kandung kesayangannya itu. Sebuah sumber di Pasuruan mengatakan, setiap kali Saifullah Yusuf datang bersama Irsyad Yusuf selalu bagi-bagi sarung dan jilbab ke masyarakat. Rela blusukan ke desa-desa terpencil. “Sejak jauh hari sebelum kampanye, Gus Ipul sudah sering keliling kampanye adiknya,” kata sumber yang minta namanya tidak dikorankan ini.

Perjuangan tersebut semakin gencar dilakukannya sebelum pemilihan sampai siang kemarin, Gus Ipul ‘menunggu’ hasilnya di kediaman Irsyad Yusuf.

Wima Eddy Nugroho, Direktur Utama lembaga Proximity mengatakan, hasil hitung cepat menunjukkan pasangan Irsyad Yusuf dan Riang Kulup Prayuda unggul. Angka perolehannya pun cukup fantastis, yakni 40,75 persen. Padahal, di pilkada Pasuruan terdapat enam pasangan calon. “Awalnya memang diprediksi akan terjadi dua putaran karena ada enam pasang calon, tapi kalau ada yang mendapat 40% lebih, berarti satu putaran,” ucap Wima, kemarin sore (3/3/2013).

Menurutnya, kemenangan pasangan Irsyad Yusuf dan Riang Kulup ini disebabkan tiga faktor penting. Pertama, figur yang merakyat. Kedua, dianggap bersih dari kasus korupsi. Ketiga adalah Dermawan atau suka bagi uang. “Tapi faktor dermawan itu nomer tiga lho. Yang nomer satu kan merakyat dan kedua adalah bersih,” ujar Wima.

Ditambahkannya, selama pihaknya melakukan survei ke masyarakat Pasuruan, tiga faktor tersebut yang mempengaruhi seseorang dipilih. “Dan itu ternyata ada pada pasangan nomor 4 (Irsyad-Riang Kulup). “Apalagi pasangan tersebut berasal dari wilayah timur dan selatan Pasuruan serta memiliki pendukung yang cukup fanatik,” ujarnya.

Yang pasti, lanjut alumnus ITS Surabaya ini jika sejak awal pihaknya sudah mempredikasi kemenangan Irsyad Yusuf ini. Menurut data quick count Proximity, dari enam pasangan yang maju masing-masing Edy Paripurna-Bambang Pujiono (PDIP dan Parpol non parlemen) 15,34 persen, Udik Januantoro-Joko Cahyono (Partai golkar) 18,85 persen, Anwar Sadad-Dede Angga (PKNU, PKS dan Hanura) 8,08 persen, Irsyad Yusuf-Riang Kulup (PKB dan Demokrat) 40,75 persen, Muzammil Syafi’i-Juraida (independen) 3,87 persen serta Kelana Aprilianto-Agus Asy’ari (PPP dan Gerindra) 12,36 persen.

Meski hasil survei yang dilakukan Proximity masih berada pada angka 94,00 persen, namun Wima berkeyakinan Pilkada Pasuruan hanya satu putaran saja. Dipastikan yang menang pasangan nomor 4, yaitu pasangan Irsyad Yusuf dan Riang Kulup Prayuda (Satria). “Faktor partai tidak terlalu signifikan berpengaruh pada figur pasangan yang maju,” tandasnya.

Sementara itu, bagian riset LSI, Laela Fitriyana mengaku dalam pelaksanaan Pilkada langsung, faktor figur masih mendominasi. Irsyad Yusuf adalah kader nadhiyin serta Ketua DPRD Kabupaten Pasuruan yang notabene memiliki dukungan yang cukup kuat dan riil. “Kita tahu di Pasuruan merupakan basis kuat NU. Sementara Irsyad Yusuf memiliki trah yang sangat kuat di nadhiyin. Selain itu, yang bersangkutan adalah sosok anak muda yang sangat dekat dengan rakyat. Tak heran pasangan ini memperoleh angka dukungan yang sangat mutlak yaitu 41,14 persen dibandingkan pasangan lain yang dibawah angka 25 persen,” tegas peneliti dari LSI, Laela Fitiryana.

Dengan perolehan 41,14 persen sudah dapat dipastikan pelaksanaan Pilkada Pasuruan hanya satu putaran. Menariknya dari beberapa wilayah yang diambil sampling, hampir seluruhnya dimenangkan oleh pasangan nomor 4 yang didukung oleh PKB dan Partai Demokrat. Adapun data yang masuk hingga pukul 16.00 Wib, sudah mencapai 100 persen dengan tingkat partisipasi 65,96 persen dengan sampling error 1 persen. Serta jumlah TPS yang diambil sekitar 235 TPS dari total yang ada 2.369 TPS dengan jumlah pemilih 1.142.093 orang.

Berdasarkan quick count LSI, pasangan lain, Udik Djanuantoro-Joko Cahyono memperoleh 23,09 persen. Eddy Paripurna dan Bambang Pudjiono 15,64 persen suara, Kelana Apriliyanto dan Agus Asy’ari dengan 9,77 persen, Anwar-Dede Angga meraih 7,71 persen. Pasangan calon terakhir yang berada di urutan paling bawah, yakni Muzamil Syafi'i dan Juraida yang maju dari calon perseorangan dengan perolehan suara 2,65 persen.

Terpisah, Anwar Sadad, calon bupati Pasuruan yang diusung PKNU dan Hanura mengaku pertarungan di Pasuruan bagaikan melawan harimau dan derasnya samudra. Meski dirinya berpasangan dengan Dade Angga (bupati incumbent), namun tak kuasa melawan. “Hanya sedikit manusia yang dapat melaluinya,” tutur Sadad yang mengibaratkan kerasnya pertarungan di Pilkada Pasuruan.

Sementara Gus Irsyad yang juga Ketua DPRD Kab. Pasuruan ini meminta semua timnya untuk mengamankan hasil perhitungan manual di setiap tingkatan. "Kita tunggu aja hasilnya penetapan KPU," ujarnya. n rko/dir

Berita lainnya
KPU Segera Bahas Pilkada Serentak
Pendukung Prabowo Demo KPU
30 Kotak Suara Hilang
Buka Kotak Suara, KPU Jombang Dipr...
Lagi, KPU Gresik Buka Kotak Suara
KPUD Kediri Buka 89 Kotak Suara
KPUD Jombang Buka 135 Kotak Suara
Komisioner KPU Lumajang Juga Digug...
Mantan Bupati : Pilpres Sudah Usai
Dua Kubu Capres Rekonsiliasi Damai
Dzikir Akbar Dukung Rekap KPU
Coblosan Ulang di Desa Jagoan
Bangkalan dan Sampang Diseret ke D...
Buka Kotak Suara, Panwaslu Dipolis...
Bawaslu: TPS di Juanda adalah DPT ...
Copyright © 2012 surabayapagi.com
  Kontak | Tentang Kami | Kode Etik | Disclaimer | RSS Feed  | User Online :  65
traffic

sp.css /*.bghl {position:absolute;top:230px;left:0;padding-left:5px;width:290px;background-color:#333;color:#fff;filter:alpha(opacity=80);-moz-opacity:.80;opacity:.80;height:16px;padding:2px 0 2px 0; } */ /*.judul_kanan {font:bold 17px Helvetica,Tahoma, Geneva; color:#2076B5; text-decoration:none;} */ .judul_kanan {font:bold 17px Helvetica,Tahoma, Geneva; color:#2076B5; text-decoration:none;} .judul_kanan a:link {font:bold 17px Helvetica,Tahoma, Geneva; color:#2076B5; text-decoration:none;} .judul_kanan a:visited {font:bold 17px Helvetica,Tahoma, Geneva; color:#2076B5; text-decoration:none;} .judul_kanan a:hover {font:bold 17px Helvetica,Tahoma, Geneva;color:#FF0000; text-decoration:none} .judul_kolom {font:bold 16px Helvetica,Tahoma, Geneva, sans-serif; color:#044DAB; text-decoration:none;} .judul_kolom a:link {font:bold 16px Helvetica,Tahoma, Geneva, sans-serif; color:#044DAB; text-decoration:none;} .judul_kolom a:visited {font:bold 16px Helvetica,Tahoma, Geneva, sans-serif; color:#044DAB; text-decoration:none;} .judul_kolom a:hover {font:bold 16px Helvetica,Tahoma, Geneva, sans-serif; color:#FF0000; text-decoration:underline;} .judul_kolom_tab {font:bold 16px Helvetica,Tahoma, Geneva, sans-serif; color:#F0E960; text-decoration:none;} .judul_kolom_tab a:link {font:bold 16px Helvetica,Tahoma, Geneva, sans-serif; color:#F0E960; text-decoration:none;} .judul_kolom_tab a:visited {font:bold 16px Helvetica,Tahoma, Geneva, sans-serif; color:#F0E960; text-decoration:none;} .judul_kolom_tab a:hover {font:bold 16px Helvetica,Tahoma, Geneva, sans-serif; color:#FF0000; text-decoration:underline;} .judul_kontak {font:bold 12px Arial; color:#F0E960; text-decoration:none;} .judul_kontak a:link {font:bold 12px Arial; color:#F0E960; text-decoration:none;} .judul_kontak a:visited {font:bold 12px Arial; color:#F0E960; text-decoration:none;} .judul_kontak a:hover {font:bold 12px Arial; color:#FF0000; text-decoration:underline;} .judul_box {font:bold 14px Helvetica,Tahoma, Geneva, sans-serif; color:#000000; text-decoration:none;} .judul_box a:link {font:bold 14px Helvetica,Tahoma, Geneva, sans-serif; color:#000000; text-decoration:none;} .judul_box a:visited {font:bold 14px Helvetica,Tahoma, Geneva, sans-serif; color:#000000; text-decoration:none;} .judul_box a:hover {font:bold 14px Helvetica,Tahoma, Geneva, sans-serif; color:#FF0000; text-decoration:underline;} .judul_box2 {font:bold 12px Helvetica,Tahoma, Geneva, sans-serif; color:#000000; text-decoration:none;} .judul_box2 a:link {font:bold 12px Helvetica,Tahoma, Geneva, sans-serif; color:#000000; text-decoration:none;} .judul_box2 a:visited {font:bold 12px Helvetica,Tahoma, Geneva, sans-serif; color:#000000; text-decoration:none;} .judul_box2 a:hover {font:bold 12px Helvetica,Tahoma, Geneva, sans-serif; color:#FF0000; text-decoration:underline;} .menu_utama {font:bold 12px Arial; color:#000000; text-decoration:none;} .menu_utama a:link {font:bold 12px Arial; color:#000000; text-decoration:none;} .menu_utama a:visited {font:bold 12px Arial; color:#000000; text-decoration:none;} .menu_utama a:hover {font:bold 12px Arial; color:#FF0000; text-decoration:underline;} .menu_utama2 {font:bold 11px Arial; color:#ffffff; text-decoration:none;} .menu_utama2 a:link {font:bold 11px Arial; color:#ffffff; text-decoration:none;} .menu_utama2 a:visited {font:bold 11px Arial; color:#ffffff; text-decoration:none;} .menu_utama2 a:hover {font:bold 11px Arial; color:#FFFF00; text-decoration:underline;} .title_kategori {font:bold 16px Helvetica; color:#FF0000; text-decoration:none; padding-bottom:0px;} .title_kategori2 {font:bold 16px Helvetica; color:#FFFF66; text-decoration:none; padding-bottom:0px;} .title_bottom {font:12px Helvetica; color:#FFFFFF; text-decoration:none; padding-bottom:0px;} .left_berita a:hover { font-family: Arial,Helvetica,Tahoma, Geneva; font-size: 14px; font-variant: bold; color:#000000; text-decoration: none; border-bottom:2px dotted #b1c3d4; background-color:#CCCCCC; margin: 0px; float: left; width:98%; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 0px; } .left_berita a:link{ font-family: Arial,Helvetica,Tahoma, Geneva; font-size: 14px; font-variant: normal; color:#000000; text-decoration: none; border-bottom:2px dotted #b1c3d4; margin: 0px; float: left; width:98%; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 0px; } .left_berita a:visited{ font-family: Arial,Helvetica,Tahoma, Geneva; font-size: 14px; font-variant: normal; color:#000000; text-decoration: none; border-bottom:2px dotted #b1c3d4; margin: 0px; float: left; width:98%; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 0px; } /*=====*/ .left_berita2 a:hover { font-family: Arial,Helvetica,Tahoma, Geneva; font-size: 14px; font-variant: bold; color:#000000; text-decoration: none; margin: 0px; float: left; width:98%; padding-top: 0px; padding-right: 5px; padding-bottom: 5px; padding-left: 0px; } .left_berita2 a:link{ font-family: Arial,Helvetica,Tahoma, Geneva; font-size: 14px; font-variant: bold; color:#000000; text-decoration: none; margin: 0px; float: left; width:98%; padding-top: 0px; padding-right: 5px; padding-bottom: 5px; padding-left: 0px; } .left_berita2 a:visited{ font-family: Arial,Helvetica,Tahoma, Geneva; font-size: 14px; font-variant: normal; color:#000000; text-decoration: none; margin: 0px; float: left; width:98%; padding-top: 0px; padding-right: 5px; padding-bottom: 5px; padding-left: 0px; } .left_daerah li a:hover { font-family: Helvetica,Tahoma, Geneva; font-size: 11px; font-variant: normal; color:#FFFFFF; text-decoration: none; border-bottom:1px dotted #b1c3d4; } .left_daerah li a:link{ font-family: Helvetica,Tahoma, Geneva; font-size: 14px; font-variant: normal; color:#FFFFCC; text-decoration: none; border-bottom:1px dotted #b1c3d4; } .left_daerah li a:visited{ font-family: Helvetica,Tahoma, Geneva; font-size: 14px; font-variant: normal; color:#FFFFCC; text-decoration: none; border-bottom:1px dotted #b1c3d4; } .lead_kanan{font:normal 11px Arial; color:#000000; text-decoration:none} .lead_kolom { font:normal 12px Arial; color:#000000; text-decoration:none; /*padding-top: 5px; padding-right: 5px; padding-bottom: 15px; padding-left: 0px; border-bottom:2px dotted #b1c3d4;*/ } .lead_kolom_tab { font:normal 12px Arial; color:#ffffff; text-decoration:none; /*padding-top: 5px; padding-right: 5px; padding-bottom: 15px; padding-left: 0px; border-bottom:2px dotted #b1c3d4;*/} .lead_box { font:normal 12px Arial; color:#000000; text-decoration:none; padding-top: 5px; /*padding-right: 5px; padding-bottom: 15px; padding-left: 0px; border-bottom:2px dotted #b1c3d4;*/} .judul_tengah4 {font:14px Helvetica,Tahoma, Geneva; color:#2076B5; text-decoration:none;} .judul_tengah4 a:link {font:14px Helvetica,Tahoma, Geneva; color:#2076B5; text-decoration:none;} .judul_tengah4 a:visited {font:14px Helvetica,Tahoma, Geneva; color:#2076B5; text-decoration:none;} .judul_tengah4 a:hover {font:14px Helvetica,Tahoma, Geneva;color:#FF0000; text-decoration:none} .judul_latesnews {font:bold 16px Arial; color:#0A6CCF; text-decoration:none;} .judul_latesnews a:link {font:bold 16px Arial; color:#0A6CCF; text-decoration:none;} .judul_latesnews a:visited {font:bold 16px Arial; color:#0A6CCF; text-decoration:none;} .judul_latesnews a:hover {font:bold 16px Arial;color:#FF0000; text-decoration:underline} .judul_paging {font:bold 11px Arial; color:#000000; text-decoration:none; padding-bottom:5px;} .judul_paging a:link {font:bold 11px Arial; color:#000000; text-decoration:none;padding-bottom:5px;} .judul_paging a:visited {font:bold 11px Arial; color:#000000; text-decoration:none;padding-bottom:5px;} .judul_paging a:hover {font:bold 11px Arial;color:#FF0000; text-decoration:underline;padding-bottom:5px;} .judul_koruptor {font:bold 13px Arial; color:#FF0000; text-decoration:none; padding-bottom:5px;} .judul_koruptor a:link {font:bold 13px Arial; color:#FF0000; text-decoration:none;padding-bottom:5px;} .judul_koruptor a:visited {font:bold 13px Arial; color:#FF0000; text-decoration:none;padding-bottom:5px;} .judul_koruptor a:hover {font:bold 13px Arial;color:#000000; text-decoration:underline;padding-bottom:5px;} .judul_kolom_skandal {font:bold 13px Arial; color:#0A6CCF; text-decoration:none; padding-bottom:5px;} .judul_kolom_skandal a:link {font:bold 13px Arial; color:#0A6CCF; text-decoration:none;padding-bottom:5px;} .judul_kolom_skandal a:visited {font:bold 13px Arial; color:#0A6CCF; text-decoration:none;padding-bottom:5px;} .judul_kolom_skandal a:hover {font:bold 13px Arial;color:#FF0000; text-decoration:underline;padding-bottom:5px;} .judul_kolom_hitam {font:bold 13px Arial; color:#ffffff; text-decoration:none; padding-bottom:5px;} .judul_kolom_hitam a:link {font:bold 13px Arial; color:#ffffff; text-decoration:none;padding-bottom:5px;} .judul_kolom_hitam a:visited {font:bold 13px Arial; color:#ffffff; text-decoration:none;padding-bottom:5px;} .judul_kolom_hitam a:hover {font:bold 13px Arial;color:#FF0000; text-decoration:underline;padding-bottom:5px;} .judul_kolom_index {font:bold 12px Arial; color:#0A6CCF; text-decoration:none; padding-bottom:5px; padding-left:5px;} .judul_kolom_index a:link {font:bold 12px Arial; color:#0A6CCF; text-decoration:none;padding-bottom:5px; padding-left:5px;} .judul_kolom_index a:visited {font:bold 12px Arial; color:#0A6CCF; text-decoration:none;padding-bottom:5px; padding-left:5px;} .judul_kolom_index a:hover {font:bold 12px Arial;color:#FF0000; text-decoration:underline;padding-bottom:5px; padding-left:5px;} .lingual {font:bold 12px Arial; color:#000000; text-decoration:none; padding-bottom:5px; padding-left:5px;} .lingual a:link {font:bold italic 12px Arial; color:#FF0000; text-decoration:none;padding-bottom:5px; padding-left:5px;} .lingual a:visited {font:bold italic 12px Arial; color:#FF0000; text-decoration:none;padding-bottom:5px; padding-left:5px;} .lingual a:hover {font:bold italic 12px Arial;color:#000000; text-decoration:underline;padding-bottom:5px; padding-left:5px;} .lead_latesnews {font:normal 12px Arial; color:#000000; text-decoration:none;} .datenews {font:normal 11px Arial; color:#999999; text-decoration:none;} .h-rule {height:2px; overflow:hidden; border-bottom:2px dotted #b1c3d4; margin-bottom:4px; padding-top:4px;} .h-ruleheader {height:1px; overflow:hidden; border-bottom:1px dotted #b1c3d4; margin-bottom:0px; padding-top:0;} .h-rule-hidden {height:1px; overflow:hidden; border-bottom:1px solid #ffffff; margin-bottom:9px; padding-top:4px;} .dot {border-bottom:4px dotted #000000;} .icon_text {font:bold 14px Arial; color:#000000; text-decoration:none; padding-bottom:10px;} .icon_text b {border-bottom:1px solid #b1c3d4; padding-left:2px;} .title_kolom_tengah {margin:0; padding:0 0 4px 0; font:bold 14px Arial; color:#000000; text-decoration:none; padding-bottom:10px;} .title_kolom_tengah b {border-bottom:1px solid #b1c3d4; padding-left:2px;} .title_kolom_tengah2 {margin:0; font:bold 13px Arial; color:#000000; text-decoration:none; padding-bottom:0px;} .title_kolom_tengah2 b {border-bottom:1px solid #b1c3d4; padding-left:0px;} .title_kolom_tengah3 {margin:0; font:bold 13px Arial; color:#ffffff; text-decoration:none; padding-bottom:10px;} .title_kolom_tengah3 b {border-bottom:1px solid #ffffff; padding-left:0px;} #hdr-brand {float:left; width:900px; min-height:100px; height:auto; _height:300px; border-top:1px solid #b1c3d4; background:url('images/hp-header-bg.gif') repeat-x;;} #hdr-box {float:left; width:100%; min-height:10px; height:auto; _height:10px; border-top:1px solid #b1c3d4; background:url('images/hp-header-bg.gif') repeat-x;} <!-- kolom --> .topcap {width:336px; height:12px; overflow:hidden; background:url('images/hp-bg-cap-336.gif') no-repeat;} .bg-img {background:url('images/hp-bg-336.gif') repeat-x; min-height:100px; height:auto; _height:100px;} .bg-img-pad {height: 297px; padding-top: 0; padding-right: 10px; padding-bottom: 3px; padding-left: 10px;} /*tooltip#################################*/ .tooltip { /*border-bottom: 1px dotted #000000;*/ color:#FF0000; outline: none; cursor: help; text-decoration: none; position: relative; } .tooltip span { margin-left: -999em; position: absolute; } .tooltip:hover span { border-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); font-family: Calibri, Tahoma, Geneva, sans-serif; position: absolute; left: 1em; top: 2em; z-index: 99; margin-left: 0; width: 250px; } .tooltip:hover img { border: 0; margin: -10px 0 0 -55px; float: left; position: absolute; } .tooltip:hover em { font-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold; display: block; padding: 0.2em 0 0.6em 0;color:#FF0000; } .classic { padding: 0.8em 1em; } .custom { padding: 0.5em 0.8em 0.8em 2em; } * html a:hover { background: transparent; } .classic {background: #FFFFAA; border: 1px solid #FFAD33; color:#000000 } .critical { background: #FFCCAA; border: 1px solid #FF3334; } .help { background: #9FDAEE; border: 1px solid #2BB0D7; } .info { background: #9FDAEE; border: 1px solid #2BB0D7; } .warning { background: #FFFFAA; border: 1px solid #FFAD33; } /*=====#############################################*/ div.scroll { /* for IE */ filter:alpha(opacity=60); /* CSS3 standard */ opacity:0.9; width:255px; height:500px; overflow:auto; }

m_detil_p.phpx <table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td bgcolor="#F3F3F3"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><div class="kat"><?php echo $d['JUDUL']; ?></div><hr color="#CCCCCC 1px solid" /><div class="tgl"><?php echo tanggal("D, j M Y",$d['TGLKIRIM']);echo " | ".$d['TIME']." WIB";?></div></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top"><div class="isi"> <?php echo ("<img src=http://www.surabayapagi.com/photos/bigs/"); echo $d['NAMAFOTO']; echo(" align=left width='60%' vspace='10px' hspace='10px' style='BORDER-RIGHT: #d7d7d7 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #d7d7d7 1px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; margin-right:10px; BORDER-LEFT: #d7d7d7 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #d7d7d7 1px solid'"); echo(">"); echo nl2br($d['ISI']); ?></div></td> </tr> </table></td> </tr> <tr> <td bgcolor="#F3F3F3"><div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilberita&id='.$id.''); ?>" data-num-posts="10" data-width="600"></div></td> </tr> </table>

Info.png PNG  IHDR00WIDATh޵yl}?CEuВaKȱ8R͝qN"T( Q("@QMh [cWNmG("ZCI($wݝyGYjIɉ\<μy񷷭m=nL p 8~OG]<s-$WZUtlMMy|?3=={/_]t800VJko mk{沦&wΝ6m,p<ccc ^e0Cã 3 мe46.c8|A;}޶|y#<|ժU 9.H!KW.vA2:EL0'I';wlaÆVuoohJ`o[w?Oزe<NLLYM)J@kkzi:Gضq<s=\T*վWί'xɖ+V4(iqq(՜d1Ό8P%0P&o6E٤Mr5Ǜ_eqw~˗/Zs}vm}?Ykx Mz1'$*c(+bc+PF2.JM&8CO[lhh]֮Y}/$w~k[FGG_RzG`6XZb5,YɆ$7-jffc ւ6l!Ʊؑܺfy}5 ,^vmWpnK͏oϿxƹy X`ZP5K<Kos7&y`[3ƧH,cm+.4`+{Ϝ9sӦwtOH${O<R,/t~T1FPƆkM4,J2 O6Rv͸ b_8VȹyqP qFyǷm߾ᎎyq<裩L&SOr 7QR.JhíVZQ-qX~;?diD1hm0ڢP&NARLJ&>{'޶/%ijn^eUOfʯP܌\6hFchQeL2 Œgf i0k46,hcZfL x]wݵ~w%m8O=s<yJF'- ƆƠE[$%\+ &ys Hi1چqcBomuUG.??Аxh%R?SOռZkiiYtX'%o J3'ڕ6LX?]?^d)~cCk1ZcLhf(Ci(83ynlذaiMMr)΅hΝ;MNN:g[.Z|m1h -k' w03%r< JqHD0pϳ֢#o( YskxhXn]bllȽmm]׽cӦMϟ-g8PEW#ׇW&I1ZG^PDzHaEȃaсB*-cZ+|9XTYmyޞs7-!sI4Xa,Mbz,cZ[ hnH)5W8w! ʔW(6@B !lg=gYf7W+"pV^f,ZbVcX0  #yF>TX*KRkʋq"sfq r‹qw\ne˖-@U_re(ebXƸg31\VL֯? <A>-k>& .JZvc!,X1.35 {)յ.=G`mcccM[o1)c@[ h0bhAu[1EFFrde &*&JxV`+;?6Hl K\+l< Xh]BY(6agv+THL/( d k5A ܱ%6.J&gȚ&q -yr`*q沊Sb k]nb~ @КAeʾ( idkJ>&z!Iƺ\|2TJNu`zz @hA Z1=9I0(U/v% #a^Lh R`a2n9@6e,Nњ( B@r9RPs%XRJX휀Ă@״%Ĝ_r+'J`\.ƥX5VItuT*162F!jÙTA7kCX-y#<.Ɯ MQhor˗* l5aSY)Krc^DE}CE8#υ+ѶzW嚎4 d2m4<<8eQQe FWgQe9@J8xp+@p";UCFʸFP Gh!JSSIFB2aoSy!GyAxG,#! )$:HaqX\g- Os-_!󽽽EQqz ,jfEVU^aDR:yq8DQsD—+3[Ӏwy<44t.•ȑzѳHGgÀb%72 Jz&ב.x<$LL/*DŽw$T,}ޞ`ff}B7ޭ:xĉ͛7*3a+!nqn4'%HyDL&纑l*2HdbM̙eiu-t:=<<<<>@#GL-]}ۡ|p_-^,L&I3P__yQƏW8aFKWZnчS[=WN`p{_" ǦR,@<l&Cmm ud5;z+fAAqqEW_zif||̙3]@1\=g˖-3_݇IbW„-}u(&$S[WG&SC:!LF톘I9/$WX"&MB}}8~xܹDD@hY Gcӭ5A åKV\+@XD<N&!Nǐ+jǂ5fu;hjppS@1Bo7Y&II<YFDmqתf%H]/F*kT|]W}%x"%)jY!'Μ)w?l\W U$|3<Nss?KV^ aI1YB ͼ!W&oM8.มD:9w)-q7 ϓtX)nZ`?u?\.vtt*zzzV>#K@Vr!RJq.]TEī{xpRKaID-$IOSҶ7O?=ٹ7It?#GXvxݻw/ޱvycCH""qD)KO':_"'vHjТ)-yxLl>7}1VOvȋ^}usJ>ѣGO"O>z֭7S\8wlH0󅍱%jH'R$dt*N,beQ]Tll|$\k/tqV?8P? LVGLXg[׮{k[:.ٳ'{"(p坓[$Zb^'\IQO$% 1ϐfĦsxO>'_g:zǯ+H{W; k|3+[ZZb/^oşNCY7t<|)4k}v?۷вj%gOb:;ٳ"D9u ]WW~{{]\*R \0W(|8KqS7DsHS$b1{WJN,rS~':;, W#('رltzs}]uk/d29wR\&111gC\co>9666LDc w>ȟTn@]6.Yd[2\H$ZjkkW5ĵU6 ! }Ba`2}KQf@(U$~GUK *JHҳѾ_&h?L x[0  uPȪS,hUL]޾EgIENDB`

adv_imsyakiyah.php <div align="center"> <img src="images/imsakiyah2.jpg" width="800" border="0" /> </div>

Scripts

go

custom_bj

jquery-ui-timepicker-addon.css .ui-timepicker-div .ui-widget-header { margin-bottom: 8px; } .ui-timepicker-div dl { text-align: left; } .ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; } .ui-timepicker-div dl dd { margin: 0 10px 10px 65px; } .ui-timepicker-div td { font-size: 90%; } .ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; } .ui-timepicker-rtl{ direction: rtl; } .ui-timepicker-rtl dl { text-align: right; } .ui-timepicker-rtl dl dd { margin: 0 65px 10px 10px; }

images

home_bejat.php <table width="100%" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="middle" bgcolor="#FFFFFF"><b><font color="#FF0000" size="+1" face="tahoma, arial">Berita Jatim </font></b></td> </tr> <tr> <td align="left" valign="top"> <span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='Peristiwa' and KOTA NOT IN('Lainnya','LuarNegeri') order by TGLKIRIM2 desc,IDBERITA desc limit 0, 5"); while($dpr=mysql_fetch_array($pr)) { echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dpr[0].'')."'>"; $jdl=$dpr['JUDUL']; $jdl_array = explode(' ',$jdl); $jdl_baru = ''; $i=1; foreach($jdl_array AS $jdl_array1){ if ($i<=4) $jdl_baru .= $jdl_array1.' '; $i++; } if(count($jdl_array)>4) { echo $jdl_baru."..."; } else { echo $jdl_baru; } echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span> </td> </tr> </table>

epaper_add.php <?php if($_SESSION['slevel']=="Administrator"){?> <style type="text/css"> <!-- .style43 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } --> </style> <form id="form1" name="myform" enctype="multipart/form-data" method="post" action="<? echo "index.php?".paramEncrypt('p=epaper_save').""; ?>" > <table width="380" border="0" cellspacing="2" cellpadding="2" style="border-bottom:#CCCCCC 1px solid; border-left:#CCCCCC 1px solid; border-right:#CCCCCC 1px solid; border-top:#CCCCCC 1px solid"> <tr> <td colspan="3"> Add Embed <hr> </td> </tr> <tr> <td width="61" align="left" valign="top">Title</td> <td width="3" align="left" valign="top">:</td> <td width="294" align="left" valign="top"><input name="judul" type="text" id="judul" size="40"></td> </tr> <tr> <td align="left" valign="top">Embed</td> <td align="left" valign="top">:</td> <td align="left" valign="top"><label> <textarea name="embed" cols="30" rows="5" id="embed"></textarea> </label></td> </tr> <tr> <td align="left" valign="top">Cover</td> <td align="left" valign="top">:</td> <td align="left" valign="top"><label><span class="style43"> <input name="image" type="file" class="textbox" id="image" /> </span></label></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><input type="submit" name="Submit" value="Simpan" /></td> </tr> </table> </form> <?php } ?>

googlehostedservice.html google8ee656be177a24ad

phpinfo2.php <?php print phpinfo(); ?>

detilberita_l.phpx <link href="css_detil_l.css" rel="stylesheet" type="text/css"> <table width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="600" align="left" valign="top"> <div class="clearit"></div> <!--TOP BAR END --> <div align="center"> <div class="cangkang_master2012"> <div align="left"> <!-- start: header --> <!-- end: header --> <!-- start: konten --> <div class="cangkang_konten002"> <div class="content_kiri_detail"> <div class="judul_artikel2012"><a href='http://indosat.com/' target='_blank'><img src="images/indosat.jpg" width="100%" border="0" /></a><?php echo $d['JUDUL']; ?></div> <div class="pb_20"></div> <div class="clearit bl_1 mb_10"></div> <div class="left_share"> <div class="font11 c_abu03_sp2012 pb_3"><span class="share"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"><font size="3"><i><?php echo $d['SUBJUDUL']; ?></i></font></td> </tr> <tr> <td colspan="3" align="left" valign="middle"><span class="c_abu01_sp2012"><?php echo tanggal("D, j M Y",$d['TGLKIRIM']);echo " | ".$d['TIME']." WIB";?></span></td> </tr> <tr> <td width="40%" align="right" valign="middle"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="SbyPagiOnline">Tweet</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td> <td width="16%" align="right" valign="middle" cols> <script >function fbs_click() { u=location.href; t=document.title; window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false; } </script> <a href="http://www.facebook.com/share.php?u=http://surabayapagi.com<?php echo $_SERVER['REQUEST_URI'];?>" onclick="return fbs_click()" target="_blank"> <img src="images/share-on-facebook1.jpg" alt=\"Share On Facebook\" align="left"/></a> <!--<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php?u=http://surabayapagi.com<?php //echo $_SERVER['REQUEST_URI'];?>">Share</a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>--> </td> </tr> </table> </span></div> </div> <div class="clearit"></div> <div class="clearit bl_orange pt_10"></div> <!--IMAGES --> <div class="pt_10"></div> <!-- s: headline --> <div class="multi_foto_wide"> <div id="foto1" style="display: block; "><img src="photos/bigs/<?php echo $d['NAMAFOTO'];?>" width="630"><span class="pb_10"></span> <?php if($d['CAPTION']!=''){echo $d['CAPTION'];}?></div> </div> <?php if($kodetema!="") { $bt=mysql_query("select IDBERITA,JUDUL from BERITA where KODETEMA='$kodetema' and `STATUS`='Show' and IDBERITA <'$hit' order by TGLKIRIM2 desc,TIME DESC,IDBERITA desc limit 0,5"); if(mysql_num_rows($bt)>=1) { ?> <div class="right w310 pl_10 pb_10 pt_5"> <p> <!--TERKAIT --> </p> <div class="pd_5 hl_1 font12 c_abu01_sp2012"><strong>TERKAIT:</strong></div> <div class="list_4 font12 arial c_biru_sp2012 pb_10 bl_1"> <ul> <?php while($dbt=mysql_fetch_array($bt)) { $ttl_tk=str_replace(" ","-",$dbt['JUDUL']); ?> <li><?php echo "<a title='".$dbt['JUDUL']."' href='index.php?read=$ttl_tk;".paramEncrypt('p=detilberita&id='.$dbt[0].'')."'>"; echo $dbt['JUDUL']."</a>"; ?></li> <?php }?> </ul> </div> <!--TERKAIT END --> </div> <?php }}?> <div class="isi_berita2012 pt_5"> <p><?php echo nl2br($d['ISI']);?></p> <div class="clearit pt_30"></div> <div class="clearit bl_orange mb_3 pt_10"></div> </div> </div> <div class="clearit"></div> </div> <!-- end: konten --> </div></div> </td> <td width="300" rowspan="2" align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td align="left" valign="top"><table width="285" border="0" cellspacing="0" cellpadding="5"> <tr> <td><?php include "berita_lainnya.php";?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td> <div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilberita&id='.$hit.''); ?>" data-num-posts="10" data-width="600"></div></td> </tr> </table> </td> </tr> </table>

streaming_detil.php <?php $id=$var['id']; $q=mysql_query("select * from VIDEO where IDVIDEO='$id'"); $dq=mysql_fetch_array($q); ?> <table width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="600" align="center" valign="top"><font face="Arial, Helvetica, sans-serif" size="3"><b><?php echo $dq['TITLE'];?></b></font></td> <td width="300" align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="center" valign="top"><?php $v=$dq['EMBED']; $v1="<iframe width=\"460\" height=\"288\""; $v2= substr($v, 32); echo $v1.$v2; ?></td> <td align="center" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp; </td> </tr> </table>

isi_foto2_l.php <div class="multi_foto_wide"> <div id="foto1" style="display: block; "><img src="photos/bigs/<?php echo $d['NAMAFOTO2'];?>" width="630"><span class="pb_10"></span> <?php if($d['CAPTION2']!=''){echo $d['CAPTION2'];}?></div> </div>

m_detil_n.phpx <table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td bgcolor="#F3F3F3"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><div class="kat"><?php echo $d['JUDUL']; ?></div><hr color="#CCCCCC 1px solid" /><div class="tgl"><?php echo tanggal("D, j M Y",$d['TGLKIRIM']);echo " | ".$d['TIME']." WIB";?></div></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top"><div class="isi"> <?php echo nl2br($d['ISI']); ?></div></td> </tr> </table></td> </tr> <tr> <td bgcolor="#F3F3F3"><div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilberita&id='.$id.''); ?>" data-num-posts="10" data-width="600"></div></td> </tr> </table>

home_korupsi.php <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td ><span class="title_kategori">KORUPSI</span> <hr color="#FF0000 2px solid" /></td> </tr> </table> <table width="350" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="50%" align="left" valign="top"> <?php $q=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='WhiteCrime' and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 2"); while($dq=mysql_fetch_array($q)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"> <table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq[0].'')."'>$dq[JUDUL]<span class=\"classic\"><em>".$dq['JUDUL']."</em>$dq[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> <td width="50%" align="left" valign="top"><?php $q2=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='WhiteCrime' and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' order by TGLKIRIM2 desc,IDBERITA desc limit 2, 2"); while($dq2=mysql_fetch_array($q2)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"><table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq2[0].'')."'>$dq2[JUDUL]<span class=\"classic\"><em>".$dq2['JUDUL']."</em>$dq2[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq2['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq2['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="100%" >&nbsp;</td> </tr> </table>

detilberita_p.php <link href="css_detil_l.css" rel="stylesheet" type="text/css"> <table width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="600" align="left" valign="top"> <div class="clearit"></div> <!--TOP BAR END --> <div align="center"> <div class="cangkang_master2012"> <div align="left"> <!-- start: header --> <!-- end: header --> <!-- start: konten --> <div class="cangkang_konten002"> <div class="content_kiri_detail"> <div class="judul_artikel2012"><a href='http://indosat.com/' target='_blank'><img src="images/indosat.jpg" width="100%" border="0" /></a><?php echo $d['JUDUL']; ?></div> <div class="pb_20"></div> <div class="clearit bl_1 mb_10"></div> <div class="left_share"> <div class="font11 c_abu03_sp2012 pb_3"><span class="share"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"><font size="3"><i><?php echo $d['SUBJUDUL']; ?></i></font></td> </tr> <tr> <td colspan="3" align="left" valign="middle"><span class="c_abu01_sp2012"><?php echo tanggal("D, j M Y",$d['TGLKIRIM']);echo " | ".$d['TIME']." WIB";?></span></td> </tr> <tr> <td width="40%" align="right" valign="middle"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="SbyPagiOnline">Tweet</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td> <td width="16%" align="right" valign="middle" cols> <!--<script >function fbs_click() { u=location.href; t=document.title; window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false; } </script> <a href="http://www.facebook.com/share.php?u=http://surabayapagi.com<?php //echo $_SERVER['REQUEST_URI'];?>" onclick="return fbs_click()" target="_blank"> <img src="images/share-on-facebook1.jpg" alt=\"Share On Facebook\" align="left"/></a>--> <!--<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php?u=http://surabayapagi.com<?php //echo $_SERVER['REQUEST_URI'];?>">Share</a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>--> <!--<div class="fb-share-button" data-href="http://surabayapagi.com<?php //echo $_SERVER['REQUEST_URI'];?>" data-type="button_count"></div>--> <div class="fb-share-button" data-href="http://surabayapagi.com<?php echo "/index.php?".paramEncrypt('p=detilberita&id='.$d[0].'')."";?>" data-type="button_count"></div> </td> </tr> </table> </span></div> </div> <div class="clearit"></div> <div class="clearit bl_orange pt_10"></div> <!--IMAGES --> <div class="pt_10"></div> <!-- s: headline --> <?php if($d['NAMAFOTO']!='') { ?> <div class="right w310 pl_10 pb_10 pt_5"> <p> <!--TERKAIT --> </p> <div class="multi_foto_wide_p"> <div id="foto1" style="display: block; "><img src="photos/bigs/<?php echo $d['NAMAFOTO'];?>"/><span class="pb_10"></span> <?php if($d['CAPTION']!=''){echo $d['CAPTION'];}?></div> </div> <?php if($kodetema!="") { $bt=mysql_query("select IDBERITA,JUDUL from BERITA where KODETEMA='$kodetema' and `STATUS`='Show' and IDBERITA <'$hit' order by TGLKIRIM2 desc,TIME DESC,IDBERITA desc limit 0,5"); //echo "select IDBERITA,JUDUL from BERITA where KODETEMA='$kodetema' and IDBERITA <'$hit' order by TGLKIRIM2 desc,TIME DESC,IDBERITA desc limit 0,5"; if(mysql_num_rows($bt)>=1) { ?> <p></p> <div class="pd_5 hl_1 font12 c_abu01_sp2012"><strong>TERKAIT:</strong></div> <div class="list_4 font12 arial c_biru_sp2012 pb_10 bl_1"> <ul> <?php while($dbt=mysql_fetch_array($bt)) { $ttl_tk=str_replace(" ","-",$dbt['JUDUL']); ?> <li><?php echo "<a title='".$dbt['JUDUL']."' href='index.php?read=$ttl_tk;".paramEncrypt('p=detilberita&id='.$dbt[0].'')."'>"; echo $dbt['JUDUL']."</a>"; ?></li> <?php }?> </ul> </div><?php }}?> <!--TERKAIT END --> </div> <?php }?> <div class="isi_berita2012 pt_5"> <p><?php echo nl2br($d['ISI']);?></p> </div> <?php if($d['NAMAFOTO2']!='') { $gb2="photos/bigs/".$d['NAMAFOTO2']; if (file_exists($gb2)) { $xx2=getimagesize($gb2); list($width2,$height2)=$xx2; if($height2<$width2) { include "isi_foto2_l.php"; } if($height2>=$width2) { include "isi_foto2_p.php"; } } } if($d['ISI2']!='') { ?> <div class="isi_berita2012 pt_5"> <p><?php echo nl2br($d['ISI2']);?></p> </div> <?php }?> <div class="clearit pt_30"></div> <div class="clearit bl_orange mb_3 pt_10"></div> </div> <div class="clearit"></div> <!--FOOTER : datanya harap disesuaikan saja dengan update footer yg terakhir --> <!--FOOTER END --> </div> <!-- end: konten --> </div></div> </td> <td width="300" rowspan="2" align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td align="left" valign="top" height="100%"><table width="285" border="0" cellspacing="0" cellpadding="5"> <tr> <td ><?php include "berita_lainnya.php";?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td> <div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilberita&id='.$hit.''); ?>" data-num-posts="10" data-width="600"></div></td> </tr> </table></td> </tr> </table>

home_geliat_new.php <table width="230" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><img src="images/geliat.png" width="100%" /></td> </tr> <tr> <td align="left" valign="top"> <?php $pr0=mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='GeliatMalam' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 1"); $dpr0=mysql_fetch_array($pr0); $ttl_gel=str_replace(" ","-",$dpr0['JUDUL']); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <? if(($dpr0['NAMAFOTO']!='') && file_exists('photos/thumbs/'.$dpr0['NAMAFOTO'])){?> <td width="37%" align="left" valign="top"> <img src="photos/thumbs/<? echo $dpr0['NAMAFOTO'];?>" width="75" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid; margin-right:5px"/> </td> <?php }?> <td width="63%" align="left" valign="top"><span class="left_berita2"> <?php echo "<a class=\"tooltip\" href='index.php?read~$ttl_gel;".paramEncrypt('p=detilberita&id='.$dpr0[0].'')."'>"; $jdl=$dpr0['JUDUL']; echo $jdl; echo "<span class=\"classic\"><em>".$dpr0['JUDUL']."</em>$dpr0[NEWLEAD]</span></a><br>"; ?></span> </td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top"><span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='GeliatMalam' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 1, 5"); while($dpr=mysql_fetch_array($pr)) { $ttl_gel2=str_replace(" ","-",$dpr['JUDUL']); echo "<a class=\"tooltip\" href='index.php?read~$ttl_gel2;".paramEncrypt('p=detilberita&id='.$dpr[0].'')."'>"; if(strlen($dpr['JUDUL'])>29) { $jdl=substr_replace($dpr['JUDUL'],CHR(13),0,"<br>"); echo substr($jdl,0,28); echo "..."; }else { echo $dpr['JUDUL']; } /*$jdl=$dpr['JUDUL']; $jdl_array = explode(' ',$jdl); $jdl_baru = ''; $i=1; foreach($jdl_array AS $jdl_array1){ if ($i<=4) $jdl_baru .= $jdl_array1.' '; $i++; } if(count($jdl_array)>4) { echo $jdl_baru."..."; } else { echo $jdl_baru; }*/ echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span></td> </tr> </table></td> </tr> </table>

home_jatim_preview.php <table width="400" border="0" cellspacing="0" cellpadding="0"> <tr> <td ><img src="images/jatim.png" width="100%" /></td> </tr> <tr> <td > <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="50%" align="left" valign="top"> <?php $q=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='Peristiwa' and STATUS='Show' and KOTA NOT IN('Lainnya','LuarNegeri') order by TGLKIRIM2 desc,IDBERITA desc limit 0, 2"); while($dq=mysql_fetch_array($q)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"> <table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq[0].'')."'>$dq[JUDUL]<span class=\"classic\"><em>".$dq['JUDUL']."</em>$dq[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> <td width="50%" align="left" valign="top"><?php $q2=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='Peristiwa' and STATUS='Show' and KOTA NOT IN('Lainnya','LuarNegeri') order by TGLKIRIM2 desc,IDBERITA desc limit 2, 2"); while($dq2=mysql_fetch_array($q2)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"><table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq2[0].'')."'>$dq2[JUDUL]<span class=\"classic\"><em>".$dq2['JUDUL']."</em>$dq2[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq2['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq2['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> </tr> </table> </td> </tr> </table>

saveberita_red.php <? session_start(); include "go/go.php"; include 'photocrop.php'; $idberita=$_POST["idberita"]; //$judul=htmlentities(strip_tags($_POST["requiredjudul"],"<b><i>"), ENT_QUOTES); $judul=addslashes(strip_tags($_POST["requiredjudul"],"<b><i>")); $subjudul=$_POST["subjudul"]; $kodetema=$_POST["kodetema"]; //$lead=addslashes(htmlentities(strip_tags($_POST["requiredlead"],"<b><i>"), ENT_QUOTES)); $lead=addslashes(strip_tags($_POST["requiredlead"],"<b><i>")); $isi1=addslashes(strip_tags($_POST["requiredisi"],"<b><i>")); $isi2=strip_tags($_POST["isi2"],"<b><i>"); //$isi3=strip_tags($_POST["isi3"],"<b><i>"); $kategori=$_POST["requiredkategori"]; $caption=$_POST['caption']; $caption2=$_POST['caption2']; $fotolama=$_POST['fotolama']; $fotolama2=$_POST['fotolama2']; $statuskategori0=$_POST["statusberita"]; if($statuskategori0=='') { $statuskategori="Breaking"; } else { $statuskategori=$statuskategori0; } $pengirim=$_SESSION['susername']; $konversi=""; if ($konversi!="") { $sekarang=time(); $tambah=$sekarang + ($konversi) * 3600; //$tglawal= date("d F Y", $tambah); //$tgl=date("d F Y, G:i", $tambah); $tgl=date("Y-m-d", $tambah); $time=date("H:i", $tambah); $tgltime=date("Y-m-d H:i:s", $tambah); }else { $tgl=date("Y-m-d"); $time=date("H:i"); $tgltime=date("Y-m-d H:i:s"); } $terbaca='1'; $status="Show"; //$posisi1=$_POST["posisi1"]; $spasi="Ok"; $kota=$_POST["biro"]; $foto = $_FILES['image']['name']; $foto2 = $_FILES['image2']['name']; if($foto!="") { $namafoto= str_replace(" ","",(date("YmdHis").rtrim($foto))); } else { $namafoto=$fotolama; } if($foto2!="") { $namafoto2= str_replace(" ","",(date("YmdHis").rtrim($foto2))); } else { $namafoto2=$fotolama2; } if($_POST['Kirim']) { //Save photo if(isset($_FILES['image'])) { if($foto!='' && $fotolama!='') { if(file_exists('photos/thumbs/'.$fotolama)) { unlink('photos/thumbs/'.$fotolama); } if(file_exists('photos/bigs/'.$fotolama)) { unlink('photos/bigs/'.$fotolama); } } $photo = new Photo($_FILES['image']); if(count($errors = $photo->validate()) == 0) { $errors = $photo->doThumb(150,'photos/thumbs/'); } if(count($errors) == 0 ) { if($photo->getWidth() > 600 || $photo->getHeight() > 600) { $errors = $photo->doResize(600,'photos/bigs/'); } else { $errors = $photo->move('photos/bigs/'); } } else { extract($_POST); } } if(isset($_FILES['image2'])) { if($idberita!='') { if($fotolama2!='' && $foto2!='') { if(file_exists('photos/thumbs/'.$fotolama2)) { unlink('photos/thumbs/'.$fotolama2); } if(file_exists('photos/bigs/'.$fotolama2)) { unlink('photos/bigs/'.$fotolama2); } } } $photo = new Photo($_FILES['image2']); if(count($errors = $photo->validate()) == 0) { $errors = $photo->doThumb(150,'photos/thumbs/'); } if(count($errors) == 0 ) { if($photo->getWidth() > 600 || $photo->getHeight() > 600) { $errors = $photo->doResize(600,'photos/bigs/'); } else { $errors = $photo->move('photos/bigs/'); } } else { extract($_POST); } } if($idberita!='') { $qq="update BERITA set JUDUL='$judul',SUBJUDUL='$subjudul',CAPTION='$caption',CAPTION2='$caption2',NEWLEAD='$lead',ISI='$isi1',ISI2='$isi2',KATEGORI='$kategori',STATUSKATEGORI='$statuskategori',PENGIRIM='$pengirim', TGLKIRIM='$tgl',TGLKIRIM2='$tgltime',TERBACA='$terbaca',STATUS='$status',KONVERSI='$konversi',KODETEMA='$kodetema',SPASI='$spasi', TIME='$time',KOTA='$kota',NAMAFOTO='$namafoto',NAMAFOTO2='$namafoto2' where IDBERITA='$idberita'"; $ref ="index.php?85c685f07f44d7015d6211d377d59e47e0295eb0d94d1fc1f3d54b85d91a78c3"; } else { $qq = "insert into BERITA set JUDUL='$judul',SUBJUDUL='$subjudul',CAPTION='$caption',CAPTION2='$caption2',NEWLEAD='$lead',ISI='$isi1',ISI2='$isi2',KATEGORI='$kategori',STATUSKATEGORI='$statuskategori',PENGIRIM='$pengirim', TGLKIRIM='$tgl',TGLKIRIM2='$tgltime',TERBACA='$terbaca',STATUS='$status',KONVERSI='$konversi',KODETEMA='$kodetema',SPASI='$spasi', TIME='$time',KOTA='$kota',NAMAFOTO='$namafoto',NAMAFOTO2='$namafoto2'"; $ref = $_SERVER['HTTP_REFERER']; } $querysave=mysql_query($qq); if($querysave){ ?> <script language="JavaScript">document.location='<?php echo $ref; ?>'</script> <? } else { echo "<font color=#ff0000>Data Gagal Tersimpan!</font>"; } } ?>

.htaccess

_cgi-bin

hl3_3_preview.php <? $queryinfo = mysql_query("select * from BERITA where STATUS='Show' and STATUSKATEGORI='Headline' and NAMAFOTO!='' order by IDBERITA desc limit 2, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"> <a <?php echo "href='index.php?".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'";?> onMouseover="changeimage(myimages[2],this.href);document.getElementById('hl3').value='<? echo $tbl['NAMAFOTO'];?>';"> <img src="photos/bigs/<?php echo $tbl['NAMAFOTO']; ?>" align='center' width='132' height='85' vspace='0' hspace='0' border='0'/> </a></td> </tr> </table><input name="hl3" id="hl3" value="<? echo $tbl['NAMAFOTO'];?>" type="hidden"> <? } } ?>

menu_admin.php <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td align="left" valign="top"> <?php if($_SESSION['slevel']=="Administrator") { echo "<a href='index.php?".paramEncrypt('p=formberita')."'>"; } if($_SESSION['slevel']=="Redaksi") { echo "<a href='index.php?".paramEncrypt('p=formberita_red')."'>"; } if($_SESSION['slevel']=="Redaksi2") { echo "<a href='index.php?".paramEncrypt('p=formberita')."'>"; } ?> Add Berita</a> | <?php if($_SESSION['slevel']=="Administrator") { echo "<a href='index.php?".paramEncrypt('p=formsuara_rakyat')."'>"; }?> Add Suara</a> | <?php if($_SESSION['slevel']=="Administrator") { echo "<a href='index.php?".paramEncrypt('p=data_berita')."'>"; } if($_SESSION['slevel']=="Redaksi") { echo "<a href='index.php?".paramEncrypt('p=data_berita_red')."'>"; } if($_SESSION['slevel']=="Redaksi2") { echo "<a href='index.php?".paramEncrypt('p=data_berita_red2')."'>"; } ?> Data Berita</a> <?php if($_SESSION['slevel']=="Administrator") { // echo "| <a href='index.php?".paramEncrypt('p=formkoruptor')."'> Koruptor</a>"; // echo "| <a href='index.php?".paramEncrypt('p=streaming_add')."'>Streaming</a> "; // echo "| <a href='index.php?".paramEncrypt('p=streaming_data')."'>Data Streaming</a>"; echo "| <a href='index.php?".paramEncrypt('p=epaper_add')."'>E-Paper</a> "; }?> <?php if($_SESSION['slevel']=="Epaper") { echo "| <a href='index.php?".paramEncrypt('p=epaper_add')."'>E-Paper</a> "; }?> <?php if($_SESSION['slevel']=="Administrator") { echo "| <a href='index.php?".paramEncrypt('p=std_add')."'>STD</a> "; echo "| <a href='index.php?".paramEncrypt('p=std_data')."'>Data STD</a> "; } if(($_SESSION['slevel']=="Administrator") || ($_SESSION['slevel']=="Adv")) { echo "| <a href='index.php?".paramEncrypt('p=adv_add')."'>Add ADV</a> "; echo "| <a href='index.php?".paramEncrypt('p=adv_data')."'>Data ADV</a> "; echo "| <a href='index.php?".paramEncrypt('p=iklan_baris')."'>Iklan Baris</a> "; } ?> | <a href="logout.php">Logout</a></td> </tr> </table>

tes_epaper.php <?php $hal=$_SERVER['REQUEST_URI']; echo $hal; ?>

detilberita_l.php <link href="css_detil_l.css" rel="stylesheet" type="text/css"> <table width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="600" align="left" valign="top"> <div class="clearit"></div> <!--TOP BAR END --> <div align="center"> <div class="cangkang_master2012"> <div align="left"> <!-- start: header --> <!-- end: header --> <!-- start: konten --> <div class="cangkang_konten002"> <div class="content_kiri_detail"> <div class="judul_artikel2012"><a href='http://indosat.com/' target='_blank'><img src="images/indosat.jpg" width="100%" border="0" /></a><?php echo $d['JUDUL']; ?></div> <div class="pb_20"></div> <div class="clearit bl_1 mb_10"></div> <div class="left_share"> <div class="font11 c_abu03_sp2012 pb_3"><span class="share"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"><font size="3"><i><?php echo $d['SUBJUDUL']; ?></i></font></td> </tr> <tr> <td colspan="3" align="left" valign="middle"><span class="c_abu01_sp2012"><?php echo tanggal("D, j M Y",$d['TGLKIRIM']);echo " | ".$d['TIME']." WIB";?></span></td> </tr> <tr> <td width="40%" align="right" valign="middle"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="SbyPagiOnline">Tweet</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td> <td width="16%" align="right" valign="middle" cols> <!--<div class="fb-share-button" data-href="http://surabayapagi.com<?php //echo $_SERVER['REQUEST_URI'];?>" data-type="button_count"></div>--> <div class="fb-share-button" data-href="http://surabayapagi.com<?php echo "/index.php?".paramEncrypt('p=detilberita&id='.$d[0].'')."";?>" data-type="button_count"></div> </td> </tr> </table> </span></div> </div> <div class="clearit"></div> <div class="clearit bl_orange pt_10"></div> <!--IMAGES --> <div class="pt_10"></div> <!-- s: headline --> <div class="multi_foto_wide"> <div id="foto1" style="display: block; "><img src="photos/bigs/<?php echo $d['NAMAFOTO'];?>" width="630"><span class="pb_10"></span> <?php if($d['CAPTION']!=''){echo $d['CAPTION'];}?></div> </div> <?php if($kodetema!="") { $bt=mysql_query("select IDBERITA,JUDUL from BERITA where KODETEMA='$kodetema' and `STATUS`='Show' and IDBERITA <'$hit' order by TGLKIRIM2 desc,TIME DESC,IDBERITA desc limit 0,5"); if(mysql_num_rows($bt)>=1) { ?> <div class="right w310 pl_10 pb_10 pt_5"> <p> <!--TERKAIT --> </p> <div class="pd_5 hl_1 font12 c_abu01_sp2012"><strong>TERKAIT:</strong></div> <div class="list_4 font12 arial c_biru_sp2012 pb_10 bl_1"> <ul> <?php while($dbt=mysql_fetch_array($bt)) { $ttl_tk=str_replace(" ","-",$dbt['JUDUL']); ?> <li><?php echo "<a title='".$dbt['JUDUL']."' href='index.php?read=$ttl_tk;".paramEncrypt('p=detilberita&id='.$dbt[0].'')."'>"; echo $dbt['JUDUL']."</a>"; ?></li> <?php }?> </ul> </div> <!--TERKAIT END --> </div> <?php }}?> <div class="isi_berita2012 pt_5"> <p><?php echo nl2br($d['ISI']);?></p> </div> <?php if($d['NAMAFOTO2']!='') { $gb2="photos/bigs/".$d['NAMAFOTO2']; if (file_exists($gb2)) { $xx2=getimagesize($gb2); list($width2,$height2)=$xx2; if($height2<$width2) { include "isi_foto2_l.php"; } if($height2>=$width2) { include "isi_foto2_p.php"; } } } if($d['ISI2']!='') { ?> <div class="isi_berita2012 pt_5"> <p><?php echo nl2br($d['ISI2']);?></p> </div> <?php }?> <div class="clearit pt_30"></div> <div class="clearit bl_orange mb_3 pt_10"></div> </div> <div class="clearit"></div> </div> <!-- end: konten --> </div></div> </td> <td width="300" rowspan="2" align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td align="left" valign="top"><table width="285" border="0" cellspacing="0" cellpadding="5"> <tr> <td><?php include "berita_lainnya.php";?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td> <div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilberita&id='.$hit.''); ?>" data-num-posts="10" data-width="600"></div></td> </tr> </table> </td> </tr> </table>

member_iklan_save.php <?php session_start(); include "go/go.php"; $status='0'; $ref=$_SERVER['HTTP_REFERER']; if(($_POST["kode"] == $_SESSION["security_code"]) && (!empty($_POST["kode"]) && !empty($_SESSION["security_code"]))) { $nama=$_POST['nama']; $alamat_rumah=$_POST['alamat_rumah']; $alamat_kantor=$_POST['alamat_kantor']; $hp=$_POST['hp']; $telp_kantor=$_POST['telp_kantor']; $email=$_POST['email']; $save=$mysql->query("insert into MEMBER_IKLAN set NAMA='$nama',ALAMAT_RUMAH='$alamat_rumah',ALAMAT_KANTOR='$alamat_kantor',HP='$hp',TELP='$telp_kantor',EMAIL='$email',STATUS='$status',KUOTA='1'"); //echo "insert into MEMBER_IKLAN set NAMA='$nama',ALAMAT_RUMAH='$alamat_rumah',ALAMAT_KANTOR='$alamat_kantor',HP='$hp',TELP='$telp_kantor',EMAIL='$email',STATUS='$status',KUOTA='1'"; if($save) { require_once('class.phpmailer.php'); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->CharSet="UTF-8"; $mail->SMTPSecure = 'tls'; $mail->Host = 'smtp.gmail.com'; $mail->Port = 587; $mail->Username = 'iklanmini@surabayapagi.com'; $mail->Password = 'iklanmini14'; $mail->SMTPAuth = true; $mail->From = 'iklanmini@surabayapagi.com'; $mail->FromName = 'Surabaya Pagi'; $mail->AddAddress('hildatabafaikal@gmail.com'); //$mail->AddBCC('hildatabafaikal@gmail.com'); $mail->AddReplyTo('iklanmini@surabayapagi.com', 'Information'); $mail->IsHTML(true); $mail->Subject = "Member Iklan Baru"; $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; $mail->Body = $nama."|".$email; $mail->Send(); $redirect_url= "index.php"; ?> <style type="text/css"> <!-- .style1 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; } --> </style> <html><head><META HTTP-EQUIV="Refresh" Content = "6; URL=<?php echo $redirect_url;?>"></head><body ><br> <br> <table align="center" width="70%" border="0" cellspacing="5" cellpadding="5" style="border-bottom:#FF0000 1px solid; border-left:#FF0000 1px solid; border-right:#FF0000 1px solid; border-top:#FF0000 1px solid;"> <tr> <td><div align="center"><img src='loader.gif'></div></td> </tr> <tr> <td><div align="center"><span class="style1">Data Anda sedang kami proses. Tim Kami akan segera menindaklanjuti kerja sama ini. <br> Terima kasih atas partisipasinya.</span></div></td> </tr> </table><br> <br> </body></html> <?php } }else{ ?> <script language="javascript"> alert('Kode tidak valid!');document.location='<?php echo $ref;?>' </script> <?php } ?>

detilstd.php <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <?php $hit=intval($var["id"]); $querydata=mysql_query("select * from STD where IDFOTO=".$hit." "); if(mysql_num_rows($querydata)>0) { $tblbaca=mysql_fetch_array($querydata); $baca=$tblbaca["TERBACA"]; $data2=mysql_fetch_row($querydata); $jumlah=$baca; $jumlah++; $queryupdate= mysql_query("update STD set TERBACA='$jumlah' where IDFOTO='".$hit."'"); $id=abs((int) $var['id']); $news = mysql_query("select * from STD where IDFOTO='$id'") or die("Tabel Info2 tidak ada !"); //echo "select * from BERITA where IDBERITA=".$id." and STATUS='Show' and KATEGORI = '".$kategori."'"; $d=mysql_fetch_array($news); include "detilstd_foto.php"; } else { $ad="http://www.surabayapagi.com".$_SERVER['REQUEST_URI']; $pesan="WARNING"; $ip=$_SERVER['REMOTE_ADDR']; $tgl=date("Y-m-d H:i:s"); $msk=mysql_query("insert into DATA_URL_ACT set KATA='$ad',TGLKIRIM='$tgl',IP='$ip',PESAN='$pesan'"); $redirect_url= "index.php"; echo"<html><head> <META HTTP-EQUIV=\"Refresh\" Content = \"1; URL=$redirect_url\"> </head><body ><table align=center><tr><td><img src='facebook.gif'></td></tr></table></body></html>"; } /* if($d['NAMAFOTO']!='' && $d['POSISI_FOTO']=="L") { include "detilberita_l.php"; } elseif($d['NAMAFOTO']!='' && $d['POSISI_FOTO']=="P") { include "detilberita_p.php"; } else { include "detilberita_n.php"; } */ ?> </td> </tr> </table>

kpujatim.php <style type="text/css"> <!-- .style1 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } --> </style> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="7%" align="left" valign="top">&nbsp;</td> <td width="93%" align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="center" valign="top" colspan="2"><img src="images/kpujatim_d.jpg" width="90%" /></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp;</td> </tr> </table>

streaming_all.php <style type="text/css" media="screen"> #large_box {width:800; height:600;} </style> <table width="900" border="0" cellspacing="2" cellpadding="2"> <tr> <td width="621"> <fieldset style="border:#CCCCCC 1px solid"> <legend><font size="+2" color="#FF6600"><b>SP Streaming</b></font></legend> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <?php $dataPerPage = 9; $page =$var['page']; if(isset($page)) { $noPage = $page; } else $noPage = 1; $offset = ($noPage - 1) * $dataPerPage; $query = "select * from VIDEO order by IDVIDEO desc LIMIT $offset, $dataPerPage"; $result = mysql_query($query) or die('Error'); $data1 = mysql_query($query) or die('Error'); //$no=0; //$jum=mysql_num_rows while($data = mysql_fetch_array($result)) { $qjumlah = mysql_query("select count(*) as jumlah from VIDEO group by IDVIDEO") or die("Data Berita tidak ada !!"); $qjumlah_r=mysql_num_rows($qjumlah); $qjumlah_d=mysql_fetch_array($qjumlah); $no++; for($j=1;$row= mysql_fetch_array($data1);$j++){ if($j % 3 == 1) echo "<tr>"; ?> <td><table width="125" border="0" cellspacing="2" cellpadding="2" style="border-bottom:#CCCCCC 1px solid; border-left:#CCCCCC 1px solid; border-right:#CCCCCC 1px solid; border-top:#CCCCCC 1px solid;"> <tr> <td align="left" valign="top"> <a <?php echo " href='index.php?".paramEncrypt('p=streaming_detil&id='.$row['IDVIDEO'].'')."'";?>> <img src="photos/bigs/<?php echo $row['NAMAFOTO'];?>" width="170" title="<?php echo $row['TITLE'];?>"/> </a> </td> </tr> <tr> <td align="left" valign="top" bgcolor="#EFEFEF"> <font face="Arial, Helvetica, sans-serif" size="2"> <?php if(strlen($row['TITLE'])>18) { $judul=substr_replace($row['TITLE'],CHR(13),0,"<br>"); echo "<a title='".$row['TITLE']."'>"; echo substr($judul,0,25); echo "...</a>"; }else { echo $row['TITLE']; } //echo $row['JUDUL'];?></font></td> </tr> </table> </td> <? if($j % 3 == 0) echo "</tr>"; ?> <?PHP }}?> </table> </td> </tr> </table> </fieldset> <table width="450" border="0" cellspacing="3" cellpadding="3"> <tr> <td><div class="page"> <?php $query = "SELECT COUNT(*) AS jumData from VIDEO"; $hasil = mysql_query($query); $data = mysql_fetch_array($hasil); $jumData = $data['jumData']; $jumPage = ceil($jumData/$dataPerPage); if ($noPage > 1) echo "<a href='index.php?".paramEncrypt('p=streaming_all&page='.($noPage-1).'')."'>&lt;&lt; Prev</a>"; // memunculkan nomor halaman dan linknya for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 3) && ($page <= $noPage + 3)) || ($page == 1) || ($page == $jumPage)) { if (($showPage == 1) && ($page != 2)) echo "..."; if (($showPage != ($jumPage - 1)) && ($page == $jumPage)) echo "..."; if ($page == $noPage) echo " <b>".$page."</b> "; else echo " <a href='index.php?".paramEncrypt('p=streaming_all&page='.$page.'')."'>".$page."</a> "; $showPage = $page; } } // menampilkan link next if ($noPage < $jumPage) echo "<a href='index.php?".paramEncrypt('p=streaming_all&page='.($noPage+1).'')."'>Next &gt;&gt;</a>"; ?> </div></td> </tr> </table> </td> <td width="265">&nbsp;</td> </tr> </table>

home_ekonomi_new.php <table width="230" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><img src="images/kombis.png" width="100%" /></td> </tr> <tr> <td align="left" valign="top"> <?php $pr0=mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='EkonomiBisnis' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 1"); $dpr0=mysql_fetch_array($pr0); $ttl_ek=str_replace(" ","-",$dpr0['JUDUL']); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <? if(($dpr0['NAMAFOTO']!='') && file_exists('photos/thumbs/'.$dpr0['NAMAFOTO'])){?> <td width="37%" align="left" valign="top"> <img src="photos/thumbs/<? echo $dpr0['NAMAFOTO'];?>" width="75" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid; margin-right:5px"/> </td> <?php }?> <td width="63%" align="left" valign="top"><span class="left_berita2"> <?php echo "<a class=\"tooltip\" href='index.php?read~$ttl_ek;".paramEncrypt('p=detilberita&id='.$dpr0[0].'')."'>"; $jdl=$dpr0['JUDUL']; echo $jdl; echo "<span class=\"classic\"><em>".$dpr0['JUDUL']."</em>$dpr0[NEWLEAD]</span></a><br>"; ?></span> </td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top"><span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='EkonomiBisnis' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 1, 5"); while($dpr=mysql_fetch_array($pr)) { $ttl_ek2=str_replace(" ","-",$dpr['JUDUL']); echo "<a class=\"tooltip\" href='index.php?read~$ttl_ek2;".paramEncrypt('p=detilberita&id='.$dpr[0].'')."'>"; if(strlen($dpr['JUDUL'])>29) { $jdl=substr_replace($dpr['JUDUL'],CHR(13),0,"<br>"); echo substr($jdl,0,28); echo "..."; }else { echo $dpr['JUDUL']; } /*$jdl=$dpr['JUDUL']; $jdl_array = explode(' ',$jdl); $jdl_baru = ''; $i=1; foreach($jdl_array AS $jdl_array1){ if ($i<=4) $jdl_baru .= $jdl_array1.' '; $i++; } if(count($jdl_array)>4) { echo $jdl_baru."..."; } else { echo $jdl_baru; }*/ echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span></td> </tr> </table></td> </tr> </table>

tes_geolocation.php <!DOCTYPE html> <html> <body> <p id="demo">Click the button to get your coordinates:</p> <button onclick="getLocation()">Try It</button> <script> var x=document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else{x.innerHTML="Geolocation is not supported by this browser.";} } function showPosition(position) { x.innerHTML="Latitude: " + position.coords.latitude + "<br>Longitude: " + position.coords.longitude; } </script> </body> </html>

pencarian_proses.php <!-- Begin Left Column --> <!-- <div id="leftcolumn"> </div> --> <!-- End Left Column --> <div id="content_detilberita"> <?php $str=mysql_real_escape_string($_POST['s']); $str3=$var['str2']; if($str!='') { $ip=$_SERVER['REMOTE_ADDR']; $tgl=date("Y-m-d H:i:s"); $msk=mysql_query("insert into DATA_PENCARIAN set KATA='$str',TGLKIRIM='$tgl',IP='$ip'"); $str4=$str; }else{$str4=$str3;} //echo $str4; ?> <table width="100%" border="0" cellspacing="0" cellpadding="0" height="628"> <tr> <td height="58" align="left" valign="middle"> <div class="h-rule"></div></td> </tr> <tr> <td width="100%" align="left" valign="top"><ul> <?php $dataPerPage = 10; $page =$var['page']; if(isset($page)) { $noPage = $page; } else $noPage = 1; $offset = ($noPage - 1) * $dataPerPage; if($str!='') { $que ="select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM,TIME from BERITA WHERE (JUDUL like '%$str%' or ISI like '%$str%') and JUDUL<>'' and TGLKIRIM2<='$tgl_sekarang' and STATUS='Show' ORDER BY TGLKIRIM2 DESC LIMIT $offset, $dataPerPage"; }else { $que = "select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM,TIME from BERITA WHERE (JUDUL like '%$str3%' or ISI like '%$str3%') and JUDUL<>'' and TGLKIRIM2<='$tgl_sekarang' and STATUS='Show' ORDER BY TGLKIRIM2 DESC LIMIT $offset, $dataPerPage"; } //echo $que; $queryinfo = mysql_query($que); while($tbl = mysql_fetch_array($queryinfo)) { $ttl_search=str_replace(" ","-",$tbl['JUDUL']); ?> <table width="60%" border="0" cellspacing="2" cellpadding="2"> <tr align="left" valign="top"> <td width="7%">&nbsp;</td> <td width="93%"><li> <div style="font: 10px normal Arial, Helvetica, sans-serif;"> <?php echo tanggal("D, j M Y",$tbl['TGLKIRIM']);echo " : ".$tbl['TIME']." WIB";?> </div> <? echo "<div class='judul_kolom'><a href='index.php?read~$ttl_search;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a>"; echo "</div>"; if($_SESSION['slevel']=="Administrator") { echo "&nbsp;&nbsp;<font color='red'><a href='index.php?".paramEncrypt('p=formberita&idinfo='.$tbl['IDBERITA'].'')."'> [ Edit ] </a></font>"; } if(($_SESSION['slevel']=="Administrator")) { echo "("; echo "<font color=red><b>"; echo $tbl["TERBACA"]; echo "</b></font>"; echo ")"; } ?> <div class="lead_kolom"><?php echo $tbl['NEWLEAD'];?></div> </li></td> </tr> </table> <?php }?></ul><br> <ul> <table width="90%" border="0" cellspacing="3" cellpadding="3" style="border: 1px solid #ccc; "> <tr> <td align="center" valign="middle"> <div class="judul_paging"> <?php if($str!='') { $query = "SELECT COUNT(*) AS jumData FROM BERITA where (JUDUL like '%$str%' or ISI like '%$str%') and JUDUL<>'' and TGLKIRIM2<='$tgl_sekarang' and STATUS='Show'"; } else { $query = "SELECT COUNT(*) AS jumData FROM BERITA where (JUDUL like '%$str3%' or ISI like '%$str3%') and JUDUL<>'' and TGLKIRIM2<='$tgl_sekarang' and STATUS='Show'"; } //echo $query; $hasil = mysql_query($query); $data = mysql_fetch_array($hasil); $jumData = $data['jumData']; $jumPage = ceil($jumData/$dataPerPage); if ($noPage > 1) echo "<a href='index.php?".paramEncrypt('p=pencarian_proses&str2='.$str4.'&page='.($noPage-1).'')."'>&lt;&lt; Prev</a>"; // memunculkan nomor halaman dan linknya for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 3) && ($page <= $noPage + 3)) || ($page == 1) || ($page == $jumPage)) { if (($showPage == 1) && ($page != 2)) echo "..."; if (($showPage != ($jumPage - 1)) && ($page == $jumPage)) echo "..."; if ($page == $noPage) echo " <b>".$page."</b> "; else echo " <a href='index.php?".paramEncrypt('p=pencarian_proses&str2='.$str4.'&page='.$page.'')."'>".$page."</a> "; $showPage = $page; } } // menampilkan link next if ($noPage < $jumPage) echo "<a href='index.php?".paramEncrypt('p=pencarian_proses&str2='.$str4.'&page='.($noPage+1).'')."'>Next &gt;&gt;</a>"; ?></div></td> </tr> </table></ul> </td> <td width="0%" align="left" valign="top">&nbsp;</td> </tr> </table><br><br /> <br /> <br /> <br /> </div> <!-- Begin Right Column --> <div id="rightcolumn"> </div> <?php //if($_SESSION['slevel']==""){?> <!--banner <script src='js/jquery-1.3.2.min.js' type='text/javascript'></script> <script type='text/javascript' src='js/jquery-ui.min.js'></script> <script type='text/javascript'> $(window).bind("load", function() { // animasikan nilai top saat halaman telah selesai dimuat $('#kotak-pesan').animate({top:"30px"}, 1000, "easeOutBounce"); // hilangkan kotak pesan saat tombol (x) diklik $('a.close').click(function() { $(this).parent().slideUp(800, "easeOutBounce"); return false; }); }); </script> <style> #kotak-pesan{ position:fixed !important; position:absolute; /* IE6 */ top:-900px; margin:0px 0px 0px 0px; width:890px; height:auto; padding:5px; border:2px solid #fff; font:normal 1em Cambria,Georgia,Serif; color:#111; -webkit-box-shadow:0px 0px 0px rgba(0,0,0,0.4); -moz-box-shadow:0px 0px 0px rgba(0,0,0,0.4); box-shadow:0px 0px 0px rgba(0,0,0,0.4); z-index:999; } #kotak-pesan a.close{ position:absolute; top:-10px; right:-10px; background:#333; font:bold 16px Arial,Sans-Serif; text-decoration:none; line-height:22px; width:22px; text-align:center; color:#fff; border:2px solid #fff; -webkit-box-shadow:0px 1px 2px rgba(0,0,0,0.4); -moz-box-shadow:0px 1px 2px rgba(0,0,0,0.4); box-shadow:0px 1px 2px rgba(0,0,0,0.4); -webkit-border-radius:22px; -moz-border-radius:22px; border-radius:22px; cursor:pointer; } </style> <div id='kotak-pesan' align='center'> <center> <a href='http://www.facebook.com/GaunGmu' target='_blank'><img src="images/paul2.jpg" width="400" border="0" /></a> </center> <a class='close' href='#'>&times;</a> </div> --><?php //}?>

home_politik_new.php <table width="230" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><img src="images/polhuk.png" width="100%" /></td> </tr> <tr> <td align="left" valign="top"> <?php $pr0=mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and (KATEGORI='PolitikHukum' or KATEGORI='Politik') and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 1"); $dpr0=mysql_fetch_array($pr0); $ttl_p=str_replace(" ","-",$dpr0['JUDUL']); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <? if(($dpr0['NAMAFOTO']!='') && file_exists('photos/thumbs/'.$dpr0['NAMAFOTO'])){?> <td width="37%" align="left" valign="top"> <img src="photos/thumbs/<? echo $dpr0['NAMAFOTO'];?>" width="75" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid; margin-right:5px"/> </td> <?php }?> <td width="63%" align="left" valign="top"><span class="left_berita2"> <?php echo "<a class=\"tooltip\" href='index.php?read~$ttl_p;".paramEncrypt('p=detilberita&id='.$dpr0[0].'')."'>"; $jdl=$dpr0['JUDUL']; echo $jdl; echo "<span class=\"classic\"><em>".$dpr0['JUDUL']."</em>$dpr0[NEWLEAD]</span></a><br>"; ?></span> </td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top"><span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and (KATEGORI='PolitikHukum' or KATEGORI='Politik') and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 1, 5"); while($dpr=mysql_fetch_array($pr)) { $ttl_p2=str_replace(" ","-",$dpr['JUDUL']); echo "<a class=\"tooltip\" href='index.php?read~$ttl_p2;".paramEncrypt('p=detilberita&id='.$dpr[0].'')."'>"; if(strlen($dpr['JUDUL'])>29) { $jdl=substr_replace($dpr['JUDUL'],CHR(13),0,"<br>"); echo substr($jdl,0,28); echo "..."; }else { echo $dpr['JUDUL']; } echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span></td> </tr> </table></td> </tr> </table>

home_unik.php <table width="100%" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="middle" bgcolor="#FFFFFF"><b><font color="#FF0000" size="+1" face="tahoma, arial">Unik</font></b></td> </tr> <tr> <td align="left" valign="top"> <span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='Unik' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 5"); while($dpr=mysql_fetch_array($pr)) { echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dpr[0].'')."'>"; $jdl=$dpr['JUDUL']; $jdl_array = explode(' ',$jdl); $jdl_baru = ''; $i=1; foreach($jdl_array AS $jdl_array1){ if ($i<=4) $jdl_baru .= $jdl_array1.' '; $i++; } if(count($jdl_array)>4) { echo $jdl_baru."..."; } else { echo $jdl_baru; } echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span> </td> </tr> </table>

streaming_add.php <?php if(($_SESSION['slevel']=="Administrator")){?> <style type="text/css"> <!-- .style43 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } --> </style> <form id="form1" name="myform" enctype="multipart/form-data" method="post" action="<? echo "index.php?".paramEncrypt('p=streaming_save').""; ?>" > <table width="380" border="0" cellspacing="2" cellpadding="2" style="border-bottom:#CCCCCC 1px solid; border-left:#CCCCCC 1px solid; border-right:#CCCCCC 1px solid; border-top:#CCCCCC 1px solid"> <tr> <td colspan="3"> Add Embed <hr> </td> </tr> <tr> <td width="61" align="left" valign="top">Title</td> <td width="3" align="left" valign="top">:</td> <td width="294" align="left" valign="top"><input name="title" type="text" id="title" size="40"></td> </tr> <tr> <td align="left" valign="top">Embed</td> <td align="left" valign="top">:</td> <td align="left" valign="top"><label> <textarea name="embed" cols="30" rows="5" id="embed"></textarea> </label></td> </tr> <tr> <td align="left" valign="top">Cover</td> <td align="left" valign="top">:</td> <td align="left" valign="top"><label><span class="style43"> <input name="image" type="file" class="textbox" id="image" /> </span></label></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><input type="submit" name="Submit" value="Simpan" /></td> </tr> </table> </form> <?php } ?>

home_klinik.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript"> $(document).ready(function(){ $(".accordion h3:first").addClass("active"); $(".accordion p:not(:first)").hide(); $(".accordion h3").click(function(){ $(this).next("p").slideToggle("slow") .siblings("p:visible").slideUp("slow"); $(this).toggleClass("active"); $(this).siblings("h3").removeClass("active"); }); }); </script> <style type="text/css"> .accordion { width: 255px; border-bottom: solid 1px #c4c4c4; font: Arial, Helvetica, sans-serif; background-color:#EEEEEE; } .accordion h3 { /*background: #e9e7e7 url(images/arrow-square.gif) no-repeat right -51px;*/ padding: 7px 15px; margin: 0; font: bold Arial, Helvetica, sans-serif; border: solid 1px #c4c4c4; border-bottom: none; cursor: pointer; font-size: 13px; } .accordion h3:hover { background-color: #e3e2e2; } .accordion h3.active { background-position: right 5px; } .accordion p { background: #f7f7f7; margin: 0; padding: 10px 15px 20px; border-left: solid 1px #c4c4c4; border-right: solid 1px #c4c4c4; font-size: 12px; } .accordion p a:link {font:bold 12px Arial; color:#000000; text-decoration:none; padding-bottom:5px; padding-left:0px;} .accordion p a:visited {font:bold 12px Arial; color:#000000; text-decoration:none;padding-bottom:5px; padding-left:0px;} .accordion p a:hover {font:bold 12px Arial;color:#FF0000; text-decoration:underline;padding-bottom:5px; padding-left:0px;} .style1 { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; color: #FF9900; } .tab_klinik {font:bold 18px Tahoma, Geneva, sans-serif; color:#2076B5; text-decoration:none;} </style> </head> <body><br /> <table width="255" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="images/klinik.png" width="100%" /></td> </tr> </table> <div class="accordion"> <h3 class="tab_klinik">Perburuhan</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikPerburuhan' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k1=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k1;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="tab_klinik">Tata Negara</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikTatanegara' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k2=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k2;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; //echo "<a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="tab_klinik">Kesehatan</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikKesehatan' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k3=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k3;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; //echo "<a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="tab_klinik">H A M</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikHam' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k4=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k4;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; //echo "<a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="tab_klinik">Pidana dan Korupsi</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikPidanaKorupsi' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k5=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k5;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; //echo "<a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="tab_klinik">Pelayanan Publik</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikPelayananPublik' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k6=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k6;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; //echo "<a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="tab_klinik">Hukum Kontrak</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikHukumKontrak' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k7=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k7;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; //echo "<a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="tab_klinik">Perdata</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikPerdata' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k8=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k8;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; //echo "<a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="tab_klinik">Persaingan Usaha</h3> <p style="display: none;"><?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikUsaha' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k9=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k9;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; //echo "<a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?></p> <h3 class="tab_klinik">H A K I</h3> <p style="display: none;"><?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikHaki' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k10=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k10;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; //echo "<a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?></p> </div> </body></html>

isi_foto2_p.php <div class="right w310 pl_10 pb_10 pt_5"> <div class="multi_foto_wide_p"> <div id="foto1" style="display: block; "><img src="photos/bigs/<?php echo $d['NAMAFOTO2'];?>"/><span class="pb_10"></span> <?php if($d['CAPTION2']!=''){echo $d['CAPTION2'];}?></div> </div> </div>

administrator

tes_detilberita_p.php <link href="css_detil_l.css" rel="stylesheet" type="text/css"> <table width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="600" align="left" valign="top"> <div class="clearit"></div> <!--TOP BAR END --> <div align="center"> <div class="cangkang_master2012"> <div align="left"> <!-- start: header --> <!-- end: header --> <!-- start: konten --> <div class="cangkang_konten002"> <div class="content_kiri_detail"> <div class="judul_artikel2012"><a href='http://indosat.com/' target='_blank'><img src="images/indosat.jpg" width="100%" border="0" /></a><?php echo $d['JUDUL']; ?></div> <div class="pb_20"></div> <div class="clearit bl_1 mb_10"></div> <div class="left_share"> <div class="font11 c_abu03_sp2012 pb_3"><span class="share"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"><font size="3"><i><?php echo $d['SUBJUDUL']; ?></i></font></td> </tr> <tr> <td colspan="3" align="left" valign="middle"><span class="c_abu01_sp2012"><?php echo tanggal("D, j M Y",$d['TGLKIRIM']);echo " | ".$d['TIME']." WIB";?></span></td> </tr> <tr> <td width="40%" align="right" valign="middle"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="SbyPagiOnline">Tweet</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td> <td width="16%" align="right" valign="middle" cols> <script >function fbs_click() { u=location.href; t=document.title; window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false; } </script> <a href="http://www.facebook.com/share.php?u=http://surabayapagi.com<?php echo $_SERVER['REQUEST_URI'];?>" onclick="return fbs_click()" target="_blank"> <img src="images/share-on-facebook1.jpg" alt=\"Share On Facebook\" align="left"/></a> <!--<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php?u=http://surabayapagi.com<?php //echo $_SERVER['REQUEST_URI'];?>">Share</a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>--> </td> </tr> </table> </span></div> </div> <div class="clearit"></div> <div class="clearit bl_orange pt_10"></div> <!--IMAGES --> <div class="pt_10"></div> <!-- s: headline --> <?php if($d['NAMAFOTO']!='') { ?> <div class="right w310 pl_10 pb_10 pt_5"> <p> <!--TERKAIT --> </p> <div class="multi_foto_wide_p"> <div id="foto1" style="display: block; "><img src="photos/bigs/<?php echo $d['NAMAFOTO'];?>"/><span class="pb_10"></span> <?php if($d['CAPTION']!=''){echo $d['CAPTION'];}?></div> </div> <?php if($kodetema!="") { $bt=mysql_query("select IDBERITA,JUDUL from BERITA where KODETEMA='$kodetema' and `STATUS`='Show' and IDBERITA <'$hit' order by TGLKIRIM2 desc,TIME DESC,IDBERITA desc limit 0,5"); //echo "select IDBERITA,JUDUL from BERITA where KODETEMA='$kodetema' and IDBERITA <'$hit' order by TGLKIRIM2 desc,TIME DESC,IDBERITA desc limit 0,5"; if(mysql_num_rows($bt)>=1) { ?> <p></p> <div class="pd_5 hl_1 font12 c_abu01_sp2012"><strong>TERKAIT:</strong></div> <div class="list_4 font12 arial c_biru_sp2012 pb_10 bl_1"> <ul> <?php while($dbt=mysql_fetch_array($bt)) { $ttl_tk=str_replace(" ","-",$dbt['JUDUL']); ?> <li><?php echo "<a title='".$dbt['JUDUL']."' href='index.php?read=$ttl_tk;".paramEncrypt('p=detilberita&id='.$dbt[0].'')."'>"; echo $dbt['JUDUL']."</a>"; ?></li> <?php }?> </ul> </div><?php }}?> <!--TERKAIT END --> </div> <?php }?> <div class="isi_berita2012 pt_5"> <p><?php echo nl2br($d['ISI']);?></p> </div> <?php if($d['NAMAFOTO2']!='') { $gb2="photos/bigs/".$d['NAMAFOTO2']; if (file_exists($gb2)) { $xx2=getimagesize($gb2); list($width2,$height2)=$xx2; if($height2<$width2) { include "isi_foto2_l.php"; } if($height2>=$width2) { include "isi_foto2_p.php"; } } } if($d['ISI2']!='') { ?> <div class="isi_berita2012 pt_5"> <p><?php echo nl2br($d['ISI2']);?></p> </div> <?php }?> <div class="clearit pt_30"></div> <div class="clearit bl_orange mb_3 pt_10"></div> </div> <div class="clearit"></div> <!--FOOTER : datanya harap disesuaikan saja dengan update footer yg terakhir --> <!--FOOTER END --> </div> <!-- end: konten --> </div></div> </td> <td width="300" rowspan="2" align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td align="left" valign="top" height="100%"><table width="285" border="0" cellspacing="0" cellpadding="5"> <tr> <td ><?php include "berita_lainnya.php";?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td> <div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilberita&id='.$hit.''); ?>" data-num-posts="10" data-width="600"></div></td> </tr> </table></td> </tr> </table>

detilstd_foto.php <link href="css_detil_l.css" rel="stylesheet" type="text/css"> <table width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="600" align="left" valign="top"> <div class="clearit"></div> <!--TOP BAR END --> <div align="center"> <div class="cangkang_master2012"> <div align="left"> <!-- start: header --> <!-- end: header --> <!-- start: konten --> <div class="cangkang_konten002"> <div class="content_kiri_detail"> <div class="judul_artikel2012"><?php echo $d['JUDUL']; ?></div> <div class="pb_20"></div> <div class="clearit bl_1 mb_10"></div> <div class="left_share"> <div class="font11 c_abu03_sp2012 pb_3"><span class="share"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"><font size="3"><i><?php echo $d['SUBJUDUL']; ?></i></font></td> </tr> <tr> <td colspan="3" align="left" valign="middle"><span class="c_abu01_sp2012"><?php echo tanggal("D, j M Y",$d['TGL']);?></span></td> </tr> <tr> <td width="40%" align="right" valign="middle"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="SbyPagiOnline">Tweet</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td> <td width="16%" align="right" valign="middle" cols> <script >function fbs_click() { u=location.href; t=document.title; window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false; } </script> <a href="http://www.facebook.com/share.php?u=http://surabayapagi.com<?php echo $_SERVER['REQUEST_URI'];?>" onclick="return fbs_click()" target="_blank"> <img src="images/share-on-facebook1.jpg" alt=\"Share On Facebook\" align="left"/> </a> <!--<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php?u=http://surabayapagi.com<?php //echo $_SERVER['REQUEST_URI'];?>">Share</a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>--> </td> </tr> </table> </span></div> </div> <div class="clearit"></div> <div class="clearit bl_orange pt_10"></div> <!--IMAGES --> <div class="pt_10"></div> <!-- s: headline --> <div class="multi_foto_wide"> <?php $gb="photos/bigs/".$d['FOTO']; $gb2="photos/bigs/".$d['FOTO2']; if (file_exists($gb)) { $xx=getimagesize($gb); list($width,$height)=$xx; if($height<$width) { ?> <?php if($d['FOTO2']!='' && (file_exists($gb2))) { $xx=getimagesize($gb); list($width,$height)=$xx; $xx2=getimagesize($gb2); list($width2,$height2)=$xx2; if($height>$height2) {$height3=$height;} else{$height3=$height2;} ?> <script type="text/javascript" src="js/jquery.cycle.all.min.js"></script> <script type="text/javascript"> var $ = jQuery.noConflict(); $(document).ready(function() { /* for image slideshow DUMMY*/ $('#slides').cycle({ timeout: 6000, // milliseconds between slide transitions (0 to disable auto advance) fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc... }); }); </script> <style type="text/css"> #slides .cycle{position:absolute; height:<?php echo $height3."px";?>; float:right} </style> <div id="slides"> <div class="cycle"> <img src="photos/bigs/<?php echo $d['FOTO'];?>" width="630"> </div> <div class="cycle"> <img src="photos/bigs/<?php echo $d['FOTO2'];?>" width="630"> </div> </div> <?php }else { ?> <div id="foto1" style="display: block; "><img src="photos/bigs/<?php echo $d['FOTO'];?>" width="630"> <?php } } if($height>=$width) { ?> <div id="foto1" style="display: block; "><img src="photos/bigs/<?php echo $d['FOTO'];?>" width="250"> <?php } } ?> <span class="pb_10"></span> </div> </div> <div class="isi_berita2012 pt_5"> <p><?php echo nl2br($d['ISI']);?></p> <div class="clearit pt_30"></div> <div class="clearit bl_orange mb_3 pt_10"></div> </div> </div> <div class="clearit"></div> </div> <!-- end: konten --> </div></div> </td> <td width="300" align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td align="left" valign="top"><table width="285" border="0" cellspacing="0" cellpadding="5"> <tr> <td><?php include "std_lainnya.php";?></td> </tr> <tr> <td align="center" valign="top">&nbsp;</td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td> <div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilfoto&id='.$hit.''); ?>" data-num-posts="10" data-width="600"> </div> </td> </tr> </table> </td> <td align="left" valign="top">&nbsp;</td> </tr> </table>

home_kriminal_new.php <table width="230" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><img src="images/kriminal.png" width="100%" /></td> </tr> <tr> <td align="left" valign="top"> <?php $pr0=mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='Kriminal' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 1"); $dpr0=mysql_fetch_array($pr0); $ttl_krim=str_replace(" ","-",$dpr0['JUDUL']); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <? if(($dpr0['NAMAFOTO']!='') && file_exists('photos/thumbs/'.$dpr0['NAMAFOTO'])){?> <td width="37%" align="left" valign="top"> <img src="photos/thumbs/<? echo $dpr0['NAMAFOTO'];?>" width="75" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid; margin-right:5px"/> </td> <?php }?> <td width="63%" align="left" valign="top"><span class="left_berita2"> <?php echo "<a class=\"tooltip\" href='index.php?read~$ttl_krim;".paramEncrypt('p=detilberita&id='.$dpr0[0].'')."'>"; $jdl=$dpr0['JUDUL']; echo $jdl; echo "<span class=\"classic\"><em>".$dpr0['JUDUL']."</em>$dpr0[NEWLEAD]</span></a><br>"; ?></span> </td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top"><span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='Kriminal' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 1, 5"); while($dpr=mysql_fetch_array($pr)) { $ttl_krim2=str_replace(" ","-",$dpr['JUDUL']); echo "<a class=\"tooltip\" href='index.php?read~$ttl_krim2;".paramEncrypt('p=detilberita&id='.$dpr[0].'')."'>"; if(strlen($dpr['JUDUL'])>29) { $jdl=substr_replace($dpr['JUDUL'],CHR(13),0,"<br>"); echo substr($jdl,0,28); echo "..."; }else { echo $dpr['JUDUL']; } /*$jdl=$dpr['JUDUL']; $jdl_array = explode(' ',$jdl); $jdl_baru = ''; $i=1; foreach($jdl_array AS $jdl_array1){ if ($i<=4) $jdl_baru .= $jdl_array1.' '; $i++; } if(count($jdl_array)>4) { echo $jdl_baru."..."; } else { echo $jdl_baru; }*/ echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span></td> </tr> </table></td> </tr> </table>

css

mobile

custom_adv

silang.png PNG  IHDR atEXtSoftwareAdobe ImageReadyqe<9PLTE͎ꉅ̈͒˄|pl|ΕrlOJ'WtRNS}^IDATxLK Qk05EY ɂyFR cJz<Ģ9Qܥ+ZC;b߶ܡ)? _]H(IENDB`

streaming_home.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- saved from url=(0014)about:internet --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css">td img {display: block;}</style> <!--Fireworks 8 Dreamweaver 8 target. Created Sat May 12 12:09:29 GMT+0700 (SE Asia Standard Time) 2012--> <script language="JavaScript1.2" type="text/javascript"> <!-- function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } //--> </script> </head> <body bgcolor="#ffffff" onload="MM_preloadImages('images/streaming_r4_c3_f2.jpg');"> <table border="0" cellpadding="0" cellspacing="0" width="255"> <!-- fwtable fwsrc="streaming.png" fwbase="streaming.jpg" fwstyle="Dreamweaver" fwdocid = "669233280" fwnested="0" --> <tr> <td><img src="images/spacer.gif" width="9" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="158" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="79" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="9" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="1" height="1" border="0" alt="" /></td> </tr> <tr> <td colspan="4"><img name="streaming_r1_c1" src="images/streaming_r1_c1.jpg" width="255" height="10" border="0" id="streaming_r1_c1" alt="" /></td> <td><img src="images/spacer.gif" width="1" height="10" border="0" alt="" /></td> </tr> <tr> <td background="images/streaming_r2_c1.jpg">&nbsp;</td> <td colspan="2" align="left" valign="top" background="images/streaming_r2_c2.jpg"> <?php include "go/go.php"; $q=mysql_query("select * from VIDEO order by IDVIDEO desc limit 0,1"); $dq=mysql_fetch_array($q); $v=$dq['EMBED']; $v1="<iframe width=\"237\" height=\"170\""; $v2= substr($v, 32); echo $v1.$v2; ?> </td> <td background="images/streaming_r2_c4.jpg">&nbsp;</td> <td><img src="images/spacer.gif" width="1" height="39" border="0" alt="" /></td> </tr> <tr> <td colspan="4"><img name="streaming_r3_c1" src="images/streaming_r3_c1.jpg" width="255" height="6" border="0" id="streaming_r3_c1" alt="" /></td> <td><img src="images/spacer.gif" width="1" height="6" border="0" alt="" /></td> </tr> <tr> <td rowspan="2" colspan="2"><img name="streaming_r4_c1" src="images/streaming_r4_c1.jpg" width="167" height="15" border="0" id="streaming_r4_c1" alt="" /></td> <td><a <?php echo " href='index.php?".paramEncrypt('p=streaming_all')."'";?> onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('streaming_r4_c3','','images/streaming_r4_c3_f2.jpg',1);"><img name="streaming_r4_c3" src="images/streaming_r4_c3.jpg" width="79" height="12" border="0" id="streaming_r4_c3" alt="" /></a></td> <td rowspan="2"><img name="streaming_r4_c4" src="images/streaming_r4_c4.jpg" width="9" height="15" border="0" id="streaming_r4_c4" alt="" /></td> <td><img src="images/spacer.gif" width="1" height="12" border="0" alt="" /></td> </tr> <tr> <td><img name="streaming_r5_c3" src="images/streaming_r5_c3.jpg" width="79" height="3" border="0" id="streaming_r5_c3" alt="" /></td> <td><img src="images/spacer.gif" width="1" height="3" border="0" alt="" /></td> </tr> </table> </body> </html>

berita_lainnya.php <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td align="left" valign="top"><font face="tahoma, arial" size="+1" color="#FF0000"><b>Berita lainnya</b></font><hr /></td> </tr> <?php $bl=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where KATEGORI='$kategori' and IDBERITA!='$hit' and TGLKIRIM2<='$tgl_sekarang' ORDER BY TGLKIRIM2 desc,IDBERITA desc LIMIT 0,15"); while($dbl=mysql_fetch_array($bl)) { $ttl_lain=str_replace(" ","-",$dbl['JUDUL']); ?> <tr> <td align="left" valign="top"><span class="left_berita"><?php echo "<a title='".$dbl['JUDUL']."' href='index.php?read=$ttl_lain;".paramEncrypt('p=detilberita&id='.$dbl[0].'')."'>"; if(strlen($dbl['JUDUL'])>35) { $judul=substr_replace($dbl['JUDUL'],CHR(13),0,"<br>"); echo substr($judul,0,35); echo "..."; }else { echo $dbl['JUDUL']; } ?></span></td> </tr> <?php } ?> <?php if($kategori=="EkonomiBisnis") { ?><!-- <tr> <td align="left" valign="top"><a href="http://www.siskaperbapo.com" target="_blank"><img src="images/siska.gif" width="100%" border="0" /></a></td> </tr>--> <?php }?> </table>

pencarian.php <style type="text/css"> #search { width: 900px; } #searchform input#s { margin-top: 4px; width: 170px; border: 1px solid #999; background: #FFF url(images/input-bg.png) repeat-x bottom; border-right-color: #FFF; border-bottom-color: #FFF; padding: 2px 3px; color: #5A5B24; float:right; margin-right:15px; } input#searchsubmit { position: absolute; right: 180px; }</style> <script type="text/javascript" > function make_blank() { document.pencarian.s.value =""; } function ResetSearch() { document.pencarian.s.value ="search site"; } </script> <div class="search"> <form name="pencarian" method="post" id="searchform" action="<?php echo "index.php?".paramEncrypt('p=pencarian_proses');?>"> <div> <input type="text" value="search site" name="s" id="s" onclick="make_blank();" onblur="ResetSearch();"/> <!--<input type="image" id="searchsubmit" name="submit" value="Search" src="images/search-s.png" alt="Search" title="Search" />--> </div> </form> </div>

formberita.phpx <? session_start(); if(($_SESSION['slevel']=="Administrator") || ($_SESSION['slevel']=="Redaksi2")) { $id=$var['idinfo']; $cek=mysql_query("select * from BERITA where IDBERITA='$id'"); $dcek=mysql_fetch_array($cek); ?> <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title></title> <style type="text/css"> <!-- .style5 {font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; } .style43 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } .style45 {font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif;} .style46 { font-size: 10px; color: #FF0000; } .style50 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; } .style52 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10; } .style53 {font-size: 10} --> </style> <script type="text/javascript"> function ismaxlength(obj){ var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : "" if (obj.getAttribute && obj.value.length>mlength) obj.value=obj.value.substring(0,mlength) } </script> <script type="text/javascript" src="include/jquery-1.2.6.pack.js"></script> <script type='text/javascript' src='include/jquery.autocomplete.pack.js'></script> <!-- Autocomplete Formatting --> <link rel="stylesheet" type="text/css" href="include/jquery.autocomplete.css" /> <script type="text/javascript"> $().ready(function() { $("#targetDiv").autocomplete("include/mysql.php", { width: 260, selectFirst: true }); }); </script> </head> <body marginheight="0" marginwidth="0" topmargin="0"> <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="97%" align="left"><font size="2"><b>:: Surabaya Pagi - Breaking </b></font> <?php $tgl_skr=date("Y-m-d"); $jam=date("H:i"); echo $tgl_skr." ".$jam?> <hr size="1"></td> </tr> <tr> <td> <script language="JavaScript"> function checkrequired(which) { var pass=true; if (document.images) { for (i=0;i<which.length;i++) { var tempobj=which.elements[i]; if (tempobj.name.substring(0,8)=="required") { if (((tempobj.type=="text"||tempobj.type=="textarea")&& tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&& tempobj.selectedIndex==0)) { pass=false; break; } } } } if (!pass) { shortFieldName=tempobj.name.substring(8,30).toUpperCase(); alert("Tolong silahkan anda isikan "+shortFieldName+" untuk melengkapinya"); return false; } else return true; } </script> <table width="100%" border="0" cellspacing="2" cellpadding="0"> <form onSubmit="return checkrequired(this)" name="data_admin" enctype="multipart/form-data" method="post" action="saveberita.php"> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Judul </span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input type="text" name="requiredjudul" class="textbox" size="35" value="<?php echo $dcek['JUDUL'];?>"> <input type="hidden" name="idberita" class="textbox" size="35" value="<?php echo $dcek['IDBERITA'];?>"> <input type="hidden" name="fotolama" class="textbox" size="35" value="<?php echo $dcek['NAMAFOTO'];?>"> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Sub Judul </span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input type="text" name="subjudul" class="textbox" size="35" value="<?php echo $dcek['SUBJUDUL'];?>"> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Kategori Berita </span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style5"> <span class="style45"> <select name="requiredkategori" class="textbox"> <option value="<?php echo $dcek['KATEGORI'];?>"><?php echo $dcek['KATEGORI'];?></option> <option value="">Pilih Kategori</option> <optgroup label="Hukum"> <option value="CatatanHukum">Catatan Hukum</option> <option value="WhiteCrime">White Collar Crime</option> <option value="KemiskinanKota">Kemiskinan Kota</option> <option value="KorbanHukum">Korban Ketidakadilan</option> <option value="KiatHukum">Kiat Berperkara</option> <option value="Slc">SLC</option> <option value="PolitikHukum">Politik Hukum</option> <option value="ProfilCaleg">Profil Caleg</option> <option value="LayananPublik">Layanan Publik</option> <option value="ProRakyat">Pro Rakyat</option> <!-- <option value="Megapolitan">Megapolitan</option> --> </optgroup> <optgroup label="Kriminal"> <option value="Kriminal">Kriminal</option> </optgroup> <optgroup label="Umum"> <option value="Peristiwa">Umum/Peristiwa</option> <option value="Pendidikan">Pendidikan</option> <option value="Kesehatan">Kesehatan</option> <option value="Kuliner">Kuliner</option> <option value="Unik">Unik</option> <option value="GeliatMalam">Geliat Malam</option> <option value="Polling">Polling</option> <option value="Suroboyoan">Suroboyoan</option> <option value="KamusSuroboyoan">Kamus Suroboyoan</option> </optgroup> <optgroup label="Otoda"> <option value="OtodaSurabaya">Otoda Surabaya</option> <option value="OtodaSidoarjo">Otoda Sidoarjo</option> <option value="OtodaGresik">Otoda Gresik</option> <option value="OtodaMojokerto">Otoda Mojokerto</option> <option value="OtodaMalang">Otoda Malang</option> <option value="OtodaTapalkuda">Otoda Tapalkuda</option> <option value="OtodaKediri">Otoda Kediri</option> <option value="OtodaMadiun">Otoda Madiun</option> <option value="OtodaPantura">Otoda Pantura</option> <option value="OtodaMadura">Otoda Madura</option> </optgroup> <optgroup label="Bisnis"> <option value="EkonomiBisnis">Ekonomi Bisnis</option> <!-- <option value="HukumBisnis">Hukum Bisnis</option> <option value="BinsisHongkong">Bisnis Hongkong</option> --> </optgroup> <optgroup label="Skandal"> <option value="Entertainment">Selebritis</option> <option value="Sportainment">Sportainment</option> <option value="Internasional">Internasional</option> </optgroup> <optgroup label="Klinik Hukum"> <option value="KlinikPerburuhan">Perburuhan</option> <option value="KlinikTatanegara">Tata Negara</option> <option value="KlinikKesehatan">Kesehatan</option> <option value="KlinikHam">H A M</option> <option value="KlinikHaki">H A K I</option> <option value="KlinikPidanaKorupsi">Pidana Korupsi</option> <option value="KlinikPelayananPublik">Pelayanan Publik</option> <option value="KlinikHukumKontrak">Hukum Kontrak</option> <option value="KlinikPerdata">Perdata</option> <option value="KlinikUsaha">Persaingan Usaha</option> </optgroup> <optgroup label="Indonesia Memilih"> <option value="Pemilu">Pemilu/Pilkada</option> </optgroup> </select> </span> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Kode Tema </span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input type="text" id="targetDiv" name="kodetema" class="textbox" size="35" value="<?php echo $dcek['KODETEMA'];?>" /> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><p class="style43">Lead Berita </p> <p class="style43"><span class="style46">Gunakan Tag Berikut : <br> <br> &lt;b&gt;.....&lt;/b&gt; Untuk Bold<br> &lt;i&gt;.....&lt;/i&gt; Untuk Italic</span></p></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style50"> <textarea name="requiredlead" cols="60" rows="10" wrap="VIRTUAL" maxlength="160" onKeyUp="return ismaxlength(this)"><?php echo $dcek['NEWLEAD'];?></textarea> max. 160 karakter </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><p class="style43">Isi Berita 1 </p> <p class="style43"><span class="style46">Gunakan Tag Berikut : <br> <br> &lt;b&gt;.....&lt;/b&gt; Untuk Bold<br> &lt;i&gt;.....&lt;/i&gt; Untuk Italic <br> &lt;b&gt;&lt;i&gt;&nbsp;&lt;/i&gt;&lt;/b&gt; </span></p></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style50"> <textarea name="requiredisi" cols="60" rows="20" wrap="VIRTUAL"><?php echo $dcek['ISI'];?></textarea> </span></td> </tr> <tr align="left" valign="top"> <td class="text"><span class="style43">Foto 1 </span></td> <td class="text"><span class="style43">:</span></td> <td class="text"> <span class="style43"> <input name="image" type="file" class="textbox" id="image"> <label></label> &nbsp;&nbsp;&nbsp; <label></label> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Caption</span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input type="text" name="caption" class="textbox" size="35" value="<?php echo $dcek['CAPTION'];?>"> </span></td> </tr> <tr align="left" valign="top" class="style43"> <td><span class="style53">Biro</span></td> <td><span class="style53">:</span></td> <td><span class="style52"><span class="text"><span class="style5"><span class="style45"> <select name="biro" class="textbox"> <option value="<?php echo $dcek['KOTA'];?>"><?php echo $dcek['KOTA'];?></option> <option value="Surabaya">Surabaya</option> <option value="Sidoarjo">Sidoarjo</option> <option value="Gresik">Gresik</option> <option value="Jember">Jember</option> <option value="Kediri">Kediri</option> <option value="Madiun">Madiun</option> <option value="Madura">Madura</option> <option value="Malang">Malang</option> <option value="Mojokerto">Mojokerto</option> <option value="Pantura">Pantura</option> <option value="Lainnya">Lainnya</option> <option value="LuarNegeri">Luar Negeri</option> </select> </span></span></span> </span></td> </tr> <tr align="left" valign="top" class="style43"> <td><span class="style53">Konversi Jam </span></td> <td><span class="style53">:</span></td> <td> <input type="text" name="konversijam" class="textbox" size="35" value="4" value="<?php echo $dcek['KONVERSI'];?>"> Jam</td> <tr align="left" valign="top" class="style43"> <td><span class="style53">Jenis Berita </span></td> <td><span class="style53">:</span></td> <td> <label><input name="statusberita" type="radio" value="Breaking" <?php if($dcek['STATUSKATEGORI']=='Breaking'){?>checked="checked"<?php }?>> Breaking</label> &nbsp;&nbsp;&nbsp; <label><input name="statusberita" type="radio" value="Headline" <?php if($dcek['STATUSKATEGORI']=='Headline'){?>checked="checked"<?php }?>> Headline</label></td> </tr> <tr align="left" valign="top" class="style43"> <td>&nbsp;</td> <td>&nbsp;</td> <td><span class="style52"> <input style="FONT-WEIGHT: bold; COLOR: #ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #335882" type=submit value=" Kirim " name="Kirim"> <input style="FONT-WEIGHT: bold; COLOR: #ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #335882" type=reset value=" Reset " name=reset> </span></td> </tr> </form> </table></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </body> </html> <? } else { //if(!isset($_SESSION['susername']) || !isset($_SESSION['spassword'])) { ?><script language='javascript'>alert('Anda Tidak Berhak Masuk Form Ini'); document.location='index.php'</script><? } ?>

std_add.php <? session_start(); if(($_SESSION['slevel']=="Administrator") || ($_SESSION['slevel']=="Redaksi")) { $id=$var['idinfo']; if($id!='') { $cek=mysql_query("select * from STD where IDFOTO='$id'"); $dcek=mysql_fetch_array($cek); } ?> <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title></title> <style type="text/css"> <!-- .style5 {font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; } .style43 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } .style45 {font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif;} .style46 { font-size: 10px; color: #FF0000; } .style50 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; } .style52 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10; } .style53 {font-size: 10} --> </style> <script type="text/javascript"> function ismaxlength(obj){ var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : "" if (obj.getAttribute && obj.value.length>mlength) obj.value=obj.value.substring(0,mlength) } </script> <script type="text/javascript" src="include/jquery-1.2.6.pack.js"></script> <script type='text/javascript' src='include/jquery.autocomplete.pack.js'></script> <!-- Autocomplete Formatting --> <link rel="stylesheet" type="text/css" href="include/jquery.autocomplete.css" /> <script type="text/javascript"> $().ready(function() { $("#targetDiv").autocomplete("include/mysql.php", { width: 260, selectFirst: true }); }); </script> </head> <body marginheight="0" marginwidth="0" topmargin="0"> <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="97%" align="left"><font size="2"><b>:: Surabaya Pagi - Breaking </b></font> <?php $tgl_skr=date("Y-m-d"); $jam=date("H:i"); echo $tgl_skr." ".$jam?> <hr size="1"></td> </tr> <tr> <td> <script language="JavaScript"> function checkrequired(which) { var pass=true; if (document.images) { for (i=0;i<which.length;i++) { var tempobj=which.elements[i]; if (tempobj.name.substring(0,8)=="required") { if (((tempobj.type=="text"||tempobj.type=="textarea")&& tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&& tempobj.selectedIndex==0)) { pass=false; break; } } } } if (!pass) { shortFieldName=tempobj.name.substring(8,30).toUpperCase(); alert("Tolong silahkan anda isikan "+shortFieldName+" untuk melengkapinya"); return false; } else return true; } </script> <table width="100%" border="0" cellspacing="2" cellpadding="0"> <form onSubmit="return checkrequired(this)" name="data_admin" enctype="multipart/form-data" method="post" action="std_save.php"> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Judul </span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input type="text" name="requiredjudul" class="textbox" size="35" value="<?php echo $dcek['JUDUL'];?>"> <input type="hidden" name="idberita" class="textbox" size="35" value="<?php echo $dcek['IDFOTO'];?>"> <input type="hidden" name="fotolama" class="textbox" size="35" value="<?php echo $dcek['FOTO'];?>"> <input type="hidden" name="fotolama2" class="textbox" size="35" value="<?php echo $dcek['FOTO2'];?>"> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Sub Judul </span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input type="text" name="subjudul" class="textbox" size="35" value="<?php echo $dcek['SUBJUDUL'];?>"> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><p class="style43">Isi Berita</p> <p class="style43"><span class="style46">Gunakan Tag Berikut : <br> <br> &lt;b&gt;.....&lt;/b&gt; Untuk Bold<br> &lt;i&gt;.....&lt;/i&gt; Untuk Italic <br> &lt;b&gt;&lt;i&gt;&nbsp;&lt;/i&gt;&lt;/b&gt; </span></p></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style50"> <textarea name="requiredisi" cols="40" rows="12" wrap="VIRTUAL"><?php echo $dcek['ISI'];?></textarea> </span></td> </tr> <tr align="left" valign="top"> <td class="text"><span class="style43">Foto 1 </span></td> <td class="text"><span class="style43">:</span></td> <td class="text"> <span class="style43"> <input name="image" type="file" class="textbox" id="image"> <label></label> &nbsp;&nbsp;&nbsp; <label></label> </span></td> </tr> <tr align="left" valign="top"> <td class="text"><span class="style43">Foto 2 </span></td> <td class="text"><span class="style43">:</span></td> <td class="text"> <span class="style43"> <input name="image2" type="file" class="textbox" id="image2"> <label></label> &nbsp;&nbsp;&nbsp; <label></label> </span></td> </tr> <tr align="left" valign="top" class="style43"> <td>&nbsp;</td> <td>&nbsp;</td> <td><span class="style52"> <input style="FONT-WEIGHT: bold; COLOR: #ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #335882" type=submit value=" Kirim " name="Kirim"> <input style="FONT-WEIGHT: bold; COLOR: #ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #335882" type=reset value=" Reset " name=reset> </span></td> </tr> </form> </table></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </body> </html> <? } else { //if(!isset($_SESSION['susername']) || !isset($_SESSION['spassword'])) { ?><script language='javascript'>alert('Anda Tidak Berhak Masuk Form Ini'); document.location='index.php'</script><? } ?>

index.php_ori <? session_start(); include "go/go.php"; include "function.php";$var = decode($_SERVER['REQUEST_URI']); $tgl_sekarang=date("Y-m-d H:i"); function tanggal($format,$nilai="now") { $en=array("Sun","Mon","Tue","Wed","Thu","Fri","Sat","Jan","Feb", "Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); $id=array("Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu", "Jan","Feb","Maret","April","Mei","Juni","Juli","Agustus","September", "Oktober","November","Desember"); return str_replace($en,$id,date($format,strtotime($nilai))); } //insert activity url /* $ad="http://www.surabayapagi.com".$_SERVER['REQUEST_URI']; $ip=$_SERVER['REMOTE_ADDR']; $tgl=date("Y-m-d H:i:s"); $msk=mysql_query("insert into DATA_URL_ACT set KATA='$ad',TGLKIRIM='$tgl',IP='$ip'"); */ // /* //blacklist $blacklist = array("66.249.69.236", "66.249.69.50"); if(in_array($_SERVER['REMOTE_ADDR'], $blacklist)) { header("HTTP/1.1 403 Forbidden"); exit(); } // */ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <? //if (isset($var['id'])) if ($var['id']!='') { $id=abs((int) $var['id']); $queryinfo = mysql_query("select JUDUL,NEWLEAD from BERITA where IDBERITA=".$id." and STATUS='Show'") or die("Tabel Info2 tidak ada !"); $tblinfo=mysql_fetch_array($queryinfo); echo "<title>".$tblinfo["JUDUL"]."</title>"; echo "<meta name=\"alexaVerifyID\" content=\"Dbl5gaDDXnDg44vaxDFL7pXbmN4\" /> <meta name=\"robots\" content=\"index, follow\" /> <meta name=\"keywords\" content=\"".$tblinfo["JUDUL"]."\"/> <meta property=\"og:title\" content=\"".$tblinfo["JUDUL"]."\"/> <meta property=\"og:url\" content=\"".$_SERVER['REQUEST_URI']."\"/> <meta property=\"og:site_name\" content=\"surabayapagi.com\"/> <meta property=\"og:description\" content=\"".$tblinfo["NEWLEAD"]."\"/>"; } else { ?> <title>Surabaya Pagi Online</title> <meta name="alexaVerifyID" content="Dbl5gaDDXnDg44vaxDFL7pXbmN4" /> <meta name="robots" content="index, follow" /> <meta name="keywords" content="surabaya pagi" /> <meta property="og:title" content="surabaya pagi"/> <meta property="og:url" content="surabayapagi.com"/> <meta property="og:site_name" content="surabayapagi.com"/> <meta property="og:description" content="surabaya pagi"/> <?php } ?> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="refresh" content="900" /> <!-- ////////////////////////////////// --> <!-- // Start Stylesheets // --> <!-- ////////////////////////////////// <link rel="stylesheet" type="text/css" href="styles.css" />--> <link rel="shortcut icon" href="images/icon-sp.ico"> <link rel="stylesheet" type="text/css" href="sp.css"> <!-- <link href="css/inner.css" rel="stylesheet" type="text/css" /> <link href="login/css/thickbox.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery-1.js"></script> --> <!--js api google--> <script src="https://www.google.com/jsapi?key=ABQIAAAA148xyQTcaVJCU3PuoT6geRRx8l7pkoxDwJfLkRvjZbd280IxOhQ7vRGUOae5FfGsqQSc31AB4H566Q" type="text/javascript"></script> <script language="Javascript" type="text/javascript"> google.load("search", "1"); google.load("jquery", "1.4.4"); </script> <script language="javascript"> function submitForm(){ tb_remove(); } </script> <script type="text/javascript"> var $ = jQuery.noConflict(); $(document).ready(function() { /* for image slideshow DUMMY $('#slides').cycle({ timeout: 4000, // milliseconds between slide transitions (0 to disable auto advance) fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc... });*/ //===========TOOLTIP $(".tip_trigger").hover(function(){ tip = $(this).find('.tip'); tip.show(); //Show tooltip }, function() { tip.hide(); //Hide tooltip }).mousemove(function(e) { var mousex = e.pageX + 20; //Get X coodrinates var mousey = e.pageY + 20; //Get Y coordinates var tipWidth = tip.width(); //Find width of tooltip var tipHeight = tip.height(); //Find height of tooltip //Distance of element from the right edge of viewport var tipVisX = $(window).width() - (mousex + tipWidth); //Distance of element from the bottom of viewport var tipVisY = $(window).height() - (mousey + tipHeight); if ( tipVisX < 20 ) { //If tooltip exceeds the X coordinate of viewport mousex = e.pageX - tipWidth - 20; } if ( tipVisY < 20 ) { //If tooltip exceeds the Y coordinate of viewport mousey = e.pageY - tipHeight - 20; } tip.css({ top: mousey, left: mousex }); }); //==============TAB $(".tab_content").hide(); //Hide all content $("ul.tabs li:first").addClass("active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab content //On Click Event $("ul.tabs li").click(function() { $("ul.tabs li").removeClass("active"); //Remove any "active" class $(this).addClass("active"); //Add "active" class to selected tab $(".tab_content").hide(); //Hide all tab content var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content $(activeTab).fadeIn(900); //Fade in the active content return false; }); //===========SLIDE //Set Default State of each portfolio piece $(".paging").show(); $(".paging a:first").addClass("active"); //Get size of images, how many there are, then determin the size of the image reel. var imageWidth = $(".window").width(); var imageSum = $(".image_reel img").size(); var imageReelWidth = imageWidth * imageSum; //Adjust the image reel to its new size $(".image_reel").css({'width' : imageReelWidth}); //Paging + Slider Function rotate = function(){ var triggerID = $active.attr("rel") - 1; //Get number of times to slide var image_reelPosition = triggerID * imageWidth; //Determines the distance the image reel needs to slide $(".paging a").removeClass('active'); //Remove all active class $active.addClass('active'); //Add active class (the $active is declared in the rotateSwitch function) //Slider Animation $(".image_reel").animate({ left: -image_reelPosition }, 500 ); }; //Rotation + Timing Event rotateSwitch = function(){ play = setInterval(function(){ //Set timer - this will repeat itself every 3 seconds $active = $('.paging a.active').next(); if ( $active.length === 0) { //If paging reaches the end... $active = $('.paging a:first'); //go back to first } rotate(); //Trigger the paging and slider function }, 5000); //Timer speed in milliseconds (3 seconds) }; rotateSwitch(); //Run function on launch //On Hover $(".image_reel a").hover(function() { clearInterval(play); //Stop the rotation }, function() { rotateSwitch(); //Resume rotation }); //On Click $(".paging a").click(function() { $active = $(this); //Activate the clicked paging //Reset Timer clearInterval(play); //Stop the rotation rotate(); //Trigger rotation immediately rotateSwitch(); // Resume rotation return false; //Prevent browser jump to link anchor }); //=============MENU $("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav $("ul.topnav li span").click(function() { //When trigger is clicked... //Following events are applied to the subnav itself (moving subnav up and down) $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click $(this).parent().hover(function() { }, function(){ $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up }); //Following events are applied to the trigger (Hover events for the trigger) }).hover(function() { $(this).addClass("subhover"); //On hover over, add class "subhover" }, function(){ //On Hover Out $(this).removeClass("subhover"); //On hover out, remove class "subhover" }); }); </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-26500781-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <!-- Start of StatCounter Code for Default Guide --> <script type="text/javascript"> var sc_project=7564547; var sc_invisible=1; var sc_security="24795fad"; </script> <script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script> <noscript><div class="statcounter"><a title="tumblr visitor" href="http://statcounter.com/tumblr/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/7564547/0/24795fad/0/" alt="tumblr visitor"></a></div></noscript> <!-- End of StatCounter Code for Default Guide --> <!-- Start of StatCounter Code for Default Guide --> <script type="text/javascript"> var sc_project=7564562; var sc_invisible=1; var sc_security="045dfb52"; </script> <script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script> <noscript><div class="statcounter"><a title="tumblr visit counter" href="http://statcounter.com/tumblr/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/7564562/0/045dfb52/1/" alt="tumblr visit counter"></a></div></noscript> <!-- End of StatCounter Code for Default Guide --> </head> <body marginheight="0" marginwidth="0" topmargin="0" bgcolor="#CCCCCC"> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=187360121279395"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <table width="900" border="0" cellspacing="0" cellpadding="2" align="center"> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="43%" rowspan="2" align="left" valign="bottom"><table width="100" border="0" cellspacing="5" cellpadding="5"> <tr> <td><img src="images/sp.png" width="366" height="77" /></td> </tr> </table></td> <td width="57%" height="81" align="right" valign="top"><img src="images/SG.jpg" width="507" height="80" /></td> </tr> <tr> <td align="left" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="4%" bgcolor="#3375A6"><img src="images/bg_menu2.png" width="20" /></td> <td width="96%" background="images/bg_menu3.png"><span class="menu_utama2"> <?php echo "<a href='index.php?".paramEncrypt('p=arsip&id=sportainment')."'>";?>Sportainment</a> | <?php echo "<a href='index.php?".paramEncrypt('p=arsip&id=infotainment')."'>";?>Infotainment</a> |<?php echo "<a href='index.php?".paramEncrypt('p=arsip&id=kesehatan')."'>";?>Kesehatan</a> | <?php echo "<a href='index.php?".paramEncrypt('p=arsip&id=geliatmalam')."'>";?>Geliat Malam</a> | <?php echo "<a href='index.php?".paramEncrypt('p=arsip&id=unik')."'>";?>Unik</a> | <?php echo "<a href='index.php?".paramEncrypt('p=arsip&id=kuliner')."'>";?>Kuliner</a> | </span></td> </tr> </table></td> </tr> <tr> <td colspan="2" align="left" valign="middle"><? include "menu.php";?></td> </tr> <tr> <td colspan="2" align="left" valign="middle">&nbsp;</td> </tr> </table></td> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><? include "include.php";?></td> </tr> <tr> <td align="center" valign="middle" bgcolor="#2C4B87"> <?php include "title_bawah.php";?></td> </tr> </table> </body> </html>

fancybox

menu2.php <style type="text/css"> .stylemadmin { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } </style> <div style="margin-left:10px; margin-right:10px;"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr > <td height="30" align="left" valign="middle" bgcolor="#FFFFFF"><?php include "menutop.php";?></td> </tr> </table></div> <?php if($_SESSION['slevel']=="Administrator" || $_SESSION['slevel']=="Redaksi" || $_SESSION['slevel']=="Redaksi2" || $_SESSION['slevel']=="Adv") { ?> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td bgcolor="#FFFF00" height="20px"><span class="stylemadmin"><strong> <?php echo "User Online : &nbsp;".$users ; include "menu_admin.php"; ?></strong></span></td> </tr> </table> <?php } ?>

Dbl5gaDDXnDg44vaxDFL7pXbmN4.html <html> <head> <meta name="alexaVerifyID" content="Dbl5gaDDXnDg44vaxDFL7pXbmN4" /> </head> <body> <p>Great! The file uploaded properly. Now click the 'Verify my file' button to complete the process.</p> </body> </html>

walimatul

tesfoto_save.php <? $tmpName = $_FILES['image']['tmp_name']; list($width, $height) = getimagesize($tmpName); if($width>$height) { echo "L"; } else { echo "P"; } ?>

home_kuliner.php <table width="100%" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="middle" bgcolor="#FFFFFF"><b><font color="#FF0000" size="+1" face="tahoma, arial">Kuliner</font></b></td> </tr> <tr> <td align="left" valign="top"> <span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='Kuliner' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 5"); while($dpr=mysql_fetch_array($pr)) { echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dpr[0].'')."'>"; $jdl=$dpr['JUDUL']; $jdl_array = explode(' ',$jdl); $jdl_baru = ''; $i=1; foreach($jdl_array AS $jdl_array1){ if ($i<=4) $jdl_baru .= $jdl_array1.' '; $i++; } if(count($jdl_array)>4) { echo $jdl_baru."..."; } else { echo $jdl_baru; } echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span> </td> </tr> </table>

dummy.php <script type="text/javascript" src="js/jquery.cycle.all.min.js"></script> <script type="text/javascript"> var $ = jQuery.noConflict(); $(document).ready(function() { /* for image slideshow DUMMY*/ $('#slides').cycle({ timeout: 6000, // milliseconds between slide transitions (0 to disable auto advance) fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc... }); }); </script> <style type="text/css"> #slides .cycle{position:absolute; height:420px; float:right} </style> <div id="slides"> <div class="cycle"> <img src="../dummy/images/dummy_sp.jpg" width="255"/> </div> <!-- end of cycle1 --> <div class="cycle"> <img src="../dummy/images/dummy_jm.jpg" width="255"/> </div> <!-- end of cycle1 --> </div><!-- end of #slideshow -->

home_korupsi_new.php <table width="230" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><img src="images/korupsi.png" width="100%" /></td> </tr> <tr> <td align="left" valign="top"> <?php $pr0=mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='WhiteCrime' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 1"); $dpr0=mysql_fetch_array($pr0); $ttl_k=str_replace(" ","-",$dpr0['JUDUL']); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <? if(($dpr0['NAMAFOTO']!='') && file_exists('photos/thumbs/'.$dpr0['NAMAFOTO'])){?> <td width="37%" align="left" valign="top"> <img src="photos/thumbs/<? echo $dpr0['NAMAFOTO'];?>" width="75" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid; margin-right:5px"/> </td> <?php }?> <td width="63%" align="left" valign="top"><span class="left_berita2"> <?php echo "<a class=\"tooltip\" href='index.php?read~$ttl_k;".paramEncrypt('p=detilberita&id='.$dpr0[0].'')."'>"; $jdl=$dpr0['JUDUL']; echo $jdl; echo "<span class=\"classic\"><em>".$dpr0['JUDUL']."</em>$dpr0[NEWLEAD]</span></a><br>"; ?></span> </td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top"><span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='WhiteCrime' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 1, 5"); while($dpr=mysql_fetch_array($pr)) { $ttl_k2=str_replace(" ","-",$dpr['JUDUL']); echo "<a class=\"tooltip\" href='index.php?read~$ttl_k2;".paramEncrypt('p=detilberita&id='.$dpr[0].'')."'>"; if(strlen($dpr['JUDUL'])>29) { $jdl=substr_replace($dpr['JUDUL'],CHR(13),0,"<br>"); echo substr($jdl,0,28); echo "..."; }else { echo $dpr['JUDUL']; } echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span></td> </tr> </table></td> </tr> </table>

redaksional.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- .style1 { font-size: 24px; font-weight: bold; } .style2 { font-family: Arial, Helvetica, sans-serif; font-size: 14px; } --> </style> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><p class="style1">Surabaya Mandiri Group</p> <p class="style2">HARIAN SURABAYA PAGI<br /> Sejak: 17 Agustus 2003</p> <p class="style2">HARIAN JATIM MANDIRI<br /> Sejak: 17 April 2006</p> <p class="style2"><strong>PENDIRI</strong>: H. Tatang Istiawan<br /> <strong>DIREKTUR UTAMA</strong>: H. Tatang Istiawan<br /> <strong>PEMIMPIN UMUM/PEMIMPIN REDAKSI</strong>: H Tatang Istiawan <br /> <strong>DEWAN REDAKSI</strong>: Raditya M. Khadaffi, Ali Mahfud, H Tatang Istiawan, Farid Wadjdi, Riko Abdiono, Ariel Dahrullah, Indra Nanang <br /> <strong>SEKRETARIAT REDAKSI</strong>: Yardina Yudani </p> <p class="style2"><strong>REDAKTUR PELAKSANA</strong>: Ali Mahfud <br /> <strong>REDAKTUR</strong>: Bambang Ariyanto, Riko Abdiono, Tri Suryaningrum <br /> <strong>KOORDINATOR LIPUTAN</strong> : Zainul Abidin <br /> <strong>REPORTER</strong>: Arif Fathoni, Budi Mulyono, Hendarwanto, Novi Ispinari, Nyuci Asih, M. Hidayat, Adriansyah, (Fotografer) Tovan Kumara, Andy Syam</p> <p class="style2"><strong>PEMIMPIN PERUSAHAAN</strong>: Lordna Putri Rintawati <br /> <strong>WAKIL PEMIMPIN PERUSAHAAN / MANAJER PEMASARAN</strong>: Farid Wadjdi, <br /> <strong>PEMASARAN IKLAN</strong>: Indra Nanang (Manajer), Satyawati YH, Three Nurdin, Didit Trisusantio, Yayuk Indrawati, Wasis Heriyono <br /> <strong>KOMBIS/ADVETORIAL</strong>: Hapsah Agustin, Endang Lismari, Yuyun Harbis Studyawati, Meiga Ridwan, Zumrotin, M. Widodo <br /> <strong>SIRKULASI &amp; DISTRIBUSI</strong> : Yoyok Khayatullah, Hikmah Jaya, Ridho Y. Putra, Yani Haryanto, Syamsul Arifin</p> <p class="style2"><strong>DIREKTUR TEKNOLOGI &amp; INFORMASI / WEBSITE</strong>: Raditya M. Khadaffi, <br /> <strong>PRODUKSI SURABAYA PAGI&nbsp; ONLINE</strong> : Ariel Dahrullah, Yobby Lonard Antama Putra, Arik Irhamto, Moch Aditya <br /> <strong>WEBMASTER</strong>: Hilda Tabafaikal; <strong>WEBDESIGN</strong>: Agus &ldquo;Kucink&rdquo; Anggoro, M. Firman</p> <p class="style2"><strong>ALAMAT REDAKSI, IKLAN &amp; SIRKULASI</strong>: Jl. Gubeng Kertajaya VII Raya No. 62-64 Surabaya, Jawa Timur, Kode Pos 60286<br /> <strong>TELPON</strong>: (031) 5016699 (Hunting), 5031353 (Redaksi), 5010099 (Iklan &amp; Sirkulasi); FAX: (031) 5053347 (Sekretariat), 5031353 (Redaksi), 7343443 (Bidang Usaha)</p> <p class="style2"><br /> <strong>HOTLINE SURABAYA PAGI</strong>: 0818581111, 031-70871111<br /> <strong>PENGADUAN WARTAWAN</strong>: 08881935666, 08885088383</p> <p class="style2"><br /> <strong>E-MAIL</strong>: <br /> REDAKSI: redaksi@surabayapagi.com <br /> IKLAN: iklan@surabayapagi.com<br /> WEBMASTER: webmaster@surabayapagi.com</p> <p class="style2"><strong>BIRO JAKARTA</strong>: H. Soeparto Har (Kepala Perwakilan), Joni Ardikesuma (Manajer Iklan), Agus Sudibjo (Kepala Biro Redaksi) Gedung Maya Indah Jl. Kramat Raya No. 3-6 Jakarta 10450, Telp. (021) 3903112, 3904751 </p> <p class="style2"> <strong>KORESPONDEN GERBANG KERTOSUSILO</strong>: Dwi Agus Susanti (Kabiro Jombang-Mojokerto), Fandy Winurdani (Pasuruan), Daria Yetty (Probolinggo), Gunadi, A. Latief (Sidoarjo), Mohammad Aidid (Gresik) Muhajirrin (Lamongan), B. Kardjono (Bojonegoro), Endik Junaedi (Batu), Suad Bagiyo (Kabiro Kediri dan Tulung Agung), Abdurrahman (Pamekasan), Agus Suroso (Sumenep), M.Gandhi (Sampang), Alfian (Bangkalan) </p> <p class="style2">HARGA ECERAN: Rp.2.000 <br /> HARGA LANGGANAN: Rp.60.000 / bulan (termasuk Jatim Mandiri) </p> <p class="style2">NO. REKENING BANK: a.n. PT. Surabaya Sore BCA Cab. Kayoon: 788-0818303; Bank Mandiri Cab. HR. Muhammad: 141-0005153838 </p> <p class="style2">PERCETAKAN: <br /> PT. Surabaya Printing<br /> Jl. Gunungsari No. 11 D Surabaya<br /> TELPON &amp; FAX: 031 -&nbsp; 5669666<br /> E-MAIL: surabayaprinting@gmail.com<br /> HOTLINE: 0817328383</p></td> </tr> </table> </body> </html>

detilberita.phpx <?php if ($detect->isMobile()) { //$hal=$_SERVER['REQUEST_URI']; //$hal2="http://m.surabayapagi.com".$hal; //header("Location:$hal2") ; //header('Location:http://m.surabayapagi.com') ; include "m_detil.php"; } else { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <?php $hit=intval($var["id"]); $hari=date("Y-m-d H:i"); $upd=date("Y-m-d H:i:s"); $querydata=mysql_query("select * from BERITA where `STATUS`='Show' and IDBERITA=".$hit." "); if(mysql_num_rows($querydata)>0) { $tblbaca=mysql_fetch_array($querydata); $baca=$tblbaca["TERBACA"]; $data2=mysql_fetch_row($querydata); $jumlah=$baca; $jumlah++; $ip=$_SERVER['REMOTE_ADDR']; $queryupdate= mysql_query("update BERITA set TERBACA='$jumlah',UPD='$upd',IP='$ip' where IDBERITA='".$hit."'"); $query = mysql_query("select * from BERITA where IDBERITA=".$id." and STATUS='Show'"); $tbl=mysql_fetch_array($query); $kategori=$tbl["KATEGORI"]; if($tbl["KODETEMA"]!='') { $kodetema=$tbl["KODETEMA"]; } $id=abs((int) $var['id']); $news = mysql_query("select * from BERITA where IDBERITA=".$id." and STATUS='Show' and KATEGORI = '".$kategori."'") or die("Tabel Info2 tidak ada !"); //echo "select * from BERITA where IDBERITA=".$id." and STATUS='Show' and KATEGORI = '".$kategori."'"; $d=mysql_fetch_array($news); if($hari>=$d['TGLKIRIM2']) { if($d['NAMAFOTO']!='') { $gb="photos/bigs/".$d['NAMAFOTO']; if (file_exists($gb)) { $xx=getimagesize($gb); list($width,$height)=$xx; if($height<$width) { include "detilberita_l.php"; } if($height>=$width) { include "detilberita_p.php"; } } else { include "detilberita_n.php"; } //echo $width."|".$height; } else { include "detilberita_n.php"; } } else { $redirect_url= "index.php"; echo"<html><head> <META HTTP-EQUIV=\"Refresh\" Content = \"1; URL=$redirect_url\"> </head><body ><table align=center><tr><td><img src='facebook.gif'></td></tr></table></body></html>"; } } else { $ad="http://www.surabayapagi.com".$_SERVER['REQUEST_URI']; $pesan="WARNING"; $ip=$_SERVER['REMOTE_ADDR']; $tgl=date("Y-m-d H:i:s"); $msk=mysql_query("insert into DATA_URL_ACT set KATA='$ad',TGLKIRIM='$tgl',IP='$ip',PESAN='$pesan'"); $redirect_url= "index.php"; echo"<html><head> <META HTTP-EQUIV=\"Refresh\" Content = \"1; URL=$redirect_url\"> </head><body ><table align=center><tr><td><img src='facebook.gif'></td></tr></table></body></html>"; } /* if($d['NAMAFOTO']!='' && $d['POSISI_FOTO']=="L") { include "detilberita_l.php"; } elseif($d['NAMAFOTO']!='' && $d['POSISI_FOTO']=="P") { include "detilberita_p.php"; } else { include "detilberita_n.php"; } */ ?> </td> </tr> </table> <?php //if($_SESSION['slevel']==""){?> <!--banner <script src='js/jquery-1.3.2.min.js' type='text/javascript'></script> <script type='text/javascript' src='js/jquery-ui.min.js'></script> <script type='text/javascript'> $(window).bind("load", function() { // animasikan nilai top saat halaman telah selesai dimuat $('#kotak-pesan').animate({top:"30px"}, 1000, "easeOutBounce"); // hilangkan kotak pesan saat tombol (x) diklik $('a.close').click(function() { $(this).parent().slideUp(800, "easeOutBounce"); return false; }); }); </script> <style> #kotak-pesan{ position:fixed !important; position:absolute; /* IE6 */ top:-900px; margin:0px 0px 0px 0px; width:890px; height:auto; padding:5px; border:2px solid #fff; font:normal 1em Cambria,Georgia,Serif; color:#111; -webkit-box-shadow:0px 0px 0px rgba(0,0,0,0.4); -moz-box-shadow:0px 0px 0px rgba(0,0,0,0.4); box-shadow:0px 0px 0px rgba(0,0,0,0.4); z-index:999; } #kotak-pesan a.close{ position:absolute; top:-10px; right:-10px; background:#333; font:bold 16px Arial,Sans-Serif; text-decoration:none; line-height:22px; width:22px; text-align:center; color:#fff; border:2px solid #fff; -webkit-box-shadow:0px 1px 2px rgba(0,0,0,0.4); -moz-box-shadow:0px 1px 2px rgba(0,0,0,0.4); box-shadow:0px 1px 2px rgba(0,0,0,0.4); -webkit-border-radius:22px; -moz-border-radius:22px; border-radius:22px; cursor:pointer; } </style> <div id='kotak-pesan' align='center'> <center> <a href='http://www.facebook.com/GaunGmu' target='_blank'><img src="images/paul3.jpg" width="400" border="0" /></a> </center> <a class='close' href='#'>&times;</a> </div> --> <?php } //}?>

detilberita_n.php <link href="css_detil_l.css" rel="stylesheet" type="text/css"> <table width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="600" align="left" valign="top"> <div class="clearit"></div> <!--TOP BAR END --> <div align="center"> <div class="cangkang_master2012"> <div align="left"> <!-- start: header --> <!-- end: header --> <!-- start: konten --> <div class="cangkang_konten002"> <div class="content_kiri_detail"> <div class="judul_artikel2012"><a href='http://indosat.com/' target='_blank'><img src="images/indosat.jpg" width="100%" border="0" /></a><?php echo $d['JUDUL']; ?></div> <div class="pb_20"></div> <div class="clearit bl_1 mb_10"></div> <div class="left_share"> <div class="font11 c_abu03_sp2012 pb_3"><span class="share"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"><font size="3"><i><?php echo $d['SUBJUDUL']; ?></i></font></td> </tr> <tr> <td colspan="3" align="left" valign="middle"><span class="c_abu01_sp2012"><?php echo tanggal("D, j M Y",$d['TGLKIRIM']);echo " | ".$d['TIME']." WIB";?></span></td> </tr> <tr> <td width="40%" align="right" valign="middle"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="SbyPagiOnline">Tweet</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td> <td width="16%" align="right" valign="middle" cols> <!--<script >function fbs_click() { u=location.href; t=document.title; window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false; } </script> <a href="http://www.facebook.com/share.php?u=http://surabayapagi.com<?php //echo $_SERVER['REQUEST_URI'];?>" onclick="return fbs_click()" target="_blank"> <img src="images/share-on-facebook1.jpg" alt=\"Share On Facebook\" align="left"/></a> --> <!--<div class="fb-share-button" data-href="http://surabayapagi.com<?php //echo $_SERVER['REQUEST_URI'];?>" data-type="button_count"></div>--> <div class="fb-share-button" data-href="http://surabayapagi.com<?php echo "/index.php?".paramEncrypt('p=detilberita&id='.$d[0].'')."";?>" data-type="button_count"></div> </td> </tr> </table> </span></div> </div> <div class="clearit"></div> <div class="clearit bl_orange pt_10"></div> <!--IMAGES --> <div class="pt_10"></div> <!-- s: headline --> <?php if($kodetema!="") { $bt=mysql_query("select IDBERITA,JUDUL from BERITA where KODETEMA='$kodetema' and `STATUS`='Show' and IDBERITA <'$hit' order by TGLKIRIM2 desc,TIME DESC,IDBERITA desc limit 0,5"); if(mysql_num_rows($bt)>=1) { ?> <div class="right w310 pl_10 pb_10 pt_5"> <p> <!--TERKAIT --> </p> <div class="pd_5 hl_1 font12 c_abu01_sp2012"><strong>TERKAIT:</strong></div> <div class="list_4 font12 arial c_biru_sp2012 pb_10 bl_1"> <ul> <?php while($dbt=mysql_fetch_array($bt)) { $ttl_tk=str_replace(" ","-",$dbt['JUDUL']); ?> <li><?php echo "<a title='".$dbt['JUDUL']."' href='index.php?read=$ttl_tk;".paramEncrypt('p=detilberita&id='.$dbt[0].'')."'>"; echo $dbt['JUDUL']."</a>"; ?></li> <?php }?> </ul> </div> <!--TERKAIT END --> </div> <?php }}?> <div class="isi_berita2012 pt_5"> <p><?php echo nl2br($d['ISI']);?></p><div class="clearit pt_30"></div> <div class="clearit bl_orange mb_3 pt_10"></div> </div> </div> <div class="clearit"></div> <!--FOOTER : datanya harap disesuaikan saja dengan update footer yg terakhir --> <!--FOOTER END --> </div> <!-- end: konten --> </div></div> </td> <td width="300" rowspan="2" align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td align="left" valign="top" height="100%"><table width="285" border="0" cellspacing="0" cellpadding="5"> <tr> <td><?php include "berita_lainnya.php";?></td> </tr> </table> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"> <table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td> <div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilberita&id='.$hit.''); ?>" data-num-posts="10" data-width="600"></div></td> </tr> </table> </td> </tr> </table>

std.php <table width="255" border="0" cellspacing="0" cellpadding="0" style="border-bottom:#CCCCCC 1px solid; border-left:#CCCCCC 1px solid; border-right:#CCCCCC 1px solid; border-top:#CCCCCC 1px solid;"> <tr> <td align="left" valign="top"><img src="images/std.png" width="100%"></td> </tr> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="7"> <?php $std=mysql_query("select * from STD order by IDFOTO Desc limit 0,1"); $dstd=mysql_fetch_array($std); $ttl_std=str_replace(" ","-",$dstd['JUDUL']); ?> <tr> <td align="center" valign="top" bgcolor="#F8F2DA"> <?php echo "<a href='index.php?read~$ttl_std;".paramEncrypt('p=detilstd&id='.$dstd[0].'')."'><img src=\"photos/bigs/$dstd[FOTO]\" width=\"100%\"></a>"; ?> </td> </tr> <tr> <td align="left" valign="top" bgcolor="#F8F2DA"> <div class="left_berita"><?php echo "<a href='index.php?".paramEncrypt('p=detilstd&id='.$dstd[0].'')."'>$dstd[JUDUL]</a>";?></div> <?php $std2=mysql_query("select * from STD order by IDFOTO Desc limit 1,3"); while($dstd2=mysql_fetch_array($std2)) { $ttl_std2=str_replace(" ","-",$dstd2['JUDUL']); ?> <div class="left_berita"><?php echo "<a href='index.php?read~$ttl_std2;".paramEncrypt('p=detilstd&id='.$dstd2[0].'')."'>$dstd2[JUDUL]</a>";?></div> <?php }?> </td> </tr> </table></td> </tr> </table><div style=" height:10px;">&nbsp;</div>

sp2011

home_kriminal.php <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td ><span class="title_kategori">HUKUM - KRIMINAL</span> <hr color="#FF0000 2px solid" /></td> </tr> </table> <table width="350" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="50%" align="left" valign="top"> <?php $q=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='Kriminal' and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 2"); while($dq=mysql_fetch_array($q)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"> <table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq[0].'')."'>$dq[JUDUL]<span class=\"classic\"><em>".$dq['JUDUL']."</em>$dq[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> <td width="50%" align="left" valign="top"><?php $q2=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='Kriminal' and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' order by TGLKIRIM2 desc,IDBERITA desc limit 2, 2"); while($dq2=mysql_fetch_array($q2)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"><table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq2[0].'')."'>$dq2[JUDUL]<span class=\"classic\"><em>".$dq2['JUDUL']."</em>$dq2[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq2['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq2['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="100%">&nbsp;</td> </tr> </table>

tesfoto.php <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title></title> <style type="text/css"> <!-- .style5 {font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; } .style43 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } .style45 {font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif;} .style46 { font-size: 10px; color: #FF0000; } .style50 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; } .style52 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10; } .style53 {font-size: 10} --> </style> <script type="text/javascript"> function ismaxlength(obj){ var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : "" if (obj.getAttribute && obj.value.length>mlength) obj.value=obj.value.substring(0,mlength) } </script> <script type="text/javascript" src="include/jquery-1.2.6.pack.js"></script> <script type='text/javascript' src='include/jquery.autocomplete.pack.js'></script> <!-- Autocomplete Formatting --> <link rel="stylesheet" type="text/css" href="include/jquery.autocomplete.css" /> <script type="text/javascript"> $().ready(function() { $("#targetDiv").autocomplete("include/mysql.php", { width: 260, selectFirst: true }); }); </script> </head> <body marginheight="0" marginwidth="0" topmargin="0"> <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td> <script language="JavaScript"> function checkrequired(which) { var pass=true; if (document.images) { for (i=0;i<which.length;i++) { var tempobj=which.elements[i]; if (tempobj.name.substring(0,8)=="required") { if (((tempobj.type=="text"||tempobj.type=="textarea")&& tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&& tempobj.selectedIndex==0)) { pass=false; break; } } } } if (!pass) { shortFieldName=tempobj.name.substring(8,30).toUpperCase(); alert("Tolong silahkan anda isikan "+shortFieldName+" untuk melengkapinya"); return false; } else return true; } </script> <table width="100%" border="0" cellspacing="2" cellpadding="0"> <form onSubmit="return checkrequired(this)" name="data_admin" enctype="multipart/form-data" method="post" action="tesfoto_save.php"> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Foto 1 </span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input name="image" type="file" class="textbox" id="image"> <label></label> &nbsp;&nbsp;&nbsp; <label></label> </span></td> </tr> <tr align="left" valign="top" class="style43"> <td>&nbsp;</td> <td>&nbsp;</td> <td><span class="style52"> <input style="FONT-WEIGHT: bold; COLOR: #ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #335882" type=submit value=" Kirim " name="Kirim"> <input style="FONT-WEIGHT: bold; COLOR: #ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #335882" type=reset value=" Reset " name=reset> </span></td> </tr> </form> </table></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </body> </html>

php53

saveberita_red.phpx <? session_start(); include "go/go.php"; $idberita=$_POST["idberita"]; //$judul=htmlentities(strip_tags($_POST["requiredjudul"],"<b><i>"), ENT_QUOTES); $judul=addslashes(strip_tags($_POST["requiredjudul"],"<b><i>")); $subjudul=$_POST["subjudul"]; $kodetema=$_POST["kodetema"]; //$lead=addslashes(htmlentities(strip_tags($_POST["requiredlead"],"<b><i>"), ENT_QUOTES)); $lead=addslashes(strip_tags($_POST["requiredlead"],"<b><i>")); $isi1=addslashes(strip_tags($_POST["requiredisi"],"<b><i>")); $isi2=strip_tags($_POST["isi2"],"<b><i>"); $isi3=strip_tags($_POST["isi3"],"<b><i>"); $caption=$_POST['caption']; $kategori=$_POST["requiredkategori"]; $statuskategori0=$_POST["statusberita"]; if($statuskategori0=='') { $statuskategori="Breaking"; } else { $statuskategori=$statuskategori0; } $pengirim=$_SESSION['susername']; $konversi=""; $fotolama=$_POST['fotolama']; //$ref = $_SERVER['HTTP_REFERER']; if ($konversi!="") { $sekarang=time(); $tambah=$sekarang + ($konversi) * 3600; //$tglawal= date("d F Y", $tambah); //$tgl=date("d F Y, G:i", $tambah); $tgl=date("Y-m-d", $tambah); $time=date("H:i", $tambah); $tgltime=date("Y-m-d H:i:s", $tambah); }else { $tgl=date("Y-m-d"); $time=date("H:i"); $tgltime=date("Y-m-d H:i:s"); } $terbaca='1'; $status="Show"; //$posisi1=$_POST["posisi1"]; $spasi="Ok"; $kota=$_POST["biro"]; $foto = $_FILES['image']['name']; if($foto!="") { $namafoto= str_replace(" ","",(date("YmdHis").rtrim($foto))); } else { $namafoto=$fotolama; } if($_POST['Kirim']) { //Save photo if(isset($_FILES['image'])) { if($foto!='' && $fotolama!='') { if(file_exists('photos/thumbs/'.$fotolama)) { unlink('photos/thumbs/'.$fotolama); } if(file_exists('photos/bigs/'.$fotolama)) { unlink('photos/bigs/'.$fotolama); } } include 'photocrop.php'; $photo = new Photo($_FILES['image']); if(count($errors = $photo->validate()) == 0) { $errors = $photo->doThumb(150,'photos/thumbs/'); } if(count($errors) == 0 ) { if($photo->getWidth() > 600 || $photo->getHeight() > 600) { $errors = $photo->doResize(600,'photos/bigs/'); } else { $errors = $photo->move('photos/bigs/'); } } else { extract($_POST); } } if($idberita!='') { $qq="update BERITA set JUDUL='$judul',SUBJUDUL='$subjudul',CAPTION='$caption',NEWLEAD='$lead',ISI='$isi1',KATEGORI='$kategori',STATUSKATEGORI='$statuskategori',PENGIRIM='$pengirim', TGLKIRIM='$tgl',TGLKIRIM2='$tgltime',TERBACA='$terbaca',STATUS='$status',KONVERSI='$konversi',KODETEMA='$kodetema',SPASI='$spasi', TIME='$time',KOTA='$kota',NAMAFOTO='$namafoto' where IDBERITA='$idberita'"; $ref ="index.php?85c685f07f44d7015d6211d377d59e47e0295eb0d94d1fc1f3d54b85d91a78c3"; } else { $qq = "insert into BERITA set JUDUL='$judul',SUBJUDUL='$subjudul',CAPTION='$caption',NEWLEAD='$lead',ISI='$isi1',KATEGORI='$kategori',STATUSKATEGORI='$statuskategori',PENGIRIM='$pengirim', TGLKIRIM='$tgl',TGLKIRIM2='$tgltime',TERBACA='$terbaca',STATUS='$status',KONVERSI='$konversi',KODETEMA='$kodetema',SPASI='$spasi', TIME='$time',KOTA='$kota',NAMAFOTO='$namafoto'"; $ref = $_SERVER['HTTP_REFERER']; } $querysave=mysql_query($qq); if($querysave){ ?> <script language="JavaScript">document.location='<?php echo $ref; ?>'</script> <? } else { echo "<font color=#ff0000>Data Gagal Tersimpan!</font>"; } } ?>

home_infotainment.php <table width="255" border="0" cellspacing="0" cellpadding="0"> <tr> <td ><img src="images/infotainment.png" width="100%" /></td> </tr> </table><table width="255" border="0" cellpadding="0" cellspacing="0"> <tr> <td bgcolor="#FFFFFF"> <?php $q=mysql_query("select IDBERITA,JUDUL,NAMAFOTO,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='Entertainment' and NAMAFOTO!='' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 3"); while($d=mysql_fetch_array($q)) { $ttl_inf=str_replace(" ","-",$d['JUDUL']); ?> <table width="100%" border="0" cellpadding="3" cellspacing="1"> <tr> <td width="253" height="21" align="left" valign="top" bgcolor="#EBEBEB"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="59%" align="left" valign="top" bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#F4F1CE'" onmouseout="this.style.backgroundColor='#FFFFFF'"><table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td><div class="judul_kanan"> <?php echo " <a class=\"tooltip\" href='index.php?read~$ttl_inf;".paramEncrypt('p=detilberita&id='.$d[0].'')."'>$d[JUDUL]<span class=\"classic\"><em>".$d['JUDUL']."</em>$d[NEWLEAD]</span></a>"; ?> </div> <div class="lead_kanan"> <?php $lead=$d['NEWLEAD']; $lead_array = explode(' ',$lead); $lead_baru = ''; $i=1; foreach($lead_array AS $lead_array1){ if ($i<=7) $lead_baru .= $lead_array1.' '; $i++; } echo $lead_baru."..."; ?> </div></td> </tr> </table></td> <td width="41%" align="left" valign="top" bgcolor="#FFFFFF"><? if($d['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $d['NAMAFOTO'];?>" width="100" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="100" height="100" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table></td> </tr> </table> <?php } ?> </td> </tr> </table>

jquery-ui-sliderAccess.js /* * jQuery UI Slider Access * By: Trent Richardson [http://trentrichardson.com] * Version 0.3 * Last Modified: 10/20/2012 * * Copyright 2011 Trent Richardson * Dual licensed under the MIT and GPL licenses. * http://trentrichardson.com/Impromptu/GPL-LICENSE.txt * http://trentrichardson.com/Impromptu/MIT-LICENSE.txt * */ (function($){ $.fn.extend({ sliderAccess: function(options){ options = options || {}; options.touchonly = options.touchonly !== undefined? options.touchonly : true; // by default only show it if touch device if(options.touchonly === true && !("ontouchend" in document)) return $(this); return $(this).each(function(i,obj){ var $t = $(this), o = $.extend({},{ where: 'after', step: $t.slider('option','step'), upIcon: 'ui-icon-plus', downIcon: 'ui-icon-minus', text: false, upText: '+', downText: '-', buttonset: true, buttonsetTag: 'span', isRTL: false }, options), $buttons = $('<'+ o.buttonsetTag +' class="ui-slider-access">'+ '<button data-icon="'+ o.downIcon +'" data-step="'+ (o.isRTL? o.step : o.step*-1) +'">'+ o.downText +'</button>'+ '<button data-icon="'+ o.upIcon +'" data-step="'+ (o.isRTL? o.step*-1 : o.step) +'">'+ o.upText +'</button>'+ '</'+ o.buttonsetTag +'>'); $buttons.children('button').each(function(j, jobj){ var $jt = $(this); $jt.button({ text: o.text, icons: { primary: $jt.data('icon') } }) .click(function(e){ var step = $jt.data('step'), curr = $t.slider('value'), newval = curr += step*1, minval = $t.slider('option','min'), maxval = $t.slider('option','max'), slidee = $t.slider("option", "slide") || function(){}, stope = $t.slider("option", "stop") || function(){}; e.preventDefault(); if(newval < minval || newval > maxval) return; $t.slider('value', newval); slidee.call($t, null, { value: newval }); stope.call($t, null, { value: newval }); }); }); // before or after $t[o.where]($buttons); if(o.buttonset){ $buttons.removeClass('ui-corner-right').removeClass('ui-corner-left').buttonset(); $buttons.eq(0).addClass('ui-corner-left'); $buttons.eq(1).addClass('ui-corner-right'); } // adjust the width so we don't break the original layout var bOuterWidth = $buttons.css({ marginLeft: ((o.where == 'after' && !o.isRTL) || (o.where == 'before' && o.isRTL)? 10:0), marginRight: ((o.where == 'before' && !o.isRTL) || (o.where == 'after' && o.isRTL)? 10:0) }).outerWidth(true) + 5; var tOuterWidth = $t.outerWidth(true); $t.css('display','inline-block').width(tOuterWidth-bOuterWidth); }); } }); })(jQuery);

jquery-1.4.js /*! * jQuery JavaScript Library v1.4 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://docs.jquery.com/License * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * * Date: Wed Jan 13 15:23:05 2010 -0500 */ (function( window, undefined ) { // Define a local copy of jQuery var jQuery = function( selector, context ) { // The jQuery object is actually just the init constructor 'enhanced' return new jQuery.fn.init( selector, context ); }, // Map over jQuery in case of overwrite _jQuery = window.jQuery, // Map over the $ in case of overwrite _$ = window.$, // Use the correct document accordingly with window argument (sandbox) document = window.document, // A central reference to the root jQuery(document) rootjQuery, // A simple way to check for HTML strings or ID strings // (both of which we optimize for) quickExpr = /^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/, // Is it a simple selector isSimple = /^.[^:#\[\.,]*$/, // Check if a string has a non-whitespace character in it rnotwhite = /\S/, // Used for trimming whitespace rtrim = /^(\s|\u00A0)+|(\s|\u00A0)+$/g, // Match a standalone tag rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/, // Keep a UserAgent string for use with jQuery.browser userAgent = navigator.userAgent, // For matching the engine and version of the browser browserMatch, // Has the ready events already been bound? readyBound = false, // The functions to execute on DOM ready readyList = [], // The ready event handler DOMContentLoaded, // Save a reference to some core methods toString = Object.prototype.toString, hasOwnProperty = Object.prototype.hasOwnProperty, push = Array.prototype.push, slice = Array.prototype.slice, indexOf = Array.prototype.indexOf; jQuery.fn = jQuery.prototype = { init: function( selector, context ) { var match, elem, ret, doc; // Handle $(""), $(null), or $(undefined) if ( !selector ) { return this; } // Handle $(DOMElement) if ( selector.nodeType ) { this.context = this[0] = selector; this.length = 1; return this; } // Handle HTML strings if ( typeof selector === "string" ) { // Are we dealing with HTML string or an ID? match = quickExpr.exec( selector ); // Verify a match, and that no context was specified for #id if ( match && (match[1] || !context) ) { // HANDLE: $(html) -> $(array) if ( match[1] ) { doc = (context ? context.ownerDocument || context : document); // If a single string is passed in and it's a single tag // just do a createElement and skip the rest ret = rsingleTag.exec( selector ); if ( ret ) { if ( jQuery.isPlainObject( context ) ) { selector = [ document.createElement( ret[1] ) ]; jQuery.fn.attr.call( selector, context, true ); } else { selector = [ doc.createElement( ret[1] ) ]; } } else { ret = buildFragment( [ match[1] ], [ doc ] ); selector = (ret.cacheable ? ret.fragment.cloneNode(true) : ret.fragment).childNodes; } // HANDLE: $("#id") } else { elem = document.getElementById( match[2] ); if ( elem ) { // Handle the case where IE and Opera return items // by name instead of ID if ( elem.id !== match[2] ) { return rootjQuery.find( selector ); } // Otherwise, we inject the element directly into the jQuery object this.length = 1; this[0] = elem; } this.context = document; this.selector = selector; return this; } // HANDLE: $("TAG") } else if ( !context && /^\w+$/.test( selector ) ) { this.selector = selector; this.context = document; selector = document.getElementsByTagName( selector ); // HANDLE: $(expr, $(...)) } else if ( !context || context.jquery ) { return (context || rootjQuery).find( selector ); // HANDLE: $(expr, context) // (which is just equivalent to: $(context).find(expr) } else { return jQuery( context ).find( selector ); } // HANDLE: $(function) // Shortcut for document ready } else if ( jQuery.isFunction( selector ) ) { return rootjQuery.ready( selector ); } if (selector.selector !== undefined) { this.selector = selector.selector; this.context = selector.context; } return jQuery.isArray( selector ) ? this.setArray( selector ) : jQuery.makeArray( selector, this ); }, // Start with an empty selector selector: "", // The current version of jQuery being used jquery: "1.4", // The default length of a jQuery object is 0 length: 0, // The number of elements contained in the matched element set size: function() { return this.length; }, toArray: function() { return slice.call( this, 0 ); }, // Get the Nth element in the matched element set OR // Get the whole matched element set as a clean array get: function( num ) { return num == null ? // Return a 'clean' array this.toArray() : // Return just the object ( num < 0 ? this.slice(num)[ 0 ] : this[ num ] ); }, // Take an array of elements and push it onto the stack // (returning the new matched element set) pushStack: function( elems, name, selector ) { // Build a new jQuery matched element set var ret = jQuery( elems || null ); // Add the old object onto the stack (as a reference) ret.prevObject = this; ret.context = this.context; if ( name === "find" ) { ret.selector = this.selector + (this.selector ? " " : "") + selector; } else if ( name ) { ret.selector = this.selector + "." + name + "(" + selector + ")"; } // Return the newly-formed element set return ret; }, // Force the current matched set of elements to become // the specified array of elements (destroying the stack in the process) // You should use pushStack() in order to do this, but maintain the stack setArray: function( elems ) { // Resetting the length to 0, then using the native Array push // is a super-fast way to populate an object with array-like properties this.length = 0; push.apply( this, elems ); return this; }, // Execute a callback for every element in the matched set. // (You can seed the arguments with an array of args, but this is // only used internally.) each: function( callback, args ) { return jQuery.each( this, callback, args ); }, ready: function( fn ) { // Attach the listeners jQuery.bindReady(); // If the DOM is already ready if ( jQuery.isReady ) { // Execute the function immediately fn.call( document, jQuery ); // Otherwise, remember the function for later } else if ( readyList ) { // Add the function to the wait list readyList.push( fn ); } return this; }, eq: function( i ) { return i === -1 ? this.slice( i ) : this.slice( i, +i + 1 ); }, first: function() { return this.eq( 0 ); }, last: function() { return this.eq( -1 ); }, slice: function() { return this.pushStack( slice.apply( this, arguments ), "slice", slice.call(arguments).join(",") ); }, map: function( callback ) { return this.pushStack( jQuery.map(this, function( elem, i ) { return callback.call( elem, i, elem ); })); }, end: function() { return this.prevObject || jQuery(null); }, // For internal use only. // Behaves like an Array's method, not like a jQuery method. push: push, sort: [].sort, splice: [].splice }; // Give the init function the jQuery prototype for later instantiation jQuery.fn.init.prototype = jQuery.fn; jQuery.extend = jQuery.fn.extend = function() { // copy reference to target object var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options, name, src, copy; // Handle a deep copy situation if ( typeof target === "boolean" ) { deep = target; target = arguments[1] || {}; // skip the boolean and the target i = 2; } // Handle case when target is a string or something (possible in deep copy) if ( typeof target !== "object" && !jQuery.isFunction(target) ) { target = {}; } // extend jQuery itself if only one argument is passed if ( length === i ) { target = this; --i; } for ( ; i < length; i++ ) { // Only deal with non-null/undefined values if ( (options = arguments[ i ]) != null ) { // Extend the base object for ( name in options ) { src = target[ name ]; copy = options[ name ]; // Prevent never-ending loop if ( target === copy ) { continue; } // Recurse if we're merging object literal values or arrays if ( deep && copy && ( jQuery.isPlainObject(copy) || jQuery.isArray(copy) ) ) { var clone = src && ( jQuery.isPlainObject(src) || jQuery.isArray(src) ) ? src : jQuery.isArray(copy) ? [] : {}; // Never move original objects, clone them target[ name ] = jQuery.extend( deep, clone, copy ); // Don't bring in undefined values } else if ( copy !== undefined ) { target[ name ] = copy; } } } } // Return the modified object return target; }; jQuery.extend({ noConflict: function( deep ) { window.$ = _$; if ( deep ) { window.jQuery = _jQuery; } return jQuery; }, // Is the DOM ready to be used? Set to true once it occurs. isReady: false, // Handle when the DOM is ready ready: function() { // Make sure that the DOM is not already loaded if ( !jQuery.isReady ) { // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). if ( !document.body ) { return setTimeout( jQuery.ready, 13 ); } // Remember that the DOM is ready jQuery.isReady = true; // If there are functions bound, to execute if ( readyList ) { // Execute all of them var fn, i = 0; while ( (fn = readyList[ i++ ]) ) { fn.call( document, jQuery ); } // Reset the list of functions readyList = null; } // Trigger any bound ready events if ( jQuery.fn.triggerHandler ) { jQuery( document ).triggerHandler( "ready" ); } } }, bindReady: function() { if ( readyBound ) { return; } readyBound = true; // Catch cases where $(document).ready() is called after the // browser event has already occurred. if ( document.readyState === "complete" ) { return jQuery.ready(); } // Mozilla, Opera and webkit nightlies currently support this event if ( document.addEventListener ) { // Use the handy event callback document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false ); // A fallback to window.onload, that will always work window.addEventListener( "load", jQuery.ready, false ); // If IE event model is used } else if ( document.attachEvent ) { // ensure firing before onload, // maybe late but safe also for iframes document.attachEvent("onreadystatechange", DOMContentLoaded); // A fallback to window.onload, that will always work window.attachEvent( "onload", jQuery.ready ); // If IE and not a frame // continually check to see if the document is ready var toplevel = false; try { toplevel = window.frameElement == null; } catch(e) {} if ( document.documentElement.doScroll && toplevel ) { doScrollCheck(); } } }, // See test/unit/core.js for details concerning isFunction. // Since version 1.3, DOM methods and functions like alert // aren't supported. They return false on IE (#2968). isFunction: function( obj ) { return toString.call(obj) === "[object Function]"; }, isArray: function( obj ) { return toString.call(obj) === "[object Array]"; }, isPlainObject: function( obj ) { // Must be an Object. // Because of IE, we also have to check the presence of the constructor property. // Make sure that DOM nodes and window objects don't pass through, as well if ( !obj || toString.call(obj) !== "[object Object]" || obj.nodeType || obj.setInterval ) { return false; } // Not own constructor property must be Object if ( obj.constructor && !hasOwnProperty.call(obj, "constructor") && !hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf") ) { return false; } // Own properties are enumerated firstly, so to speed up, // if last one is own, then all properties are own. var key; for ( key in obj ) {} return key === undefined || hasOwnProperty.call( obj, key ); }, isEmptyObject: function( obj ) { for ( var name in obj ) { return false; } return true; }, noop: function() {}, // Evalulates a script in a global context globalEval: function( data ) { if ( data && rnotwhite.test(data) ) { // Inspired by code by Andrea Giammarchi // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html var head = document.getElementsByTagName("head")[0] || document.documentElement, script = document.createElement("script"); script.type = "text/javascript"; if ( jQuery.support.scriptEval ) { script.appendChild( document.createTextNode( data ) ); } else { script.text = data; } // Use insertBefore instead of appendChild to circumvent an IE6 bug. // This arises when a base node is used (#2709). head.insertBefore( script, head.firstChild ); head.removeChild( script ); } }, nodeName: function( elem, name ) { return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase(); }, // args is for internal usage only each: function( object, callback, args ) { var name, i = 0, length = object.length, isObj = length === undefined || jQuery.isFunction(object); if ( args ) { if ( isObj ) { for ( name in object ) { if ( callback.apply( object[ name ], args ) === false ) { break; } } } else { for ( ; i < length; ) { if ( callback.apply( object[ i++ ], args ) === false ) { break; } } } // A special, fast, case for the most common use of each } else { if ( isObj ) { for ( name in object ) { if ( callback.call( object[ name ], name, object[ name ] ) === false ) { break; } } } else { for ( var value = object[0]; i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {} } } return object; }, trim: function( text ) { return (text || "").replace( rtrim, "" ); }, // results is for internal usage only makeArray: function( array, results ) { var ret = results || []; if ( array != null ) { // The window, strings (and functions) also have 'length' // The extra typeof function check is to prevent crashes // in Safari 2 (See: #3039) if ( array.length == null || typeof array === "string" || jQuery.isFunction(array) || (typeof array !== "function" && array.setInterval) ) { push.call( ret, array ); } else { jQuery.merge( ret, array ); } } return ret; }, inArray: function( elem, array ) { if ( array.indexOf ) { return array.indexOf( elem ); } for ( var i = 0, length = array.length; i < length; i++ ) { if ( array[ i ] === elem ) { return i; } } return -1; }, merge: function( first, second ) { var i = first.length, j = 0; if ( typeof second.length === "number" ) { for ( var l = second.length; j < l; j++ ) { first[ i++ ] = second[ j ]; } } else { while ( second[j] !== undefined ) { first[ i++ ] = second[ j++ ]; } } first.length = i; return first; }, grep: function( elems, callback, inv ) { var ret = []; // Go through the array, only saving the items // that pass the validator function for ( var i = 0, length = elems.length; i < length; i++ ) { if ( !inv !== !callback( elems[ i ], i ) ) { ret.push( elems[ i ] ); } } return ret; }, // arg is for internal usage only map: function( elems, callback, arg ) { var ret = [], value; // Go through the array, translating each of the items to their // new value (or values). for ( var i = 0, length = elems.length; i < length; i++ ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret[ ret.length ] = value; } } return ret.concat.apply( [], ret ); }, // A global GUID counter for objects guid: 1, proxy: function( fn, proxy, thisObject ) { if ( arguments.length === 2 ) { if ( typeof proxy === "string" ) { thisObject = fn; fn = thisObject[ proxy ]; proxy = undefined; } else if ( proxy && !jQuery.isFunction( proxy ) ) { thisObject = proxy; proxy = undefined; } } if ( !proxy && fn ) { proxy = function() { return fn.apply( thisObject || this, arguments ); }; } // Set the guid of unique handler to the same of original handler, so it can be removed if ( fn ) { proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++; } // So proxy can be declared as an argument return proxy; }, // Use of jQuery.browser is frowned upon. // More details: http://docs.jquery.com/Utilities/jQuery.browser uaMatch: function( ua ) { var ret = { browser: "" }; ua = ua.toLowerCase(); if ( /webkit/.test( ua ) ) { ret = { browser: "webkit", version: /webkit[\/ ]([\w.]+)/ }; } else if ( /opera/.test( ua ) ) { ret = { browser: "opera", version: /version/.test( ua ) ? /version[\/ ]([\w.]+)/ : /opera[\/ ]([\w.]+)/ }; } else if ( /msie/.test( ua ) ) { ret = { browser: "msie", version: /msie ([\w.]+)/ }; } else if ( /mozilla/.test( ua ) && !/compatible/.test( ua ) ) { ret = { browser: "mozilla", version: /rv:([\w.]+)/ }; } ret.version = (ret.version && ret.version.exec( ua ) || [0, "0"])[1]; return ret; }, browser: {} }); browserMatch = jQuery.uaMatch( userAgent ); if ( browserMatch.browser ) { jQuery.browser[ browserMatch.browser ] = true; jQuery.browser.version = browserMatch.version; } // Deprecated, use jQuery.browser.webkit instead if ( jQuery.browser.webkit ) { jQuery.browser.safari = true; } if ( indexOf ) { jQuery.inArray = function( elem, array ) { return indexOf.call( array, elem ); }; } // All jQuery objects should point back to these rootjQuery = jQuery(document); // Cleanup functions for the document ready method if ( document.addEventListener ) { DOMContentLoaded = function() { document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false ); jQuery.ready(); }; } else if ( document.attachEvent ) { DOMContentLoaded = function() { // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). if ( document.readyState === "complete" ) { document.detachEvent( "onreadystatechange", DOMContentLoaded ); jQuery.ready(); } }; } // The DOM ready check for Internet Explorer function doScrollCheck() { if ( jQuery.isReady ) { return; } try { // If IE is used, use the trick by Diego Perini // http://javascript.nwbox.com/IEContentLoaded/ document.documentElement.doScroll("left"); } catch( error ) { setTimeout( doScrollCheck, 1 ); return; } // and execute any waiting functions jQuery.ready(); } if ( indexOf ) { jQuery.inArray = function( elem, array ) { return indexOf.call( array, elem ); }; } function evalScript( i, elem ) { if ( elem.src ) { jQuery.ajax({ url: elem.src, async: false, dataType: "script" }); } else { jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); } if ( elem.parentNode ) { elem.parentNode.removeChild( elem ); } } // Mutifunctional method to get and set values to a collection // The value/s can be optionally by executed if its a function function access( elems, key, value, exec, fn, pass ) { var length = elems.length; // Setting many attributes if ( typeof key === "object" ) { for ( var k in key ) { access( elems, k, key[k], exec, fn, value ); } return elems; } // Setting one attribute if ( value !== undefined ) { // Optionally, function values get executed if exec is true exec = !pass && exec && jQuery.isFunction(value); for ( var i = 0; i < length; i++ ) { fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass ); } return elems; } // Getting an attribute return length ? fn( elems[0], key ) : null; } function now() { return (new Date).getTime(); } (function() { jQuery.support = {}; var root = document.documentElement, script = document.createElement("script"), div = document.createElement("div"), id = "script" + now(); div.style.display = "none"; div.innerHTML = " <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>"; var all = div.getElementsByTagName("*"), a = div.getElementsByTagName("a")[0]; // Can't get basic test support if ( !all || !all.length || !a ) { return; } jQuery.support = { // IE strips leading whitespace when .innerHTML is used leadingWhitespace: div.firstChild.nodeType === 3, // Make sure that tbody elements aren't automatically inserted // IE will insert them into empty tables tbody: !div.getElementsByTagName("tbody").length, // Make sure that link elements get serialized correctly by innerHTML // This requires a wrapper element in IE htmlSerialize: !!div.getElementsByTagName("link").length, // Get the style information from getAttribute // (IE uses .cssText insted) style: /red/.test( a.getAttribute("style") ), // Make sure that URLs aren't manipulated // (IE normalizes it by default) hrefNormalized: a.getAttribute("href") === "/a", // Make sure that element opacity exists // (IE uses filter instead) // Use a regex to work around a WebKit issue. See #5145 opacity: /^0.55$/.test( a.style.opacity ), // Verify style float existence // (IE uses styleFloat instead of cssFloat) cssFloat: !!a.style.cssFloat, // Make sure that if no value is specified for a checkbox // that it defaults to "on". // (WebKit defaults to "" instead) checkOn: div.getElementsByTagName("input")[0].value === "on", // Make sure that a selected-by-default option has a working selected property. // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) optSelected: document.createElement("select").appendChild( document.createElement("option") ).selected, // Will be defined later scriptEval: false, noCloneEvent: true, boxModel: null }; script.type = "text/javascript"; try { script.appendChild( document.createTextNode( "window." + id + "=1;" ) ); } catch(e) {} root.insertBefore( script, root.firstChild ); // Make sure that the execution of code works by injecting a script // tag with appendChild/createTextNode // (IE doesn't support this, fails, and uses .text instead) if ( window[ id ] ) { jQuery.support.scriptEval = true; delete window[ id ]; } root.removeChild( script ); if ( div.attachEvent && div.fireEvent ) { div.attachEvent("onclick", function click() { // Cloning a node shouldn't copy over any // bound event handlers (IE does this) jQuery.support.noCloneEvent = false; div.detachEvent("onclick", click); }); div.cloneNode(true).fireEvent("onclick"); } // Figure out if the W3C box model works as expected // document.body must exist before we can do this // TODO: This timeout is temporary until I move ready into core.js. jQuery(function() { var div = document.createElement("div"); div.style.width = div.style.paddingLeft = "1px"; document.body.appendChild( div ); jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2; document.body.removeChild( div ).style.display = 'none'; div = null; }); // Technique from Juriy Zaytsev // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/ var eventSupported = function( eventName ) { var el = document.createElement("div"); eventName = "on" + eventName; var isSupported = (eventName in el); if ( !isSupported ) { el.setAttribute(eventName, "return;"); isSupported = typeof el[eventName] === "function"; } el = null; return isSupported; }; jQuery.support.submitBubbles = eventSupported("submit"); jQuery.support.changeBubbles = eventSupported("change"); // release memory in IE root = script = div = all = a = null; })(); jQuery.props = { "for": "htmlFor", "class": "className", readonly: "readOnly", maxlength: "maxLength", cellspacing: "cellSpacing", rowspan: "rowSpan", colspan: "colSpan", tabindex: "tabIndex", usemap: "useMap", frameborder: "frameBorder" }; var expando = "jQuery" + now(), uuid = 0, windowData = {}; var emptyObject = {}; jQuery.extend({ cache: {}, expando:expando, // The following elements throw uncatchable exceptions if you // attempt to add expando properties to them. noData: { "embed": true, "object": true, "applet": true }, data: function( elem, name, data ) { if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) { return; } elem = elem == window ? windowData : elem; var id = elem[ expando ], cache = jQuery.cache, thisCache; // Handle the case where there's no name immediately if ( !name && !id ) { return null; } // Compute a unique ID for the element if ( !id ) { id = ++uuid; } // Avoid generating a new cache unless none exists and we // want to manipulate it. if ( typeof name === "object" ) { elem[ expando ] = id; thisCache = cache[ id ] = jQuery.extend(true, {}, name); } else if ( cache[ id ] ) { thisCache = cache[ id ]; } else if ( typeof data === "undefined" ) { thisCache = emptyObject; } else { thisCache = cache[ id ] = {}; } // Prevent overriding the named cache with undefined values if ( data !== undefined ) { elem[ expando ] = id; thisCache[ name ] = data; } return typeof name === "string" ? thisCache[ name ] : thisCache; }, removeData: function( elem, name ) { if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) { return; } elem = elem == window ? windowData : elem; var id = elem[ expando ], cache = jQuery.cache, thisCache = cache[ id ]; // If we want to remove a specific section of the element's data if ( name ) { if ( thisCache ) { // Remove the section of cache data delete thisCache[ name ]; // If we've removed all the data, remove the element's cache if ( jQuery.isEmptyObject(thisCache) ) { jQuery.removeData( elem ); } } // Otherwise, we want to remove all of the element's data } else { // Clean up the element expando try { delete elem[ expando ]; } catch( e ) { // IE has trouble directly removing the expando // but it's ok with using removeAttribute if ( elem.removeAttribute ) { elem.removeAttribute( expando ); } } // Completely remove the data cache delete cache[ id ]; } } }); jQuery.fn.extend({ data: function( key, value ) { if ( typeof key === "undefined" && this.length ) { return jQuery.data( this[0] ); } else if ( typeof key === "object" ) { return this.each(function() { jQuery.data( this, key ); }); } var parts = key.split("."); parts[1] = parts[1] ? "." + parts[1] : ""; if ( value === undefined ) { var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); if ( data === undefined && this.length ) { data = jQuery.data( this[0], key ); } return data === undefined && parts[1] ? this.data( parts[0] ) : data; } else { return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function() { jQuery.data( this, key, value ); }); } }, removeData: function( key ) { return this.each(function() { jQuery.removeData( this, key ); }); } }); jQuery.extend({ queue: function( elem, type, data ) { if ( !elem ) { return; } type = (type || "fx") + "queue"; var q = jQuery.data( elem, type ); // Speed up dequeue by getting out quickly if this is just a lookup if ( !data ) { return q || []; } if ( !q || jQuery.isArray(data) ) { q = jQuery.data( elem, type, jQuery.makeArray(data) ); } else { q.push( data ); } return q; }, dequeue: function( elem, type ) { type = type || "fx"; var queue = jQuery.queue( elem, type ), fn = queue.shift(); // If the fx queue is dequeued, always remove the progress sentinel if ( fn === "inprogress" ) { fn = queue.shift(); } if ( fn ) { // Add a progress sentinel to prevent the fx queue from being // automatically dequeued if ( type === "fx" ) { queue.unshift("inprogress"); } fn.call(elem, function() { jQuery.dequeue(elem, type); }); } } }); jQuery.fn.extend({ queue: function( type, data ) { if ( typeof type !== "string" ) { data = type; type = "fx"; } if ( data === undefined ) { return jQuery.queue( this[0], type ); } return this.each(function( i, elem ) { var queue = jQuery.queue( this, type, data ); if ( type === "fx" && queue[0] !== "inprogress" ) { jQuery.dequeue( this, type ); } }); }, dequeue: function( type ) { return this.each(function() { jQuery.dequeue( this, type ); }); }, // Based off of the plugin by Clint Helfers, with permission. // http://blindsignals.com/index.php/2009/07/jquery-delay/ delay: function( time, type ) { time = jQuery.fx ? jQuery.fx.speeds[time] || time : time; type = type || "fx"; return this.queue( type, function() { var elem = this; setTimeout(function() { jQuery.dequeue( elem, type ); }, time ); }); }, clearQueue: function( type ) { return this.queue( type || "fx", [] ); } }); var rclass = /[\n\t]/g, rspace = /\s+/, rreturn = /\r/g, rspecialurl = /href|src|style/, rtype = /(button|input)/i, rfocusable = /(button|input|object|select|textarea)/i, rclickable = /^(a|area)$/i, rradiocheck = /radio|checkbox/; jQuery.fn.extend({ attr: function( name, value ) { return access( this, name, value, true, jQuery.attr ); }, removeAttr: function( name, fn ) { return this.each(function(){ jQuery.attr( this, name, "" ); if ( this.nodeType === 1 ) { this.removeAttribute( name ); } }); }, addClass: function( value ) { if ( jQuery.isFunction(value) ) { return this.each(function(i) { var self = jQuery(this); self.addClass( value.call(this, i, self.attr("class")) ); }); } if ( value && typeof value === "string" ) { var classNames = (value || "").split( rspace ); for ( var i = 0, l = this.length; i < l; i++ ) { var elem = this[i]; if ( elem.nodeType === 1 ) { if ( !elem.className ) { elem.className = value; } else { var className = " " + elem.className + " "; for ( var c = 0, cl = classNames.length; c < cl; c++ ) { if ( className.indexOf( " " + classNames[c] + " " ) < 0 ) { elem.className += " " + classNames[c]; } } } } } } return this; }, removeClass: function( value ) { if ( jQuery.isFunction(value) ) { return this.each(function(i) { var self = jQuery(this); self.removeClass( value.call(this, i, self.attr("class")) ); }); } if ( (value && typeof value === "string") || value === undefined ) { var classNames = (value || "").split(rspace); for ( var i = 0, l = this.length; i < l; i++ ) { var elem = this[i]; if ( elem.nodeType === 1 && elem.className ) { if ( value ) { var className = (" " + elem.className + " ").replace(rclass, " "); for ( var c = 0, cl = classNames.length; c < cl; c++ ) { className = className.replace(" " + classNames[c] + " ", " "); } elem.className = className.substring(1, className.length - 1); } else { elem.className = ""; } } } } return this; }, toggleClass: function( value, stateVal ) { var type = typeof value, isBool = typeof stateVal === "boolean"; if ( jQuery.isFunction( value ) ) { return this.each(function(i) { var self = jQuery(this); self.toggleClass( value.call(this, i, self.attr("class"), stateVal), stateVal ); }); } return this.each(function() { if ( type === "string" ) { // toggle individual class names var className, i = 0, self = jQuery(this), state = stateVal, classNames = value.split( rspace ); while ( (className = classNames[ i++ ]) ) { // check each className given, space seperated list state = isBool ? state : !self.hasClass( className ); self[ state ? "addClass" : "removeClass" ]( className ); } } else if ( type === "undefined" || type === "boolean" ) { if ( this.className ) { // store className if set jQuery.data( this, "__className__", this.className ); } // toggle whole className this.className = this.className || value === false ? "" : jQuery.data( this, "__className__" ) || ""; } }); }, hasClass: function( selector ) { var className = " " + selector + " "; for ( var i = 0, l = this.length; i < l; i++ ) { if ( (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) { return true; } } return false; }, val: function( value ) { if ( value === undefined ) { var elem = this[0]; if ( elem ) { if ( jQuery.nodeName( elem, "option" ) ) { return (elem.attributes.value || {}).specified ? elem.value : elem.text; } // We need to handle select boxes special if ( jQuery.nodeName( elem, "select" ) ) { var index = elem.selectedIndex, values = [], options = elem.options, one = elem.type === "select-one"; // Nothing was selected if ( index < 0 ) { return null; } // Loop through all the selected options for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { var option = options[ i ]; if ( option.selected ) { // Get the specifc value for the option value = jQuery(option).val(); // We don't need an array for one selects if ( one ) { return value; } // Multi-Selects return an array values.push( value ); } } return values; } // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) { return elem.getAttribute("value") === null ? "on" : elem.value; } // Everything else, we just grab the value return (elem.value || "").replace(rreturn, ""); } return undefined; } var isFunction = jQuery.isFunction(value); return this.each(function(i) { var self = jQuery(this), val = value; if ( this.nodeType !== 1 ) { return; } if ( isFunction ) { val = value.call(this, i, self.val()); } // Typecast each time if the value is a Function and the appended // value is therefore different each time. if ( typeof val === "number" ) { val += ""; } if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) { this.checked = jQuery.inArray( self.val(), val ) >= 0; } else if ( jQuery.nodeName( this, "select" ) ) { var values = jQuery.makeArray(val); jQuery( "option", this ).each(function() { this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0; }); if ( !values.length ) { this.selectedIndex = -1; } } else { this.value = val; } }); } }); jQuery.extend({ attrFn: { val: true, css: true, html: true, text: true, data: true, width: true, height: true, offset: true }, attr: function( elem, name, value, pass ) { // don't set attributes on text and comment nodes if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) { return undefined; } if ( pass && name in jQuery.attrFn ) { return jQuery(elem)[name](value); } var notxml = elem.nodeType !== 1 || !jQuery.isXMLDoc( elem ), // Whether we are setting (or getting) set = value !== undefined; // Try to normalize/fix the name name = notxml && jQuery.props[ name ] || name; // Only do all the following if this is a node (faster for style) if ( elem.nodeType === 1 ) { // These attributes require special treatment var special = rspecialurl.test( name ); // Safari mis-reports the default selected property of an option // Accessing the parent's selectedIndex property fixes it if ( name === "selected" && !jQuery.support.optSelected ) { var parent = elem.parentNode; if ( parent ) { parent.selectedIndex; // Make sure that it also works with optgroups, see #5701 if ( parent.parentNode ) { parent.parentNode.selectedIndex; } } } // If applicable, access the attribute via the DOM 0 way if ( name in elem && notxml && !special ) { if ( set ) { // We can't allow the type property to be changed (since it causes problems in IE) if ( name === "type" && rtype.test( elem.nodeName ) && elem.parentNode ) { throw "type property can't be changed"; } elem[ name ] = value; } // browsers index elements by id/name on forms, give priority to attributes. if ( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) ) { return elem.getAttributeNode( name ).nodeValue; } // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ if ( name === "tabIndex" ) { var attributeNode = elem.getAttributeNode( "tabIndex" ); return attributeNode && attributeNode.specified ? attributeNode.value : rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? 0 : undefined; } return elem[ name ]; } if ( !jQuery.support.style && notxml && name === "style" ) { if ( set ) { elem.style.cssText = "" + value; } return elem.style.cssText; } if ( set ) { // convert the value to a string (all browsers do this but IE) see #1070 elem.setAttribute( name, "" + value ); } var attr = !jQuery.support.hrefNormalized && notxml && special ? // Some attributes require a special call on IE elem.getAttribute( name, 2 ) : elem.getAttribute( name ); // Non-existent attributes return null, we normalize to undefined return attr === null ? undefined : attr; } // elem is actually elem.style ... set the style // Using attr for specific style information is now deprecated. Use style insead. return jQuery.style( elem, name, value ); } }); var fcleanup = function( nm ) { return nm.replace(/[^\w\s\.\|`]/g, function( ch ) { return "\\" + ch; }); }; /* * A number of helper functions used for managing events. * Many of the ideas behind this code originated from * Dean Edwards' addEvent library. */ jQuery.event = { // Bind an event to an element // Original by Dean Edwards add: function( elem, types, handler, data ) { if ( elem.nodeType === 3 || elem.nodeType === 8 ) { return; } // For whatever reason, IE has trouble passing the window object // around, causing it to be cloned in the process if ( elem.setInterval && ( elem !== window && !elem.frameElement ) ) { elem = window; } // Make sure that the function being executed has a unique ID if ( !handler.guid ) { handler.guid = jQuery.guid++; } // if data is passed, bind to handler if ( data !== undefined ) { // Create temporary function pointer to original handler var fn = handler; // Create unique handler function, wrapped around original handler handler = jQuery.proxy( fn ); // Store data in unique handler handler.data = data; } // Init the element's event structure var events = jQuery.data( elem, "events" ) || jQuery.data( elem, "events", {} ), handle = jQuery.data( elem, "handle" ), eventHandle; if ( !handle ) { eventHandle = function() { // Handle the second event of a trigger and when // an event is called after a page has unloaded return typeof jQuery !== "undefined" && !jQuery.event.triggered ? jQuery.event.handle.apply( eventHandle.elem, arguments ) : undefined; }; handle = jQuery.data( elem, "handle", eventHandle ); } // If no handle is found then we must be trying to bind to one of the // banned noData elements if ( !handle ) { return; } // Add elem as a property of the handle function // This is to prevent a memory leak with non-native // event in IE. handle.elem = elem; // Handle multiple events separated by a space // jQuery(...).bind("mouseover mouseout", fn); types = types.split( /\s+/ ); var type, i=0; while ( (type = types[ i++ ]) ) { // Namespaced event handlers var namespaces = type.split("."); type = namespaces.shift(); handler.type = namespaces.slice(0).sort().join("."); // Get the current list of functions bound to this event var handlers = events[ type ], special = this.special[ type ] || {}; // Init the event handler queue if ( !handlers ) { handlers = events[ type ] = {}; // Check for a special event handler // Only use addEventListener/attachEvent if the special // events handler returns false if ( !special.setup || special.setup.call( elem, data, namespaces, handler) === false ) { // Bind the global event handler to the element if ( elem.addEventListener ) { elem.addEventListener( type, handle, false ); } else if ( elem.attachEvent ) { elem.attachEvent( "on" + type, handle ); } } } if ( special.add ) { var modifiedHandler = special.add.call( elem, handler, data, namespaces, handlers ); if ( modifiedHandler && jQuery.isFunction( modifiedHandler ) ) { modifiedHandler.guid = modifiedHandler.guid || handler.guid; handler = modifiedHandler; } } // Add the function to the element's handler list handlers[ handler.guid ] = handler; // Keep track of which events have been used, for global triggering this.global[ type ] = true; } // Nullify elem to prevent memory leaks in IE elem = null; }, global: {}, // Detach an event or set of events from an element remove: function( elem, types, handler ) { // don't do events on text and comment nodes if ( elem.nodeType === 3 || elem.nodeType === 8 ) { return; } var events = jQuery.data( elem, "events" ), ret, type, fn; if ( events ) { // Unbind all events for the element if ( types === undefined || (typeof types === "string" && types.charAt(0) === ".") ) { for ( type in events ) { this.remove( elem, type + (types || "") ); } } else { // types is actually an event object here if ( types.type ) { handler = types.handler; types = types.type; } // Handle multiple events separated by a space // jQuery(...).unbind("mouseover mouseout", fn); types = types.split(/\s+/); var i = 0; while ( (type = types[ i++ ]) ) { // Namespaced event handlers var namespaces = type.split("."); type = namespaces.shift(); var all = !namespaces.length, cleaned = jQuery.map( namespaces.slice(0).sort(), fcleanup ), namespace = new RegExp("(^|\\.)" + cleaned.join("\\.(?:.*\\.)?") + "(\\.|$)"), special = this.special[ type ] || {}; if ( events[ type ] ) { // remove the given handler for the given type if ( handler ) { fn = events[ type ][ handler.guid ]; delete events[ type ][ handler.guid ]; // remove all handlers for the given type } else { for ( var handle in events[ type ] ) { // Handle the removal of namespaced events if ( all || namespace.test( events[ type ][ handle ].type ) ) { delete events[ type ][ handle ]; } } } if ( special.remove ) { special.remove.call( elem, namespaces, fn); } // remove generic event handler if no more handlers exist for ( ret in events[ type ] ) { break; } if ( !ret ) { if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) { if ( elem.removeEventListener ) { elem.removeEventListener( type, jQuery.data( elem, "handle" ), false ); } else if ( elem.detachEvent ) { elem.detachEvent( "on" + type, jQuery.data( elem, "handle" ) ); } } ret = null; delete events[ type ]; } } } } // Remove the expando if it's no longer used for ( ret in events ) { break; } if ( !ret ) { var handle = jQuery.data( elem, "handle" ); if ( handle ) { handle.elem = null; } jQuery.removeData( elem, "events" ); jQuery.removeData( elem, "handle" ); } } }, // bubbling is internal trigger: function( event, data, elem /*, bubbling */ ) { // Event object or event type var type = event.type || event, bubbling = arguments[3]; if ( !bubbling ) { event = typeof event === "object" ? // jQuery.Event object event[expando] ? event : // Object literal jQuery.extend( jQuery.Event(type), event ) : // Just the event type (string) jQuery.Event(type); if ( type.indexOf("!") >= 0 ) { event.type = type = type.slice(0, -1); event.exclusive = true; } // Handle a global trigger if ( !elem ) { // Don't bubble custom events when global (to avoid too much overhead) event.stopPropagation(); // Only trigger if we've ever bound an event for it if ( this.global[ type ] ) { jQuery.each( jQuery.cache, function() { if ( this.events && this.events[type] ) { jQuery.event.trigger( event, data, this.handle.elem ); } }); } } // Handle triggering a single element // don't do events on text and comment nodes if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) { return undefined; } // Clean up in case it is reused event.result = undefined; event.target = elem; // Clone the incoming data, if any data = jQuery.makeArray( data ); data.unshift( event ); } event.currentTarget = elem; // Trigger the event, it is assumed that "handle" is a function var handle = jQuery.data( elem, "handle" ); if ( handle ) { handle.apply( elem, data ); } var nativeFn, nativeHandler; try { if ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) { nativeFn = elem[ type ]; nativeHandler = elem[ "on" + type ]; } // prevent IE from throwing an error for some elements with some event types, see #3533 } catch (e) {} var isClick = jQuery.nodeName(elem, "a") && type === "click"; // Trigger the native events (except for clicks on links) if ( !bubbling && nativeFn && !event.isDefaultPrevented() && !isClick ) { this.triggered = true; try { elem[ type ](); // prevent IE from throwing an error for some hidden elements } catch (e) {} // Handle triggering native .onfoo handlers } else if ( nativeHandler && elem[ "on" + type ].apply( elem, data ) === false ) { event.result = false; } this.triggered = false; if ( !event.isPropagationStopped() ) { var parent = elem.parentNode || elem.ownerDocument; if ( parent ) { jQuery.event.trigger( event, data, parent, true ); } } }, handle: function( event ) { // returned undefined or false var all, handlers; event = arguments[0] = jQuery.event.fix( event || window.event ); event.currentTarget = this; // Namespaced event handlers var namespaces = event.type.split("."); event.type = namespaces.shift(); // Cache this now, all = true means, any handler all = !namespaces.length && !event.exclusive; var namespace = new RegExp("(^|\\.)" + namespaces.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)"); handlers = ( jQuery.data(this, "events") || {} )[ event.type ]; for ( var j in handlers ) { var handler = handlers[ j ]; // Filter the functions by class if ( all || namespace.test(handler.type) ) { // Pass in a reference to the handler function itself // So that we can later remove it event.handler = handler; event.data = handler.data; var ret = handler.apply( this, arguments ); if ( ret !== undefined ) { event.result = ret; if ( ret === false ) { event.preventDefault(); event.stopPropagation(); } } if ( event.isImmediatePropagationStopped() ) { break; } } } return event.result; }, props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), fix: function( event ) { if ( event[ expando ] ) { return event; } // store a copy of the original event object // and "clone" to set read-only properties var originalEvent = event; event = jQuery.Event( originalEvent ); for ( var i = this.props.length, prop; i; ) { prop = this.props[ --i ]; event[ prop ] = originalEvent[ prop ]; } // Fix target property, if necessary if ( !event.target ) { event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either } // check if target is a textnode (safari) if ( event.target.nodeType === 3 ) { event.target = event.target.parentNode; } // Add relatedTarget, if necessary if ( !event.relatedTarget && event.fromElement ) { event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement; } // Calculate pageX/Y if missing and clientX/Y available if ( event.pageX == null && event.clientX != null ) { var doc = document.documentElement, body = document.body; event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0); event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0); } // Add which for key events if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) ) { event.which = event.charCode || event.keyCode; } // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs) if ( !event.metaKey && event.ctrlKey ) { event.metaKey = event.ctrlKey; } // Add which for click: 1 === left; 2 === middle; 3 === right // Note: button is not normalized, so don't use it if ( !event.which && event.button !== undefined ) { event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) )); } return event; }, // Deprecated, use jQuery.guid instead guid: 1E8, // Deprecated, use jQuery.proxy instead proxy: jQuery.proxy, special: { ready: { // Make sure the ready event is setup setup: jQuery.bindReady, teardown: jQuery.noop }, live: { add: function( proxy, data, namespaces, live ) { jQuery.extend( proxy, data || {} ); proxy.guid += data.selector + data.live; jQuery.event.add( this, data.live, liveHandler, data ); }, remove: function( namespaces ) { if ( namespaces.length ) { var remove = 0, name = new RegExp("(^|\\.)" + namespaces[0] + "(\\.|$)"); jQuery.each( (jQuery.data(this, "events").live || {}), function() { if ( name.test(this.type) ) { remove++; } }); if ( remove < 1 ) { jQuery.event.remove( this, namespaces[0], liveHandler ); } } }, special: {} }, beforeunload: { setup: function( data, namespaces, fn ) { // We only want to do this special case on windows if ( this.setInterval ) { this.onbeforeunload = fn; } return false; }, teardown: function( namespaces, fn ) { if ( this.onbeforeunload === fn ) { this.onbeforeunload = null; } } } } }; jQuery.Event = function( src ) { // Allow instantiation without the 'new' keyword if ( !this.preventDefault ) { return new jQuery.Event( src ); } // Event object if ( src && src.type ) { this.originalEvent = src; this.type = src.type; // Event type } else { this.type = src; } // timeStamp is buggy for some events on Firefox(#3843) // So we won't rely on the native value this.timeStamp = now(); // Mark it as fixed this[ expando ] = true; }; function returnFalse() { return false; } function returnTrue() { return true; } // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html jQuery.Event.prototype = { preventDefault: function() { this.isDefaultPrevented = returnTrue; var e = this.originalEvent; if ( !e ) { return; } // if preventDefault exists run it on the original event if ( e.preventDefault ) { e.preventDefault(); } // otherwise set the returnValue property of the original event to false (IE) e.returnValue = false; }, stopPropagation: function() { this.isPropagationStopped = returnTrue; var e = this.originalEvent; if ( !e ) { return; } // if stopPropagation exists run it on the original event if ( e.stopPropagation ) { e.stopPropagation(); } // otherwise set the cancelBubble property of the original event to true (IE) e.cancelBubble = true; }, stopImmediatePropagation: function() { this.isImmediatePropagationStopped = returnTrue; this.stopPropagation(); }, isDefaultPrevented: returnFalse, isPropagationStopped: returnFalse, isImmediatePropagationStopped: returnFalse }; // Checks if an event happened on an element within another element // Used in jQuery.event.special.mouseenter and mouseleave handlers var withinElement = function( event ) { // Check if mouse(over|out) are still within the same parent element var parent = event.relatedTarget; // Traverse up the tree while ( parent && parent !== this ) { // Firefox sometimes assigns relatedTarget a XUL element // which we cannot access the parentNode property of try { parent = parent.parentNode; // assuming we've left the element since we most likely mousedover a xul element } catch(e) { break; } } if ( parent !== this ) { // set the correct event type event.type = event.data; // handle event if we actually just moused on to a non sub-element jQuery.event.handle.apply( this, arguments ); } }, // In case of event delegation, we only need to rename the event.type, // liveHandler will take care of the rest. delegate = function( event ) { event.type = event.data; jQuery.event.handle.apply( this, arguments ); }; // Create mouseenter and mouseleave events jQuery.each({ mouseenter: "mouseover", mouseleave: "mouseout" }, function( orig, fix ) { jQuery.event.special[ orig ] = { setup: function( data ) { jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig ); }, teardown: function( data ) { jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement ); } }; }); // submit delegation if ( !jQuery.support.submitBubbles ) { jQuery.event.special.submit = { setup: function( data, namespaces, fn ) { if ( this.nodeName.toLowerCase() !== "form" ) { jQuery.event.add(this, "click.specialSubmit." + fn.guid, function( e ) { var elem = e.target, type = elem.type; if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) { return trigger( "submit", this, arguments ); } }); jQuery.event.add(this, "keypress.specialSubmit." + fn.guid, function( e ) { var elem = e.target, type = elem.type; if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) { return trigger( "submit", this, arguments ); } }); } else { return false; } }, remove: function( namespaces, fn ) { jQuery.event.remove( this, "click.specialSubmit" + (fn ? "."+fn.guid : "") ); jQuery.event.remove( this, "keypress.specialSubmit" + (fn ? "."+fn.guid : "") ); } }; } // change delegation, happens here so we have bind. if ( !jQuery.support.changeBubbles ) { var formElems = /textarea|input|select/i; function getVal( elem ) { var type = elem.type, val = elem.value; if ( type === "radio" || type === "checkbox" ) { val = elem.checked; } else if ( type === "select-multiple" ) { val = elem.selectedIndex > -1 ? jQuery.map( elem.options, function( elem ) { return elem.selected; }).join("-") : ""; } else if ( elem.nodeName.toLowerCase() === "select" ) { val = elem.selectedIndex; } return val; } function testChange( e ) { var elem = e.target, data, val; if ( !formElems.test( elem.nodeName ) || elem.readOnly ) { return; } data = jQuery.data( elem, "_change_data" ); val = getVal(elem); if ( val === data ) { return; } // the current data will be also retrieved by beforeactivate if ( e.type !== "focusout" || elem.type !== "radio" ) { jQuery.data( elem, "_change_data", val ); } if ( elem.type !== "select" && (data != null || val) ) { e.type = "change"; return jQuery.event.trigger( e, arguments[1], this ); } } jQuery.event.special.change = { filters: { focusout: testChange, click: function( e ) { var elem = e.target, type = elem.type; if ( type === "radio" || type === "checkbox" || elem.nodeName.toLowerCase() === "select" ) { return testChange.call( this, e ); } }, // Change has to be called before submit // Keydown will be called before keypress, which is used in submit-event delegation keydown: function( e ) { var elem = e.target, type = elem.type; if ( (e.keyCode === 13 && elem.nodeName.toLowerCase() !== "textarea") || (e.keyCode === 32 && (type === "checkbox" || type === "radio")) || type === "select-multiple" ) { return testChange.call( this, e ); } }, // Beforeactivate happens also before the previous element is blurred // with this event you can't trigger a change event, but you can store // information/focus[in] is not needed anymore beforeactivate: function( e ) { var elem = e.target; if ( elem.nodeName.toLowerCase() === "input" && elem.type === "radio" ) { jQuery.data( elem, "_change_data", getVal(elem) ); } } }, setup: function( data, namespaces, fn ) { for ( var type in changeFilters ) { jQuery.event.add( this, type + ".specialChange." + fn.guid, changeFilters[type] ); } return formElems.test( this.nodeName ); }, remove: function( namespaces, fn ) { for ( var type in changeFilters ) { jQuery.event.remove( this, type + ".specialChange" + (fn ? "."+fn.guid : ""), changeFilters[type] ); } return formElems.test( this.nodeName ); } }; var changeFilters = jQuery.event.special.change.filters; } function trigger( type, elem, args ) { args[0].type = type; return jQuery.event.handle.apply( elem, args ); } // Create "bubbling" focus and blur events if ( document.addEventListener ) { jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { jQuery.event.special[ fix ] = { setup: function() { this.addEventListener( orig, handler, true ); }, teardown: function() { this.removeEventListener( orig, handler, true ); } }; function handler( e ) { e = jQuery.event.fix( e ); e.type = fix; return jQuery.event.handle.call( this, e ); } }); } jQuery.each(["bind", "one"], function( i, name ) { jQuery.fn[ name ] = function( type, data, fn ) { // Handle object literals if ( typeof type === "object" ) { for ( var key in type ) { this[ name ](key, data, type[key], fn); } return this; } if ( jQuery.isFunction( data ) ) { thisObject = fn; fn = data; data = undefined; } var handler = name === "one" ? jQuery.proxy( fn, function( event ) { jQuery( this ).unbind( event, handler ); return fn.apply( this, arguments ); }) : fn; return type === "unload" && name !== "one" ? this.one( type, data, fn, thisObject ) : this.each(function() { jQuery.event.add( this, type, handler, data ); }); }; }); jQuery.fn.extend({ unbind: function( type, fn ) { // Handle object literals if ( typeof type === "object" && !type.preventDefault ) { for ( var key in type ) { this.unbind(key, type[key]); } return this; } return this.each(function() { jQuery.event.remove( this, type, fn ); }); }, trigger: function( type, data ) { return this.each(function() { jQuery.event.trigger( type, data, this ); }); }, triggerHandler: function( type, data ) { if ( this[0] ) { var event = jQuery.Event( type ); event.preventDefault(); event.stopPropagation(); jQuery.event.trigger( event, data, this[0] ); return event.result; } }, toggle: function( fn ) { // Save reference to arguments for access in closure var args = arguments, i = 1; // link all the functions, so any of them can unbind this click handler while ( i < args.length ) { jQuery.proxy( fn, args[ i++ ] ); } return this.click( jQuery.proxy( fn, function( event ) { // Figure out which function to execute var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i; jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 ); // Make sure that clicks stop event.preventDefault(); // and execute the function return args[ lastToggle ].apply( this, arguments ) || false; })); }, hover: function( fnOver, fnOut ) { return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); }, live: function( type, data, fn ) { if ( jQuery.isFunction( data ) ) { fn = data; data = undefined; } jQuery( this.context ).bind( liveConvert( type, this.selector ), { data: data, selector: this.selector, live: type }, fn ); return this; }, die: function( type, fn ) { jQuery( this.context ).unbind( liveConvert( type, this.selector ), fn ? { guid: fn.guid + this.selector + type } : null ); return this; } }); function liveHandler( event ) { var stop = true, elems = [], selectors = [], args = arguments, related, match, fn, elem, j, i, data, live = jQuery.extend({}, jQuery.data( this, "events" ).live); for ( j in live ) { fn = live[j]; if ( fn.live === event.type || fn.altLive && jQuery.inArray(event.type, fn.altLive) > -1 ) { data = fn.data; if ( !(data.beforeFilter && data.beforeFilter[event.type] && !data.beforeFilter[event.type](event)) ) { selectors.push( fn.selector ); } } else { delete live[j]; } } match = jQuery( event.target ).closest( selectors, event.currentTarget ); for ( i = 0, l = match.length; i < l; i++ ) { for ( j in live ) { fn = live[j]; elem = match[i].elem; related = null; if ( match[i].selector === fn.selector ) { // Those two events require additional checking if ( fn.live === "mouseenter" || fn.live === "mouseleave" ) { related = jQuery( event.relatedTarget ).closest( fn.selector )[0]; } if ( !related || related !== elem ) { elems.push({ elem: elem, fn: fn }); } } } } for ( i = 0, l = elems.length; i < l; i++ ) { match = elems[i]; event.currentTarget = match.elem; event.data = match.fn.data; if ( match.fn.apply( match.elem, args ) === false ) { stop = false; break; } } return stop; } function liveConvert( type, selector ) { return ["live", type, selector.replace(/\./g, "`").replace(/ /g, "&")].join("."); } jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + "change select submit keydown keypress keyup error").split(" "), function( i, name ) { // Handle event binding jQuery.fn[ name ] = function( fn ) { return fn ? this.bind( name, fn ) : this.trigger( name ); }; if ( jQuery.attrFn ) { jQuery.attrFn[ name ] = true; } }); // Prevent memory leaks in IE // Window isn't included so as not to unbind existing unload events // More info: // - http://isaacschlueter.com/2006/10/msie-memory-leaks/ if ( window.attachEvent && !window.addEventListener ) { window.attachEvent("onunload", function() { for ( var id in jQuery.cache ) { if ( jQuery.cache[ id ].handle ) { // Try/Catch is to handle iframes being unloaded, see #4280 try { jQuery.event.remove( jQuery.cache[ id ].handle.elem ); } catch(e) {} } } }); } /*! * Sizzle CSS Selector Engine - v1.0 * Copyright 2009, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * More information: http://sizzlejs.com/ */ (function(){ var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, done = 0, toString = Object.prototype.toString, hasDuplicate = false, baseHasDuplicate = true; // Here we check if the JavaScript engine is using some sort of // optimization where it does not always call our comparision // function. If that is the case, discard the hasDuplicate value. // Thus far that includes Google Chrome. [0, 0].sort(function(){ baseHasDuplicate = false; return 0; }); var Sizzle = function(selector, context, results, seed) { results = results || []; var origContext = context = context || document; if ( context.nodeType !== 1 && context.nodeType !== 9 ) { return []; } if ( !selector || typeof selector !== "string" ) { return results; } var parts = [], m, set, checkSet, extra, prune = true, contextXML = isXML(context), soFar = selector; // Reset the position of the chunker regexp (start from head) while ( (chunker.exec(""), m = chunker.exec(soFar)) !== null ) { soFar = m[3]; parts.push( m[1] ); if ( m[2] ) { extra = m[3]; break; } } if ( parts.length > 1 && origPOS.exec( selector ) ) { if ( parts.length === 2 && Expr.relative[ parts[0] ] ) { set = posProcess( parts[0] + parts[1], context ); } else { set = Expr.relative[ parts[0] ] ? [ context ] : Sizzle( parts.shift(), context ); while ( parts.length ) { selector = parts.shift(); if ( Expr.relative[ selector ] ) { selector += parts.shift(); } set = posProcess( selector, set ); } } } else { // Take a shortcut and set the context if the root selector is an ID // (but not if it'll be faster if the inner selector is an ID) if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML && Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) { var ret = Sizzle.find( parts.shift(), context, contextXML ); context = ret.expr ? Sizzle.filter( ret.expr, ret.set )[0] : ret.set[0]; } if ( context ) { var ret = seed ? { expr: parts.pop(), set: makeArray(seed) } : Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML ); set = ret.expr ? Sizzle.filter( ret.expr, ret.set ) : ret.set; if ( parts.length > 0 ) { checkSet = makeArray(set); } else { prune = false; } while ( parts.length ) { var cur = parts.pop(), pop = cur; if ( !Expr.relative[ cur ] ) { cur = ""; } else { pop = parts.pop(); } if ( pop == null ) { pop = context; } Expr.relative[ cur ]( checkSet, pop, contextXML ); } } else { checkSet = parts = []; } } if ( !checkSet ) { checkSet = set; } if ( !checkSet ) { throw "Syntax error, unrecognized expression: " + (cur || selector); } if ( toString.call(checkSet) === "[object Array]" ) { if ( !prune ) { results.push.apply( results, checkSet ); } else if ( context && context.nodeType === 1 ) { for ( var i = 0; checkSet[i] != null; i++ ) { if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) { results.push( set[i] ); } } } else { for ( var i = 0; checkSet[i] != null; i++ ) { if ( checkSet[i] && checkSet[i].nodeType === 1 ) { results.push( set[i] ); } } } } else { makeArray( checkSet, results ); } if ( extra ) { Sizzle( extra, origContext, results, seed ); Sizzle.uniqueSort( results ); } return results; }; Sizzle.uniqueSort = function(results){ if ( sortOrder ) { hasDuplicate = baseHasDuplicate; results.sort(sortOrder); if ( hasDuplicate ) { for ( var i = 1; i < results.length; i++ ) { if ( results[i] === results[i-1] ) { results.splice(i--, 1); } } } } return results; }; Sizzle.matches = function(expr, set){ return Sizzle(expr, null, null, set); }; Sizzle.find = function(expr, context, isXML){ var set, match; if ( !expr ) { return []; } for ( var i = 0, l = Expr.order.length; i < l; i++ ) { var type = Expr.order[i], match; if ( (match = Expr.leftMatch[ type ].exec( expr )) ) { var left = match[1]; match.splice(1,1); if ( left.substr( left.length - 1 ) !== "\\" ) { match[1] = (match[1] || "").replace(/\\/g, ""); set = Expr.find[ type ]( match, context, isXML ); if ( set != null ) { expr = expr.replace( Expr.match[ type ], "" ); break; } } } } if ( !set ) { set = context.getElementsByTagName("*"); } return {set: set, expr: expr}; }; Sizzle.filter = function(expr, set, inplace, not){ var old = expr, result = [], curLoop = set, match, anyFound, isXMLFilter = set && set[0] && isXML(set[0]); while ( expr && set.length ) { for ( var type in Expr.filter ) { if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) { var filter = Expr.filter[ type ], found, item, left = match[1]; anyFound = false; match.splice(1,1); if ( left.substr( left.length - 1 ) === "\\" ) { continue; } if ( curLoop === result ) { result = []; } if ( Expr.preFilter[ type ] ) { match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter ); if ( !match ) { anyFound = found = true; } else if ( match === true ) { continue; } } if ( match ) { for ( var i = 0; (item = curLoop[i]) != null; i++ ) { if ( item ) { found = filter( item, match, i, curLoop ); var pass = not ^ !!found; if ( inplace && found != null ) { if ( pass ) { anyFound = true; } else { curLoop[i] = false; } } else if ( pass ) { result.push( item ); anyFound = true; } } } } if ( found !== undefined ) { if ( !inplace ) { curLoop = result; } expr = expr.replace( Expr.match[ type ], "" ); if ( !anyFound ) { return []; } break; } } } // Improper expression if ( expr === old ) { if ( anyFound == null ) { throw "Syntax error, unrecognized expression: " + expr; } else { break; } } old = expr; } return curLoop; }; var Expr = Sizzle.selectors = { order: [ "ID", "NAME", "TAG" ], match: { ID: /#((?:[\w\u00c0-\uFFFF-]|\\.)+)/, CLASS: /\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/, NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/, ATTR: /\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/, TAG: /^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/, CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/, POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/, PSEUDO: /:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/ }, leftMatch: {}, attrMap: { "class": "className", "for": "htmlFor" }, attrHandle: { href: function(elem){ return elem.getAttribute("href"); } }, relative: { "+": function(checkSet, part){ var isPartStr = typeof part === "string", isTag = isPartStr && !/\W/.test(part), isPartStrNotTag = isPartStr && !isTag; if ( isTag ) { part = part.toLowerCase(); } for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) { if ( (elem = checkSet[i]) ) { while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {} checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ? elem || false : elem === part; } } if ( isPartStrNotTag ) { Sizzle.filter( part, checkSet, true ); } }, ">": function(checkSet, part){ var isPartStr = typeof part === "string"; if ( isPartStr && !/\W/.test(part) ) { part = part.toLowerCase(); for ( var i = 0, l = checkSet.length; i < l; i++ ) { var elem = checkSet[i]; if ( elem ) { var parent = elem.parentNode; checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false; } } } else { for ( var i = 0, l = checkSet.length; i < l; i++ ) { var elem = checkSet[i]; if ( elem ) { checkSet[i] = isPartStr ? elem.parentNode : elem.parentNode === part; } } if ( isPartStr ) { Sizzle.filter( part, checkSet, true ); } } }, "": function(checkSet, part, isXML){ var doneName = done++, checkFn = dirCheck; if ( typeof part === "string" && !/\W/.test(part) ) { var nodeCheck = part = part.toLowerCase(); checkFn = dirNodeCheck; } checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML); }, "~": function(checkSet, part, isXML){ var doneName = done++, checkFn = dirCheck; if ( typeof part === "string" && !/\W/.test(part) ) { var nodeCheck = part = part.toLowerCase(); checkFn = dirNodeCheck; } checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML); } }, find: { ID: function(match, context, isXML){ if ( typeof context.getElementById !== "undefined" && !isXML ) { var m = context.getElementById(match[1]); return m ? [m] : []; } }, NAME: function(match, context){ if ( typeof context.getElementsByName !== "undefined" ) { var ret = [], results = context.getElementsByName(match[1]); for ( var i = 0, l = results.length; i < l; i++ ) { if ( results[i].getAttribute("name") === match[1] ) { ret.push( results[i] ); } } return ret.length === 0 ? null : ret; } }, TAG: function(match, context){ return context.getElementsByTagName(match[1]); } }, preFilter: { CLASS: function(match, curLoop, inplace, result, not, isXML){ match = " " + match[1].replace(/\\/g, "") + " "; if ( isXML ) { return match; } for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) { if ( elem ) { if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n]/g, " ").indexOf(match) >= 0) ) { if ( !inplace ) { result.push( elem ); } } else if ( inplace ) { curLoop[i] = false; } } } return false; }, ID: function(match){ return match[1].replace(/\\/g, ""); }, TAG: function(match, curLoop){ return match[1].toLowerCase(); }, CHILD: function(match){ if ( match[1] === "nth" ) { // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6' var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec( match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" || !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]); // calculate the numbers (first)n+(last) including if they are negative match[2] = (test[1] + (test[2] || 1)) - 0; match[3] = test[3] - 0; } // TODO: Move to normal caching system match[0] = done++; return match; }, ATTR: function(match, curLoop, inplace, result, not, isXML){ var name = match[1].replace(/\\/g, ""); if ( !isXML && Expr.attrMap[name] ) { match[1] = Expr.attrMap[name]; } if ( match[2] === "~=" ) { match[4] = " " + match[4] + " "; } return match; }, PSEUDO: function(match, curLoop, inplace, result, not){ if ( match[1] === "not" ) { // If we're dealing with a complex expression, or a simple one if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) { match[3] = Sizzle(match[3], null, null, curLoop); } else { var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not); if ( !inplace ) { result.push.apply( result, ret ); } return false; } } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) { return true; } return match; }, POS: function(match){ match.unshift( true ); return match; } }, filters: { enabled: function(elem){ return elem.disabled === false && elem.type !== "hidden"; }, disabled: function(elem){ return elem.disabled === true; }, checked: function(elem){ return elem.checked === true; }, selected: function(elem){ // Accessing this property makes selected-by-default // options in Safari work properly elem.parentNode.selectedIndex; return elem.selected === true; }, parent: function(elem){ return !!elem.firstChild; }, empty: function(elem){ return !elem.firstChild; }, has: function(elem, i, match){ return !!Sizzle( match[3], elem ).length; }, header: function(elem){ return /h\d/i.test( elem.nodeName ); }, text: function(elem){ return "text" === elem.type; }, radio: function(elem){ return "radio" === elem.type; }, checkbox: function(elem){ return "checkbox" === elem.type; }, file: function(elem){ return "file" === elem.type; }, password: function(elem){ return "password" === elem.type; }, submit: function(elem){ return "submit" === elem.type; }, image: function(elem){ return "image" === elem.type; }, reset: function(elem){ return "reset" === elem.type; }, button: function(elem){ return "button" === elem.type || elem.nodeName.toLowerCase() === "button"; }, input: function(elem){ return /input|select|textarea|button/i.test(elem.nodeName); } }, setFilters: { first: function(elem, i){ return i === 0; }, last: function(elem, i, match, array){ return i === array.length - 1; }, even: function(elem, i){ return i % 2 === 0; }, odd: function(elem, i){ return i % 2 === 1; }, lt: function(elem, i, match){ return i < match[3] - 0; }, gt: function(elem, i, match){ return i > match[3] - 0; }, nth: function(elem, i, match){ return match[3] - 0 === i; }, eq: function(elem, i, match){ return match[3] - 0 === i; } }, filter: { PSEUDO: function(elem, match, i, array){ var name = match[1], filter = Expr.filters[ name ]; if ( filter ) { return filter( elem, i, match, array ); } else if ( name === "contains" ) { return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0; } else if ( name === "not" ) { var not = match[3]; for ( var i = 0, l = not.length; i < l; i++ ) { if ( not[i] === elem ) { return false; } } return true; } else { throw "Syntax error, unrecognized expression: " + name; } }, CHILD: function(elem, match){ var type = match[1], node = elem; switch (type) { case 'only': case 'first': while ( (node = node.previousSibling) ) { if ( node.nodeType === 1 ) { return false; } } if ( type === "first" ) { return true; } node = elem; case 'last': while ( (node = node.nextSibling) ) { if ( node.nodeType === 1 ) { return false; } } return true; case 'nth': var first = match[2], last = match[3]; if ( first === 1 && last === 0 ) { return true; } var doneName = match[0], parent = elem.parentNode; if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) { var count = 0; for ( node = parent.firstChild; node; node = node.nextSibling ) { if ( node.nodeType === 1 ) { node.nodeIndex = ++count; } } parent.sizcache = doneName; } var diff = elem.nodeIndex - last; if ( first === 0 ) { return diff === 0; } else { return ( diff % first === 0 && diff / first >= 0 ); } } }, ID: function(elem, match){ return elem.nodeType === 1 && elem.getAttribute("id") === match; }, TAG: function(elem, match){ return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match; }, CLASS: function(elem, match){ return (" " + (elem.className || elem.getAttribute("class")) + " ") .indexOf( match ) > -1; }, ATTR: function(elem, match){ var name = match[1], result = Expr.attrHandle[ name ] ? Expr.attrHandle[ name ]( elem ) : elem[ name ] != null ? elem[ name ] : elem.getAttribute( name ), value = result + "", type = match[2], check = match[4]; return result == null ? type === "!=" : type === "=" ? value === check : type === "*=" ? value.indexOf(check) >= 0 : type === "~=" ? (" " + value + " ").indexOf(check) >= 0 : !check ? value && result !== false : type === "!=" ? value !== check : type === "^=" ? value.indexOf(check) === 0 : type === "$=" ? value.substr(value.length - check.length) === check : type === "|=" ? value === check || value.substr(0, check.length + 1) === check + "-" : false; }, POS: function(elem, match, i, array){ var name = match[2], filter = Expr.setFilters[ name ]; if ( filter ) { return filter( elem, i, match, array ); } } } }; var origPOS = Expr.match.POS; for ( var type in Expr.match ) { Expr.match[ type ] = new RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source ); Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, function(all, num){ return "\\" + (num - 0 + 1); })); } var makeArray = function(array, results) { array = Array.prototype.slice.call( array, 0 ); if ( results ) { results.push.apply( results, array ); return results; } return array; }; // Perform a simple check to determine if the browser is capable of // converting a NodeList to an array using builtin methods. try { Array.prototype.slice.call( document.documentElement.childNodes, 0 ); // Provide a fallback method if it does not work } catch(e){ makeArray = function(array, results) { var ret = results || []; if ( toString.call(array) === "[object Array]" ) { Array.prototype.push.apply( ret, array ); } else { if ( typeof array.length === "number" ) { for ( var i = 0, l = array.length; i < l; i++ ) { ret.push( array[i] ); } } else { for ( var i = 0; array[i]; i++ ) { ret.push( array[i] ); } } } return ret; }; } var sortOrder; if ( document.documentElement.compareDocumentPosition ) { sortOrder = function( a, b ) { if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) { if ( a == b ) { hasDuplicate = true; } return a.compareDocumentPosition ? -1 : 1; } var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1; if ( ret === 0 ) { hasDuplicate = true; } return ret; }; } else if ( "sourceIndex" in document.documentElement ) { sortOrder = function( a, b ) { if ( !a.sourceIndex || !b.sourceIndex ) { if ( a == b ) { hasDuplicate = true; } return a.sourceIndex ? -1 : 1; } var ret = a.sourceIndex - b.sourceIndex; if ( ret === 0 ) { hasDuplicate = true; } return ret; }; } else if ( document.createRange ) { sortOrder = function( a, b ) { if ( !a.ownerDocument || !b.ownerDocument ) { if ( a == b ) { hasDuplicate = true; } return a.ownerDocument ? -1 : 1; } var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange(); aRange.setStart(a, 0); aRange.setEnd(a, 0); bRange.setStart(b, 0); bRange.setEnd(b, 0); var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange); if ( ret === 0 ) { hasDuplicate = true; } return ret; }; } // Utility function for retreiving the text value of an array of DOM nodes function getText( elems ) { var ret = "", elem; for ( var i = 0; elems[i]; i++ ) { elem = elems[i]; // Get the text from text nodes and CDATA nodes if ( elem.nodeType === 3 || elem.nodeType === 4 ) { ret += elem.nodeValue; // Traverse everything else, except comment nodes } else if ( elem.nodeType !== 8 ) { ret += getText( elem.childNodes ); } } return ret; } // Check to see if the browser returns elements by name when // querying by getElementById (and provide a workaround) (function(){ // We're going to inject a fake input element with a specified name var form = document.createElement("div"), id = "script" + (new Date).getTime(); form.innerHTML = "<a name='" + id + "'/>"; // Inject it into the root element, check its status, and remove it quickly var root = document.documentElement; root.insertBefore( form, root.firstChild ); // The workaround has to do additional checks after a getElementById // Which slows things down for other browsers (hence the branching) if ( document.getElementById( id ) ) { Expr.find.ID = function(match, context, isXML){ if ( typeof context.getElementById !== "undefined" && !isXML ) { var m = context.getElementById(match[1]); return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : []; } }; Expr.filter.ID = function(elem, match){ var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id"); return elem.nodeType === 1 && node && node.nodeValue === match; }; } root.removeChild( form ); root = form = null; // release memory in IE })(); (function(){ // Check to see if the browser returns only elements // when doing getElementsByTagName("*") // Create a fake element var div = document.createElement("div"); div.appendChild( document.createComment("") ); // Make sure no comments are found if ( div.getElementsByTagName("*").length > 0 ) { Expr.find.TAG = function(match, context){ var results = context.getElementsByTagName(match[1]); // Filter out possible comments if ( match[1] === "*" ) { var tmp = []; for ( var i = 0; results[i]; i++ ) { if ( results[i].nodeType === 1 ) { tmp.push( results[i] ); } } results = tmp; } return results; }; } // Check to see if an attribute returns normalized href attributes div.innerHTML = "<a href='#'></a>"; if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" && div.firstChild.getAttribute("href") !== "#" ) { Expr.attrHandle.href = function(elem){ return elem.getAttribute("href", 2); }; } div = null; // release memory in IE })(); if ( document.querySelectorAll ) { (function(){ var oldSizzle = Sizzle, div = document.createElement("div"); div.innerHTML = "<p class='TEST'></p>"; // Safari can't handle uppercase or unicode characters when // in quirks mode. if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) { return; } Sizzle = function(query, context, extra, seed){ context = context || document; // Only use querySelectorAll on non-XML documents // (ID selectors don't work in non-HTML documents) if ( !seed && context.nodeType === 9 && !isXML(context) ) { try { return makeArray( context.querySelectorAll(query), extra ); } catch(e){} } return oldSizzle(query, context, extra, seed); }; for ( var prop in oldSizzle ) { Sizzle[ prop ] = oldSizzle[ prop ]; } div = null; // release memory in IE })(); } (function(){ var div = document.createElement("div"); div.innerHTML = "<div class='test e'></div><div class='test'></div>"; // Opera can't find a second classname (in 9.6) // Also, make sure that getElementsByClassName actually exists if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) { return; } // Safari caches class attributes, doesn't catch changes (in 3.2) div.lastChild.className = "e"; if ( div.getElementsByClassName("e").length === 1 ) { return; } Expr.order.splice(1, 0, "CLASS"); Expr.find.CLASS = function(match, context, isXML) { if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) { return context.getElementsByClassName(match[1]); } }; div = null; // release memory in IE })(); function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { for ( var i = 0, l = checkSet.length; i < l; i++ ) { var elem = checkSet[i]; if ( elem ) { elem = elem[dir]; var match = false; while ( elem ) { if ( elem.sizcache === doneName ) { match = checkSet[elem.sizset]; break; } if ( elem.nodeType === 1 && !isXML ){ elem.sizcache = doneName; elem.sizset = i; } if ( elem.nodeName.toLowerCase() === cur ) { match = elem; break; } elem = elem[dir]; } checkSet[i] = match; } } } function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { for ( var i = 0, l = checkSet.length; i < l; i++ ) { var elem = checkSet[i]; if ( elem ) { elem = elem[dir]; var match = false; while ( elem ) { if ( elem.sizcache === doneName ) { match = checkSet[elem.sizset]; break; } if ( elem.nodeType === 1 ) { if ( !isXML ) { elem.sizcache = doneName; elem.sizset = i; } if ( typeof cur !== "string" ) { if ( elem === cur ) { match = true; break; } } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) { match = elem; break; } } elem = elem[dir]; } checkSet[i] = match; } } } var contains = document.compareDocumentPosition ? function(a, b){ return a.compareDocumentPosition(b) & 16; } : function(a, b){ return a !== b && (a.contains ? a.contains(b) : true); }; var isXML = function(elem){ // documentElement is verified for cases where it doesn't yet exist // (such as loading iframes in IE - #4833) var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement; return documentElement ? documentElement.nodeName !== "HTML" : false; }; var posProcess = function(selector, context){ var tmpSet = [], later = "", match, root = context.nodeType ? [context] : context; // Position selectors must be done after the filter // And so must :not(positional) so we move all PSEUDOs to the end while ( (match = Expr.match.PSEUDO.exec( selector )) ) { later += match[0]; selector = selector.replace( Expr.match.PSEUDO, "" ); } selector = Expr.relative[selector] ? selector + "*" : selector; for ( var i = 0, l = root.length; i < l; i++ ) { Sizzle( selector, root[i], tmpSet ); } return Sizzle.filter( later, tmpSet ); }; // EXPOSE jQuery.find = Sizzle; jQuery.expr = Sizzle.selectors; jQuery.expr[":"] = jQuery.expr.filters; jQuery.unique = Sizzle.uniqueSort; jQuery.getText = getText; jQuery.isXMLDoc = isXML; jQuery.contains = contains; return; window.Sizzle = Sizzle; })(); var runtil = /Until$/, rparentsprev = /^(?:parents|prevUntil|prevAll)/, // Note: This RegExp should be improved, or likely pulled from Sizzle rmultiselector = /,/, slice = Array.prototype.slice; // Implement the identical functionality for filter and not var winnow = function( elements, qualifier, keep ) { if ( jQuery.isFunction( qualifier ) ) { return jQuery.grep(elements, function( elem, i ) { return !!qualifier.call( elem, i, elem ) === keep; }); } else if ( qualifier.nodeType ) { return jQuery.grep(elements, function( elem, i ) { return (elem === qualifier) === keep; }); } else if ( typeof qualifier === "string" ) { var filtered = jQuery.grep(elements, function( elem ) { return elem.nodeType === 1; }); if ( isSimple.test( qualifier ) ) { return jQuery.filter(qualifier, filtered, !keep); } else { qualifier = jQuery.filter( qualifier, elements ); } } return jQuery.grep(elements, function( elem, i ) { return (jQuery.inArray( elem, qualifier ) >= 0) === keep; }); }; jQuery.fn.extend({ find: function( selector ) { var ret = this.pushStack( "", "find", selector ), length = 0; for ( var i = 0, l = this.length; i < l; i++ ) { length = ret.length; jQuery.find( selector, this[i], ret ); if ( i > 0 ) { // Make sure that the results are unique for ( var n = length; n < ret.length; n++ ) { for ( var r = 0; r < length; r++ ) { if ( ret[r] === ret[n] ) { ret.splice(n--, 1); break; } } } } } return ret; }, has: function( target ) { var targets = jQuery( target ); return this.filter(function() { for ( var i = 0, l = targets.length; i < l; i++ ) { if ( jQuery.contains( this, targets[i] ) ) { return true; } } }); }, not: function( selector ) { return this.pushStack( winnow(this, selector, false), "not", selector); }, filter: function( selector ) { return this.pushStack( winnow(this, selector, true), "filter", selector ); }, is: function( selector ) { return !!selector && jQuery.filter( selector, this ).length > 0; }, closest: function( selectors, context ) { if ( jQuery.isArray( selectors ) ) { var ret = [], cur = this[0], match, matches = {}, selector; if ( cur && selectors.length ) { for ( var i = 0, l = selectors.length; i < l; i++ ) { selector = selectors[i]; if ( !matches[selector] ) { matches[selector] = jQuery.expr.match.POS.test( selector ) ? jQuery( selector, context || this.context ) : selector; } } while ( cur && cur.ownerDocument && cur !== context ) { for ( selector in matches ) { match = matches[selector]; if ( match.jquery ? match.index(cur) > -1 : jQuery(cur).is(match) ) { ret.push({ selector: selector, elem: cur }); delete matches[selector]; } } cur = cur.parentNode; } } return ret; } var pos = jQuery.expr.match.POS.test( selectors ) ? jQuery( selectors, context || this.context ) : null; return this.map(function( i, cur ) { while ( cur && cur.ownerDocument && cur !== context ) { if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selectors) ) { return cur; } cur = cur.parentNode; } return null; }); }, // Determine the position of an element within // the matched set of elements index: function( elem ) { if ( !elem || typeof elem === "string" ) { return jQuery.inArray( this[0], // If it receives a string, the selector is used // If it receives nothing, the siblings are used elem ? jQuery( elem ) : this.parent().children() ); } // Locate the position of the desired element return jQuery.inArray( // If it receives a jQuery object, the first element is used elem.jquery ? elem[0] : elem, this ); }, add: function( selector, context ) { var set = typeof selector === "string" ? jQuery( selector, context || this.context ) : jQuery.makeArray( selector ), all = jQuery.merge( this.get(), set ); return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ? all : jQuery.unique( all ) ); }, andSelf: function() { return this.add( this.prevObject ); } }); // A painfully simple check to see if an element is disconnected // from a document (should be improved, where feasible). function isDisconnected( node ) { return !node || !node.parentNode || node.parentNode.nodeType === 11; } jQuery.each({ parent: function( elem ) { var parent = elem.parentNode; return parent && parent.nodeType !== 11 ? parent : null; }, parents: function( elem ) { return jQuery.dir( elem, "parentNode" ); }, parentsUntil: function( elem, i, until ) { return jQuery.dir( elem, "parentNode", until ); }, next: function( elem ) { return jQuery.nth( elem, 2, "nextSibling" ); }, prev: function( elem ) { return jQuery.nth( elem, 2, "previousSibling" ); }, nextAll: function( elem ) { return jQuery.dir( elem, "nextSibling" ); }, prevAll: function( elem ) { return jQuery.dir( elem, "previousSibling" ); }, nextUntil: function( elem, i, until ) { return jQuery.dir( elem, "nextSibling", until ); }, prevUntil: function( elem, i, until ) { return jQuery.dir( elem, "previousSibling", until ); }, siblings: function( elem ) { return jQuery.sibling( elem.parentNode.firstChild, elem ); }, children: function( elem ) { return jQuery.sibling( elem.firstChild ); }, contents: function( elem ) { return jQuery.nodeName( elem, "iframe" ) ? elem.contentDocument || elem.contentWindow.document : jQuery.makeArray( elem.childNodes ); } }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { var ret = jQuery.map( this, fn, until ); if ( !runtil.test( name ) ) { selector = until; } if ( selector && typeof selector === "string" ) { ret = jQuery.filter( selector, ret ); } ret = this.length > 1 ? jQuery.unique( ret ) : ret; if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { ret = ret.reverse(); } return this.pushStack( ret, name, slice.call(arguments).join(",") ); }; }); jQuery.extend({ filter: function( expr, elems, not ) { if ( not ) { expr = ":not(" + expr + ")"; } return jQuery.find.matches(expr, elems); }, dir: function( elem, dir, until ) { var matched = [], cur = elem[dir]; while ( cur && cur.nodeType !== 9 && (until === undefined || !jQuery( cur ).is( until )) ) { if ( cur.nodeType === 1 ) { matched.push( cur ); } cur = cur[dir]; } return matched; }, nth: function( cur, result, dir, elem ) { result = result || 1; var num = 0; for ( ; cur; cur = cur[dir] ) { if ( cur.nodeType === 1 && ++num === result ) { break; } } return cur; }, sibling: function( n, elem ) { var r = []; for ( ; n; n = n.nextSibling ) { if ( n.nodeType === 1 && n !== elem ) { r.push( n ); } } return r; } }); var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, rleadingWhitespace = /^\s+/, rxhtmlTag = /(<([\w:]+)[^>]*?)\/>/g, rselfClosing = /^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i, rtagName = /<([\w:]+)/, rtbody = /<tbody/i, rhtml = /<|&\w+;/, fcloseTag = function( all, front, tag ) { return rselfClosing.test( tag ) ? all : front + "></" + tag + ">"; }, wrapMap = { option: [ 1, "<select multiple='multiple'>", "</select>" ], legend: [ 1, "<fieldset>", "</fieldset>" ], thead: [ 1, "<table>", "</table>" ], tr: [ 2, "<table><tbody>", "</tbody></table>" ], td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ], col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ], area: [ 1, "<map>", "</map>" ], _default: [ 0, "", "" ] }; wrapMap.optgroup = wrapMap.option; wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; wrapMap.th = wrapMap.td; // IE can't serialize <link> and <script> tags normally if ( !jQuery.support.htmlSerialize ) { wrapMap._default = [ 1, "div<div>", "</div>" ]; } jQuery.fn.extend({ text: function( text ) { if ( jQuery.isFunction(text) ) { return this.each(function(i) { var self = jQuery(this); return self.text( text.call(this, i, self.text()) ); }); } if ( typeof text !== "object" && text !== undefined ) { return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) ); } return jQuery.getText( this ); }, wrapAll: function( html ) { if ( jQuery.isFunction( html ) ) { return this.each(function(i) { jQuery(this).wrapAll( html.call(this, i) ); }); } if ( this[0] ) { // The elements to wrap the target around var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true); if ( this[0].parentNode ) { wrap.insertBefore( this[0] ); } wrap.map(function() { var elem = this; while ( elem.firstChild && elem.firstChild.nodeType === 1 ) { elem = elem.firstChild; } return elem; }).append(this); } return this; }, wrapInner: function( html ) { return this.each(function() { var self = jQuery( this ), contents = self.contents(); if ( contents.length ) { contents.wrapAll( html ); } else { self.append( html ); } }); }, wrap: function( html ) { return this.each(function() { jQuery( this ).wrapAll( html ); }); }, unwrap: function() { return this.parent().each(function() { if ( !jQuery.nodeName( this, "body" ) ) { jQuery( this ).replaceWith( this.childNodes ); } }).end(); }, append: function() { return this.domManip(arguments, true, function( elem ) { if ( this.nodeType === 1 ) { this.appendChild( elem ); } }); }, prepend: function() { return this.domManip(arguments, true, function( elem ) { if ( this.nodeType === 1 ) { this.insertBefore( elem, this.firstChild ); } }); }, before: function() { if ( this[0] && this[0].parentNode ) { return this.domManip(arguments, false, function( elem ) { this.parentNode.insertBefore( elem, this ); }); } else if ( arguments.length ) { var set = jQuery(arguments[0]); set.push.apply( set, this.toArray() ); return this.pushStack( set, "before", arguments ); } }, after: function() { if ( this[0] && this[0].parentNode ) { return this.domManip(arguments, false, function( elem ) { this.parentNode.insertBefore( elem, this.nextSibling ); }); } else if ( arguments.length ) { var set = this.pushStack( this, "after", arguments ); set.push.apply( set, jQuery(arguments[0]).toArray() ); return set; } }, clone: function( events ) { // Do the clone var ret = this.map(function() { if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { // IE copies events bound via attachEvent when // using cloneNode. Calling detachEvent on the // clone will also remove the events from the orignal // In order to get around this, we use innerHTML. // Unfortunately, this means some modifications to // attributes in IE that are actually only stored // as properties will not be copied (such as the // the name attribute on an input). var html = this.outerHTML, ownerDocument = this.ownerDocument; if ( !html ) { var div = ownerDocument.createElement("div"); div.appendChild( this.cloneNode(true) ); html = div.innerHTML; } return jQuery.clean([html.replace(rinlinejQuery, "") .replace(rleadingWhitespace, "")], ownerDocument)[0]; } else { return this.cloneNode(true); } }); // Copy the events from the original to the clone if ( events === true ) { cloneCopyEvent( this, ret ); cloneCopyEvent( this.find("*"), ret.find("*") ); } // Return the cloned set return ret; }, html: function( value ) { if ( value === undefined ) { return this[0] && this[0].nodeType === 1 ? this[0].innerHTML.replace(rinlinejQuery, "") : null; // See if we can take a shortcut and just use innerHTML } else if ( typeof value === "string" && !/<script/i.test( value ) && (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) && !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) { try { for ( var i = 0, l = this.length; i < l; i++ ) { // Remove element nodes and prevent memory leaks if ( this[i].nodeType === 1 ) { cleanData( this[i].getElementsByTagName("*") ); this[i].innerHTML = value; } } // If using innerHTML throws an exception, use the fallback method } catch(e) { this.empty().append( value ); } } else if ( jQuery.isFunction( value ) ) { this.each(function(i){ var self = jQuery(this), old = self.html(); self.empty().append(function(){ return value.call( this, i, old ); }); }); } else { this.empty().append( value ); } return this; }, replaceWith: function( value ) { if ( this[0] && this[0].parentNode ) { // Make sure that the elements are removed from the DOM before they are inserted // this can help fix replacing a parent with child elements if ( !jQuery.isFunction( value ) ) { value = jQuery( value ).detach(); } return this.each(function() { var next = this.nextSibling, parent = this.parentNode; jQuery(this).remove(); if ( next ) { jQuery(next).before( value ); } else { jQuery(parent).append( value ); } }); } else { return this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ); } }, detach: function( selector ) { return this.remove( selector, true ); }, domManip: function( args, table, callback ) { var results, first, value = args[0], scripts = []; if ( jQuery.isFunction(value) ) { return this.each(function(i) { var self = jQuery(this); args[0] = value.call(this, i, table ? self.html() : undefined); return self.domManip( args, table, callback ); }); } if ( this[0] ) { // If we're in a fragment, just use that instead of building a new one if ( args[0] && args[0].parentNode && args[0].parentNode.nodeType === 11 ) { results = { fragment: args[0].parentNode }; } else { results = buildFragment( args, this, scripts ); } first = results.fragment.firstChild; if ( first ) { table = table && jQuery.nodeName( first, "tr" ); for ( var i = 0, l = this.length; i < l; i++ ) { callback.call( table ? root(this[i], first) : this[i], results.cacheable || this.length > 1 || i > 0 ? results.fragment.cloneNode(true) : results.fragment ); } } if ( scripts ) { jQuery.each( scripts, evalScript ); } } return this; function root( elem, cur ) { return jQuery.nodeName(elem, "table") ? (elem.getElementsByTagName("tbody")[0] || elem.appendChild(elem.ownerDocument.createElement("tbody"))) : elem; } } }); function cloneCopyEvent(orig, ret) { var i = 0; ret.each(function() { if ( this.nodeName !== (orig[i] && orig[i].nodeName) ) { return; } var oldData = jQuery.data( orig[i++] ), curData = jQuery.data( this, oldData ), events = oldData && oldData.events; if ( events ) { delete curData.handle; curData.events = {}; for ( var type in events ) { for ( var handler in events[ type ] ) { jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); } } } }); } function buildFragment( args, nodes, scripts ) { var fragment, cacheable, cached, cacheresults, doc; if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && args[0].indexOf("<option") < 0 ) { cacheable = true; cacheresults = jQuery.fragments[ args[0] ]; if ( cacheresults ) { if ( cacheresults !== 1 ) { fragment = cacheresults; } cached = true; } } if ( !fragment ) { doc = (nodes && nodes[0] ? nodes[0].ownerDocument || nodes[0] : document); fragment = doc.createDocumentFragment(); jQuery.clean( args, doc, fragment, scripts ); } if ( cacheable ) { jQuery.fragments[ args[0] ] = cacheresults ? fragment : 1; } return { fragment: fragment, cacheable: cacheable }; } jQuery.fragments = {}; jQuery.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function( name, original ) { jQuery.fn[ name ] = function( selector ) { var ret = [], insert = jQuery( selector ); for ( var i = 0, l = insert.length; i < l; i++ ) { var elems = (i > 0 ? this.clone(true) : this).get(); jQuery.fn[ original ].apply( jQuery(insert[i]), elems ); ret = ret.concat( elems ); } return this.pushStack( ret, name, insert.selector ); }; }); jQuery.each({ // keepData is for internal use only--do not document remove: function( selector, keepData ) { if ( !selector || jQuery.filter( selector, [ this ] ).length ) { if ( !keepData && this.nodeType === 1 ) { cleanData( this.getElementsByTagName("*") ); cleanData( [ this ] ); } if ( this.parentNode ) { this.parentNode.removeChild( this ); } } }, empty: function() { // Remove element nodes and prevent memory leaks if ( this.nodeType === 1 ) { cleanData( this.getElementsByTagName("*") ); } // Remove any remaining nodes while ( this.firstChild ) { this.removeChild( this.firstChild ); } } }, function( name, fn ) { jQuery.fn[ name ] = function() { return this.each( fn, arguments ); }; }); jQuery.extend({ clean: function( elems, context, fragment, scripts ) { context = context || document; // !context.createElement fails in IE with an error but returns typeof 'object' if ( typeof context.createElement === "undefined" ) { context = context.ownerDocument || context[0] && context[0].ownerDocument || document; } var ret = []; jQuery.each(elems, function( i, elem ) { if ( typeof elem === "number" ) { elem += ""; } if ( !elem ) { return; } // Convert html string into DOM nodes if ( typeof elem === "string" && !rhtml.test( elem ) ) { elem = context.createTextNode( elem ); } else if ( typeof elem === "string" ) { // Fix "XHTML"-style tags in all browsers elem = elem.replace(rxhtmlTag, fcloseTag); // Trim whitespace, otherwise indexOf won't work as expected var tag = (rtagName.exec( elem ) || ["", ""])[1].toLowerCase(), wrap = wrapMap[ tag ] || wrapMap._default, depth = wrap[0], div = context.createElement("div"); // Go to html and back, then peel off extra wrappers div.innerHTML = wrap[1] + elem + wrap[2]; // Move to the right depth while ( depth-- ) { div = div.lastChild; } // Remove IE's autoinserted <tbody> from table fragments if ( !jQuery.support.tbody ) { // String was a <table>, *may* have spurious <tbody> var hasBody = rtbody.test(elem), tbody = tag === "table" && !hasBody ? div.firstChild && div.firstChild.childNodes : // String was a bare <thead> or <tfoot> wrap[1] === "<table>" && !hasBody ? div.childNodes : []; for ( var j = tbody.length - 1; j >= 0 ; --j ) { if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) { tbody[ j ].parentNode.removeChild( tbody[ j ] ); } } } // IE completely kills leading whitespace when innerHTML is used if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild ); } elem = jQuery.makeArray( div.childNodes ); } if ( elem.nodeType ) { ret.push( elem ); } else { ret = jQuery.merge( ret, elem ); } }); if ( fragment ) { for ( var i = 0; ret[i]; i++ ) { if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) { scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] ); } else { if ( ret[i].nodeType === 1 ) { ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) ); } fragment.appendChild( ret[i] ); } } } return ret; } }); function cleanData( elems ) { for ( var i = 0, elem, id; (elem = elems[i]) != null; i++ ) { if ( !jQuery.noData[elem.nodeName.toLowerCase()] && (id = elem[expando]) ) { delete jQuery.cache[ id ]; } } } // exclude the following css properties to add px var rexclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, ralpha = /alpha\([^)]*\)/, ropacity = /opacity=([^)]*)/, rfloat = /float/i, rdashAlpha = /-([a-z])/ig, rupper = /([A-Z])/g, rnumpx = /^-?\d+(?:px)?$/i, rnum = /^-?\d/, cssShow = { position: "absolute", visibility: "hidden", display:"block" }, cssWidth = [ "Left", "Right" ], cssHeight = [ "Top", "Bottom" ], // cache check for defaultView.getComputedStyle getComputedStyle = document.defaultView && document.defaultView.getComputedStyle, // normalize float css property styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat", fcamelCase = function( all, letter ) { return letter.toUpperCase(); }; jQuery.fn.css = function( name, value ) { return access( this, name, value, true, function( elem, name, value ) { if ( value === undefined ) { return jQuery.curCSS( elem, name ); } if ( typeof value === "number" && !rexclude.test(name) ) { value += "px"; } jQuery.style( elem, name, value ); }); }; jQuery.extend({ style: function( elem, name, value ) { // don't set styles on text and comment nodes if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) { return undefined; } // ignore negative width and height values #1599 if ( (name === "width" || name === "height") && parseFloat(value) < 0 ) { value = undefined; } var style = elem.style || elem, set = value !== undefined; // IE uses filters for opacity if ( !jQuery.support.opacity && name === "opacity" ) { if ( set ) { // IE has trouble with opacity if it does not have layout // Force it by setting the zoom level style.zoom = 1; // Set the alpha filter to set the opacity var opacity = parseInt( value, 10 ) + "" === "NaN" ? "" : "alpha(opacity=" + value * 100 + ")"; var filter = style.filter || jQuery.curCSS( elem, "filter" ) || ""; style.filter = ralpha.test(filter) ? filter.replace(ralpha, opacity) : opacity; } return style.filter && style.filter.indexOf("opacity=") >= 0 ? (parseFloat( ropacity.exec(style.filter)[1] ) / 100) + "": ""; } // Make sure we're using the right name for getting the float value if ( rfloat.test( name ) ) { name = styleFloat; } name = name.replace(rdashAlpha, fcamelCase); if ( set ) { style[ name ] = value; } return style[ name ]; }, css: function( elem, name, force, extra ) { if ( name === "width" || name === "height" ) { var val, props = cssShow, which = name === "width" ? cssWidth : cssHeight; function getWH() { val = name === "width" ? elem.offsetWidth : elem.offsetHeight; if ( extra === "border" ) { return; } jQuery.each( which, function() { if ( !extra ) { val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; } if ( extra === "margin" ) { val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; } else { val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; } }); } if ( elem.offsetWidth !== 0 ) { getWH(); } else { jQuery.swap( elem, props, getWH ); } return Math.max(0, Math.round(val)); } return jQuery.curCSS( elem, name, force ); }, curCSS: function( elem, name, force ) { var ret, style = elem.style, filter; // IE uses filters for opacity if ( !jQuery.support.opacity && name === "opacity" && elem.currentStyle ) { ret = ropacity.test(elem.currentStyle.filter || "") ? (parseFloat(RegExp.$1) / 100) + "" : ""; return ret === "" ? "1" : ret; } // Make sure we're using the right name for getting the float value if ( rfloat.test( name ) ) { name = styleFloat; } if ( !force && style && style[ name ] ) { ret = style[ name ]; } else if ( getComputedStyle ) { // Only "float" is needed here if ( rfloat.test( name ) ) { name = "float"; } name = name.replace( rupper, "-$1" ).toLowerCase(); var defaultView = elem.ownerDocument.defaultView; if ( !defaultView ) { return null; } var computedStyle = defaultView.getComputedStyle( elem, null ); if ( computedStyle ) { ret = computedStyle.getPropertyValue( name ); } // We should always get a number back from opacity if ( name === "opacity" && ret === "" ) { ret = "1"; } } else if ( elem.currentStyle ) { var camelCase = name.replace(rdashAlpha, fcamelCase); ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; // From the awesome hack by Dean Edwards // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 // If we're not dealing with a regular pixel number // but a number that has a weird ending, we need to convert it to pixels if ( !rnumpx.test( ret ) && rnum.test( ret ) ) { // Remember the original values var left = style.left, rsLeft = elem.runtimeStyle.left; // Put in the new values to get a computed value out elem.runtimeStyle.left = elem.currentStyle.left; style.left = camelCase === "fontSize" ? "1em" : (ret || 0); ret = style.pixelLeft + "px"; // Revert the changed values style.left = left; elem.runtimeStyle.left = rsLeft; } } return ret; }, // A method for quickly swapping in/out CSS properties to get correct calculations swap: function( elem, options, callback ) { var old = {}; // Remember the old values, and insert the new ones for ( var name in options ) { old[ name ] = elem.style[ name ]; elem.style[ name ] = options[ name ]; } callback.call( elem ); // Revert the old values for ( var name in options ) { elem.style[ name ] = old[ name ]; } } }); if ( jQuery.expr && jQuery.expr.filters ) { jQuery.expr.filters.hidden = function( elem ) { var width = elem.offsetWidth, height = elem.offsetHeight, skip = elem.nodeName.toLowerCase() === "tr"; return width === 0 && height === 0 && !skip ? true : width > 0 && height > 0 && !skip ? false : jQuery.curCSS(elem, "display") === "none"; }; jQuery.expr.filters.visible = function( elem ) { return !jQuery.expr.filters.hidden( elem ); }; } var jsc = now(), rscript = /<script(.|\s)*?\/script>/gi, rselectTextarea = /select|textarea/i, rinput = /color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i, jsre = /=\?(&|$)/, rquery = /\?/, rts = /(\?|&)_=.*?(&|$)/, rurl = /^(\w+:)?\/\/([^\/?#]+)/, r20 = /%20/g; jQuery.fn.extend({ // Keep a copy of the old load _load: jQuery.fn.load, load: function( url, params, callback ) { if ( typeof url !== "string" ) { return this._load( url ); // Don't do a request if no elements are being requested } else if ( !this.length ) { return this; } var off = url.indexOf(" "); if ( off >= 0 ) { var selector = url.slice(off, url.length); url = url.slice(0, off); } // Default to a GET request var type = "GET"; // If the second parameter was provided if ( params ) { // If it's a function if ( jQuery.isFunction( params ) ) { // We assume that it's the callback callback = params; params = null; // Otherwise, build a param string } else if ( typeof params === "object" ) { params = jQuery.param( params, jQuery.ajaxSettings.traditional ); type = "POST"; } } // Request the remote document jQuery.ajax({ url: url, type: type, dataType: "html", data: params, context:this, complete: function( res, status ) { // If successful, inject the HTML into all the matched elements if ( status === "success" || status === "notmodified" ) { // See if a selector was specified this.html( selector ? // Create a dummy div to hold the results jQuery("<div />") // inject the contents of the document in, removing the scripts // to avoid any 'Permission Denied' errors in IE .append(res.responseText.replace(rscript, "")) // Locate the specified elements .find(selector) : // If not, just inject the full result res.responseText ); } if ( callback ) { this.each( callback, [res.responseText, status, res] ); } } }); return this; }, serialize: function() { return jQuery.param(this.serializeArray()); }, serializeArray: function() { return this.map(function() { return this.elements ? jQuery.makeArray(this.elements) : this; }) .filter(function() { return this.name && !this.disabled && (this.checked || rselectTextarea.test(this.nodeName) || rinput.test(this.type)); }) .map(function( i, elem ) { var val = jQuery(this).val(); return val == null ? null : jQuery.isArray(val) ? jQuery.map( val, function( val, i ) { return { name: elem.name, value: val }; }) : { name: elem.name, value: val }; }).get(); } }); // Attach a bunch of functions for handling common AJAX events jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function( i, o ) { jQuery.fn[o] = function( f ) { return this.bind(o, f); }; }); jQuery.extend({ get: function( url, data, callback, type ) { // shift arguments if data argument was omited if ( jQuery.isFunction( data ) ) { type = type || callback; callback = data; data = null; } return jQuery.ajax({ type: "GET", url: url, data: data, success: callback, dataType: type }); }, getScript: function( url, callback ) { return jQuery.get(url, null, callback, "script"); }, getJSON: function( url, data, callback ) { return jQuery.get(url, data, callback, "json"); }, post: function( url, data, callback, type ) { // shift arguments if data argument was omited if ( jQuery.isFunction( data ) ) { type = type || callback; callback = data; data = {}; } return jQuery.ajax({ type: "POST", url: url, data: data, success: callback, dataType: type }); }, ajaxSetup: function( settings ) { jQuery.extend( jQuery.ajaxSettings, settings ); }, ajaxSettings: { url: location.href, global: true, type: "GET", contentType: "application/x-www-form-urlencoded", processData: true, async: true, /* timeout: 0, data: null, username: null, password: null, traditional: false, */ // Create the request object; Microsoft failed to properly // implement the XMLHttpRequest in IE7 (can't request local files), // so we use the ActiveXObject when it is available // This function can be overriden by calling jQuery.ajaxSetup xhr: window.XMLHttpRequest && (window.location.protocol !== "file:" || !window.ActiveXObject) ? function() { return new window.XMLHttpRequest(); } : function() { try { return new window.ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} }, accepts: { xml: "application/xml, text/xml", html: "text/html", script: "text/javascript, application/javascript", json: "application/json, text/javascript", text: "text/plain", _default: "*/*" } }, // Last-Modified header cache for next request lastModified: {}, etag: {}, ajax: function( origSettings ) { var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings); var jsonp, status, data, callbackContext = s.context || s, type = s.type.toUpperCase(); // convert data if not already a string if ( s.data && s.processData && typeof s.data !== "string" ) { s.data = jQuery.param( s.data, s.traditional ); } // Handle JSONP Parameter Callbacks if ( s.dataType === "jsonp" ) { if ( type === "GET" ) { if ( !jsre.test( s.url ) ) { s.url += (rquery.test( s.url ) ? "&" : "?") + (s.jsonp || "callback") + "=?"; } } else if ( !s.data || !jsre.test(s.data) ) { s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?"; } s.dataType = "json"; } // Build temporary JSONP function if ( s.dataType === "json" && (s.data && jsre.test(s.data) || jsre.test(s.url)) ) { jsonp = s.jsonpCallback || ("jsonp" + jsc++); // Replace the =? sequence both in the query string and the data if ( s.data ) { s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1"); } s.url = s.url.replace(jsre, "=" + jsonp + "$1"); // We need to make sure // that a JSONP style response is executed properly s.dataType = "script"; // Handle JSONP-style loading window[ jsonp ] = window[ jsonp ] || function( tmp ) { data = tmp; success(); complete(); // Garbage collect window[ jsonp ] = undefined; try { delete window[ jsonp ]; } catch(e) {} if ( head ) { head.removeChild( script ); } }; } if ( s.dataType === "script" && s.cache === null ) { s.cache = false; } if ( s.cache === false && type === "GET" ) { var ts = now(); // try replacing _= if it is there var ret = s.url.replace(rts, "$1_=" + ts + "$2"); // if nothing was replaced, add timestamp to the end s.url = ret + ((ret === s.url) ? (rquery.test(s.url) ? "&" : "?") + "_=" + ts : ""); } // If data is available, append data to url for get requests if ( s.data && type === "GET" ) { s.url += (rquery.test(s.url) ? "&" : "?") + s.data; } // Watch for a new set of requests if ( s.global && ! jQuery.active++ ) { jQuery.event.trigger( "ajaxStart" ); } // Matches an absolute URL, and saves the domain var parts = rurl.exec( s.url ), remote = parts && (parts[1] && parts[1] !== location.protocol || parts[2] !== location.host); // If we're requesting a remote document // and trying to load JSON or Script with a GET if ( s.dataType === "script" && type === "GET" && remote ) { var head = document.getElementsByTagName("head")[0] || document.documentElement; var script = document.createElement("script"); script.src = s.url; if ( s.scriptCharset ) { script.charset = s.scriptCharset; } // Handle Script loading if ( !jsonp ) { var done = false; // Attach handlers for all browsers script.onload = script.onreadystatechange = function() { if ( !done && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete") ) { done = true; success(); complete(); // Handle memory leak in IE script.onload = script.onreadystatechange = null; if ( head && script.parentNode ) { head.removeChild( script ); } } }; } // Use insertBefore instead of appendChild to circumvent an IE6 bug. // This arises when a base node is used (#2709 and #4378). head.insertBefore( script, head.firstChild ); // We handle everything using the script element injection return undefined; } var requestDone = false; // Create the request object var xhr = s.xhr(); if ( !xhr ) { return; } // Open the socket // Passing null username, generates a login popup on Opera (#2865) if ( s.username ) { xhr.open(type, s.url, s.async, s.username, s.password); } else { xhr.open(type, s.url, s.async); } // Need an extra try/catch for cross domain requests in Firefox 3 try { // Set the correct header, if data is being sent if ( s.data || origSettings && origSettings.contentType ) { xhr.setRequestHeader("Content-Type", s.contentType); } // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { if ( jQuery.lastModified[s.url] ) { xhr.setRequestHeader("If-Modified-Since", jQuery.lastModified[s.url]); } if ( jQuery.etag[s.url] ) { xhr.setRequestHeader("If-None-Match", jQuery.etag[s.url]); } } // Set header so the called script knows that it's an XMLHttpRequest // Only send the header if it's not a remote XHR if ( !remote ) { xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest"); } // Set the Accepts header for the server, depending on the dataType xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ? s.accepts[ s.dataType ] + ", */*" : s.accepts._default ); } catch(e) {} // Allow custom headers/mimetypes and early abort if ( s.beforeSend && s.beforeSend.call(callbackContext, xhr, s) === false ) { // Handle the global AJAX counter if ( s.global && ! --jQuery.active ) { jQuery.event.trigger( "ajaxStop" ); } // close opended socket xhr.abort(); return false; } if ( s.global ) { trigger("ajaxSend", [xhr, s]); } // Wait for a response to come back var onreadystatechange = xhr.onreadystatechange = function( isTimeout ) { // The request was aborted if ( !xhr || xhr.readyState === 0 ) { // Opera doesn't call onreadystatechange before this point // so we simulate the call if ( !requestDone ) { complete(); } requestDone = true; if ( xhr ) { xhr.onreadystatechange = jQuery.noop; } // The transfer is complete and the data is available, or the request timed out } else if ( !requestDone && xhr && (xhr.readyState === 4 || isTimeout === "timeout") ) { requestDone = true; xhr.onreadystatechange = jQuery.noop; status = isTimeout === "timeout" ? "timeout" : !jQuery.httpSuccess( xhr ) ? "error" : s.ifModified && jQuery.httpNotModified( xhr, s.url ) ? "notmodified" : "success"; if ( status === "success" ) { // Watch for, and catch, XML document parse errors try { // process the data (runs the xml through httpData regardless of callback) data = jQuery.httpData( xhr, s.dataType, s ); } catch(e) { status = "parsererror"; } } // Make sure that the request was successful or notmodified if ( status === "success" || status === "notmodified" ) { // JSONP handles its own success callback if ( !jsonp ) { success(); } } else { jQuery.handleError(s, xhr, status); } // Fire the complete handlers complete(); if ( isTimeout === "timeout" ) { xhr.abort(); } // Stop memory leaks if ( s.async ) { xhr = null; } } }; // Override the abort handler, if we can (IE doesn't allow it, but that's OK) // Opera doesn't fire onreadystatechange at all on abort try { var oldAbort = xhr.abort; xhr.abort = function() { if ( xhr ) { oldAbort.call( xhr ); if ( xhr ) { xhr.readyState = 0; } } onreadystatechange(); }; } catch(e) { } // Timeout checker if ( s.async && s.timeout > 0 ) { setTimeout(function() { // Check to see if the request is still happening if ( xhr && !requestDone ) { onreadystatechange( "timeout" ); } }, s.timeout); } // Send the data try { xhr.send( type === "POST" || type === "PUT" || type === "DELETE" ? s.data : null ); } catch(e) { jQuery.handleError(s, xhr, null, e); // Fire the complete handlers complete(); } // firefox 1.5 doesn't fire statechange for sync requests if ( !s.async ) { onreadystatechange(); } function success() { // If a local callback was specified, fire it and pass it the data if ( s.success ) { s.success.call( callbackContext, data, status, xhr ); } // Fire the global callback if ( s.global ) { trigger( "ajaxSuccess", [xhr, s] ); } } function complete() { // Process result if ( s.complete ) { s.complete.call( callbackContext, xhr, status); } // The request was completed if ( s.global ) { trigger( "ajaxComplete", [xhr, s] ); } // Handle the global AJAX counter if ( s.global && ! --jQuery.active ) { jQuery.event.trigger( "ajaxStop" ); } } function trigger(type, args) { (s.context ? jQuery(s.context) : jQuery.event).trigger(type, args); } // return XMLHttpRequest to allow aborting the request etc. return xhr; }, handleError: function( s, xhr, status, e ) { // If a local callback was specified, fire it if ( s.error ) { s.error.call( s.context || window, xhr, status, e ); } // Fire the global callback if ( s.global ) { (s.context ? jQuery(s.context) : jQuery.event).trigger( "ajaxError", [xhr, s, e] ); } }, // Counter for holding the number of active queries active: 0, // Determines if an XMLHttpRequest was successful or not httpSuccess: function( xhr ) { try { // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450 return !xhr.status && location.protocol === "file:" || // Opera returns 0 when status is 304 ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status === 304 || xhr.status === 1223 || xhr.status === 0; } catch(e) {} return false; }, // Determines if an XMLHttpRequest returns NotModified httpNotModified: function( xhr, url ) { var lastModified = xhr.getResponseHeader("Last-Modified"), etag = xhr.getResponseHeader("Etag"); if ( lastModified ) { jQuery.lastModified[url] = lastModified; } if ( etag ) { jQuery.etag[url] = etag; } // Opera returns 0 when status is 304 return xhr.status === 304 || xhr.status === 0; }, httpData: function( xhr, type, s ) { var ct = xhr.getResponseHeader("content-type") || "", xml = type === "xml" || !type && ct.indexOf("xml") >= 0, data = xml ? xhr.responseXML : xhr.responseText; if ( xml && data.documentElement.nodeName === "parsererror" ) { throw "parsererror"; } // Allow a pre-filtering function to sanitize the response // s is checked to keep backwards compatibility if ( s && s.dataFilter ) { data = s.dataFilter( data, type ); } // The filter can actually parse the response if ( typeof data === "string" ) { // Get the JavaScript object, if JSON is used. if ( type === "json" || !type && ct.indexOf("json") >= 0 ) { // Make sure the incoming data is actual JSON // Logic borrowed from http://json.org/json2.js if (/^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@") .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]") .replace(/(?:^|:|,)(?:\s*\[)+/g, ""))) { // Try to use the native JSON parser first if ( window.JSON && window.JSON.parse ) { data = window.JSON.parse( data ); } else { data = (new Function("return " + data))(); } } else { throw "Invalid JSON: " + data; } // If the type is "script", eval it in global context } else if ( type === "script" || !type && ct.indexOf("javascript") >= 0 ) { jQuery.globalEval( data ); } } return data; }, // Serialize an array of form elements or a set of // key/values into a query string param: function( a, traditional ) { var s = []; // Set traditional to true for jQuery <= 1.3.2 behavior. if ( traditional === undefined ) { traditional = jQuery.ajaxSettings.traditional; } function add( key, value ) { // If value is a function, invoke it and return its value value = jQuery.isFunction(value) ? value() : value; s[ s.length ] = encodeURIComponent(key) + "=" + encodeURIComponent(value); } // If an array was passed in, assume that it is an array of form elements. if ( jQuery.isArray(a) || a.jquery ) { // Serialize the form elements jQuery.each( a, function() { add( this.name, this.value ); }); } else { // If traditional, encode the "old" way (the way 1.3.2 or older // did it), otherwise encode params recursively. jQuery.each( a, function buildParams( prefix, obj ) { if ( jQuery.isArray(obj) ) { // Serialize array item. jQuery.each( obj, function( i, v ) { if ( traditional ) { // Treat each array item as a scalar. add( prefix, v ); } else { // If array item is non-scalar (array or object), encode its // numeric index to resolve deserialization ambiguity issues. // Note that rack (as of 1.0.0) can't currently deserialize // nested arrays properly, and attempting to do so may cause // a server error. Possible fixes are to modify rack's // deserialization algorithm or to provide an option or flag // to force array serialization to be shallow. buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v ); } }); } else if ( !traditional && obj != null && typeof obj === "object" ) { // Serialize object item. jQuery.each( obj, function( k, v ) { buildParams( prefix + "[" + k + "]", v ); }); } else { // Serialize scalar item. add( prefix, obj ); } }); } // Return the resulting serialization return s.join("&").replace(r20, "+"); } }); var elemdisplay = {}, rfxtypes = /toggle|show|hide/, rfxnum = /^([+-]=)?([\d+-.]+)(.*)$/, timerId, fxAttrs = [ // height animations [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ], // width animations [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ], // opacity animations [ "opacity" ] ]; jQuery.fn.extend({ show: function( speed, callback ) { if ( speed != null ) { return this.animate( genFx("show", 3), speed, callback); } else { for ( var i = 0, l = this.length; i < l; i++ ) { var old = jQuery.data(this[i], "olddisplay"); this[i].style.display = old || ""; if ( jQuery.css(this[i], "display") === "none" ) { var nodeName = this[i].nodeName, display; if ( elemdisplay[ nodeName ] ) { display = elemdisplay[ nodeName ]; } else { var elem = jQuery("<" + nodeName + " />").appendTo("body"); display = elem.css("display"); if ( display === "none" ) { display = "block"; } elem.remove(); elemdisplay[ nodeName ] = display; } jQuery.data(this[i], "olddisplay", display); } } // Set the display of the elements in a second loop // to avoid the constant reflow for ( var j = 0, k = this.length; j < k; j++ ) { this[j].style.display = jQuery.data(this[j], "olddisplay") || ""; } return this; } }, hide: function( speed, callback ) { if ( speed != null ) { return this.animate( genFx("hide", 3), speed, callback); } else { for ( var i = 0, l = this.length; i < l; i++ ) { var old = jQuery.data(this[i], "olddisplay"); if ( !old && old !== "none" ) { jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display")); } } // Set the display of the elements in a second loop // to avoid the constant reflow for ( var j = 0, k = this.length; j < k; j++ ) { this[j].style.display = "none"; } return this; } }, // Save the old toggle function _toggle: jQuery.fn.toggle, toggle: function( fn, fn2 ) { var bool = typeof fn === "boolean"; if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) { this._toggle.apply( this, arguments ); } else if ( fn == null || bool ) { this.each(function() { var state = bool ? fn : jQuery(this).is(":hidden"); jQuery(this)[ state ? "show" : "hide" ](); }); } else { this.animate(genFx("toggle", 3), fn, fn2); } return this; }, fadeTo: function( speed, to, callback ) { return this.filter(":hidden").css("opacity", 0).show().end() .animate({opacity: to}, speed, callback); }, animate: function( prop, speed, easing, callback ) { var optall = jQuery.speed(speed, easing, callback); if ( jQuery.isEmptyObject( prop ) ) { return this.each( optall.complete ); } return this[ optall.queue === false ? "each" : "queue" ](function() { var opt = jQuery.extend({}, optall), p, hidden = this.nodeType === 1 && jQuery(this).is(":hidden"), self = this; for ( p in prop ) { var name = p.replace(rdashAlpha, fcamelCase); if ( p !== name ) { prop[ name ] = prop[ p ]; delete prop[ p ]; p = name; } if ( prop[p] === "hide" && hidden || prop[p] === "show" && !hidden ) { return opt.complete.call(this); } if ( ( p === "height" || p === "width" ) && this.style ) { // Store display property opt.display = jQuery.css(this, "display"); // Make sure that nothing sneaks out opt.overflow = this.style.overflow; } if ( jQuery.isArray( prop[p] ) ) { // Create (if needed) and add to specialEasing (opt.specialEasing = opt.specialEasing || {})[p] = prop[p][1]; prop[p] = prop[p][0]; } } if ( opt.overflow != null ) { this.style.overflow = "hidden"; } opt.curAnim = jQuery.extend({}, prop); jQuery.each( prop, function( name, val ) { var e = new jQuery.fx( self, opt, name ); if ( rfxtypes.test(val) ) { e[ val === "toggle" ? hidden ? "show" : "hide" : val ]( prop ); } else { var parts = rfxnum.exec(val), start = e.cur(true) || 0; if ( parts ) { var end = parseFloat( parts[2] ), unit = parts[3] || "px"; // We need to compute starting value if ( unit !== "px" ) { self.style[ name ] = (end || 1) + unit; start = ((end || 1) / e.cur(true)) * start; self.style[ name ] = start + unit; } // If a +=/-= token was provided, we're doing a relative animation if ( parts[1] ) { end = ((parts[1] === "-=" ? -1 : 1) * end) + start; } e.custom( start, end, unit ); } else { e.custom( start, val, "" ); } } }); // For JS strict compliance return true; }); }, stop: function( clearQueue, gotoEnd ) { var timers = jQuery.timers; if ( clearQueue ) { this.queue([]); } this.each(function() { // go in reverse order so anything added to the queue during the loop is ignored for ( var i = timers.length - 1; i >= 0; i-- ) { if ( timers[i].elem === this ) { if (gotoEnd) { // force the next step to be the last timers[i](true); } timers.splice(i, 1); } } }); // start the next in the queue if the last step wasn't forced if ( !gotoEnd ) { this.dequeue(); } return this; } }); // Generate shortcuts for custom animations jQuery.each({ slideDown: genFx("show", 1), slideUp: genFx("hide", 1), slideToggle: genFx("toggle", 1), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" } }, function( name, props ) { jQuery.fn[ name ] = function( speed, callback ) { return this.animate( props, speed, callback ); }; }); jQuery.extend({ speed: function( speed, easing, fn ) { var opt = speed && typeof speed === "object" ? speed : { complete: fn || !fn && easing || jQuery.isFunction( speed ) && speed, duration: speed, easing: fn && easing || easing && !jQuery.isFunction(easing) && easing }; opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration : jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default; // Queueing opt.old = opt.complete; opt.complete = function() { if ( opt.queue !== false ) { jQuery(this).dequeue(); } if ( jQuery.isFunction( opt.old ) ) { opt.old.call( this ); } }; return opt; }, easing: { linear: function( p, n, firstNum, diff ) { return firstNum + diff * p; }, swing: function( p, n, firstNum, diff ) { return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum; } }, timers: [], fx: function( elem, options, prop ) { this.options = options; this.elem = elem; this.prop = prop; if ( !options.orig ) { options.orig = {}; } } }); jQuery.fx.prototype = { // Simple function for setting a style value update: function() { if ( this.options.step ) { this.options.step.call( this.elem, this.now, this ); } (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this ); // Set display property to block for height/width animations if ( ( this.prop === "height" || this.prop === "width" ) && this.elem.style ) { this.elem.style.display = "block"; } }, // Get the current size cur: function( force ) { if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) { return this.elem[ this.prop ]; } var r = parseFloat(jQuery.css(this.elem, this.prop, force)); return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0; }, // Start an animation from one number to another custom: function( from, to, unit ) { this.startTime = now(); this.start = from; this.end = to; this.unit = unit || this.unit || "px"; this.now = this.start; this.pos = this.state = 0; var self = this; function t( gotoEnd ) { return self.step(gotoEnd); } t.elem = this.elem; if ( t() && jQuery.timers.push(t) && !timerId ) { timerId = setInterval(jQuery.fx.tick, 13); } }, // Simple 'show' function show: function() { // Remember where we started, so that we can go back to it later this.options.orig[this.prop] = jQuery.style( this.elem, this.prop ); this.options.show = true; // Begin the animation // Make sure that we start at a small width/height to avoid any // flash of content this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur()); // Start by showing the element jQuery( this.elem ).show(); }, // Simple 'hide' function hide: function() { // Remember where we started, so that we can go back to it later this.options.orig[this.prop] = jQuery.style( this.elem, this.prop ); this.options.hide = true; // Begin the animation this.custom(this.cur(), 0); }, // Each step of an animation step: function( gotoEnd ) { var t = now(), done = true; if ( gotoEnd || t >= this.options.duration + this.startTime ) { this.now = this.end; this.pos = this.state = 1; this.update(); this.options.curAnim[ this.prop ] = true; for ( var i in this.options.curAnim ) { if ( this.options.curAnim[i] !== true ) { done = false; } } if ( done ) { if ( this.options.display != null ) { // Reset the overflow this.elem.style.overflow = this.options.overflow; // Reset the display var old = jQuery.data(this.elem, "olddisplay"); this.elem.style.display = old ? old : this.options.display; if ( jQuery.css(this.elem, "display") === "none" ) { this.elem.style.display = "block"; } } // Hide the element if the "hide" operation was done if ( this.options.hide ) { jQuery(this.elem).hide(); } // Reset the properties, if the item has been hidden or shown if ( this.options.hide || this.options.show ) { for ( var p in this.options.curAnim ) { jQuery.style(this.elem, p, this.options.orig[p]); } } // Execute the complete function this.options.complete.call( this.elem ); } return false; } else { var n = t - this.startTime; this.state = n / this.options.duration; // Perform the easing function, defaults to swing var specialEasing = this.options.specialEasing && this.options.specialEasing[this.prop]; var defaultEasing = this.options.easing || (jQuery.easing.swing ? "swing" : "linear"); this.pos = jQuery.easing[specialEasing || defaultEasing](this.state, n, 0, 1, this.options.duration); this.now = this.start + ((this.end - this.start) * this.pos); // Perform the next step of the animation this.update(); } return true; } }; jQuery.extend( jQuery.fx, { tick: function() { var timers = jQuery.timers; for ( var i = 0; i < timers.length; i++ ) { if ( !timers[i]() ) { timers.splice(i--, 1); } } if ( !timers.length ) { jQuery.fx.stop(); } }, stop: function() { clearInterval( timerId ); timerId = null; }, speeds: { slow: 600, fast: 200, // Default speed _default: 400 }, step: { opacity: function( fx ) { jQuery.style(fx.elem, "opacity", fx.now); }, _default: function( fx ) { if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) { fx.elem.style[ fx.prop ] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit; } else { fx.elem[ fx.prop ] = fx.now; } } } }); if ( jQuery.expr && jQuery.expr.filters ) { jQuery.expr.filters.animated = function( elem ) { return jQuery.grep(jQuery.timers, function( fn ) { return elem === fn.elem; }).length; }; } function genFx( type, num ) { var obj = {}; jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function() { obj[ this ] = type; }); return obj; } if ( "getBoundingClientRect" in document.documentElement ) { jQuery.fn.offset = function( options ) { var elem = this[0]; if ( !elem || !elem.ownerDocument ) { return null; } if ( options ) { return this.each(function( i ) { jQuery.offset.setOffset( this, options, i ); }); } if ( elem === elem.ownerDocument.body ) { return jQuery.offset.bodyOffset( elem ); } var box = elem.getBoundingClientRect(), doc = elem.ownerDocument, body = doc.body, docElem = doc.documentElement, clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0, top = box.top + (self.pageYOffset || jQuery.support.boxModel && docElem.scrollTop || body.scrollTop ) - clientTop, left = box.left + (self.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft; return { top: top, left: left }; }; } else { jQuery.fn.offset = function( options ) { var elem = this[0]; if ( !elem || !elem.ownerDocument ) { return null; } if ( options ) { return this.each(function( i ) { jQuery.offset.setOffset( this, options, i ); }); } if ( elem === elem.ownerDocument.body ) { return jQuery.offset.bodyOffset( elem ); } jQuery.offset.initialize(); var offsetParent = elem.offsetParent, prevOffsetParent = elem, doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement, body = doc.body, defaultView = doc.defaultView, prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle, top = elem.offsetTop, left = elem.offsetLeft; while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) { if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) { break; } computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle; top -= elem.scrollTop; left -= elem.scrollLeft; if ( elem === offsetParent ) { top += elem.offsetTop; left += elem.offsetLeft; if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.nodeName)) ) { top += parseFloat( computedStyle.borderTopWidth ) || 0; left += parseFloat( computedStyle.borderLeftWidth ) || 0; } prevOffsetParent = offsetParent, offsetParent = elem.offsetParent; } if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) { top += parseFloat( computedStyle.borderTopWidth ) || 0; left += parseFloat( computedStyle.borderLeftWidth ) || 0; } prevComputedStyle = computedStyle; } if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) { top += body.offsetTop; left += body.offsetLeft; } if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) { top += Math.max( docElem.scrollTop, body.scrollTop ); left += Math.max( docElem.scrollLeft, body.scrollLeft ); } return { top: top, left: left }; }; } jQuery.offset = { initialize: function() { var body = document.body, container = document.createElement("div"), innerDiv, checkDiv, table, td, bodyMarginTop = parseFloat( jQuery.curCSS(body, "marginTop", true) ) || 0, html = "<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>"; jQuery.extend( container.style, { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" } ); container.innerHTML = html; body.insertBefore( container, body.firstChild ); innerDiv = container.firstChild; checkDiv = innerDiv.firstChild; td = innerDiv.nextSibling.firstChild.firstChild; this.doesNotAddBorder = (checkDiv.offsetTop !== 5); this.doesAddBorderForTableAndCells = (td.offsetTop === 5); checkDiv.style.position = "fixed", checkDiv.style.top = "20px"; // safari subtracts parent border width here which is 5px this.supportsFixedPosition = (checkDiv.offsetTop === 20 || checkDiv.offsetTop === 15); checkDiv.style.position = checkDiv.style.top = ""; innerDiv.style.overflow = "hidden", innerDiv.style.position = "relative"; this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5); this.doesNotIncludeMarginInBodyOffset = (body.offsetTop !== bodyMarginTop); body.removeChild( container ); body = container = innerDiv = checkDiv = table = td = null; jQuery.offset.initialize = jQuery.noop; }, bodyOffset: function( body ) { var top = body.offsetTop, left = body.offsetLeft; jQuery.offset.initialize(); if ( jQuery.offset.doesNotIncludeMarginInBodyOffset ) { top += parseFloat( jQuery.curCSS(body, "marginTop", true) ) || 0; left += parseFloat( jQuery.curCSS(body, "marginLeft", true) ) || 0; } return { top: top, left: left }; }, setOffset: function( elem, options, i ) { // set position first, in-case top/left are set even on static elem if ( /static/.test( jQuery.curCSS( elem, "position" ) ) ) { elem.style.position = "relative"; } var curElem = jQuery( elem ), curOffset = curElem.offset(), curTop = parseInt( jQuery.curCSS( elem, "top", true ), 10 ) || 0, curLeft = parseInt( jQuery.curCSS( elem, "left", true ), 10 ) || 0; if ( jQuery.isFunction( options ) ) { options = options.call( elem, i, curOffset ); } var props = { top: (options.top - curOffset.top) + curTop, left: (options.left - curOffset.left) + curLeft }; if ( "using" in options ) { options.using.call( elem, props ); } else { curElem.css( props ); } } }; jQuery.fn.extend({ position: function() { if ( !this[0] ) { return null; } var elem = this[0], // Get *real* offsetParent offsetParent = this.offsetParent(), // Get correct offsets offset = this.offset(), parentOffset = /^body|html$/i.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset(); // Subtract element margins // note: when an element has margin: auto the offsetLeft and marginLeft // are the same in Safari causing offset.left to incorrectly be 0 offset.top -= parseFloat( jQuery.curCSS(elem, "marginTop", true) ) || 0; offset.left -= parseFloat( jQuery.curCSS(elem, "marginLeft", true) ) || 0; // Add offsetParent borders parentOffset.top += parseFloat( jQuery.curCSS(offsetParent[0], "borderTopWidth", true) ) || 0; parentOffset.left += parseFloat( jQuery.curCSS(offsetParent[0], "borderLeftWidth", true) ) || 0; // Subtract the two offsets return { top: offset.top - parentOffset.top, left: offset.left - parentOffset.left }; }, offsetParent: function() { return this.map(function() { var offsetParent = this.offsetParent || document.body; while ( offsetParent && (!/^body|html$/i.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) { offsetParent = offsetParent.offsetParent; } return offsetParent; }); } }); // Create scrollLeft and scrollTop methods jQuery.each( ["Left", "Top"], function( i, name ) { var method = "scroll" + name; jQuery.fn[ method ] = function(val) { var elem = this[0], win; if ( !elem ) { return null; } if ( val !== undefined ) { // Set the scroll offset return this.each(function() { win = getWindow( this ); if ( win ) { win.scrollTo( !i ? val : jQuery(win).scrollLeft(), i ? val : jQuery(win).scrollTop() ); } else { this[ method ] = val; } }); } else { win = getWindow( elem ); // Return the scroll offset return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] : jQuery.support.boxModel && win.document.documentElement[ method ] || win.document.body[ method ] : elem[ method ]; } }; }); function getWindow( elem ) { return ("scrollTo" in elem && elem.document) ? elem : elem.nodeType === 9 ? elem.defaultView || elem.parentWindow : false; } // Create innerHeight, innerWidth, outerHeight and outerWidth methods jQuery.each([ "Height", "Width" ], function( i, name ) { var type = name.toLowerCase(); // innerHeight and innerWidth jQuery.fn["inner" + name] = function() { return this[0] ? jQuery.css( this[0], type, false, "padding" ) : null; }; // outerHeight and outerWidth jQuery.fn["outer" + name] = function( margin ) { return this[0] ? jQuery.css( this[0], type, false, margin ? "margin" : "border" ) : null; }; jQuery.fn[ type ] = function( size ) { // Get window width or height var elem = this[0]; if ( !elem ) { return size == null ? null : this; } return ("scrollTo" in elem && elem.document) ? // does it walk and quack like a window? // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[ "client" + name ] || elem.document.body[ "client" + name ] : // Get document width or height (elem.nodeType === 9) ? // is it a document // Either scroll[Width/Height] or offset[Width/Height], whichever is greater Math.max( elem.documentElement["client" + name], elem.body["scroll" + name], elem.documentElement["scroll" + name], elem.body["offset" + name], elem.documentElement["offset" + name] ) : // Get or set width or height on the element size === undefined ? // Get width or height on the element jQuery.css( elem, type ) : // Set the width or height on the element (default to pixels if value is unitless) this.css( type, typeof size === "string" ? size : size + "px" ); }; }); // Expose jQuery to the global object window.jQuery = window.$ = jQuery; })(window);

detilberita_n.phpx <link href="css_detil_l.css" rel="stylesheet" type="text/css"> <table width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="600" align="left" valign="top"> <div class="clearit"></div> <!--TOP BAR END --> <div align="center"> <div class="cangkang_master2012"> <div align="left"> <!-- start: header --> <!-- end: header --> <!-- start: konten --> <div class="cangkang_konten002"> <div class="content_kiri_detail"> <div class="judul_artikel2012"><a href='http://indosat.com/' target='_blank'><img src="images/indosat.jpg" width="100%" border="0" /></a><?php echo $d['JUDUL']; ?></div> <div class="pb_20"></div> <div class="clearit bl_1 mb_10"></div> <div class="left_share"> <div class="font11 c_abu03_sp2012 pb_3"><span class="share"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"><font size="3"><i><?php echo $d['SUBJUDUL']; ?></i></font></td> </tr> <tr> <td colspan="3" align="left" valign="middle"><span class="c_abu01_sp2012"><?php echo tanggal("D, j M Y",$d['TGLKIRIM']);echo " | ".$d['TIME']." WIB";?></span></td> </tr> <tr> <td width="40%" align="right" valign="middle"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="SbyPagiOnline">Tweet</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td> <td width="16%" align="right" valign="middle" cols> <script >function fbs_click() { u=location.href; t=document.title; window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false; } </script> <a href="http://www.facebook.com/share.php?u=http://surabayapagi.com<?php echo $_SERVER['REQUEST_URI'];?>" onclick="return fbs_click()" target="_blank"> <img src="images/share-on-facebook1.jpg" alt=\"Share On Facebook\" align="left"/></a> <!--<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php?u=http://surabayapagi.com<?php //echo $_SERVER['REQUEST_URI'];?>">Share</a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>--> </td> </tr> </table> </span></div> </div> <div class="clearit"></div> <div class="clearit bl_orange pt_10"></div> <!--IMAGES --> <div class="pt_10"></div> <!-- s: headline --> <?php if($kodetema!="") { $bt=mysql_query("select IDBERITA,JUDUL from BERITA where KODETEMA='$kodetema' and `STATUS`='Show' and IDBERITA <'$hit' order by TGLKIRIM2 desc,TIME DESC,IDBERITA desc limit 0,5"); if(mysql_num_rows($bt)>=1) { ?> <div class="right w310 pl_10 pb_10 pt_5"> <p> <!--TERKAIT --> </p> <div class="pd_5 hl_1 font12 c_abu01_sp2012"><strong>TERKAIT:</strong></div> <div class="list_4 font12 arial c_biru_sp2012 pb_10 bl_1"> <ul> <?php while($dbt=mysql_fetch_array($bt)) { $ttl_tk=str_replace(" ","-",$dbt['JUDUL']); ?> <li><?php echo "<a title='".$dbt['JUDUL']."' href='index.php?read=$ttl_tk;".paramEncrypt('p=detilberita&id='.$dbt[0].'')."'>"; echo $dbt['JUDUL']."</a>"; ?></li> <?php }?> </ul> </div> <!--TERKAIT END --> </div> <?php }}?> <div class="isi_berita2012 pt_5"> <p><?php echo nl2br($d['ISI']);?></p><div class="clearit pt_30"></div> <div class="clearit bl_orange mb_3 pt_10"></div> </div> </div> <div class="clearit"></div> <!--FOOTER : datanya harap disesuaikan saja dengan update footer yg terakhir --> <!--FOOTER END --> </div> <!-- end: konten --> </div></div> </td> <td width="300" rowspan="2" align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td align="left" valign="top" height="100%"><table width="285" border="0" cellspacing="0" cellpadding="5"> <tr> <td><?php include "berita_lainnya.php";?></td> </tr> </table> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"> <table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td> <div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilberita&id='.$hit.''); ?>" data-num-posts="10" data-width="600"></div></td> </tr> </table> </td> </tr> </table>

title_bawah.php <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="top"><div align="center" class="title_bottom">Copyright &copy; 2012 surabayapagi.com</div> <div align="center" class="style4"></div></td> </tr> <tr> <td align="center" valign="top"><span class="judul_kontak">&nbsp; <?php echo "<a href='index.php?".paramEncrypt('p=kontak')."'>";?>Kontak</a>&nbsp;| <?php echo "<a href='index.php?".paramEncrypt('p=tentangkami')."'>";?>Tentang Kami</a>&nbsp;| <?php echo "<a href='index.php?".paramEncrypt('p=kodeetik')."'>";?>Kode Etik</a>&nbsp;| <?php echo "<a href='index.php?".paramEncrypt('p=disclaimer')."'>";?>Disclaimer</a>&nbsp;|<a href="http://rss.surabayapagi.com" target="_blank"> RSS Feed </a>&nbsp;| <?php echo "User Online : &nbsp;".$users ; ?></span></td> </tr> </table>

home_politik.php <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td ><span class="title_kategori">POLITIK HUKUM</span> <hr color="#FF0000 2px solid" /></td> </tr> </table> <table width="350" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="50%" align="left" valign="top"> <?php $q=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where (KATEGORI='PolitikHukum' or KATEGORI='Politik') and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 2"); while($dq=mysql_fetch_array($q)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"> <table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq[0].'')."'>$dq[JUDUL]<span class=\"classic\"><em>".$dq['JUDUL']."</em>$dq[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"> <? if($dq['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?> </td> </tr> </table> <?php }?> </td> <td width="50%" align="left" valign="top"><?php $q2=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where (KATEGORI='PolitikHukum' or KATEGORI='Politik') and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' order by TGLKIRIM2 desc,IDBERITA desc limit 2, 2"); while($dq2=mysql_fetch_array($q2)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"><table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq2[0].'')."'>$dq2[JUDUL]<span class=\"classic\"><em>".$dq2['JUDUL']."</em>$dq2[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq2['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq2['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> </tr> </table>

index_berita.php <!-- Begin Left Column --> <style type="text/css"> <!-- .style1 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; } --> </style> <div id="detil"> <?php include "go/go.php"; if(isset($_POST['Submit'])) { $ctgl=$_POST['tanggal']; $cbulan=$_POST['bulan']; $ctahun=$_POST['tahun']; if($cbulan=="01"){$abulan="Januari";} elseif($cbulan=="02"){$abulan="Februari";} elseif($cbulan=="03"){$abulan="Maret";} elseif($cbulan=="04"){$abulan="April";} elseif($cbulan=="05"){$abulan="Mei";} elseif($cbulan=="06"){$abulan="Juni";} elseif($cbulan=="07"){$abulan="Juli";} elseif($cbulan=="08"){$abulan="Agustus";} elseif($cbulan=="09"){$abulan="September";} elseif($cbulan=="10"){$abulan="Oktober";} elseif($cbulan=="11"){$abulan="November";} else{$abulan="Desember";} /* switch ($cbulan) { case 01: $abulan="Januari"; break; case 02: $abulan="Februari"; break; case 03: $abulan="Maret"; break; case 04: $abulan="April"; break; case 05: $abulan="Mei"; break; case 06: $abulan="Juni"; break; case 07: $abulan="Juli"; break; case 08: $abulan="Agustus"; break; case 09: $abulan="September"; break; case 10: $abulan="Oktober"; break; case 11: $abulan="November"; break; case 12: $abulan="Desember"; break; } */ $default_tgl=($ctgl); $default_bulan=($abulan); $default_bulan_value=($cbulan); $default_tahun=($ctahun); $tglcari1=$ctahun."-".$cbulan."-".$ctgl; $tglcari2=$ctgl." ".$bulan." ".$ctahun; $tgl_skr=date("Y-m-d"); $jam=date("H:i"); if($tglcari1<$tgl_skr) { //$query_ori="select * from BERITA where STATUS='Show' and JUDUL!='' and (TGLKIRIM2 like '%".$tglcari1."%' or TGLKIRIM2 like '%".$tglcari2."%') and TIME <='$jam' order by TGLKIRIM2 desc,IDBERITA desc"; $query="select * from BERITA where STATUS='Show' and JUDUL!='' and (TGLKIRIM2 like '%".$tglcari1."%' or TGLKIRIM2 like '%".$tglcari2."%') order by TGLKIRIM2 desc,IDBERITA desc"; //echo $query; $queryinfo = mysql_query($query); $tbl1=mysql_num_rows($queryinfo); } else //if($tglcari1<=$tgl_skr) { $query="select * from BERITA where STATUS='Show' and JUDUL!='' and (TGLKIRIM2 like '%".$tglcari1."%' or TGLKIRIM2 like '%".$tglcari2."%') and TIME <='$jam' order by TGLKIRIM2 desc,IDBERITA desc"; //echo $query; $queryinfo = mysql_query($query); $tbl1=mysql_num_rows($queryinfo); } //echo $query; } else { $ctgl=date(d,time()); $cbulan=date(m,time()); $ctahun=date(Y,time()); $jam=date("H:i"); if($cbulan=="01"){$abulan="Januari";} elseif($cbulan=="02"){$abulan="Februari";} elseif($cbulan=="03"){$abulan="Maret";} elseif($cbulan=="04"){$abulan="April";} elseif($cbulan=="05"){$abulan="Mei";} elseif($cbulan=="06"){$abulan="Juni";} elseif($cbulan=="07"){$abulan="Juli";} elseif($cbulan=="08"){$abulan="Agustus";} elseif($cbulan=="09"){$abulan="September";} elseif($cbulan=="10"){$abulan="Oktober";} elseif($cbulan=="11"){$abulan="November";} else{$abulan="Desember";} /* switch ($cbulan) { case 01: $abulan="Januari"; break; case 02: $abulan="Februari"; break; case 03: $abulan="Maret"; break; case 04: $abulan="April"; break; case 05: $abulan="Mei"; break; case 06: $abulan="Juni"; break; case 07: $abulan="Juli"; break; case 08: $abulan="Agustus"; break; case 09: $abulan="September"; break; case 10: $abulan="Oktober"; break; case 11: $abulan="November"; break; case 12: $abulan="Desember"; break; } */ $default_tgl=($ctgl); $default_bulan=($abulan); $default_bulan_value=($cbulan); $default_tahun=date(Y,time()); $tglcari1=$ctahun."-".$cbulan."-".$ctgl; $tglcari2=$ctgl."-".$cbulan."-".$ctahun; $query="select * from BERITA where STATUS='Show' and JUDUL!='' and (TGLKIRIM2 like '%".$tglcari1."%' or TGLKIRIM2 like '%".$tglcari2."%') and TIME <='$jam' order by TGLKIRIM2 desc,IDBERITA desc"; //echo $query; $queryinfo = mysql_query($query); $tbl1=mysql_num_rows($queryinfo); //echo $query; } if($cbulan=="01"){$bulan="January";} elseif($cbulan=="02"){$bulan="February";} elseif($cbulan=="03"){$bulan="March";} elseif($cbulan=="04"){$bulan="April";} elseif($cbulan=="05"){$bulan="May";} elseif($cbulan=="06"){$bulan="June";} elseif($cbulan=="07"){$bulan="July";} elseif($cbulan=="08"){$bulan="August";} elseif($cbulan=="09"){$bulan="September";} elseif($cbulan=="10"){$bulan="October";} elseif($cbulan=="11"){$bulan="November";} else{$bulan="December";} /* switch ($cbulan) { case 01: $bulan="January"; break; case 02: $bulan="February"; break; case 03: $bulan="March"; break; case 04: $bulan="April"; break; case 05: $bulan="May"; break; case 06: $bulan="June"; break; case 07: $bulan="July"; break; case 08: $bulan="August"; break; case 09: $bulan="September"; break; case 10: $bulan="October"; break; case 11: $bulan="November"; break; case 12: $bulan="December"; break; } */ //echo "t1: ".$tglcari1; //echo "t2: ".$tglcari2; ?> <table width="100%" border="0" cellspacing="0" cellpadding="0" height="630"> <tr><td height="18" align="left" valign="top"><a href="index.php"></a><span class="style1"> &raquo; Indeks Berita : <em><?php echo $ctgl; echo"&nbsp;&nbsp;";echo $default_bulan; echo"&nbsp;&nbsp;";echo $ctahun;?></em></span> <div class="h-rule"></div></td></tr> <tr> <td width="100%" align="left" valign="top"><ul> <?php if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl=str_replace(" ","-",$tbl['JUDUL']); $judul=str_replace (" ", "-" , trim($tbl['JUDUL'])); ?> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr align="left" valign="top"> <td width="7%">&nbsp;</td> <td width="93%"><li><? echo "<div class='datenews'><i>"; echo $ctgl; echo"&nbsp;&nbsp;";echo $default_bulan; echo"&nbsp;&nbsp;";echo $ctahun; echo " : ".$tbl['TIME']." wib"; echo "</i></div>"; echo "<div class='judul_kolom'><a href='index.php?read=$ttl;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a>"; echo "</div>"; if($_SESSION['slevel']=="Administrator") { echo "&nbsp;&nbsp;<font color='red'><a href='index.php?".paramEncrypt('p=formberita&idinfo='.$tbl['IDBERITA'].'')."'> [ Edit ] </a></font>"; } if(($_SESSION['slevel']=="Administrator")) { echo "("; echo "<font color=red><b>"; echo $tbl["TERBACA"]; echo "</b></font>"; echo ")"; } ?> </li></td> </tr> </table> <?php }}?></ul> <ul> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #ccc; "> <tr> <td align="left" valign="middle"><form name="form1" method="post" action=""> <table width="90%" border="0" cellspacing="0" cellpadding="0"> <tr align="left" valign="top"> <td width="72%" height="40" align="left" valign="middle">&nbsp;&nbsp;&nbsp;<input type="submit" name="Submit" value="Lihat Indeks Tanggal"> <select name="tanggal"> <option selected value="<?=trim($default_tgl); ?>"> <?=trim($default_tgl); ?> </option> <option value="01">1</option> <option value="02">2</option> <option value="03">3</option> <option value="04">4</option> <option value="05">5</option> <option value="06">6</option> <option value="07">7</option> <option value="08">8</option> <option value="09">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> <select name="bulan"> <option value="<?=trim($default_bulan_value); ?>" selected> <?=trim($default_bulan); ?> </option> <option value="01"> Januari</option> <option value="02"> Februari</option> <option value="03"> Maret</option> <option value="04"> April</option> <option value="05"> Mei</option> <option value="06"> Juni</option> <option value="07"> Juli</option> <option value="08"> Agustus</option> <option value="09"> September</option> <option value="10"> Oktober</option> <option value="11"> November</option> <option value="12"> Desember</option> </select> <select name="tahun"> <option selected value="<?=trim($default_tahun); ?>"> <?=trim($default_tahun); ?> </option> <option value="2007"> 2007</option> <option value="2008"> 2008</option> <option value="2009"> 2009</option> <option value="2010"> 2010</option> <option value="2011"> 2011</option> <option value="2012"> 2012</option> <option value="2013"> 2013</option> </select></td> <td width="28%" valign="middle">&nbsp;&nbsp;&nbsp;&nbsp;</td> </tr> </table> </form></td> </tr> </table></ul> </td> <td width="0%" align="left" valign="top">&nbsp;</td> </tr> </table><br> </div> <!--banner <script src='js/jquery-1.3.2.min.js' type='text/javascript'></script> <script type='text/javascript' src='js/jquery-ui.min.js'></script> <script type='text/javascript'> $(window).bind("load", function() { // animasikan nilai top saat halaman telah selesai dimuat $('#kotak-pesan').animate({top:"30px"}, 1000, "easeOutBounce"); // hilangkan kotak pesan saat tombol (x) diklik $('a.close').click(function() { $(this).parent().slideUp(800, "easeOutBounce"); return false; }); }); </script> <style> #kotak-pesan{ position:fixed !important; position:absolute; /* IE6 */ top:-900px; margin:0px 0px 0px 0px; width:890px; height:auto; padding:5px; border:2px solid #fff; font:normal 1em Cambria,Georgia,Serif; color:#111; -webkit-box-shadow:0px 0px 0px rgba(0,0,0,0.4); -moz-box-shadow:0px 0px 0px rgba(0,0,0,0.4); box-shadow:0px 0px 0px rgba(0,0,0,0.4); z-index:999; } #kotak-pesan a.close{ position:absolute; top:-10px; right:-10px; background:#333; font:bold 16px Arial,Sans-Serif; text-decoration:none; line-height:22px; width:22px; text-align:center; color:#fff; border:2px solid #fff; -webkit-box-shadow:0px 1px 2px rgba(0,0,0,0.4); -moz-box-shadow:0px 1px 2px rgba(0,0,0,0.4); box-shadow:0px 1px 2px rgba(0,0,0,0.4); -webkit-border-radius:22px; -moz-border-radius:22px; border-radius:22px; cursor:pointer; } </style> <div id='kotak-pesan' align='center'> <center> <a href='http://www.facebook.com/GaunGmu' target='_blank'><img src="images/paul4.jpg" width="400" border="0" /></a> </center> <a class='close' href='#'>&times;</a> </div> -->

class.phpmailer.php <?php /*~ class.phpmailer.php .---------------------------------------------------------------------------. | Software: PHPMailer - PHP email class | | Version: 5.1 | | Contact: via sourceforge.net support pages (also www.worxware.com) | | Info: http://phpmailer.sourceforge.net | | Support: http://sourceforge.net/projects/phpmailer/ | | ------------------------------------------------------------------------- | | Admin: Andy Prevost (project admininistrator) | | Authors: Andy Prevost (codeworxtech) codeworxtech@users.sourceforge.net | | : Marcus Bointon (coolbru) coolbru@users.sourceforge.net | | Founder: Brent R. Matzelle (original founder) | | Copyright (c) 2004-2009, Andy Prevost. All Rights Reserved. | | Copyright (c) 2001-2003, Brent R. Matzelle | | ------------------------------------------------------------------------- | | License: Distributed under the Lesser General Public License (LGPL) | | http://www.gnu.org/copyleft/lesser.html | | This program is distributed in the hope that it will be useful - WITHOUT | | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | | FITNESS FOR A PARTICULAR PURPOSE. | | ------------------------------------------------------------------------- | | We offer a number of paid services (www.worxware.com): | | - Web Hosting on highly optimized fast and secure servers | | - Technology Consulting | | - Oursourcing (highly qualified programmers and graphic designers) | '---------------------------------------------------------------------------' */ /** * PHPMailer - PHP email transport class * NOTE: Requires PHP version 5 or later * @package PHPMailer * @author Andy Prevost * @author Marcus Bointon * @copyright 2004 - 2009 Andy Prevost * @version $Id: class.phpmailer.php 447 2009-05-25 01:36:38Z codeworxtech $ * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License */ if (version_compare(PHP_VERSION, '5.0.0', '<') ) exit("Sorry, this version of PHPMailer will only run on PHP version 5 or greater!\n"); class PHPMailer { ///////////////////////////////////////////////// // PROPERTIES, PUBLIC ///////////////////////////////////////////////// /** * Email priority (1 = High, 3 = Normal, 5 = low). * @var int */ public $Priority = 3; /** * Sets the CharSet of the message. * @var string */ public $CharSet = 'iso-8859-1'; /** * Sets the Content-type of the message. * @var string */ public $ContentType = 'text/plain'; /** * Sets the Encoding of the message. Options for this are * "8bit", "7bit", "binary", "base64", and "quoted-printable". * @var string */ public $Encoding = '8bit'; /** * Holds the most recent mailer error message. * @var string */ public $ErrorInfo = ''; /** * Sets the From email address for the message. * @var string */ public $From = 'root@localhost'; /** * Sets the From name of the message. * @var string */ public $FromName = 'Root User'; /** * Sets the Sender email (Return-Path) of the message. If not empty, * will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode. * @var string */ public $Sender = ''; /** * Sets the Subject of the message. * @var string */ public $Subject = ''; /** * Sets the Body of the message. This can be either an HTML or text body. * If HTML then run IsHTML(true). * @var string */ public $Body = ''; /** * Sets the text-only body of the message. This automatically sets the * email to multipart/alternative. This body can be read by mail * clients that do not have HTML email capability such as mutt. Clients * that can read HTML will view the normal Body. * @var string */ public $AltBody = ''; /** * Sets word wrapping on the body of the message to a given number of * characters. * @var int */ public $WordWrap = 0; /** * Method to send mail: ("mail", "sendmail", or "smtp"). * @var string */ public $Mailer = 'mail'; /** * Sets the path of the sendmail program. * @var string */ public $Sendmail = '/usr/sbin/sendmail'; /** * Path to PHPMailer plugins. Useful if the SMTP class * is in a different directory than the PHP include path. * @var string */ public $PluginDir = ''; /** * Sets the email address that a reading confirmation will be sent. * @var string */ public $ConfirmReadingTo = ''; /** * Sets the hostname to use in Message-Id and Received headers * and as default HELO string. If empty, the value returned * by SERVER_NAME is used or 'localhost.localdomain'. * @var string */ public $Hostname = ''; /** * Sets the message ID to be used in the Message-Id header. * If empty, a unique id will be generated. * @var string */ public $MessageID = ''; ///////////////////////////////////////////////// // PROPERTIES FOR SMTP ///////////////////////////////////////////////// /** * Sets the SMTP hosts. All hosts must be separated by a * semicolon. You can also specify a different port * for each host by using this format: [hostname:port] * (e.g. "smtp1.example.com:25;smtp2.example.com"). * Hosts will be tried in order. * @var string */ public $Host = 'localhost'; /** * Sets the default SMTP server port. * @var int */ public $Port = 25; /** * Sets the SMTP HELO of the message (Default is $Hostname). * @var string */ public $Helo = ''; /** * Sets connection prefix. * Options are "", "ssl" or "tls" * @var string */ public $SMTPSecure = ''; /** * Sets SMTP authentication. Utilizes the Username and Password variables. * @var bool */ public $SMTPAuth = false; /** * Sets SMTP username. * @var string */ public $Username = ''; /** * Sets SMTP password. * @var string */ public $Password = ''; /** * Sets the SMTP server timeout in seconds. * This function will not work with the win32 version. * @var int */ public $Timeout = 10; /** * Sets SMTP class debugging on or off. * @var bool */ public $SMTPDebug = false; /** * Prevents the SMTP connection from being closed after each mail * sending. If this is set to true then to close the connection * requires an explicit call to SmtpClose(). * @var bool */ public $SMTPKeepAlive = false; /** * Provides the ability to have the TO field process individual * emails, instead of sending to entire TO addresses * @var bool */ public $SingleTo = false; /** * If SingleTo is true, this provides the array to hold the email addresses * @var bool */ public $SingleToArray = array(); /** * Provides the ability to change the line ending * @var string */ public $LE = "\n"; /** * Used with DKIM DNS Resource Record * @var string */ public $DKIM_selector = 'phpmailer'; /** * Used with DKIM DNS Resource Record * optional, in format of email address 'you@yourdomain.com' * @var string */ public $DKIM_identity = ''; /** * Used with DKIM DNS Resource Record * optional, in format of email address 'you@yourdomain.com' * @var string */ public $DKIM_domain = ''; /** * Used with DKIM DNS Resource Record * optional, in format of email address 'you@yourdomain.com' * @var string */ public $DKIM_private = ''; /** * Callback Action function name * the function that handles the result of the send email action. Parameters: * bool $result result of the send action * string $to email address of the recipient * string $cc cc email addresses * string $bcc bcc email addresses * string $subject the subject * string $body the email body * @var string */ public $action_function = ''; //'callbackAction'; /** * Sets the PHPMailer Version number * @var string */ public $Version = '5.1'; ///////////////////////////////////////////////// // PROPERTIES, PRIVATE AND PROTECTED ///////////////////////////////////////////////// private $smtp = NULL; private $to = array(); private $cc = array(); private $bcc = array(); private $ReplyTo = array(); private $all_recipients = array(); private $attachment = array(); private $CustomHeader = array(); private $message_type = ''; private $boundary = array(); protected $language = array(); private $error_count = 0; private $sign_cert_file = ""; private $sign_key_file = ""; private $sign_key_pass = ""; private $exceptions = false; ///////////////////////////////////////////////// // CONSTANTS ///////////////////////////////////////////////// const STOP_MESSAGE = 0; // message only, continue processing const STOP_CONTINUE = 1; // message?, likely ok to continue processing const STOP_CRITICAL = 2; // message, plus full stop, critical error reached ///////////////////////////////////////////////// // METHODS, VARIABLES ///////////////////////////////////////////////// /** * Constructor * @param boolean $exceptions Should we throw external exceptions? */ public function __construct($exceptions = false) { $this->exceptions = ($exceptions == true); } /** * Sets message type to HTML. * @param bool $ishtml * @return void */ public function IsHTML($ishtml = true) { if ($ishtml) { $this->ContentType = 'text/html'; } else { $this->ContentType = 'text/plain'; } } /** * Sets Mailer to send message using SMTP. * @return void */ public function IsSMTP() { $this->Mailer = 'smtp'; } /** * Sets Mailer to send message using PHP mail() function. * @return void */ public function IsMail() { $this->Mailer = 'mail'; } /** * Sets Mailer to send message using the $Sendmail program. * @return void */ public function IsSendmail() { if (!stristr(ini_get('sendmail_path'), 'sendmail')) { $this->Sendmail = '/var/qmail/bin/sendmail'; } $this->Mailer = 'sendmail'; } /** * Sets Mailer to send message using the qmail MTA. * @return void */ public function IsQmail() { if (stristr(ini_get('sendmail_path'), 'qmail')) { $this->Sendmail = '/var/qmail/bin/sendmail'; } $this->Mailer = 'sendmail'; } ///////////////////////////////////////////////// // METHODS, RECIPIENTS ///////////////////////////////////////////////// /** * Adds a "To" address. * @param string $address * @param string $name * @return boolean true on success, false if address already used */ public function AddAddress($address, $name = '') { return $this->AddAnAddress('to', $address, $name); } /** * Adds a "Cc" address. * Note: this function works with the SMTP mailer on win32, not with the "mail" mailer. * @param string $address * @param string $name * @return boolean true on success, false if address already used */ public function AddCC($address, $name = '') { return $this->AddAnAddress('cc', $address, $name); } /** * Adds a "Bcc" address. * Note: this function works with the SMTP mailer on win32, not with the "mail" mailer. * @param string $address * @param string $name * @return boolean true on success, false if address already used */ public function AddBCC($address, $name = '') { return $this->AddAnAddress('bcc', $address, $name); } /** * Adds a "Reply-to" address. * @param string $address * @param string $name * @return boolean */ public function AddReplyTo($address, $name = '') { return $this->AddAnAddress('ReplyTo', $address, $name); } /** * Adds an address to one of the recipient arrays * Addresses that have been added already return false, but do not throw exceptions * @param string $kind One of 'to', 'cc', 'bcc', 'ReplyTo' * @param string $address The email address to send to * @param string $name * @return boolean true on success, false if address already used or invalid in some way * @access private */ private function AddAnAddress($kind, $address, $name = '') { if (!preg_match('/^(to|cc|bcc|ReplyTo)$/', $kind)) { echo 'Invalid recipient array: ' . kind; return false; } $address = trim($address); $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim if (!self::ValidateAddress($address)) { $this->SetError($this->Lang('invalid_address').': '. $address); if ($this->exceptions) { throw new phpmailerException($this->Lang('invalid_address').': '.$address); } echo $this->Lang('invalid_address').': '.$address; return false; } if ($kind != 'ReplyTo') { if (!isset($this->all_recipients[strtolower($address)])) { array_push($this->$kind, array($address, $name)); $this->all_recipients[strtolower($address)] = true; return true; } } else { if (!array_key_exists(strtolower($address), $this->ReplyTo)) { $this->ReplyTo[strtolower($address)] = array($address, $name); return true; } } return false; } /** * Set the From and FromName properties * @param string $address * @param string $name * @return boolean */ public function SetFrom($address, $name = '',$auto=1) { $address = trim($address); $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim if (!self::ValidateAddress($address)) { $this->SetError($this->Lang('invalid_address').': '. $address); if ($this->exceptions) { throw new phpmailerException($this->Lang('invalid_address').': '.$address); } echo $this->Lang('invalid_address').': '.$address; return false; } $this->From = $address; $this->FromName = $name; if ($auto) { if (empty($this->ReplyTo)) { $this->AddAnAddress('ReplyTo', $address, $name); } if (empty($this->Sender)) { $this->Sender = $address; } } return true; } /** * Check that a string looks roughly like an email address should * Static so it can be used without instantiation * Tries to use PHP built-in validator in the filter extension (from PHP 5.2), falls back to a reasonably competent regex validator * Conforms approximately to RFC2822 * @link http://www.hexillion.com/samples/#Regex Original pattern found here * @param string $address The email address to check * @return boolean * @static * @access public */ public static function ValidateAddress($address) { if (function_exists('filter_var')) { //Introduced in PHP 5.2 if(filter_var($address, FILTER_VALIDATE_EMAIL) === FALSE) { return false; } else { return true; } } else { return preg_match('/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9_](?:[a-zA-Z0-9_\-](?!\.)){0,61}[a-zA-Z0-9_-]?\.)+[a-zA-Z0-9_](?:[a-zA-Z0-9_\-](?!$)){0,61}[a-zA-Z0-9_]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/', $address); } } ///////////////////////////////////////////////// // METHODS, MAIL SENDING ///////////////////////////////////////////////// /** * Creates message and assigns Mailer. If the message is * not sent successfully then it returns false. Use the ErrorInfo * variable to view description of the error. * @return bool */ public function Send() { try { if ((count($this->to) + count($this->cc) + count($this->bcc)) < 1) { throw new phpmailerException($this->Lang('provide_address'), self::STOP_CRITICAL); } // Set whether the message is multipart/alternative if(!empty($this->AltBody)) { $this->ContentType = 'multipart/alternative'; } $this->error_count = 0; // reset errors $this->SetMessageType(); $header = $this->CreateHeader(); $body = $this->CreateBody(); if (empty($this->Body)) { throw new phpmailerException($this->Lang('empty_message'), self::STOP_CRITICAL); } // digitally sign with DKIM if enabled if ($this->DKIM_domain && $this->DKIM_private) { $header_dkim = $this->DKIM_Add($header,$this->Subject,$body); $header = str_replace("\r\n","\n",$header_dkim) . $header; } // Choose the mailer and send through it switch($this->Mailer) { case 'sendmail': return $this->SendmailSend($header, $body); case 'smtp': return $this->SmtpSend($header, $body); default: return $this->MailSend($header, $body); } } catch (phpmailerException $e) { $this->SetError($e->getMessage()); if ($this->exceptions) { throw $e; } echo $e->getMessage()."\n"; return false; } } /** * Sends mail using the $Sendmail program. * @param string $header The message headers * @param string $body The message body * @access protected * @return bool */ protected function SendmailSend($header, $body) { if ($this->Sender != '') { $sendmail = sprintf("%s -oi -f %s -t", escapeshellcmd($this->Sendmail), escapeshellarg($this->Sender)); } else { $sendmail = sprintf("%s -oi -t", escapeshellcmd($this->Sendmail)); } if ($this->SingleTo === true) { foreach ($this->SingleToArray as $key => $val) { if(!@$mail = popen($sendmail, 'w')) { throw new phpmailerException($this->Lang('execute') . $this->Sendmail, self::STOP_CRITICAL); } fputs($mail, "To: " . $val . "\n"); fputs($mail, $header); fputs($mail, $body); $result = pclose($mail); // implement call back function if it exists $isSent = ($result == 0) ? 1 : 0; $this->doCallback($isSent,$val,$this->cc,$this->bcc,$this->Subject,$body); if($result != 0) { throw new phpmailerException($this->Lang('execute') . $this->Sendmail, self::STOP_CRITICAL); } } } else { if(!@$mail = popen($sendmail, 'w')) { throw new phpmailerException($this->Lang('execute') . $this->Sendmail, self::STOP_CRITICAL); } fputs($mail, $header); fputs($mail, $body); $result = pclose($mail); // implement call back function if it exists $isSent = ($result == 0) ? 1 : 0; $this->doCallback($isSent,$this->to,$this->cc,$this->bcc,$this->Subject,$body); if($result != 0) { throw new phpmailerException($this->Lang('execute') . $this->Sendmail, self::STOP_CRITICAL); } } return true; } /** * Sends mail using the PHP mail() function. * @param string $header The message headers * @param string $body The message body * @access protected * @return bool */ protected function MailSend($header, $body) { $toArr = array(); foreach($this->to as $t) { $toArr[] = $this->AddrFormat($t); } $to = implode(', ', $toArr); $params = sprintf("-oi -f %s", $this->Sender); if ($this->Sender != '' && strlen(ini_get('safe_mode'))< 1) { $old_from = ini_get('sendmail_from'); ini_set('sendmail_from', $this->Sender); if ($this->SingleTo === true && count($toArr) > 1) { foreach ($toArr as $key => $val) { $rt = @mail($val, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params); // implement call back function if it exists $isSent = ($rt == 1) ? 1 : 0; $this->doCallback($isSent,$val,$this->cc,$this->bcc,$this->Subject,$body); } } else { $rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params); // implement call back function if it exists $isSent = ($rt == 1) ? 1 : 0; $this->doCallback($isSent,$to,$this->cc,$this->bcc,$this->Subject,$body); } } else { if ($this->SingleTo === true && count($toArr) > 1) { foreach ($toArr as $key => $val) { $rt = @mail($val, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params); // implement call back function if it exists $isSent = ($rt == 1) ? 1 : 0; $this->doCallback($isSent,$val,$this->cc,$this->bcc,$this->Subject,$body); } } else { $rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header); // implement call back function if it exists $isSent = ($rt == 1) ? 1 : 0; $this->doCallback($isSent,$to,$this->cc,$this->bcc,$this->Subject,$body); } } if (isset($old_from)) { ini_set('sendmail_from', $old_from); } if(!$rt) { throw new phpmailerException($this->Lang('instantiate'), self::STOP_CRITICAL); } return true; } /** * Sends mail via SMTP using PhpSMTP * Returns false if there is a bad MAIL FROM, RCPT, or DATA input. * @param string $header The message headers * @param string $body The message body * @uses SMTP * @access protected * @return bool */ protected function SmtpSend($header, $body) { require_once $this->PluginDir . 'class.smtp.php'; $bad_rcpt = array(); if(!$this->SmtpConnect()) { throw new phpmailerException($this->Lang('smtp_connect_failed'), self::STOP_CRITICAL); } $smtp_from = ($this->Sender == '') ? $this->From : $this->Sender; if(!$this->smtp->Mail($smtp_from)) { throw new phpmailerException($this->Lang('from_failed') . $smtp_from, self::STOP_CRITICAL); } // Attempt to send attach all recipients foreach($this->to as $to) { if (!$this->smtp->Recipient($to[0])) { $bad_rcpt[] = $to[0]; // implement call back function if it exists $isSent = 0; $this->doCallback($isSent,$to[0],'','',$this->Subject,$body); } else { // implement call back function if it exists $isSent = 1; $this->doCallback($isSent,$to[0],'','',$this->Subject,$body); } } foreach($this->cc as $cc) { if (!$this->smtp->Recipient($cc[0])) { $bad_rcpt[] = $cc[0]; // implement call back function if it exists $isSent = 0; $this->doCallback($isSent,'',$cc[0],'',$this->Subject,$body); } else { // implement call back function if it exists $isSent = 1; $this->doCallback($isSent,'',$cc[0],'',$this->Subject,$body); } } foreach($this->bcc as $bcc) { if (!$this->smtp->Recipient($bcc[0])) { $bad_rcpt[] = $bcc[0]; // implement call back function if it exists $isSent = 0; $this->doCallback($isSent,'','',$bcc[0],$this->Subject,$body); } else { // implement call back function if it exists $isSent = 1; $this->doCallback($isSent,'','',$bcc[0],$this->Subject,$body); } } if (count($bad_rcpt) > 0 ) { //Create error message for any bad addresses $badaddresses = implode(', ', $bad_rcpt); throw new phpmailerException($this->Lang('recipients_failed') . $badaddresses); } if(!$this->smtp->Data($header . $body)) { throw new phpmailerException($this->Lang('data_not_accepted'), self::STOP_CRITICAL); } if($this->SMTPKeepAlive == true) { $this->smtp->Reset(); } return true; } /** * Initiates a connection to an SMTP server. * Returns false if the operation failed. * @uses SMTP * @access public * @return bool */ public function SmtpConnect() { if(is_null($this->smtp)) { $this->smtp = new SMTP(); } $this->smtp->do_debug = $this->SMTPDebug; $hosts = explode(';', $this->Host); $index = 0; $connection = $this->smtp->Connected(); // Retry while there is no connection try { while($index < count($hosts) && !$connection) { $hostinfo = array(); if (preg_match('/^(.+):([0-9]+)$/', $hosts[$index], $hostinfo)) { $host = $hostinfo[1]; $port = $hostinfo[2]; } else { $host = $hosts[$index]; $port = $this->Port; } $tls = ($this->SMTPSecure == 'tls'); $ssl = ($this->SMTPSecure == 'ssl'); if ($this->smtp->Connect(($ssl ? 'ssl://':'').$host, $port, $this->Timeout)) { $hello = ($this->Helo != '' ? $this->Helo : $this->ServerHostname()); $this->smtp->Hello($hello); if ($tls) { if (!$this->smtp->StartTLS()) { throw new phpmailerException($this->Lang('tls')); } //We must resend HELO after tls negotiation $this->smtp->Hello($hello); } $connection = true; if ($this->SMTPAuth) { if (!$this->smtp->Authenticate($this->Username, $this->Password)) { throw new phpmailerException($this->Lang('authenticate')); } } } $index++; if (!$connection) { throw new phpmailerException($this->Lang('connect_host')); } } } catch (phpmailerException $e) { $this->smtp->Reset(); throw $e; } return true; } /** * Closes the active SMTP session if one exists. * @return void */ public function SmtpClose() { if(!is_null($this->smtp)) { if($this->smtp->Connected()) { $this->smtp->Quit(); $this->smtp->Close(); } } } /** * Sets the language for all class error messages. * Returns false if it cannot load the language file. The default language is English. * @param string $langcode ISO 639-1 2-character language code (e.g. Portuguese: "br") * @param string $lang_path Path to the language file directory * @access public */ function SetLanguage($langcode = 'en', $lang_path = 'language/') { //Define full set of translatable strings $PHPMAILER_LANG = array( 'provide_address' => 'You must provide at least one recipient email address.', 'mailer_not_supported' => ' mailer is not supported.', 'execute' => 'Could not execute: ', 'instantiate' => 'Could not instantiate mail function.', 'authenticate' => 'SMTP Error: Could not authenticate.', 'from_failed' => 'The following From address failed: ', 'recipients_failed' => 'SMTP Error: The following recipients failed: ', 'data_not_accepted' => 'SMTP Error: Data not accepted.', 'connect_host' => 'SMTP Error: Could not connect to SMTP host.', 'file_access' => 'Could not access file: ', 'file_open' => 'File Error: Could not open file: ', 'encoding' => 'Unknown encoding: ', 'signing' => 'Signing Error: ', 'smtp_error' => 'SMTP server error: ', 'empty_message' => 'Message body empty', 'invalid_address' => 'Invalid address', 'variable_set' => 'Cannot set or reset variable: ' ); //Overwrite language-specific strings. This way we'll never have missing translations - no more "language string failed to load"! $l = true; if ($langcode != 'en') { //There is no English translation file $l = @include $lang_path.'phpmailer.lang-'.$langcode.'.php'; } $this->language = $PHPMAILER_LANG; return ($l == true); //Returns false if language not found } /** * Return the current array of language strings * @return array */ public function GetTranslations() { return $this->language; } ///////////////////////////////////////////////// // METHODS, MESSAGE CREATION ///////////////////////////////////////////////// /** * Creates recipient headers. * @access public * @return string */ public function AddrAppend($type, $addr) { $addr_str = $type . ': '; $addresses = array(); foreach ($addr as $a) { $addresses[] = $this->AddrFormat($a); } $addr_str .= implode(', ', $addresses); $addr_str .= $this->LE; return $addr_str; } /** * Formats an address correctly. * @access public * @return string */ public function AddrFormat($addr) { if (empty($addr[1])) { return $this->SecureHeader($addr[0]); } else { return $this->EncodeHeader($this->SecureHeader($addr[1]), 'phrase') . " <" . $this->SecureHeader($addr[0]) . ">"; } } /** * Wraps message for use with mailers that do not * automatically perform wrapping and for quoted-printable. * Original written by philippe. * @param string $message The message to wrap * @param integer $length The line length to wrap to * @param boolean $qp_mode Whether to run in Quoted-Printable mode * @access public * @return string */ public function WrapText($message, $length, $qp_mode = false) { $soft_break = ($qp_mode) ? sprintf(" =%s", $this->LE) : $this->LE; // If utf-8 encoding is used, we will need to make sure we don't // split multibyte characters when we wrap $is_utf8 = (strtolower($this->CharSet) == "utf-8"); $message = $this->FixEOL($message); if (substr($message, -1) == $this->LE) { $message = substr($message, 0, -1); } $line = explode($this->LE, $message); $message = ''; for ($i=0 ;$i < count($line); $i++) { $line_part = explode(' ', $line[$i]); $buf = ''; for ($e = 0; $e<count($line_part); $e++) { $word = $line_part[$e]; if ($qp_mode and (strlen($word) > $length)) { $space_left = $length - strlen($buf) - 1; if ($e != 0) { if ($space_left > 20) { $len = $space_left; if ($is_utf8) { $len = $this->UTF8CharBoundary($word, $len); } elseif (substr($word, $len - 1, 1) == "=") { $len--; } elseif (substr($word, $len - 2, 1) == "=") { $len -= 2; } $part = substr($word, 0, $len); $word = substr($word, $len); $buf .= ' ' . $part; $message .= $buf . sprintf("=%s", $this->LE); } else { $message .= $buf . $soft_break; } $buf = ''; } while (strlen($word) > 0) { $len = $length; if ($is_utf8) { $len = $this->UTF8CharBoundary($word, $len); } elseif (substr($word, $len - 1, 1) == "=") { $len--; } elseif (substr($word, $len - 2, 1) == "=") { $len -= 2; } $part = substr($word, 0, $len); $word = substr($word, $len); if (strlen($word) > 0) { $message .= $part . sprintf("=%s", $this->LE); } else { $buf = $part; } } } else { $buf_o = $buf; $buf .= ($e == 0) ? $word : (' ' . $word); if (strlen($buf) > $length and $buf_o != '') { $message .= $buf_o . $soft_break; $buf = $word; } } } $message .= $buf . $this->LE; } return $message; } /** * Finds last character boundary prior to maxLength in a utf-8 * quoted (printable) encoded string. * Original written by Colin Brown. * @access public * @param string $encodedText utf-8 QP text * @param int $maxLength find last character boundary prior to this length * @return int */ public function UTF8CharBoundary($encodedText, $maxLength) { $foundSplitPos = false; $lookBack = 3; while (!$foundSplitPos) { $lastChunk = substr($encodedText, $maxLength - $lookBack, $lookBack); $encodedCharPos = strpos($lastChunk, "="); if ($encodedCharPos !== false) { // Found start of encoded character byte within $lookBack block. // Check the encoded byte value (the 2 chars after the '=') $hex = substr($encodedText, $maxLength - $lookBack + $encodedCharPos + 1, 2); $dec = hexdec($hex); if ($dec < 128) { // Single byte character. // If the encoded char was found at pos 0, it will fit // otherwise reduce maxLength to start of the encoded char $maxLength = ($encodedCharPos == 0) ? $maxLength : $maxLength - ($lookBack - $encodedCharPos); $foundSplitPos = true; } elseif ($dec >= 192) { // First byte of a multi byte character // Reduce maxLength to split at start of character $maxLength = $maxLength - ($lookBack - $encodedCharPos); $foundSplitPos = true; } elseif ($dec < 192) { // Middle byte of a multi byte character, look further back $lookBack += 3; } } else { // No encoded character found $foundSplitPos = true; } } return $maxLength; } /** * Set the body wrapping. * @access public * @return void */ public function SetWordWrap() { if($this->WordWrap < 1) { return; } switch($this->message_type) { case 'alt': case 'alt_attachments': $this->AltBody = $this->WrapText($this->AltBody, $this->WordWrap); break; default: $this->Body = $this->WrapText($this->Body, $this->WordWrap); break; } } /** * Assembles message header. * @access public * @return string The assembled header */ public function CreateHeader() { $result = ''; // Set the boundaries $uniq_id = md5(uniqid(time())); $this->boundary[1] = 'b1_' . $uniq_id; $this->boundary[2] = 'b2_' . $uniq_id; $result .= $this->HeaderLine('Date', self::RFCDate()); if($this->Sender == '') { $result .= $this->HeaderLine('Return-Path', trim($this->From)); } else { $result .= $this->HeaderLine('Return-Path', trim($this->Sender)); } // To be created automatically by mail() if($this->Mailer != 'mail') { if ($this->SingleTo === true) { foreach($this->to as $t) { $this->SingleToArray[] = $this->AddrFormat($t); } } else { if(count($this->to) > 0) { $result .= $this->AddrAppend('To', $this->to); } elseif (count($this->cc) == 0) { $result .= $this->HeaderLine('To', 'undisclosed-recipients:;'); } } } $from = array(); $from[0][0] = trim($this->From); $from[0][1] = $this->FromName; $result .= $this->AddrAppend('From', $from); // sendmail and mail() extract Cc from the header before sending if(count($this->cc) > 0) { $result .= $this->AddrAppend('Cc', $this->cc); } // sendmail and mail() extract Bcc from the header before sending if((($this->Mailer == 'sendmail') || ($this->Mailer == 'mail')) && (count($this->bcc) > 0)) { $result .= $this->AddrAppend('Bcc', $this->bcc); } if(count($this->ReplyTo) > 0) { $result .= $this->AddrAppend('Reply-to', $this->ReplyTo); } // mail() sets the subject itself if($this->Mailer != 'mail') { $result .= $this->HeaderLine('Subject', $this->EncodeHeader($this->SecureHeader($this->Subject))); } if($this->MessageID != '') { $result .= $this->HeaderLine('Message-ID',$this->MessageID); } else { $result .= sprintf("Message-ID: <%s@%s>%s", $uniq_id, $this->ServerHostname(), $this->LE); } $result .= $this->HeaderLine('X-Priority', $this->Priority); $result .= $this->HeaderLine('X-Mailer', 'PHPMailer '.$this->Version.' (phpmailer.sourceforge.net)'); if($this->ConfirmReadingTo != '') { $result .= $this->HeaderLine('Disposition-Notification-To', '<' . trim($this->ConfirmReadingTo) . '>'); } // Add custom headers for($index = 0; $index < count($this->CustomHeader); $index++) { $result .= $this->HeaderLine(trim($this->CustomHeader[$index][0]), $this->EncodeHeader(trim($this->CustomHeader[$index][1]))); } if (!$this->sign_key_file) { $result .= $this->HeaderLine('MIME-Version', '1.0'); $result .= $this->GetMailMIME(); } return $result; } /** * Returns the message MIME. * @access public * @return string */ public function GetMailMIME() { $result = ''; switch($this->message_type) { case 'plain': $result .= $this->HeaderLine('Content-Transfer-Encoding', $this->Encoding); $result .= sprintf("Content-Type: %s; charset=\"%s\"", $this->ContentType, $this->CharSet); break; case 'attachments': case 'alt_attachments': if($this->InlineImageExists()){ $result .= sprintf("Content-Type: %s;%s\ttype=\"text/html\";%s\tboundary=\"%s\"%s", 'multipart/related', $this->LE, $this->LE, $this->boundary[1], $this->LE); } else { $result .= $this->HeaderLine('Content-Type', 'multipart/mixed;'); $result .= $this->TextLine("\tboundary=\"" . $this->boundary[1] . '"'); } break; case 'alt': $result .= $this->HeaderLine('Content-Type', 'multipart/alternative;'); $result .= $this->TextLine("\tboundary=\"" . $this->boundary[1] . '"'); break; } if($this->Mailer != 'mail') { $result .= $this->LE.$this->LE; } return $result; } /** * Assembles the message body. Returns an empty string on failure. * @access public * @return string The assembled message body */ public function CreateBody() { $body = ''; if ($this->sign_key_file) { $body .= $this->GetMailMIME(); } $this->SetWordWrap(); switch($this->message_type) { case 'alt': $body .= $this->GetBoundary($this->boundary[1], '', 'text/plain', ''); $body .= $this->EncodeString($this->AltBody, $this->Encoding); $body .= $this->LE.$this->LE; $body .= $this->GetBoundary($this->boundary[1], '', 'text/html', ''); $body .= $this->EncodeString($this->Body, $this->Encoding); $body .= $this->LE.$this->LE; $body .= $this->EndBoundary($this->boundary[1]); break; case 'plain': $body .= $this->EncodeString($this->Body, $this->Encoding); break; case 'attachments': $body .= $this->GetBoundary($this->boundary[1], '', '', ''); $body .= $this->EncodeString($this->Body, $this->Encoding); $body .= $this->LE; $body .= $this->AttachAll(); break; case 'alt_attachments': $body .= sprintf("--%s%s", $this->boundary[1], $this->LE); $body .= sprintf("Content-Type: %s;%s" . "\tboundary=\"%s\"%s", 'multipart/alternative', $this->LE, $this->boundary[2], $this->LE.$this->LE); $body .= $this->GetBoundary($this->boundary[2], '', 'text/plain', '') . $this->LE; // Create text body $body .= $this->EncodeString($this->AltBody, $this->Encoding); $body .= $this->LE.$this->LE; $body .= $this->GetBoundary($this->boundary[2], '', 'text/html', '') . $this->LE; // Create the HTML body $body .= $this->EncodeString($this->Body, $this->Encoding); $body .= $this->LE.$this->LE; $body .= $this->EndBoundary($this->boundary[2]); $body .= $this->AttachAll(); break; } if ($this->IsError()) { $body = ''; } elseif ($this->sign_key_file) { try { $file = tempnam('', 'mail'); file_put_contents($file, $body); //TODO check this worked $signed = tempnam("", "signed"); if (@openssl_pkcs7_sign($file, $signed, "file://".$this->sign_cert_file, array("file://".$this->sign_key_file, $this->sign_key_pass), NULL)) { @unlink($file); @unlink($signed); $body = file_get_contents($signed); } else { @unlink($file); @unlink($signed); throw new phpmailerException($this->Lang("signing").openssl_error_string()); } } catch (phpmailerException $e) { $body = ''; if ($this->exceptions) { throw $e; } } } return $body; } /** * Returns the start of a message boundary. * @access private */ private function GetBoundary($boundary, $charSet, $contentType, $encoding) { $result = ''; if($charSet == '') { $charSet = $this->CharSet; } if($contentType == '') { $contentType = $this->ContentType; } if($encoding == '') { $encoding = $this->Encoding; } $result .= $this->TextLine('--' . $boundary); $result .= sprintf("Content-Type: %s; charset = \"%s\"", $contentType, $charSet); $result .= $this->LE; $result .= $this->HeaderLine('Content-Transfer-Encoding', $encoding); $result .= $this->LE; return $result; } /** * Returns the end of a message boundary. * @access private */ private function EndBoundary($boundary) { return $this->LE . '--' . $boundary . '--' . $this->LE; } /** * Sets the message type. * @access private * @return void */ private function SetMessageType() { if(count($this->attachment) < 1 && strlen($this->AltBody) < 1) { $this->message_type = 'plain'; } else { if(count($this->attachment) > 0) { $this->message_type = 'attachments'; } if(strlen($this->AltBody) > 0 && count($this->attachment) < 1) { $this->message_type = 'alt'; } if(strlen($this->AltBody) > 0 && count($this->attachment) > 0) { $this->message_type = 'alt_attachments'; } } } /** * Returns a formatted header line. * @access public * @return string */ public function HeaderLine($name, $value) { return $name . ': ' . $value . $this->LE; } /** * Returns a formatted mail line. * @access public * @return string */ public function TextLine($value) { return $value . $this->LE; } ///////////////////////////////////////////////// // CLASS METHODS, ATTACHMENTS ///////////////////////////////////////////////// /** * Adds an attachment from a path on the filesystem. * Returns false if the file could not be found * or accessed. * @param string $path Path to the attachment. * @param string $name Overrides the attachment name. * @param string $encoding File encoding (see $Encoding). * @param string $type File extension (MIME) type. * @return bool */ public function AddAttachment($path, $name = '', $encoding = 'base64', $type = 'application/octet-stream') { try { if ( !@is_file($path) ) { throw new phpmailerException($this->Lang('file_access') . $path, self::STOP_CONTINUE); } $filename = basename($path); if ( $name == '' ) { $name = $filename; } $this->attachment[] = array( 0 => $path, 1 => $filename, 2 => $name, 3 => $encoding, 4 => $type, 5 => false, // isStringAttachment 6 => 'attachment', 7 => 0 ); } catch (phpmailerException $e) { $this->SetError($e->getMessage()); if ($this->exceptions) { throw $e; } echo $e->getMessage()."\n"; if ( $e->getCode() == self::STOP_CRITICAL ) { return false; } } return true; } /** * Return the current array of attachments * @return array */ public function GetAttachments() { return $this->attachment; } /** * Attaches all fs, string, and binary attachments to the message. * Returns an empty string on failure. * @access private * @return string */ private function AttachAll() { // Return text of body $mime = array(); $cidUniq = array(); $incl = array(); // Add all attachments foreach ($this->attachment as $attachment) { // Check for string attachment $bString = $attachment[5]; if ($bString) { $string = $attachment[0]; } else { $path = $attachment[0]; } if (in_array($attachment[0], $incl)) { continue; } $filename = $attachment[1]; $name = $attachment[2]; $encoding = $attachment[3]; $type = $attachment[4]; $disposition = $attachment[6]; $cid = $attachment[7]; $incl[] = $attachment[0]; if ( $disposition == 'inline' && isset($cidUniq[$cid]) ) { continue; } $cidUniq[$cid] = true; $mime[] = sprintf("--%s%s", $this->boundary[1], $this->LE); $mime[] = sprintf("Content-Type: %s; name=\"%s\"%s", $type, $this->EncodeHeader($this->SecureHeader($name)), $this->LE); $mime[] = sprintf("Content-Transfer-Encoding: %s%s", $encoding, $this->LE); if($disposition == 'inline') { $mime[] = sprintf("Content-ID: <%s>%s", $cid, $this->LE); } $mime[] = sprintf("Content-Disposition: %s; filename=\"%s\"%s", $disposition, $this->EncodeHeader($this->SecureHeader($name)), $this->LE.$this->LE); // Encode as string attachment if($bString) { $mime[] = $this->EncodeString($string, $encoding); if($this->IsError()) { return ''; } $mime[] = $this->LE.$this->LE; } else { $mime[] = $this->EncodeFile($path, $encoding); if($this->IsError()) { return ''; } $mime[] = $this->LE.$this->LE; } } $mime[] = sprintf("--%s--%s", $this->boundary[1], $this->LE); return join('', $mime); } /** * Encodes attachment in requested format. * Returns an empty string on failure. * @param string $path The full path to the file * @param string $encoding The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable' * @see EncodeFile() * @access private * @return string */ private function EncodeFile($path, $encoding = 'base64') { try { if (!is_readable($path)) { throw new phpmailerException($this->Lang('file_open') . $path, self::STOP_CONTINUE); } if (function_exists('get_magic_quotes')) { function get_magic_quotes() { return false; } } if (PHP_VERSION < 6) { $magic_quotes = get_magic_quotes_runtime(); set_magic_quotes_runtime(0); } $file_buffer = file_get_contents($path); $file_buffer = $this->EncodeString($file_buffer, $encoding); if (PHP_VERSION < 6) { set_magic_quotes_runtime($magic_quotes); } return $file_buffer; } catch (Exception $e) { $this->SetError($e->getMessage()); return ''; } } /** * Encodes string to requested format. * Returns an empty string on failure. * @param string $str The text to encode * @param string $encoding The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable' * @access public * @return string */ public function EncodeString ($str, $encoding = 'base64') { $encoded = ''; switch(strtolower($encoding)) { case 'base64': $encoded = chunk_split(base64_encode($str), 76, $this->LE); break; case '7bit': case '8bit': $encoded = $this->FixEOL($str); //Make sure it ends with a line break if (substr($encoded, -(strlen($this->LE))) != $this->LE) $encoded .= $this->LE; break; case 'binary': $encoded = $str; break; case 'quoted-printable': $encoded = $this->EncodeQP($str); break; default: $this->SetError($this->Lang('encoding') . $encoding); break; } return $encoded; } /** * Encode a header string to best (shortest) of Q, B, quoted or none. * @access public * @return string */ public function EncodeHeader($str, $position = 'text') { $x = 0; switch (strtolower($position)) { case 'phrase': if (!preg_match('/[\200-\377]/', $str)) { // Can't use addslashes as we don't know what value has magic_quotes_sybase $encoded = addcslashes($str, "\0..\37\177\\\""); if (($str == $encoded) && !preg_match('/[^A-Za-z0-9!#$%&\'*+\/=?^_`{|}~ -]/', $str)) { return ($encoded); } else { return ("\"$encoded\""); } } $x = preg_match_all('/[^\040\041\043-\133\135-\176]/', $str, $matches); break; case 'comment': $x = preg_match_all('/[()"]/', $str, $matches); // Fall-through case 'text': default: $x += preg_match_all('/[\000-\010\013\014\016-\037\177-\377]/', $str, $matches); break; } if ($x == 0) { return ($str); } $maxlen = 75 - 7 - strlen($this->CharSet); // Try to select the encoding which should produce the shortest output if (strlen($str)/3 < $x) { $encoding = 'B'; if (function_exists('mb_strlen') && $this->HasMultiBytes($str)) { // Use a custom function which correctly encodes and wraps long // multibyte strings without breaking lines within a character $encoded = $this->Base64EncodeWrapMB($str); } else { $encoded = base64_encode($str); $maxlen -= $maxlen % 4; $encoded = trim(chunk_split($encoded, $maxlen, "\n")); } } else { $encoding = 'Q'; $encoded = $this->EncodeQ($str, $position); $encoded = $this->WrapText($encoded, $maxlen, true); $encoded = str_replace('='.$this->LE, "\n", trim($encoded)); } $encoded = preg_replace('/^(.*)$/m', " =?".$this->CharSet."?$encoding?\\1?=", $encoded); $encoded = trim(str_replace("\n", $this->LE, $encoded)); return $encoded; } /** * Checks if a string contains multibyte characters. * @access public * @param string $str multi-byte text to wrap encode * @return bool */ public function HasMultiBytes($str) { if (function_exists('mb_strlen')) { return (strlen($str) > mb_strlen($str, $this->CharSet)); } else { // Assume no multibytes (we can't handle without mbstring functions anyway) return false; } } /** * Correctly encodes and wraps long multibyte strings for mail headers * without breaking lines within a character. * Adapted from a function by paravoid at http://uk.php.net/manual/en/function.mb-encode-mimeheader.php * @access public * @param string $str multi-byte text to wrap encode * @return string */ public function Base64EncodeWrapMB($str) { $start = "=?".$this->CharSet."?B?"; $end = "?="; $encoded = ""; $mb_length = mb_strlen($str, $this->CharSet); // Each line must have length <= 75, including $start and $end $length = 75 - strlen($start) - strlen($end); // Average multi-byte ratio $ratio = $mb_length / strlen($str); // Base64 has a 4:3 ratio $offset = $avgLength = floor($length * $ratio * .75); for ($i = 0; $i < $mb_length; $i += $offset) { $lookBack = 0; do { $offset = $avgLength - $lookBack; $chunk = mb_substr($str, $i, $offset, $this->CharSet); $chunk = base64_encode($chunk); $lookBack++; } while (strlen($chunk) > $length); $encoded .= $chunk . $this->LE; } // Chomp the last linefeed $encoded = substr($encoded, 0, -strlen($this->LE)); return $encoded; } /** * Encode string to quoted-printable. * Only uses standard PHP, slow, but will always work * @access public * @param string $string the text to encode * @param integer $line_max Number of chars allowed on a line before wrapping * @return string */ public function EncodeQPphp( $input = '', $line_max = 76, $space_conv = false) { $hex = array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'); $lines = preg_split('/(?:\r\n|\r|\n)/', $input); $eol = "\r\n"; $escape = '='; $output = ''; while( list(, $line) = each($lines) ) { $linlen = strlen($line); $newline = ''; for($i = 0; $i < $linlen; $i++) { $c = substr( $line, $i, 1 ); $dec = ord( $c ); if ( ( $i == 0 ) && ( $dec == 46 ) ) { // convert first point in the line into =2E $c = '=2E'; } if ( $dec == 32 ) { if ( $i == ( $linlen - 1 ) ) { // convert space at eol only $c = '=20'; } else if ( $space_conv ) { $c = '=20'; } } elseif ( ($dec == 61) || ($dec < 32 ) || ($dec > 126) ) { // always encode "\t", which is *not* required $h2 = floor($dec/16); $h1 = floor($dec%16); $c = $escape.$hex[$h2].$hex[$h1]; } if ( (strlen($newline) + strlen($c)) >= $line_max ) { // CRLF is not counted $output .= $newline.$escape.$eol; // soft line break; " =\r\n" is okay $newline = ''; // check if newline first character will be point or not if ( $dec == 46 ) { $c = '=2E'; } } $newline .= $c; } // end of for $output .= $newline.$eol; } // end of while return $output; } /** * Encode string to RFC2045 (6.7) quoted-printable format * Uses a PHP5 stream filter to do the encoding about 64x faster than the old version * Also results in same content as you started with after decoding * @see EncodeQPphp() * @access public * @param string $string the text to encode * @param integer $line_max Number of chars allowed on a line before wrapping * @param boolean $space_conv Dummy param for compatibility with existing EncodeQP function * @return string * @author Marcus Bointon */ public function EncodeQP($string, $line_max = 76, $space_conv = false) { if (function_exists('quoted_printable_encode')) { //Use native function if it's available (>= PHP5.3) return quoted_printable_encode($string); } $filters = stream_get_filters(); if (!in_array('convert.*', $filters)) { //Got convert stream filter? return $this->EncodeQPphp($string, $line_max, $space_conv); //Fall back to old implementation } $fp = fopen('php://temp/', 'r+'); $string = preg_replace('/\r\n?/', $this->LE, $string); //Normalise line breaks $params = array('line-length' => $line_max, 'line-break-chars' => $this->LE); $s = stream_filter_append($fp, 'convert.quoted-printable-encode', STREAM_FILTER_READ, $params); fputs($fp, $string); rewind($fp); $out = stream_get_contents($fp); stream_filter_remove($s); $out = preg_replace('/^\./m', '=2E', $out); //Encode . if it is first char on a line, workaround for bug in Exchange fclose($fp); return $out; } /** * Encode string to q encoding. * @link http://tools.ietf.org/html/rfc2047 * @param string $str the text to encode * @param string $position Where the text is going to be used, see the RFC for what that means * @access public * @return string */ public function EncodeQ ($str, $position = 'text') { // There should not be any EOL in the string $encoded = preg_replace('/[\r\n]*/', '', $str); switch (strtolower($position)) { case 'phrase': $encoded = preg_replace("/([^A-Za-z0-9!*+\/ -])/e", "'='.sprintf('%02X', ord('\\1'))", $encoded); break; case 'comment': $encoded = preg_replace("/([\(\)\"])/e", "'='.sprintf('%02X', ord('\\1'))", $encoded); case 'text': default: // Replace every high ascii, control =, ? and _ characters //TODO using /e (equivalent to eval()) is probably not a good idea $encoded = preg_replace('/([\000-\011\013\014\016-\037\075\077\137\177-\377])/e', "'='.sprintf('%02X', ord('\\1'))", $encoded); break; } // Replace every spaces to _ (more readable than =20) $encoded = str_replace(' ', '_', $encoded); return $encoded; } /** * Adds a string or binary attachment (non-filesystem) to the list. * This method can be used to attach ascii or binary data, * such as a BLOB record from a database. * @param string $string String attachment data. * @param string $filename Name of the attachment. * @param string $encoding File encoding (see $Encoding). * @param string $type File extension (MIME) type. * @return void */ public function AddStringAttachment($string, $filename, $encoding = 'base64', $type = 'application/octet-stream') { // Append to $attachment array $this->attachment[] = array( 0 => $string, 1 => $filename, 2 => basename($filename), 3 => $encoding, 4 => $type, 5 => true, // isStringAttachment 6 => 'attachment', 7 => 0 ); } /** * Adds an embedded attachment. This can include images, sounds, and * just about any other document. Make sure to set the $type to an * image type. For JPEG images use "image/jpeg" and for GIF images * use "image/gif". * @param string $path Path to the attachment. * @param string $cid Content ID of the attachment. Use this to identify * the Id for accessing the image in an HTML form. * @param string $name Overrides the attachment name. * @param string $encoding File encoding (see $Encoding). * @param string $type File extension (MIME) type. * @return bool */ public function AddEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = 'application/octet-stream') { if ( !@is_file($path) ) { $this->SetError($this->Lang('file_access') . $path); return false; } $filename = basename($path); if ( $name == '' ) { $name = $filename; } // Append to $attachment array $this->attachment[] = array( 0 => $path, 1 => $filename, 2 => $name, 3 => $encoding, 4 => $type, 5 => false, // isStringAttachment 6 => 'inline', 7 => $cid ); return true; } /** * Returns true if an inline attachment is present. * @access public * @return bool */ public function InlineImageExists() { foreach($this->attachment as $attachment) { if ($attachment[6] == 'inline') { return true; } } return false; } ///////////////////////////////////////////////// // CLASS METHODS, MESSAGE RESET ///////////////////////////////////////////////// /** * Clears all recipients assigned in the TO array. Returns void. * @return void */ public function ClearAddresses() { foreach($this->to as $to) { unset($this->all_recipients[strtolower($to[0])]); } $this->to = array(); } /** * Clears all recipients assigned in the CC array. Returns void. * @return void */ public function ClearCCs() { foreach($this->cc as $cc) { unset($this->all_recipients[strtolower($cc[0])]); } $this->cc = array(); } /** * Clears all recipients assigned in the BCC array. Returns void. * @return void */ public function ClearBCCs() { foreach($this->bcc as $bcc) { unset($this->all_recipients[strtolower($bcc[0])]); } $this->bcc = array(); } /** * Clears all recipients assigned in the ReplyTo array. Returns void. * @return void */ public function ClearReplyTos() { $this->ReplyTo = array(); } /** * Clears all recipients assigned in the TO, CC and BCC * array. Returns void. * @return void */ public function ClearAllRecipients() { $this->to = array(); $this->cc = array(); $this->bcc = array(); $this->all_recipients = array(); } /** * Clears all previously set filesystem, string, and binary * attachments. Returns void. * @return void */ public function ClearAttachments() { $this->attachment = array(); } /** * Clears all custom headers. Returns void. * @return void */ public function ClearCustomHeaders() { $this->CustomHeader = array(); } ///////////////////////////////////////////////// // CLASS METHODS, MISCELLANEOUS ///////////////////////////////////////////////// /** * Adds the error message to the error container. * @access protected * @return void */ protected function SetError($msg) { $this->error_count++; if ($this->Mailer == 'smtp' and !is_null($this->smtp)) { $lasterror = $this->smtp->getError(); if (!empty($lasterror) and array_key_exists('smtp_msg', $lasterror)) { $msg .= '<p>' . $this->Lang('smtp_error') . $lasterror['smtp_msg'] . "</p>\n"; } } $this->ErrorInfo = $msg; } /** * Returns the proper RFC 822 formatted date. * @access public * @return string * @static */ public static function RFCDate() { $tz = date('Z'); $tzs = ($tz < 0) ? '-' : '+'; $tz = abs($tz); $tz = (int)($tz/3600)*100 + ($tz%3600)/60; $result = sprintf("%s %s%04d", date('D, j M Y H:i:s'), $tzs, $tz); return $result; } /** * Returns the server hostname or 'localhost.localdomain' if unknown. * @access private * @return string */ private function ServerHostname() { if (!empty($this->Hostname)) { $result = $this->Hostname; } elseif (isset($_SERVER['SERVER_NAME'])) { $result = $_SERVER['SERVER_NAME']; } else { $result = 'localhost.localdomain'; } return $result; } /** * Returns a message in the appropriate language. * @access private * @return string */ private function Lang($key) { if(count($this->language) < 1) { $this->SetLanguage('en'); // set the default language } if(isset($this->language[$key])) { return $this->language[$key]; } else { return 'Language string failed to load: ' . $key; } } /** * Returns true if an error occurred. * @access public * @return bool */ public function IsError() { return ($this->error_count > 0); } /** * Changes every end of line from CR or LF to CRLF. * @access private * @return string */ private function FixEOL($str) { $str = str_replace("\r\n", "\n", $str); $str = str_replace("\r", "\n", $str); $str = str_replace("\n", $this->LE, $str); return $str; } /** * Adds a custom header. * @access public * @return void */ public function AddCustomHeader($custom_header) { $this->CustomHeader[] = explode(':', $custom_header, 2); } /** * Evaluates the message and returns modifications for inline images and backgrounds * @access public * @return $message */ public function MsgHTML($message, $basedir = '') { preg_match_all("/(src|background)=\"(.*)\"/Ui", $message, $images); if(isset($images[2])) { foreach($images[2] as $i => $url) { // do not change urls for absolute images (thanks to corvuscorax) if (!preg_match('#^[A-z]+://#',$url)) { $filename = basename($url); $directory = dirname($url); ($directory == '.')?$directory='':''; $cid = 'cid:' . md5($filename); $ext = pathinfo($filename, PATHINFO_EXTENSION); $mimeType = self::_mime_types($ext); if ( strlen($basedir) > 1 && substr($basedir,-1) != '/') { $basedir .= '/'; } if ( strlen($directory) > 1 && substr($directory,-1) != '/') { $directory .= '/'; } if ( $this->AddEmbeddedImage($basedir.$directory.$filename, md5($filename), $filename, 'base64',$mimeType) ) { $message = preg_replace("/".$images[1][$i]."=\"".preg_quote($url, '/')."\"/Ui", $images[1][$i]."=\"".$cid."\"", $message); } } } } $this->IsHTML(true); $this->Body = $message; $textMsg = trim(strip_tags(preg_replace('/<(head|title|style|script)[^>]*>.*?<\/\\1>/s','',$message))); if (!empty($textMsg) && empty($this->AltBody)) { $this->AltBody = html_entity_decode($textMsg); } if (empty($this->AltBody)) { $this->AltBody = 'To view this email message, open it in a program that understands HTML!' . "\n\n"; } } /** * Gets the MIME type of the embedded or inline image * @param string File extension * @access public * @return string MIME type of ext * @static */ public static function _mime_types($ext = '') { $mimes = array( 'hqx' => 'application/mac-binhex40', 'cpt' => 'application/mac-compactpro', 'doc' => 'application/msword', 'bin' => 'application/macbinary', 'dms' => 'application/octet-stream', 'lha' => 'application/octet-stream', 'lzh' => 'application/octet-stream', 'exe' => 'application/octet-stream', 'class' => 'application/octet-stream', 'psd' => 'application/octet-stream', 'so' => 'application/octet-stream', 'sea' => 'application/octet-stream', 'dll' => 'application/octet-stream', 'oda' => 'application/oda', 'pdf' => 'application/pdf', 'ai' => 'application/postscript', 'eps' => 'application/postscript', 'ps' => 'application/postscript', 'smi' => 'application/smil', 'smil' => 'application/smil', 'mif' => 'application/vnd.mif', 'xls' => 'application/vnd.ms-excel', 'ppt' => 'application/vnd.ms-powerpoint', 'wbxml' => 'application/vnd.wap.wbxml', 'wmlc' => 'application/vnd.wap.wmlc', 'dcr' => 'application/x-director', 'dir' => 'application/x-director', 'dxr' => 'application/x-director', 'dvi' => 'application/x-dvi', 'gtar' => 'application/x-gtar', 'php' => 'application/x-httpd-php', 'php4' => 'application/x-httpd-php', 'php3' => 'application/x-httpd-php', 'phtml' => 'application/x-httpd-php', 'phps' => 'application/x-httpd-php-source', 'js' => 'application/x-javascript', 'swf' => 'application/x-shockwave-flash', 'sit' => 'application/x-stuffit', 'tar' => 'application/x-tar', 'tgz' => 'application/x-tar', 'xhtml' => 'application/xhtml+xml', 'xht' => 'application/xhtml+xml', 'zip' => 'application/zip', 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mpga' => 'audio/mpeg', 'mp2' => 'audio/mpeg', 'mp3' => 'audio/mpeg', 'aif' => 'audio/x-aiff', 'aiff' => 'audio/x-aiff', 'aifc' => 'audio/x-aiff', 'ram' => 'audio/x-pn-realaudio', 'rm' => 'audio/x-pn-realaudio', 'rpm' => 'audio/x-pn-realaudio-plugin', 'ra' => 'audio/x-realaudio', 'rv' => 'video/vnd.rn-realvideo', 'wav' => 'audio/x-wav', 'bmp' => 'image/bmp', 'gif' => 'image/gif', 'jpeg' => 'image/jpeg', 'jpg' => 'image/jpeg', 'jpe' => 'image/jpeg', 'png' => 'image/png', 'tiff' => 'image/tiff', 'tif' => 'image/tiff', 'css' => 'text/css', 'html' => 'text/html', 'htm' => 'text/html', 'shtml' => 'text/html', 'txt' => 'text/plain', 'text' => 'text/plain', 'log' => 'text/plain', 'rtx' => 'text/richtext', 'rtf' => 'text/rtf', 'xml' => 'text/xml', 'xsl' => 'text/xml', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpe' => 'video/mpeg', 'qt' => 'video/quicktime', 'mov' => 'video/quicktime', 'avi' => 'video/x-msvideo', 'movie' => 'video/x-sgi-movie', 'doc' => 'application/msword', 'word' => 'application/msword', 'xl' => 'application/excel', 'eml' => 'message/rfc822' ); return (!isset($mimes[strtolower($ext)])) ? 'application/octet-stream' : $mimes[strtolower($ext)]; } /** * Set (or reset) Class Objects (variables) * * Usage Example: * $page->set('X-Priority', '3'); * * @access public * @param string $name Parameter Name * @param mixed $value Parameter Value * NOTE: will not work with arrays, there are no arrays to set/reset * @todo Should this not be using __set() magic function? */ public function set($name, $value = '') { try { if (isset($this->$name) ) { $this->$name = $value; } else { throw new phpmailerException($this->Lang('variable_set') . $name, self::STOP_CRITICAL); } } catch (Exception $e) { $this->SetError($e->getMessage()); if ($e->getCode() == self::STOP_CRITICAL) { return false; } } return true; } /** * Strips newlines to prevent header injection. * @access public * @param string $str String * @return string */ public function SecureHeader($str) { $str = str_replace("\r", '', $str); $str = str_replace("\n", '', $str); return trim($str); } /** * Set the private key file and password to sign the message. * * @access public * @param string $key_filename Parameter File Name * @param string $key_pass Password for private key */ public function Sign($cert_filename, $key_filename, $key_pass) { $this->sign_cert_file = $cert_filename; $this->sign_key_file = $key_filename; $this->sign_key_pass = $key_pass; } /** * Set the private key file and password to sign the message. * * @access public * @param string $key_filename Parameter File Name * @param string $key_pass Password for private key */ public function DKIM_QP($txt) { $tmp=""; $line=""; for ($i=0;$i<strlen($txt);$i++) { $ord=ord($txt[$i]); if ( ((0x21 <= $ord) && ($ord <= 0x3A)) || $ord == 0x3C || ((0x3E <= $ord) && ($ord <= 0x7E)) ) { $line.=$txt[$i]; } else { $line.="=".sprintf("%02X",$ord); } } return $line; } /** * Generate DKIM signature * * @access public * @param string $s Header */ public function DKIM_Sign($s) { $privKeyStr = file_get_contents($this->DKIM_private); if ($this->DKIM_passphrase!='') { $privKey = openssl_pkey_get_private($privKeyStr,$this->DKIM_passphrase); } else { $privKey = $privKeyStr; } if (openssl_sign($s, $signature, $privKey)) { return base64_encode($signature); } } /** * Generate DKIM Canonicalization Header * * @access public * @param string $s Header */ public function DKIM_HeaderC($s) { $s=preg_replace("/\r\n\s+/"," ",$s); $lines=explode("\r\n",$s); foreach ($lines as $key=>$line) { list($heading,$value)=explode(":",$line,2); $heading=strtolower($heading); $value=preg_replace("/\s+/"," ",$value) ; // Compress useless spaces $lines[$key]=$heading.":".trim($value) ; // Don't forget to remove WSP around the value } $s=implode("\r\n",$lines); return $s; } /** * Generate DKIM Canonicalization Body * * @access public * @param string $body Message Body */ public function DKIM_BodyC($body) { if ($body == '') return "\r\n"; // stabilize line endings $body=str_replace("\r\n","\n",$body); $body=str_replace("\n","\r\n",$body); // END stabilize line endings while (substr($body,strlen($body)-4,4) == "\r\n\r\n") { $body=substr($body,0,strlen($body)-2); } return $body; } /** * Create the DKIM header, body, as new header * * @access public * @param string $headers_line Header lines * @param string $subject Subject * @param string $body Body */ public function DKIM_Add($headers_line,$subject,$body) { $DKIMsignatureType = 'rsa-sha1'; // Signature & hash algorithms $DKIMcanonicalization = 'relaxed/simple'; // Canonicalization of header/body $DKIMquery = 'dns/txt'; // Query method $DKIMtime = time() ; // Signature Timestamp = seconds since 00:00:00 - Jan 1, 1970 (UTC time zone) $subject_header = "Subject: $subject"; $headers = explode("\r\n",$headers_line); foreach($headers as $header) { if (strpos($header,'From:') === 0) { $from_header=$header; } elseif (strpos($header,'To:') === 0) { $to_header=$header; } } $from = str_replace('|','=7C',$this->DKIM_QP($from_header)); $to = str_replace('|','=7C',$this->DKIM_QP($to_header)); $subject = str_replace('|','=7C',$this->DKIM_QP($subject_header)) ; // Copied header fields (dkim-quoted-printable $body = $this->DKIM_BodyC($body); $DKIMlen = strlen($body) ; // Length of body $DKIMb64 = base64_encode(pack("H*", sha1($body))) ; // Base64 of packed binary SHA-1 hash of body $ident = ($this->DKIM_identity == '')? '' : " i=" . $this->DKIM_identity . ";"; $dkimhdrs = "DKIM-Signature: v=1; a=" . $DKIMsignatureType . "; q=" . $DKIMquery . "; l=" . $DKIMlen . "; s=" . $this->DKIM_selector . ";\r\n". "\tt=" . $DKIMtime . "; c=" . $DKIMcanonicalization . ";\r\n". "\th=From:To:Subject;\r\n". "\td=" . $this->DKIM_domain . ";" . $ident . "\r\n". "\tz=$from\r\n". "\t|$to\r\n". "\t|$subject;\r\n". "\tbh=" . $DKIMb64 . ";\r\n". "\tb="; $toSign = $this->DKIM_HeaderC($from_header . "\r\n" . $to_header . "\r\n" . $subject_header . "\r\n" . $dkimhdrs); $signed = $this->DKIM_Sign($toSign); return "X-PHPMAILER-DKIM: phpmailer.worxware.com\r\n".$dkimhdrs.$signed."\r\n"; } protected function doCallback($isSent,$to,$cc,$bcc,$subject,$body) { if (!empty($this->action_function) && function_exists($this->action_function)) { $params = array($isSent,$to,$cc,$bcc,$subject,$body); call_user_func_array($this->action_function,$params); } } } class phpmailerException extends Exception { public function errorMessage() { $errorMsg = '<strong>' . $this->getMessage() . "</strong><br />\n"; return $errorMsg; } } ?>

m_home.php <table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td bgcolor="#F3F3F3"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><div class="kat">Headline</div><hr color="#CCCCCC 1px solid" /></td> </tr> <tr> <td align="left" valign="top"><?php include "m_headline.php";?></td> </tr> </table></td> </tr> <tr> <td bgcolor="#F3F3F3"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><div class="kat"><?php echo "<a href='index.php?read=epaper;".paramEncrypt('p=m_epaper_home')."'>"; ?><img src="images/epaper.jpg" width="100%" border="0" /></a></div><hr color="#CCCCCC 1px solid" /></td> </tr> </table></td> </tr> <tr> <td bgcolor="#F3F3F3"><img src="images/gg.jpg" width="100%" border="0" /></td> </tr> <tr> <td bgcolor="#F3F3F3"><a href='http://bprjatim.co.id/' target='_blank'><img src="images/bankumkm.jpg" width="100%" border="0" /></a></td> </tr> <tr> <td bgcolor="#F3F3F3"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><div class="kat">Berita Terbaru</div><hr color="#CCCCCC 1px solid" /></td> </tr> <tr> <td align="left" valign="top"><?php include "m_breaking.php";?></td> </tr> </table></td> </tr> <tr> <td align="right" valign="top" bgcolor="#F3F3F3"><div class="judul_bk"><a <?php echo " href='index.php?".paramEncrypt('p=m_indeks')."'";?>>&raquo; Index Berita</a></div></td> </tr> </table>

adv_add.php <?php session_start(); if(($_SESSION['slevel']=="Administrator") || ($_SESSION['slevel']=="Adv")) { $id=$var['idinfo']; $cek=mysql_query("select * from ADV where idadv='$id'"); $dcek=mysql_fetch_array($cek); ?> <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title></title> <style type="text/css"> <!-- .style43 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } .style50 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; } .style52 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10; } --> </style> <script type="text/javascript"> function ismaxlength(obj){ var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : "" if (obj.getAttribute && obj.value.length>mlength) obj.value=obj.value.substring(0,mlength) } </script> <script type="text/javascript" src="include/jquery-1.2.6.pack.js"></script> <script type='text/javascript' src='include/jquery.autocomplete.pack.js'></script> <link rel="stylesheet" media="all" type="text/css" href="css/jquery-ui.css" /> <link rel="stylesheet" media="all" type="text/css" href="jquery-ui-timepicker-addon.css" /> <script type="text/javascript" src="jquery-1.8.2.min.js"></script> <script type="text/javascript" src="jquery-ui.min.js"></script> <script type="text/javascript" src="jquery-ui-timepicker-addon.js"></script> <script type="text/javascript"> $(function(){ var ex13 = $('#utility_example_1'); ex13.datepicker({ dateFormat: "yy-mm-dd" }); }); </script> <!-- Autocomplete Formatting <link rel="stylesheet" type="text/css" href="include/jquery.autocomplete.css" /> <script type="text/javascript"> $().ready(function() { $("#targetDiv").autocomplete("include/mysql.php", { width: 260, selectFirst: true }); }); </script>--> </head> <body marginheight="0" marginwidth="0" topmargin="0"> <table width="100%" border="0" cellspacing="0" cellpadding="10" align="center"> <tr> <td width="100%" align="left"><font size="2"><b>:: Add Adv </b></font> <hr size="1"></td> </tr> <tr> <td> <script language="JavaScript"> function checkrequired(which) { var pass=true; if (document.images) { for (i=0;i<which.length;i++) { var tempobj=which.elements[i]; if (tempobj.name.substring(0,8)=="required") { if (((tempobj.type=="text"||tempobj.type=="textarea")&& tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&& tempobj.selectedIndex==0)) { pass=false; break; } } } } if (!pass) { shortFieldName=tempobj.name.substring(8,30).toUpperCase(); alert("Tolong silahkan anda isikan "+shortFieldName+" untuk melengkapinya"); return false; } else return true; } </script> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <form onSubmit="return checkrequired(this)" name="data_admin" enctype="multipart/form-data" method="post" action="<?php echo "index.php?".paramEncrypt('p=adv_save');?>"> <tr align="left" valign="top"> <td class="text"><span class="style43">Title </span></td> <td class="text"><span class="style43">:</span></td> <td class="text"><span class="style43"> <input type="text" name="title" maxlength="100"> <label></label> &nbsp;&nbsp;&nbsp; <label></label> </span></td> </tr> <tr align="left" valign="top"> <td class="text"><span class="style43">Foto</span></td> <td class="text"><span class="style43">:</span></td> <td class="text"><span class="style43"> <input name="image" type="file" class="textbox" id="image"> <label></label> &nbsp;&nbsp;&nbsp; <label></label> </span></td> </tr> <tr align="left" valign="top"> <td width="12%" class="text"><span class="style43">Caption</span></td> <td width="1%" class="text"><span class="style43">:</span></td> <td width="87%" class="text"><span class="style43"><span class="style50"> <textarea name="caption" cols="40" rows="15" wrap="VIRTUAL"><?php echo $dcek['caption'];?></textarea> </span> <input type="hidden" name="idadv" class="textbox" size="35" value="<?php echo $dcek['idadv'];?>"> <input type="hidden" name="fotolama" class="textbox" size="35" value="<?php echo $dcek['foto'];?>"> </span></td> </tr> <tr align="left" valign="top" class="style43"> <td>Expired</td> <td>:</td> <td><input name="expired" type="text" readonly="readonly" id="utility_example_1" value="<?php echo $dcek['expired'];?>"/></td> </tr> <tr align="left" valign="top" class="style43"> <td>&nbsp;</td> <td>&nbsp;</td> <td><span class="style52"> <input style="FONT-WEIGHT: bold; COLOR: #ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #335882" type=submit value=" Kirim " name="Kirim"> <input style="FONT-WEIGHT: bold; COLOR: #ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #335882" type=reset value=" Reset " name=reset> </span></td> </tr> </form> </table></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </body> </html> <? } else { //if(!isset($_SESSION['susername']) || !isset($_SESSION['spassword'])) { ?><script language='javascript'>alert('Anda Tidak Berhak Masuk Form Ini'); document.location='index.php'</script><? } ?>

sitemap.php <?php include "go/go.php"; $xml ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"; $xml .="<urlset\r\n"; $xml .="xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"\r\n"; $xml .="xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n"; $xml .="xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9\r\n"; $xml .="http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\">"; //include "go/go.php"; include "function.php";$var = decode($_SERVER['REQUEST_URI']); // sesuaikan dengan koneksi databese Anda $limit = '200'; //sesuaikan dengan jumlah yang anda inginkan $xml .= '<url>'; $xml .= ' <loc>http://surabayapagi.com/</loc>'; // sesuaikan dengan tabel artikel Anda $xml .= ' <priority>1.0</priority>'; $xml .= ' <lastmod>'.date("Y").'-'.date("m-d").'</lastmod>'; $xml .= ' <changefreq>hourly</changefreq>'; $xml .= '</url>'; $sql = "select * from BERITA order by IDBERITA DESC limit 0, $limit"; //sesuaikan dengan tabel database Anda $query = mysql_query($sql); while($data = mysql_fetch_array($query)) { $xml .= '<url>'; $xml .= ' <loc>http://surabayapagi.com/index.php?'.paramEncrypt('p=detilberita&id='.$data[0].'').'</loc>'; // sesuaikan dengan tabel artikel Anda $xml .= ' <priority>0.5</priority>'; $xml .= ' <lastmod>'.date("Y").'-'.date("m-d").'</lastmod>'; $xml .= ' <changefreq>hourly</changefreq>'; $xml .= '</url>'; } //mysql_close(); $xml .= '</urlset>'; //buat ke dalam file sitemap.xml $a = fopen('sitemap.xml',"w"); fputs($a, $xml); fclose($a); ?>

formkoruptor.php <? session_start(); if(($_SESSION['slevel']=="Administrator") || ($_SESSION['slevel']=="Redaksi")) { ?> <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title></title> <style type="text/css"> <!-- .style5 {font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; } .style43 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } .style45 {font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif;} .style46 { font-size: 10px; color: #FF0000; } .style50 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; } .style52 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10; } .style53 {font-size: 10} --> </style> <script type="text/javascript"> function ismaxlength(obj){ var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : "" if (obj.getAttribute && obj.value.length>mlength) obj.value=obj.value.substring(0,mlength) } </script> <script type="text/javascript" src="include/jquery-1.2.6.pack.js"></script> <script type='text/javascript' src='include/jquery.autocomplete.pack.js'></script> <!-- Autocomplete Formatting --> <link rel="stylesheet" type="text/css" href="include/jquery.autocomplete.css" /> <script type="text/javascript"> $().ready(function() { $("#targetDiv").autocomplete("include/mysql.php", { width: 260, selectFirst: true }); }); </script> </head> <body marginheight="0" marginwidth="0" topmargin="0"> <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="97%" align="left"><font size="2"><b>:: Surabaya Pagi - Koruptor </b></font> <?php $tgl_skr=date("Y-m-d"); $jam=date("H:i"); echo $tgl_skr." ".$jam?> <hr size="1"></td> </tr> <tr> <td> <script language="JavaScript"> function checkrequired(which) { var pass=true; if (document.images) { for (i=0;i<which.length;i++) { var tempobj=which.elements[i]; if (tempobj.name.substring(0,8)=="required") { if (((tempobj.type=="text"||tempobj.type=="textarea")&& tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&& tempobj.selectedIndex==0)) { pass=false; break; } } } } if (!pass) { shortFieldName=tempobj.name.substring(8,30).toUpperCase(); alert("Tolong silahkan anda isikan "+shortFieldName+" untuk melengkapinya"); return false; } else return true; } </script> <table width="100%" border="0" cellspacing="2" cellpadding="0"> <form onSubmit="return checkrequired(this)" name="data_admin" enctype="multipart/form-data" method="post" action="savekoruptor.php"> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Judul </span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input type="text" name="requiredjudul" class="textbox" size="35"> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Sub Judul </span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input type="text" name="subjudul" class="textbox" size="35"> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Kode Tema </span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input type="text" id="targetDiv" name="kodetema" class="textbox" size="35" /> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><p class="style43">Lead Berita </p> <p class="style43"><span class="style46">Gunakan Tag Berikut : <br> <br> &lt;b&gt;.....&lt;/b&gt; Untuk Bold<br> &lt;i&gt;.....&lt;/i&gt; Untuk Italic</span></p></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style50"> <textarea name="requiredlead" cols="40" rows="10" wrap="VIRTUAL" maxlength="160" onKeyUp="return ismaxlength(this)"></textarea> max. 160 karakter </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><p class="style43">Isi Berita 1 </p> <p class="style43"><span class="style46">Gunakan Tag Berikut : <br> <br> &lt;b&gt;.....&lt;/b&gt; Untuk Bold<br> &lt;i&gt;.....&lt;/i&gt; Untuk Italic <br> &lt;b&gt;&lt;i&gt;&nbsp;&lt;/i&gt;&lt;/b&gt; </span></p></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style50"> <textarea name="requiredisi" cols="40" rows="12" wrap="VIRTUAL"></textarea> </span></td> </tr> <tr align="left" valign="top"> <td class="text"><span class="style43">Foto 1 </span></td> <td class="text"><span class="style43">:</span></td> <td class="text"> <span class="style43"> <input name="image" type="file" class="textbox" id="image"> <label></label> &nbsp;&nbsp;&nbsp; <label></label> </span></td> </tr> <tr align="left" valign="top" class="style43"> <td>&nbsp;</td> <td>&nbsp;</td> <td><span class="style52"> <input style="FONT-WEIGHT: bold; COLOR: #ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #335882" type=submit value=" Kirim " name="Kirim"> <input style="FONT-WEIGHT: bold; COLOR: #ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #335882" type=reset value=" Reset " name=reset> </span></td> </tr> </form> </table></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </body> </html> <? } else { //if(!isset($_SESSION['susername']) || !isset($_SESSION['spassword'])) { ?><script language='javascript'>alert('Anda Tidak Berhak Masuk Form Ini'); document.location='index.php'</script><? } ?>

klinik.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Klinik Hukum</title> <script type="text/javascript"> $(document).ready(function(){ $(".accordion h3:first").addClass("active"); $(".accordion p:not(:first)").hide(); $(".accordion h3").click(function(){ $(this).next("p").slideToggle("slow") .siblings("p:visible").slideUp("slow"); $(this).toggleClass("active"); $(this).siblings("h3").removeClass("active"); }); }); </script> <style type="text/css"> .accordion { width: 255px; border-bottom: solid 1px #c4c4c4; font: Arial, Helvetica, sans-serif; } .accordion h3 { /*background: #e9e7e7 url(images/arrow-square.gif) no-repeat right -51px;*/ padding: 7px 15px; margin: 0; font: bold Arial, Helvetica, sans-serif; border: solid 1px #c4c4c4; border-bottom: none; cursor: pointer; font-size: 13px; } .accordion h3:hover { background-color: #e3e2e2; } .accordion h3.active { background-position: right 5px; } .accordion p { background: #f7f7f7; margin: 0; padding: 10px 15px 20px; border-left: solid 1px #c4c4c4; border-right: solid 1px #c4c4c4; font-size: 12px; } .accordion p a:link {font:bold 12px Arial; color:#000000; text-decoration:none; padding-bottom:5px; padding-left:0px;} .accordion p a:visited {font:bold 12px Arial; color:#000000; text-decoration:none;padding-bottom:5px; padding-left:0px;} .accordion p a:hover {font:bold 12px Arial;color:#FF0000; text-decoration:underline;padding-bottom:5px; padding-left:0px;} .style1 { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; color: #FF9900; } </style> </head> <body><br /> <table width="255" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="images/klinik.png" width="100%" /></td> </tr> </table> <div class="accordion"> <h3 class="">Perburuhan</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikPerburuhan' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k1=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k1;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="">Tata Negara</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikTatanegara' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k2=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k2;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="">Kesehatan</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikKesehatan' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k3=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k3;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="">H A M</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikHam' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k4=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k4;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="">Pidana dan Korupsi</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikPidanaKorupsi' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k5=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k5;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="">Pelayanan Publik</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikPelayananPublik' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k6=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k6;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="">Hukum Kontrak</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikHukumKontrak' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k7=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k7;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="">Perdata</h3> <p style="display: none;"> <?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikPerdata' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k8=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k8;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?> </p> <h3 class="">Persaingan Usaha</h3> <p style="display: none;"><?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikUsaha' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k9=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k9;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?></p> <h3 class="">H A K I</h3> <p style="display: none;"><?php include "go/go.php";$tgl_skr=date("Y-m-d");$jam=date("H:i"); $queryinfo = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM,TIME from BERITA where STATUS='Show' and TGLKIRIM<='$tgl_skr' and TIME<='$jam' and JUDUL!='' and KATEGORI='KlinikHaki' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_k10=str_replace(" ","-",$tbl['JUDUL']); echo "<a href='index.php?read~$ttl_k10;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a><br>"; echo $tbl['NEWLEAD']; echo "<br><br>"; echo "Lainnya..."; }} ?></p> </div> </body></html>

langganan_email_pelanggan.php <?php $subject_mail1 = "surabayapagi.com"; $pengirim1="noreplay@surabayapagi.com"; $email1=$email; $isi1 = "Yth. sdr $nama<br>Permintaan Anda sudah masuk dalam sistem kami, secepat mungkin akan Kami tindak lanjuti.<br>Email ini adalah email otomatis, jadi tidak perlu di replay<br>Terima kasih"; $subject1 = ''.$subject_mail1.': Reservasi'; $headers1 = 'MIME-Version: 1.0' . "\r\n"; $headers1 .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers1 .= 'From: '.$subject_mail1.' <noreplay@'.strtolower($subject_mail1).'>' . "\r\n"; $headers11 .= 'Bcc: noreplay@'.strtolower($subject_mail1).''. "\r\n"; mail($email1, $subject1, $isi1, $headers1); ?>

std_lainnya.php <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td align="left" valign="top"><font face="tahoma, arial" size="+1" color="#FF0000"><b>Surabaya Tempo Doeloe</b></font><hr /></td> </tr> <?php $bl=mysql_query("select * from STD ORDER BY TGL desc,IDFOTO desc LIMIT 0,25"); while($dbl=mysql_fetch_array($bl)) { $ttl_stdlain=str_replace(" ","-",$dbl['JUDUL']); ?> <tr> <td align="left" valign="top"><span class="left_berita"><?php echo "<a title='".$dbl['JUDUL']."' href='index.php?read=$ttl_stdlain;".paramEncrypt('p=detilstd&id='.$dbl[0].'')."'>"; if(strlen($dbl['JUDUL'])>35) { $judul=substr_replace($dbl['JUDUL'],CHR(13),0,"<br>"); echo substr($judul,0,35); echo "..."; }else { echo $dbl['JUDUL']; } ?></span></td> </tr> <?php } ?> </table>

login

home_internasional_new_preview.php <table width="400" border="0" cellspacing="0" cellpadding="0"> <tr> <td ><img src="images/internasional.png" width="100%" /></td> </tr> <tr> <td > <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="50%" align="left" valign="top"> <?php $q=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='Internasional' and STATUS='Show' and KOTA='LuarNegeri' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 2"); while($dq=mysql_fetch_array($q)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"> <table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq[0].'')."'>$dq[JUDUL]<span class=\"classic\"><em>".$dq['JUDUL']."</em>$dq[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> <td width="50%" align="left" valign="top"><?php $q2=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='Internasional' and STATUS='Show' and KOTA='LuarNegeri' order by TGLKIRIM2 desc,IDBERITA desc limit 2, 2"); while($dq2=mysql_fetch_array($q2)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"><table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq2[0].'')."'>$dq2[JUDUL]<span class=\"classic\"><em>".$dq2['JUDUL']."</em>$dq2[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq2['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq2['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> </tr> </table> </td> </tr> </table>

class.smtp.php <?php /*~ class.smtp.php .---------------------------------------------------------------------------. | Software: PHPMailer - PHP email class | | Version: 5.1 | | Contact: via sourceforge.net support pages (also www.codeworxtech.com) | | Info: http://phpmailer.sourceforge.net | | Support: http://sourceforge.net/projects/phpmailer/ | | ------------------------------------------------------------------------- | | Admin: Andy Prevost (project admininistrator) | | Authors: Andy Prevost (codeworxtech) codeworxtech@users.sourceforge.net | | : Marcus Bointon (coolbru) coolbru@users.sourceforge.net | | Founder: Brent R. Matzelle (original founder) | | Copyright (c) 2004-2009, Andy Prevost. All Rights Reserved. | | Copyright (c) 2001-2003, Brent R. Matzelle | | ------------------------------------------------------------------------- | | License: Distributed under the Lesser General Public License (LGPL) | | http://www.gnu.org/copyleft/lesser.html | | This program is distributed in the hope that it will be useful - WITHOUT | | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | | FITNESS FOR A PARTICULAR PURPOSE. | | ------------------------------------------------------------------------- | | We offer a number of paid services (www.codeworxtech.com): | | - Web Hosting on highly optimized fast and secure servers | | - Technology Consulting | | - Oursourcing (highly qualified programmers and graphic designers) | '---------------------------------------------------------------------------' */ /** * PHPMailer - PHP SMTP email transport class * NOTE: Designed for use with PHP version 5 and up * @package PHPMailer * @author Andy Prevost * @author Marcus Bointon * @copyright 2004 - 2008 Andy Prevost * @license http://www.gnu.org/copyleft/lesser.html Distributed under the Lesser General Public License (LGPL) * @version $Id: class.smtp.php 444 2009-05-05 11:22:26Z coolbru $ */ /** * SMTP is rfc 821 compliant and implements all the rfc 821 SMTP * commands except TURN which will always return a not implemented * error. SMTP also provides some utility methods for sending mail * to an SMTP server. * original author: Chris Ryan */ class SMTP { /** * SMTP server port * @var int */ public $SMTP_PORT = 25; /** * SMTP reply line ending * @var string */ public $CRLF = "\r\n"; /** * Sets whether debugging is turned on * @var bool */ public $do_debug; // the level of debug to perform /** * Sets VERP use on/off (default is off) * @var bool */ public $do_verp = false; ///////////////////////////////////////////////// // PROPERTIES, PRIVATE AND PROTECTED ///////////////////////////////////////////////// private $smtp_conn; // the socket to the server private $error; // error if any on the last call private $helo_rply; // the reply the server sent to us for HELO /** * Initialize the class so that the data is in a known state. * @access public * @return void */ public function __construct() { $this->smtp_conn = 0; $this->error = null; $this->helo_rply = null; $this->do_debug = 0; } ///////////////////////////////////////////////// // CONNECTION FUNCTIONS ///////////////////////////////////////////////// /** * Connect to the server specified on the port specified. * If the port is not specified use the default SMTP_PORT. * If tval is specified then a connection will try and be * established with the server for that number of seconds. * If tval is not specified the default is 30 seconds to * try on the connection. * * SMTP CODE SUCCESS: 220 * SMTP CODE FAILURE: 421 * @access public * @return bool */ public function Connect($host, $port = 0, $tval = 30) { // set the error val to null so there is no confusion $this->error = null; // make sure we are __not__ connected if($this->connected()) { // already connected, generate error $this->error = array("error" => "Already connected to a server"); return false; } if(empty($port)) { $port = $this->SMTP_PORT; } // connect to the smtp server $this->smtp_conn = @fsockopen($host, // the host of the server $port, // the port to use $errno, // error number if any $errstr, // error message if any $tval); // give up after ? secs // verify we connected properly if(empty($this->smtp_conn)) { $this->error = array("error" => "Failed to connect to server", "errno" => $errno, "errstr" => $errstr); if($this->do_debug >= 1) { echo "SMTP -> ERROR: " . $this->error["error"] . ": $errstr ($errno)" . $this->CRLF . '<br />'; } return false; } // SMTP server can take longer to respond, give longer timeout for first read // Windows does not have support for this timeout function if(substr(PHP_OS, 0, 3) != "WIN") socket_set_timeout($this->smtp_conn, $tval, 0); // get any announcement $announce = $this->get_lines(); if($this->do_debug >= 2) { echo "SMTP -> FROM SERVER:" . $announce . $this->CRLF . '<br />'; } return true; } /** * Initiate a TLS communication with the server. * * SMTP CODE 220 Ready to start TLS * SMTP CODE 501 Syntax error (no parameters allowed) * SMTP CODE 454 TLS not available due to temporary reason * @access public * @return bool success */ public function StartTLS() { $this->error = null; # to avoid confusion if(!$this->connected()) { $this->error = array("error" => "Called StartTLS() without being connected"); return false; } fputs($this->smtp_conn,"STARTTLS" . $this->CRLF); $rply = $this->get_lines(); $code = substr($rply,0,3); if($this->do_debug >= 2) { echo "SMTP -> FROM SERVER:" . $rply . $this->CRLF . '<br />'; } if($code != 220) { $this->error = array("error" => "STARTTLS not accepted from server", "smtp_code" => $code, "smtp_msg" => substr($rply,4)); if($this->do_debug >= 1) { echo "SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '<br />'; } return false; } // Begin encrypted connection if(!stream_socket_enable_crypto($this->smtp_conn, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) { return false; } return true; } /** * Performs SMTP authentication. Must be run after running the * Hello() method. Returns true if successfully authenticated. * @access public * @return bool */ public function Authenticate($username, $password) { // Start authentication fputs($this->smtp_conn,"AUTH LOGIN" . $this->CRLF); $rply = $this->get_lines(); $code = substr($rply,0,3); if($code != 334) { $this->error = array("error" => "AUTH not accepted from server", "smtp_code" => $code, "smtp_msg" => substr($rply,4)); if($this->do_debug >= 1) { echo "SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '<br />'; } return false; } // Send encoded username fputs($this->smtp_conn, base64_encode($username) . $this->CRLF); $rply = $this->get_lines(); $code = substr($rply,0,3); if($code != 334) { $this->error = array("error" => "Username not accepted from server", "smtp_code" => $code, "smtp_msg" => substr($rply,4)); if($this->do_debug >= 1) { echo "SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '<br />'; } return false; } // Send encoded password fputs($this->smtp_conn, base64_encode($password) . $this->CRLF); $rply = $this->get_lines(); $code = substr($rply,0,3); if($code != 235) { $this->error = array("error" => "Password not accepted from server", "smtp_code" => $code, "smtp_msg" => substr($rply,4)); if($this->do_debug >= 1) { echo "SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '<br />'; } return false; } return true; } /** * Returns true if connected to a server otherwise false * @access public * @return bool */ public function Connected() { if(!empty($this->smtp_conn)) { $sock_status = socket_get_status($this->smtp_conn); if($sock_status["eof"]) { // the socket is valid but we are not connected if($this->do_debug >= 1) { echo "SMTP -> NOTICE:" . $this->CRLF . "EOF caught while checking if connected"; } $this->Close(); return false; } return true; // everything looks good } return false; } /** * Closes the socket and cleans up the state of the class. * It is not considered good to use this function without * first trying to use QUIT. * @access public * @return void */ public function Close() { $this->error = null; // so there is no confusion $this->helo_rply = null; if(!empty($this->smtp_conn)) { // close the connection and cleanup fclose($this->smtp_conn); $this->smtp_conn = 0; } } ///////////////////////////////////////////////// // SMTP COMMANDS ///////////////////////////////////////////////// /** * Issues a data command and sends the msg_data to the server * finializing the mail transaction. $msg_data is the message * that is to be send with the headers. Each header needs to be * on a single line followed by a <CRLF> with the message headers * and the message body being seperated by and additional <CRLF>. * * Implements rfc 821: DATA <CRLF> * * SMTP CODE INTERMEDIATE: 354 * [data] * <CRLF>.<CRLF> * SMTP CODE SUCCESS: 250 * SMTP CODE FAILURE: 552,554,451,452 * SMTP CODE FAILURE: 451,554 * SMTP CODE ERROR : 500,501,503,421 * @access public * @return bool */ public function Data($msg_data) { $this->error = null; // so no confusion is caused if(!$this->connected()) { $this->error = array( "error" => "Called Data() without being connected"); return false; } fputs($this->smtp_conn,"DATA" . $this->CRLF); $rply = $this->get_lines(); $code = substr($rply,0,3); if($this->do_debug >= 2) { echo "SMTP -> FROM SERVER:" . $rply . $this->CRLF . '<br />'; } if($code != 354) { $this->error = array("error" => "DATA command not accepted from server", "smtp_code" => $code, "smtp_msg" => substr($rply,4)); if($this->do_debug >= 1) { echo "SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '<br />'; } return false; } /* the server is ready to accept data! * according to rfc 821 we should not send more than 1000 * including the CRLF * characters on a single line so we will break the data up * into lines by \r and/or \n then if needed we will break * each of those into smaller lines to fit within the limit. * in addition we will be looking for lines that start with * a period '.' and append and additional period '.' to that * line. NOTE: this does not count towards limit. */ // normalize the line breaks so we know the explode works $msg_data = str_replace("\r\n","\n",$msg_data); $msg_data = str_replace("\r","\n",$msg_data); $lines = explode("\n",$msg_data); /* we need to find a good way to determine is headers are * in the msg_data or if it is a straight msg body * currently I am assuming rfc 822 definitions of msg headers * and if the first field of the first line (':' sperated) * does not contain a space then it _should_ be a header * and we can process all lines before a blank "" line as * headers. */ $field = substr($lines[0],0,strpos($lines[0],":")); $in_headers = false; if(!empty($field) && !strstr($field," ")) { $in_headers = true; } $max_line_length = 998; // used below; set here for ease in change while(list(,$line) = @each($lines)) { $lines_out = null; if($line == "" && $in_headers) { $in_headers = false; } // ok we need to break this line up into several smaller lines while(strlen($line) > $max_line_length) { $pos = strrpos(substr($line,0,$max_line_length)," "); // Patch to fix DOS attack if(!$pos) { $pos = $max_line_length - 1; $lines_out[] = substr($line,0,$pos); $line = substr($line,$pos); } else { $lines_out[] = substr($line,0,$pos); $line = substr($line,$pos + 1); } /* if processing headers add a LWSP-char to the front of new line * rfc 822 on long msg headers */ if($in_headers) { $line = "\t" . $line; } } $lines_out[] = $line; // send the lines to the server while(list(,$line_out) = @each($lines_out)) { if(strlen($line_out) > 0) { if(substr($line_out, 0, 1) == ".") { $line_out = "." . $line_out; } } fputs($this->smtp_conn,$line_out . $this->CRLF); } } // message data has been sent fputs($this->smtp_conn, $this->CRLF . "." . $this->CRLF); $rply = $this->get_lines(); $code = substr($rply,0,3); if($this->do_debug >= 2) { echo "SMTP -> FROM SERVER:" . $rply . $this->CRLF . '<br />'; } if($code != 250) { $this->error = array("error" => "DATA not accepted from server", "smtp_code" => $code, "smtp_msg" => substr($rply,4)); if($this->do_debug >= 1) { echo "SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '<br />'; } return false; } return true; } /** * Sends the HELO command to the smtp server. * This makes sure that we and the server are in * the same known state. * * Implements from rfc 821: HELO <SP> <domain> <CRLF> * * SMTP CODE SUCCESS: 250 * SMTP CODE ERROR : 500, 501, 504, 421 * @access public * @return bool */ public function Hello($host = '') { $this->error = null; // so no confusion is caused if(!$this->connected()) { $this->error = array( "error" => "Called Hello() without being connected"); return false; } // if hostname for HELO was not specified send default if(empty($host)) { // determine appropriate default to send to server $host = "localhost"; } // Send extended hello first (RFC 2821) if(!$this->SendHello("EHLO", $host)) { if(!$this->SendHello("HELO", $host)) { return false; } } return true; } /** * Sends a HELO/EHLO command. * @access private * @return bool */ private function SendHello($hello, $host) { fputs($this->smtp_conn, $hello . " " . $host . $this->CRLF); $rply = $this->get_lines(); $code = substr($rply,0,3); if($this->do_debug >= 2) { echo "SMTP -> FROM SERVER: " . $rply . $this->CRLF . '<br />'; } if($code != 250) { $this->error = array("error" => $hello . " not accepted from server", "smtp_code" => $code, "smtp_msg" => substr($rply,4)); if($this->do_debug >= 1) { echo "SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '<br />'; } return false; } $this->helo_rply = $rply; return true; } /** * Starts a mail transaction from the email address specified in * $from. Returns true if successful or false otherwise. If True * the mail transaction is started and then one or more Recipient * commands may be called followed by a Data command. * * Implements rfc 821: MAIL <SP> FROM:<reverse-path> <CRLF> * * SMTP CODE SUCCESS: 250 * SMTP CODE SUCCESS: 552,451,452 * SMTP CODE SUCCESS: 500,501,421 * @access public * @return bool */ public function Mail($from) { $this->error = null; // so no confusion is caused if(!$this->connected()) { $this->error = array( "error" => "Called Mail() without being connected"); return false; } $useVerp = ($this->do_verp ? "XVERP" : ""); fputs($this->smtp_conn,"MAIL FROM:<" . $from . ">" . $useVerp . $this->CRLF); $rply = $this->get_lines(); $code = substr($rply,0,3); if($this->do_debug >= 2) { echo "SMTP -> FROM SERVER:" . $rply . $this->CRLF . '<br />'; } if($code != 250) { $this->error = array("error" => "MAIL not accepted from server", "smtp_code" => $code, "smtp_msg" => substr($rply,4)); if($this->do_debug >= 1) { echo "SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '<br />'; } return false; } return true; } /** * Sends the quit command to the server and then closes the socket * if there is no error or the $close_on_error argument is true. * * Implements from rfc 821: QUIT <CRLF> * * SMTP CODE SUCCESS: 221 * SMTP CODE ERROR : 500 * @access public * @return bool */ public function Quit($close_on_error = true) { $this->error = null; // so there is no confusion if(!$this->connected()) { $this->error = array( "error" => "Called Quit() without being connected"); return false; } // send the quit command to the server fputs($this->smtp_conn,"quit" . $this->CRLF); // get any good-bye messages $byemsg = $this->get_lines(); if($this->do_debug >= 2) { echo "SMTP -> FROM SERVER:" . $byemsg . $this->CRLF . '<br />'; } $rval = true; $e = null; $code = substr($byemsg,0,3); if($code != 221) { // use e as a tmp var cause Close will overwrite $this->error $e = array("error" => "SMTP server rejected quit command", "smtp_code" => $code, "smtp_rply" => substr($byemsg,4)); $rval = false; if($this->do_debug >= 1) { echo "SMTP -> ERROR: " . $e["error"] . ": " . $byemsg . $this->CRLF . '<br />'; } } if(empty($e) || $close_on_error) { $this->Close(); } return $rval; } /** * Sends the command RCPT to the SMTP server with the TO: argument of $to. * Returns true if the recipient was accepted false if it was rejected. * * Implements from rfc 821: RCPT <SP> TO:<forward-path> <CRLF> * * SMTP CODE SUCCESS: 250,251 * SMTP CODE FAILURE: 550,551,552,553,450,451,452 * SMTP CODE ERROR : 500,501,503,421 * @access public * @return bool */ public function Recipient($to) { $this->error = null; // so no confusion is caused if(!$this->connected()) { $this->error = array( "error" => "Called Recipient() without being connected"); return false; } fputs($this->smtp_conn,"RCPT TO:<" . $to . ">" . $this->CRLF); $rply = $this->get_lines(); $code = substr($rply,0,3); if($this->do_debug >= 2) { echo "SMTP -> FROM SERVER:" . $rply . $this->CRLF . '<br />'; } if($code != 250 && $code != 251) { $this->error = array("error" => "RCPT not accepted from server", "smtp_code" => $code, "smtp_msg" => substr($rply,4)); if($this->do_debug >= 1) { echo "SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '<br />'; } return false; } return true; } /** * Sends the RSET command to abort and transaction that is * currently in progress. Returns true if successful false * otherwise. * * Implements rfc 821: RSET <CRLF> * * SMTP CODE SUCCESS: 250 * SMTP CODE ERROR : 500,501,504,421 * @access public * @return bool */ public function Reset() { $this->error = null; // so no confusion is caused if(!$this->connected()) { $this->error = array( "error" => "Called Reset() without being connected"); return false; } fputs($this->smtp_conn,"RSET" . $this->CRLF); $rply = $this->get_lines(); $code = substr($rply,0,3); if($this->do_debug >= 2) { echo "SMTP -> FROM SERVER:" . $rply . $this->CRLF . '<br />'; } if($code != 250) { $this->error = array("error" => "RSET failed", "smtp_code" => $code, "smtp_msg" => substr($rply,4)); if($this->do_debug >= 1) { echo "SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '<br />'; } return false; } return true; } /** * Starts a mail transaction from the email address specified in * $from. Returns true if successful or false otherwise. If True * the mail transaction is started and then one or more Recipient * commands may be called followed by a Data command. This command * will send the message to the users terminal if they are logged * in and send them an email. * * Implements rfc 821: SAML <SP> FROM:<reverse-path> <CRLF> * * SMTP CODE SUCCESS: 250 * SMTP CODE SUCCESS: 552,451,452 * SMTP CODE SUCCESS: 500,501,502,421 * @access public * @return bool */ public function SendAndMail($from) { $this->error = null; // so no confusion is caused if(!$this->connected()) { $this->error = array( "error" => "Called SendAndMail() without being connected"); return false; } fputs($this->smtp_conn,"SAML FROM:" . $from . $this->CRLF); $rply = $this->get_lines(); $code = substr($rply,0,3); if($this->do_debug >= 2) { echo "SMTP -> FROM SERVER:" . $rply . $this->CRLF . '<br />'; } if($code != 250) { $this->error = array("error" => "SAML not accepted from server", "smtp_code" => $code, "smtp_msg" => substr($rply,4)); if($this->do_debug >= 1) { echo "SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '<br />'; } return false; } return true; } /** * This is an optional command for SMTP that this class does not * support. This method is here to make the RFC821 Definition * complete for this class and __may__ be implimented in the future * * Implements from rfc 821: TURN <CRLF> * * SMTP CODE SUCCESS: 250 * SMTP CODE FAILURE: 502 * SMTP CODE ERROR : 500, 503 * @access public * @return bool */ public function Turn() { $this->error = array("error" => "This method, TURN, of the SMTP ". "is not implemented"); if($this->do_debug >= 1) { echo "SMTP -> NOTICE: " . $this->error["error"] . $this->CRLF . '<br />'; } return false; } /** * Get the current error * @access public * @return array */ public function getError() { return $this->error; } ///////////////////////////////////////////////// // INTERNAL FUNCTIONS ///////////////////////////////////////////////// /** * Read in as many lines as possible * either before eof or socket timeout occurs on the operation. * With SMTP we can tell if we have more lines to read if the * 4th character is '-' symbol. If it is a space then we don't * need to read anything else. * @access private * @return string */ private function get_lines() { $data = ""; while($str = @fgets($this->smtp_conn,515)) { if($this->do_debug >= 4) { echo "SMTP -> get_lines(): \$data was \"$data\"" . $this->CRLF . '<br />'; echo "SMTP -> get_lines(): \$str is \"$str\"" . $this->CRLF . '<br />'; } $data .= $str; if($this->do_debug >= 4) { echo "SMTP -> get_lines(): \$data is \"$data\"" . $this->CRLF . '<br />'; } // if 4th character is a space, we are done reading, break the loop if(substr($str,3,1) == " ") { break; } } return $data; } } ?>

iklan_baris_blmjadi.php <?php session_start(); include "go/go.php"; include "function.php"; $var = decode($_SERVER['REQUEST_URI']); $dskr=date("Y-m-d"); ?> <script> !window.jQuery && document.write('<script src="jquery-1.8.2.min.js"><\/script>'); </script> <script type="text/javascript" src="fancybox/jquery.mousewheel-3.0.4.pack.js"></script> <script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.pack.js"></script> <link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css" media="screen" /> <link rel="stylesheet" href="stylefancy.css" /> <script type="text/javascript"> $(document).ready(function() { /* * Examples - images */ $("a#example1").fancybox(); $("a#example2").fancybox({ 'overlayShow' : false, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic' }); $("a#example3").fancybox({ 'transitionIn' : 'none', 'transitionOut' : 'none' }); $("a#example4").fancybox({ 'opacity' : true, 'overlayShow' : false, 'transitionIn' : 'elastic', 'transitionOut' : 'none' }); $("a#example5").fancybox(); $("a#example6").fancybox({ 'titlePosition' : 'outside', 'overlayColor' : '#000', 'overlayOpacity' : 0.9 }); $("a#example7").fancybox({ 'titlePosition' : 'inside' }); $("a#example8").fancybox({ 'titlePosition' : 'over' }); $("a[rel=example_group]").fancybox({ 'transitionIn' : 'none', 'transitionOut' : 'none', 'titlePosition' : 'over', 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) { return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>'; } }); /* * Examples - various */ $("#various1").fancybox({ 'titlePosition' : 'inside', 'transitionIn' : 'none', 'transitionOut' : 'none' }); $("#various2").fancybox(); $("#various3").fancybox({ 'width' : '75%', 'height' : '75%', 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe' }); $("#various4").fancybox({ 'padding' : 0, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none' }); }); </script> <style type="text/css"> <!-- .style2 { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; color: #FF3300; } .style3 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } .style4 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; } --> </style> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FCFBBE"> <tr style="padding-top:10px;"> <td align="left" valign="top"><span class="style2">:: IKLAN MINI </span> <hr /></td> </tr> <tr> <td width="69%" align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="2"> <?php $dataPerPage = 15; $page =$var['page']; if(isset($page)) { $noPage = $page; } else $noPage = 1; $offset = ($noPage - 1) * $dataPerPage; $query = "select * from ADV where expired >='$dskr' order by idadv desc LIMIT $offset, $dataPerPage"; $result = mysql_query($query) or die('Error'); $data1 = mysql_query($query) or die('Error'); //$no=0; //$jum=mysql_num_rows while($data = mysql_fetch_assoc($result)) { $qjumlah = mysql_query("select count(*) as jumlah from ADV where expired >='$dskr' group by idadv") or die("Data Berita tidak ada !!"); $qjumlah_r=mysql_num_rows($qjumlah); $qjumlah_d=mysql_fetch_array($qjumlah); $no++; for($j=1;$row= mysql_fetch_array($data1);$j++){ if($j % 3 == 1) echo "<tr>"; ?> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td width="20%" align="left" valign="top"><a id="example7" href=<?php if(($row['foto']!='') && file_exists("photos/bigs/".$namafoto)){echo "photos/bigs/".$row['foto'];}else {echo "images/logo.jpg";}?> title="<?php echo nl2br($row['caption']);?>"><img alt="example6" src=<?php if(($row['foto']!='') && file_exists("photos/thumbs/".$namafoto)){echo "photos/thumbs/".$row['foto'];}else {echo "images/logo.jpg";}?> width="100" height="100" vspace="2px" hspace="2px" style="BORDER-RIGHT: #d7d7d7 2px solid; PADDING-RIGHT: 2px; BORDER-TOP: #d7d7d7 2px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; margin-right:2px; BORDER-LEFT: #d7d7d7 2px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #d7d7d7 2px solid"/></a></td> <td width="80%" align="left" valign="top"><a id="example7" style="text-decoration:none" href=<?php if(($row['foto']!='') && file_exists("photos/bigs/".$namafoto)){echo "photos/bigs/".$row['foto'];}else {echo "images/logo.jpg";}?> title="<?php echo nl2br($row['caption']);?>"><font size="3"><b><?php echo $row['judul'];?></b></font><br /> <font size="2"><?php if(strlen($row['caption'])>100) { $jdl=substr_replace($row['caption'],CHR(13),0,"<br>"); echo substr($jdl,0,98); echo "..."; }else { echo $row['caption']; } ?></font></a> </td> </tr> </table></td> <?php if($j % 3 == 0) echo "</tr>"; ?> <?PHP }}?> </table> </td> </tr> </table> <table width="450" border="0" cellspacing="3" cellpadding="3"> <tr> <td align="left" valign="top"><div class="page style3"> <?php $query = "SELECT COUNT(*) AS jumData FROM ADV where expired >='$dskr'"; $hasil = mysql_query($query); $data =mysql_fetch_array($hasil); $jumData = $data['jumData']; $jumPage = ceil($jumData/$dataPerPage); if ($noPage > 1) echo "<a href='index.php?".paramEncrypt('p=iklan_baris&page='.($noPage-1).'')."'>&lt;&lt; Prev</a>"; // memunculkan nomor halaman dan linknya for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 3) && ($page <= $noPage + 3)) || ($page == 1) || ($page == $jumPage)) { if (($showPage == 1) && ($page != 2)) echo "..."; if (($showPage != ($jumPage - 1)) && ($page == $jumPage)) echo "..."; if ($page == $noPage) echo " <b>".$page."</b> "; else echo " <a href='index.php?".paramEncrypt('p=iklan_baris&page='.$page.'')."'>".$page."</a> "; $showPage = $page; } } // menampilkan link next if ($noPage < $jumPage) echo "<a href='index.php?".paramEncrypt('p=iklan_baris&page='.($noPage+1).'')."'>Next &gt;&gt;</a>"; ?> </div></td> </tr> </table> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td width="65%" align="left" valign="top"><hr size="1px" /> <div align="center" class="style4">IKLAN MINI BERGAMBAR<br /> Koran Surabaya Pagi - SurabayaPagi.com<br /> (Berlaku Mulai 10 April s/d Agustus 2014)</div> <span class="style3"><strong> Syarat dan Ketentuan</strong> </span> <ul class="style3"><li> Setiap member bertanggung jawab penuh atas materi yang di iklankan di Iklan Mini Bergambar di SurabayaPagi.com.</li> <li>Iklan yang dipasang tidak bertentangan dengan aturan dan perundangan yang berlaku di Indonesia (seperti perjudian, pornografi, penipuan, senjata api, minuman keras).</li> <li>SurabayaPagi.com tidak bertanggung jawab atas segala akibat yang timbul dari transaksi yang dilakukan antara pemasang dan pembeli di Iklan Mini Bergambar. Untuk itu, Bagian Iklan SurabayaPagi.com dan Harian Surabaya Pagi berhak memverifikasi terlebih dahulu iklan yang ditayangkan dan berhak tidak menayangkan iklan Mini Bergambar.</li> <li>Pemasangan Iklan Mini Bergambar di SurabayaPagi.com, secara otomatis akan pula ditayangkan di Harian Surabaya Pagi edisi cetak.</li> <li>Untuk harga iklan mini bergambar, berlaku untuk pemasangan di dua media yakni SurabayaPagi.com dan Harian Surabaya Pagi edisi cetak.</li> <li>Setiap pemasang iklan Mini Bergambar, harus melakukan registrasi terlebih dahulu untuk mendapatkan akun dan verifikasi sebelum melakukan transaksi pemasangan iklan Mini Bergambar.</li> <li>Setiap pemasang iklan mendapatkan 1 (satu) akun member.</li> <li>Bila sudah mempunyai akun dan telah terverifikasi (sudah melakukan pembayaran), saat memposting harap juga mencantumkan Judul Iklan (mutlak harus dicantumkan) di form yang telah disediakan. Untuk hal teknis, foto harus berekstensi *.JPG, *.PNG, *.GIF dan tak lebih dari 1 Megapixels.</li> <li>Setelah proses registrasi dan verifikasi, pemasang bisa melakukan pembayaran terlebih dahulu ke rekening: <dt>BCA Cab Galaxy No. Rek 788-0818303 a/n PT. Surabaya Sore</dt> <dt>Bank Mandiri Cab HR. Muhammad No. Rek 141-0005153838 a/n PT. Surabaya Sore</dt> <dt>Bank BRI Cab Tanjung Perak No. Rek 0328015000489150 a/n PT. Surabaya Sore</dt> <dt>Bank Jatim Cab Utama Basuki Rahmat No. 0011219268 a/n PT. Surabaya Sore</dt><br /> Fax bukti transfer ke nomor fax 031-7328878, atau kirim bukti transfer via email ke iklanmini@surabayapagi.com. atau bisa kirim pesan singkat melalui SMS bukti mobile-Banking ke 0818581111. Untuk mempermudah identifikasi, cantumkan juga nama pengiklan dan judul-judul iklan di bukti transfer / email anda.</li> <li>Fax dan email bukti transfer yang diterima di hari libur atau setelah pukul 17.00 di hari kerja, akan di proses di hari kerja berikutnya. Costumer Service Iklan Mini Bergambar Hubungi: Sdri. Aidha (031) 7328808, 70083126, dan Yayuk 0818581111. E-mail: iklanmini@surabayapagi.com</li> </ul> <span class="style3"><strong>PAKET HARGA IKLAN</strong><br /> <br /> <strong>PAKET OTOMOTIF & PROPERTY "A"</strong><br /> Harga Paket Rp 200.000, meliputi:<br /> Terbit di Koran Surabaya Pagi 25 x terbit dengan ukuran 1 kolom x 30 milimeter kolom.<br /> Tayang di Surabayapagi.com selama 14 hari.<br /> Bonus langganan Harian Surabaya Pagi sebanyak 1 (satu) eksemplar selama 25 hari.<br /> <br /> <strong>PAKET OTOMOTIF & PROPERTY "B"</strong><br /> Harga Paket Rp 300.000, meliputi:<br /> Terbit di Koran Surabaya Pagi 25 x terbit dengan ukuran 1 kolom x 50 milimeter kolom.<br /> Tayang di Surabayapagi.com selama 14 hari.<br /> Bonus langganan Harian Surabaya Pagi sebanyak 1 (satu) eksemplar selama 25 hari.<br /> <br /> <strong>PAKET DISPLAY FOTO PRODUCT</strong><br /> Harga Paket Rp 3.,000.000, meliputi:<br /> Terbit di Koran Surabaya Pagi, sebanyak 1 (satu) kali dengan ukuran 7 kolom x 270 milimeter kolom Full Color<br /> Tayang di SurabayaPagi.com selama 12 hari (di right banner news atau di spot breaking news)<br /> Bonus Langganan Harian Surabaya Pagi sebanyak 1 (satu) eksemplar selama 25 hari.<br /> Bila menginginkan ukuran lain dalam pemuatan di Koran Surabaya Pagi, harga menyesuaikan, hubungi Bagian Iklan.<br /> <br /> <strong>PAKET PARIWARA JASA KESEHATAN/TRADISIONAL "A"</strong><br /> Harga Paket Rp 1.000.000, meliputi:<br /> Terbit di Koran Surabaya Pagi, sebanyak 1 (satu) kali dengan ukuran 3 kolom x 100 mmk Full Color<br /> Tayang di SurabayaPagi.com selama 12 hari (di right banner atau di bottom banner)<br /> Bonus Langganan Harian Surabaya Pagi sebanyak 1 (satu) eksemplar selama 25 hari.<br /> <br /> <strong>PAKET PARIWARA JASA KESEHATAN/TRADISIONAL "B"</strong><br /> Harga Paket Rp 500.000, meliputi:<br /> Terbit di Koran Surabaya Pagi, sebanyak 1 (satu) kali dengan ukuran 2 kolom x 100 mmk Full Color<br /> Tayang di SurabayaPagi.com selama 12 hari (di right banner atau di bottom banner)<br /> Bonus Langganan Harian Surabaya Pagi sebanyak 1 (satu) eksemplar selama 25 hari. <br /> <br /> <strong>PAKET PARIWARA BISNIS RESTO/KULINER DAN HOTEL "A"</strong><br /> Harga Paket Rp 750.000, meliputi:<br /> Terbit di Koran Surabaya Pagi, sebanyak 1 (satu) kali dengan Ukuran 3 kolom x 100 mmk Full Color<br /> Tayang di SurabayaPagi.com selama 12 hari (di spot breaking news)<br /> Bonus Langganan Harian Surabaya Pagi sebanyak 1 (satu) eksemplar selama 25 hari.<br /> <br /> <strong>PAKET PARIWARA BISNIS RESTO/KULINER DAN HOTEL "A"</strong><br /> Harga Paket Rp 400.000, meliputi:<br /> Terbit di Koran Surabaya Pagi, sebanyak 1 (satu) kali dengan Ukuran 2 kolom x 100 mmk Full Color<br /> Tayang di SurabayaPagi.com selama 12 hari (di spot breaking news)<br /> Bonus Langganan Harian Surabaya Pagi sebanyak 1 (satu) eksemplar selama 25 hari.<br /> </span></td> <td width="35%" align="left" valign="top" bgcolor="#FFFFCC"><?php include "member_iklan_form.php";?></td> </tr> </table>

home_kemiskinan.php <table width="230" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><img src="images/kemiskinan.png" width="100%" /></td> </tr> <tr> <td align="left" valign="top"><span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='KemiskinanKota' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 5"); while($dpr=mysql_fetch_array($pr)) { $ttl_k=str_replace(" ","-",$dpr['JUDUL']); echo "<a class=\"tooltip\" href='index.php?read~$ttl_k;".paramEncrypt('&p=detilberita&id='.$dpr[0].'')."'>"; if(strlen($dpr['JUDUL'])>29) { $jdl=substr_replace($dpr['JUDUL'],CHR(13),0,"<br>"); echo substr($jdl,0,28); echo "..."; }else { echo $dpr['JUDUL']; } echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span></td> </tr> </table></td> </tr> </table>

kodeetik.php <style type="text/css"> <!-- .style3 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } --> </style> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="3%" align="left" valign="top">&nbsp;</td> <td width="83%" align="left" valign="top">&nbsp;</td> <td width="14%" align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top"><p class="style3">Peraturan Dewan <br /> Pers Pedoman Pemberitaan Media Siber<br /> <br /> Kemerdekaan berpendapat, kemerdekaan berekspresi, dan kemerdekaan pers adalah hak asasi manusia yang dilindungi Pancasila, Undang-Undang Dasar 1945, dan Deklarasi Universal Hak Asasi Manusia PBB. Keberadaan media siber di Indonesia juga merupakan bagian dari kemerdekaan berpendapat, kemerdekaan berekspresi, dan kemerdekaan pers. <br /> <br /> Media siber memiliki karakter khusus sehingga memerlukan pedoman agar pengelolaannya dapat dilaksanakan secara profesional, memenuhi fungsi, hak, dan kewajibannya sesuai Undang-Undang Nomor 40 Tahun 1999 tentang Pers dan Kode Etik Jurnalistik. Untuk itu Dewan Pers bersama organisasi pers, pengelola media siber, dan masyarakat menyusun Pedoman Pemberitaan Media Siber sebagai berikut:<br /> <br /> 1. Ruang Lingkup <ul class="style3"> <li> a. Media Siber adalah segala bentuk media yang menggunakan wahana internet dan melaksanakan kegiatan jurnalistik, serta memenuhi persyaratan Undang-Undang Pers dan Standar Perusahaan Pers yang ditetapkan Dewan Pers.</li> <li>b. Isi Buatan Pengguna (User Generated Content) adalah segala isi yang dibuat dan atau dipublikasikan oleh pengguna media siber, antara lain, artikel, gambar, komentar, suara, video dan berbagai bentuk unggahan yang melekat pada media siber, seperti blog, forum, komentar pembaca atau pemirsa, dan bentuk lain.</li> </ul> <span class="style3">2. Verifikasi dan keberimbangan berita</span> <ul class="style3"> <li>a. Pada prinsipnya setiap berita harus melalui verifikasi.</li> <li>b. Berita yang dapat merugikan pihak lain memerlukan verifikasi pada berita yang sama untuk memenuhi prinsip akurasi dan keberimbangan.</li> <li>c. Ketentuan dalam butir (a) di atas dikecualikan, dengan syarat: <dt>1. Berita benar-benar mengandung kepentingan publik yang bersifat mendesak;</dt> <dt>2. Sumber berita yang pertama adalah sumber yang jelas disebutkan identitasnya, kredibel dan kompeten;</dt> <dt>3. Subyek berita yang harus dikonfirmasi tidak diketahui keberadaannya dan atau tidak dapat diwawancarai;</dt> <dt>4. Media memberikan penjelasan kepada pembaca bahwa berita tersebut masih memerlukan verifikasi lebih lanjut yang diupayakan dalam waktu secepatnya. Penjelasan dimuat pada bagian akhir dari berita yang sama, di dalam kurung dan menggunakan huruf miring.</dt></li> <li>d. Setelah memuat berita sesuai dengan butir (c), media wajib meneruskan upaya verifikasi, dan setelah verifikasi didapatkan, hasil verifikasi dicantumkan pada berita pemutakhiran (update) dengan tautan pada berita yang belum terverifikasi.</li> </ul> <span class="style3">3. Isi Buatan Pengguna (User Generated Content)</span> <ul class="style3"> <li> a. Media siber wajib mencantumkan syarat dan ketentuan mengenai Isi Buatan Pengguna yang tidak bertentangan dengan Undang-Undang No. 40 tahun 1999 tentang Pers dan Kode Etik Jurnalistik, yang ditempatkan secara terang dan jelas.</li> <li>b. Media siber mewajibkan setiap pengguna untuk melakukan registrasi keanggotaan dan melakukan proses log-in terlebih dahulu untuk dapat mempublikasikan semua bentuk Isi Buatan Pengguna. Ketentuan mengenai log-in akan diatur lebih lanjut.</li> <li>c. Dalam registrasi tersebut, media siber mewajibkan pengguna memberi persetujuan tertulis bahwa Isi Buatan Pengguna yang dipublikasikan: <dt>1. Tidak memuat isi bohong, fitnah, sadis dan cabul;</dt> <dt>2. Tidak memuat isi yang mengandung prasangka dan kebencian terkait dengan suku, agama, ras, dan antargolongan (SARA), serta menganjurkan tindakan kekerasan;</dt> <dt>3. Tidak memuat isi diskriminatif atas dasar perbedaan jenis kelamin dan bahasa, serta tidak merendahkan martabat orang lemah, miskin, sakit, cacat jiwa, atau cacat jasmani.</dt> </li> <li> d. Media siber memiliki kewenangan mutlak untuk mengedit atau menghapus Isi Buatan Pengguna yang bertentangan dengan butir (c).</li> <li>e. Media siber wajib menyediakan mekanisme pengaduan Isi Buatan Pengguna yang dinilai melanggar ketentuan pada butir (c). Mekanisme tersebut harus disediakan di tempat yang dengan mudah dapat diakses pengguna.</li> <li>f. Media siber wajib menyunting, menghapus, dan melakukan tindakan koreksi setiap Isi Buatan Pengguna yang dilaporkan dan melanggar ketentuan butir (c), sesegera mungkin secara proporsional selambat-lambatnya 2 x 24 jam setelah pengaduan diterima.</li> <li>g. Media siber yang telah memenuhi ketentuan pada butir (a), (b), (c), dan (f) tidak dibebani tanggung jawab atas masalah yang ditimbulkan akibat pemuatan isi yang melanggar ketentuan pada butir (c).</li> <li>h. Media siber bertanggung jawab atas Isi Buatan Pengguna yang dilaporkan bila tidak mengambil tindakan koreksi setelah batas waktu sebagaimana tersebut pada butir (f).</li> </ul> <span class="style3">4. Ralat, Koreksi, dan Hak Jawab</span> <ul class="style3"> <li> a. Ralat, koreksi, dan hak jawab mengacu pada Undang-Undang Pers, Kode Etik Jurnalistik, dan Pedoman Hak Jawab yang ditetapkan Dewan Pers.</li> <li>b. Ralat, koreksi dan atau hak jawab wajib ditautkan pada berita yang diralat, dikoreksi atau yang diberi hak jawab.</li> <li>c. Di setiap berita ralat, koreksi, dan hak jawab wajib dicantumkan waktu pemuatan ralat, koreksi, dan atau hak jawab tersebut.</li> <li>d. Bila suatu berita media siber tertentu disebarluaskan media siber lain, maka: <dt>1. Tanggung jawab media siber pembuat berita terbatas pada berita yang dipublikasikan di media siber tersebut atau media siber yang berada di bawah otoritas teknisnya;</dt> <dt>2. Koreksi berita yang dilakukan oleh sebuah media siber, juga harus dilakukan oleh media siber lain yang mengutip berita dari media siber yang dikoreksi itu;</dt> <dt>3. Media yang menyebarluaskan berita dari sebuah media siber dan tidak melakukan koreksi atas berita sesuai yang dilakukan oleh media siber pemilik dan atau pembuat berita tersebut, bertanggung jawab penuh atas semua akibat hukum dari berita yang tidak dikoreksinya itu.</dt> </li> <li>e. Sesuai dengan Undang-Undang Pers, media siber yang tidak melayani hak jawab dapat dijatuhi sanksi hukum pidana denda paling banyak Rp500.000.000 (Lima ratus juta rupiah).</li> </ul> <span class="style3">5. Pencabutan Berita</span> <ul class="style3"><li>a. Berita yang sudah dipublikasikan tidak dapat dicabut karena alasan penyensoran dari pihak luar redaksi, kecuali terkait masalah SARA, kesusilaan, masa depan anak, pengalaman traumatik korban atau berdasarkan pertimbangan khusus lain yang ditetapkan Dewan Pers.</li><li> b. Media siber lain wajib mengikuti pencabutan kutipan berita dari media asal yang telah dicabut.</li><li> c. Pencabutan berita wajib disertai dengan alasan pencabutan dan diumumkan kepada publik. </li></ul> <span class="style3">6. Iklan</span> <ul class="style3"><li>a. Media siber wajib membedakan dengan tegas antara produk berita dan iklan.</li> <li> b. Setiap berita/artikel/isi yang merupakan iklan dan atau isi berbayar wajib mencantumkan keterangan &quot;advertorial&quot;, &quot;iklan&quot;, &quot;ads&quot;, &quot;sponsored&quot;, atau kata lain yang menjelaskan bahwa berita/artikel/isi tersebut adalah iklan.</li> </ul> <span class="style3">7. Hak Cipta : Media siber wajib menghormati hak cipta sebagaimana diatur dalam peraturan perundang-undangan yang berlaku.<br /> <br /> 8. Pencantuman Pedoman : Media siber wajib mencantumkan Pedoman Pemberitaan Media Siber ini di medianya secara terang dan jelas.<br /> <br /> 9. Sengketa : Penilaian akhir atas sengketa mengenai pelaksanaan Pedoman Pemberitaan Media Siber ini diselesaikan oleh Dewan Pers.<br /> <br /> Jakarta, 3 Februari 2012<br /> (Pedoman ini ditandatangani oleh Dewan Pers dan komunitas pers di Jakarta, 3 Februari 2012). http://dewanpers.or.id/ </p> </span></td> <td align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp;</td> </tr> </table>

epaper_home.php <table width="900" border="0" cellspacing="2" cellpadding="2"> <tr> <td width="726" valign="top"><div align="center"> <?php /* include "go/go.php"; include "function.php"; $var = decode($_SERVER['REQUEST_URI']); */ $id=$var['id']; if($id!='') { $e=mysql_query("select * from EPAPER where ID='$id' order by TGL Desc limit 0,1"); }else { $e=mysql_query("select * from EPAPER order by TGL Desc limit 0,1"); } $de=mysql_fetch_array($e); $edisi_skr=$de['TGL']; $uk=substr($de['EMBED'], 44, 28); echo str_replace ($uk, "width: 726px; height: 750px;" , $de['EMBED'] ); //echo $de['EMBED']; ?> </div></td> <td width="160" valign="top" bgcolor="#FFFFCC"> <?php //include "go/go.php"; $tgl_now=date("Y-m-d"); $e2=mysql_query("select * from EPAPER where TGL<>'$edisi_skr' order by TGL Desc limit 0,3"); //echo "select * from EPAPER where TGL<>'$tgl_now' order by TGL Desc limit 0,7"; while($de2=mysql_fetch_array($e2)) { $cover=$de2['COVER']; $titel=$de2['JUDUL']; echo "<div align=\"center\"><a title='$titel' href='index.php?read~$titel;".paramEncrypt('p=epaper_home&id='.$de2[0].'')."'>"; echo "<img src=\"../photos/bigs/$cover\" width=\"150\" border=\"0\" /></a></div><br>"; } ?> </td> </tr> </table>

m_pencarian_proses.php <?php $str=mysql_real_escape_string($_POST['s']); $str3=$var['str2']; if($str!='') { $ip=$_SERVER['REMOTE_ADDR']; $tgl=date("Y-m-d H:i:s"); $msk=mysql_query("insert into DATA_PENCARIAN set KATA='$str',TGLKIRIM='$tgl',IP='$ip'"); $str4=$str; }else{$str4=$str3;} //echo $str4; ?> <table width="100%" border="0" cellspacing="0" cellpadding="0" height="628"> <tr> <td width="100%" align="left" valign="top"> <?php $dataPerPage = 10; $page =$var['page']; if(isset($page)) { $noPage = $page; } else $noPage = 1; $offset = ($noPage - 1) * $dataPerPage; if($str!='') { $que ="select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM,TIME from BERITA WHERE (JUDUL like '%$str%' or ISI like '%$str%') and JUDUL<>'' and TGLKIRIM2<='$tgl_sekarang' and STATUS='Show' ORDER BY TGLKIRIM2 DESC LIMIT $offset, $dataPerPage"; }else { $que = "select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM,TIME from BERITA WHERE (JUDUL like '%$str3%' or ISI like '%$str3%') and JUDUL<>'' and TGLKIRIM2<='$tgl_sekarang' and STATUS='Show' ORDER BY TGLKIRIM2 DESC LIMIT $offset, $dataPerPage"; } //echo $que; $queryinfo = mysql_query($que); while($tbl = mysql_fetch_array($queryinfo)) { $ttl_seacrh=str_replace(" ","-",$tbl['JUDUL']); ?> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr align="left" valign="top"> <td width="93%"><li> <div style="font: 10px normal Arial, Helvetica, sans-serif;"> <?php echo tanggal("D, j M Y",$tbl['TGLKIRIM']);echo " : ".$tbl['TIME']." WIB";?> </div> <? echo "<div class='judul_bk'><a href='index.php?read~$ttl_seacrh;".paramEncrypt('p=m_detil&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a>"; echo "</div>"; ?> <div class="lead_bk"><?php echo $tbl['NEWLEAD'];?></div> </li></td> </tr> </table> <?php }?><br> <table width="100%" border="0" cellspacing="3" cellpadding="3" style="border: 1px solid #ccc; "> <tr> <td align="center" valign="middle"> <div class="judul_paging"> <?php if($str!='') { $query = "SELECT COUNT(*) AS jumData FROM BERITA where (JUDUL like '%$str%' or ISI like '%$str%') and JUDUL<>'' and TGLKIRIM2<='$tgl_sekarang' and STATUS='Show'"; } else { $query = "SELECT COUNT(*) AS jumData FROM BERITA where (JUDUL like '%$str3%' or ISI like '%$str3%') and JUDUL<>'' and TGLKIRIM2<='$tgl_sekarang' and STATUS='Show'"; } //echo $query; $hasil = mysql_query($query); $data = mysql_fetch_array($hasil); $jumData = $data['jumData']; $jumPage = ceil($jumData/$dataPerPage); if ($noPage > 1) echo "<a href='index.php?".paramEncrypt('p=m_pencarian_proses&str2='.$str4.'&page='.($noPage-1).'')."'>&lt;&lt; Prev</a>"; // memunculkan nomor halaman dan linknya for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 3) && ($page <= $noPage + 3)) || ($page == 1) || ($page == $jumPage)) { if (($showPage == 1) && ($page != 2)) echo "..."; if (($showPage != ($jumPage - 1)) && ($page == $jumPage)) echo "..."; if ($page == $noPage) echo " <b>".$page."</b> "; else echo " <a href='index.php?".paramEncrypt('p=m_pencarian_proses&str2='.$str4.'&page='.$page.'')."'>".$page."</a> "; $showPage = $page; } } // menampilkan link next if ($noPage < $jumPage) echo "<a href='index.php?".paramEncrypt('p=m_pencarian_proses&str2='.$str4.'&page='.($noPage+1).'')."'>Next &gt;&gt;</a>"; ?></div></td> </tr> </table> </td> <td width="0%" align="left" valign="top">&nbsp;</td> </tr> </table>

index.php m_detil_n.php <table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td bgcolor="#F3F3F3"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><div class="kat"><?php echo $d['JUDUL']; ?></div><hr color="#CCCCCC 1px solid" /><div class="tgl"><?php echo tanggal("D, j M Y",$d['TGLKIRIM']);echo " | ".$d['TIME']." WIB";?></div></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top"><div class="isi"> <?php echo nl2br($d['ISI']); ?></div></td> </tr> <?php if($d['ISI2']!=''){ ?> <tr> <td align="left" valign="top"><div class="isi"><?php echo nl2br($d['ISI2']); ?></div></td> </tr> <?php } ?> </table></td> </tr> <tr> <td bgcolor="#F3F3F3"><div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilberita&id='.$id.''); ?>" data-num-posts="10" data-width="600"></div></td> </tr> </table>

karir.php <style type="text/css"> <!-- .style1 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } --> </style> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="7%" align="left" valign="top">&nbsp;</td> <td width="93%" align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top"><img src="images/imb.jpg" width="780" /></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp;</td> </tr> </table>

home_internasional_new.php <table width="400" border="0" cellspacing="0" cellpadding="0"> <tr> <td ><img src="images/internasional.png" width="100%" /></td> </tr> <tr> <td > <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="50%" align="left" valign="top"> <?php $q=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='Internasional' and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KOTA='LuarNegeri' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 2"); while($dq=mysql_fetch_array($q)) { $ttl_int=str_replace(" ","-",$dq['JUDUL']); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"> <table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?read~$ttl_int;".paramEncrypt('p=detilberita&id='.$dq[0].'')."'>$dq[JUDUL]<span class=\"classic\"><em>".$dq['JUDUL']."</em>$dq[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> <td width="50%" align="left" valign="top"><?php $q2=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='Internasional' and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KOTA='LuarNegeri' order by TGLKIRIM2 desc,IDBERITA desc limit 2, 2"); while($dq2=mysql_fetch_array($q2)) { $ttl_int2=str_replace(" ","-",$dq2['JUDUL']); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"><table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?read~$ttl_int2;".paramEncrypt('p=detilberita&id='.$dq2[0].'')."'>$dq2[JUDUL]<span class=\"classic\"><em>".$dq2['JUDUL']."</em>$dq2[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq2['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq2['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> </tr> </table> </td> </tr> </table>

home_korupsi_new_preview.php <table width="230" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><img src="images/korupsi.png" width="100%" /></td> </tr> <tr> <td align="left" valign="top"> <?php $pr0=mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO from BERITA where STATUS='Show' and KATEGORI='WhiteCrime' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 1"); $dpr0=mysql_fetch_array($pr0); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <? if(($dpr0['NAMAFOTO']!='') && file_exists('photos/thumbs/'.$dpr0['NAMAFOTO'])){?> <td width="37%" align="left" valign="top"> <img src="photos/thumbs/<? echo $dpr0['NAMAFOTO'];?>" width="75" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid; margin-right:5px"/> </td> <?php }?> <td width="63%" align="left" valign="top"><span class="left_berita2"> <?php echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dpr0[0].'')."'>"; $jdl=$dpr0['JUDUL']; echo $jdl; echo "<span class=\"classic\"><em>".$dpr0['JUDUL']."</em>$dpr0[NEWLEAD]</span></a><br>"; ?></span> </td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top"><span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and KATEGORI='WhiteCrime' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 1, 5"); while($dpr=mysql_fetch_array($pr)) { echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dpr[0].'')."'>"; if(strlen($dpr['JUDUL'])>29) { $jdl=substr_replace($dpr['JUDUL'],CHR(13),0,"<br>"); echo substr($jdl,0,28); echo "..."; }else { echo $dpr['JUDUL']; } echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span></td> </tr> </table></td> </tr> </table>

tes_geolocation3.php <!DOCTYPE html> <html> <body> <p id="demo">Click the button to get your position:</p> <button onclick="getLocation()">Try It</button> <div id="mapholder"></div> <script> var x=document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition,showError); } else{x.innerHTML="Geolocation is not supported by this browser.";} } function showPosition(position) { var latlon=position.coords.latitude+","+position.coords.longitude; var img_url="http://maps.googleapis.com/maps/api/staticmap?center=" +latlon+"&zoom=14&size=400x300&sensor=false"; document.getElementById("mapholder").innerHTML="<img src='"+img_url+"'>"; } function showError(error) { switch(error.code) { case error.PERMISSION_DENIED: x.innerHTML="User denied the request for Geolocation." break; case error.POSITION_UNAVAILABLE: x.innerHTML="Location information is unavailable." break; case error.TIMEOUT: x.innerHTML="The request to get user location timed out." break; case error.UNKNOWN_ERROR: x.innerHTML="An unknown error occurred." break; } } </script> </body> </html>

m_include.php <? $page = $var['p']; if(eregi("^[a-z0-9\-_\.]+$", $page, $regs)) //make sure $page is alphanumeric { $dir = ""; //not strictly necessary, can be blank. $ext = ".php"; //.php, .html, .txt, whatever if(file_exists($dir . $page . $ext)) { include($dir . $page . $ext); //or readfile if not expecting php code } else { $ad="http://www.surabayapagi.com".$_SERVER['REQUEST_URI']; $pesan="WARNING"; $ip=$_SERVER['REMOTE_ADDR']; $tgl=date("Y-m-d H:i:s"); $msk=mysql_query("insert into DATA_URL_ACT set KATA='$ad',TGLKIRIM='$tgl',IP='$ip',PESAN='$pesan'"); $redirect_url= "index.php"; echo"<html><head> <META HTTP-EQUIV=\"Refresh\" Content = \"1; URL=$redirect_url\"> </head><body ><table align=center><tr><td><img src='facebook.gif'></td></tr></table></body></html>"; } //echo '404 - Not Found'; //or something similar } else { include"m_home.php"; }//footer stuff ?>

_errorpages

home_sportainment.php <table width="255" border="0" cellspacing="0" cellpadding="0" > <tr> <td ><img src="images/sportainment.png" width="100%" /></td> </tr> <tr> <td> <?php $q=mysql_query("select IDBERITA,JUDUL,NAMAFOTO,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='Sportainment' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 3"); while($d=mysql_fetch_array($q)) { $ttl_sport=str_replace(" ","-",$d['JUDUL']); ?><table width="100%" border="0" cellpadding="3" cellspacing="1"> <tr> <td width="253" height="21" align="left" valign="top" bgcolor="#EBEBEB"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="59%" align="left" valign="top" bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#F4F1CE'" onmouseout="this.style.backgroundColor='#FFFFFF'"><table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td><div class="judul_kanan"> <?php echo " <a class=\"tooltip\" href='index.php?read~$ttl_sport;".paramEncrypt('p=detilberita&id='.$d[0].'')."'>$d[JUDUL]<span class=\"classic\"><em>".$d['JUDUL']."</em>$d[NEWLEAD]</span></a>"; ?> </div> <div class="lead_kanan"> <?php $lead=$d['NEWLEAD']; $lead_array = explode(' ',$lead); $lead_baru = ''; $i=1; foreach($lead_array AS $lead_array1){ if ($i<=7) $lead_baru .= $lead_array1.' '; $i++; } echo $lead_baru."..."; ?> </div></td> </tr> </table></td> <td width="41%" align="left" valign="top" bgcolor="#FFFFFF"> <? if($d['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $d['NAMAFOTO'];?>" width="100" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="100" height="100" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table></td> </tr> </table> <?php } ?> </td> </tr> </table>

berita_kanan.php <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td align="left" valign="top"><font face="tahoma, arial" size="+1" color="#FF0000"><b>Berita Terbaru </b></font> <hr /></td> </tr> <?php $bl=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where TGLKIRIM2<='$tgl_sekarang' ORDER BY TGLKIRIM2 desc,IDBERITA desc LIMIT 0,25"); while($dbl=mysql_fetch_array($bl)) { $ttl_lain=str_replace(" ","-",$dbl['JUDUL']); ?> <tr> <td align="left" valign="top"><span class="left_berita"><?php echo "<a title='".$dbl['JUDUL']."' href='index.php?read=$ttl_lain;".paramEncrypt('p=detilberita&id='.$dbl[0].'')."'>"; if(strlen($dbl['JUDUL'])>35) { $judul=substr_replace($dbl['JUDUL'],CHR(13),0,"<br>"); echo substr($judul,0,35); echo "..."; }else { echo $dbl['JUDUL']; } ?></span></td> </tr> <?php } ?> <?php if($kategori=="EkonomiBisnis") { ?><!-- <tr> <td align="left" valign="top"><a href="http://www.siskaperbapo.com" target="_blank"><img src="images/siska.gif" width="100%" border="0" /></a></td> </tr>--> <?php }?> </table>

hl0_preview.php <?php $queryinfo = mysql_query("select * from BERITA where STATUS='Show' and STATUSKATEGORI='Headline' and NAMAFOTO!='' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { ?> <img src="photos/bigs/<?php echo $tbl['NAMAFOTO']; ?>" name="targetimage" border='0' width="399" height="266" /> <? } } ?>

langganan.php <style type="text/css"> <!-- .style3 {font-family: Arial, Helvetica, sans-serif; font-weight: bold; } --> </style> <link rel="stylesheet" media="all" type="text/css" href="css/jquery-ui.css" /> <link rel="stylesheet" media="all" type="text/css" href="jquery-ui-timepicker-addon.css" /> <script type="text/javascript" src="jquery-1.8.2.min.js"></script> <script type="text/javascript" src="jquery-ui.min.js"></script> <script type="text/javascript" src="jquery-ui-timepicker-addon.js"></script> <script type="text/javascript" src="jquery-ui-sliderAccess.js"></script> <script type="text/javascript"> $(function(){ var ex13 = $('#utility_example_1'); ex13.datepicker({ dateFormat: "yy-mm-dd" }); $('#utility_example_1_setdt').click(function(){ ex13.datepicker('setDate', (new Date()) ); }); $('#utility_example_1_getdt').click(function(){ alert(ex13.datepicker('getDate')); }); }); </script> <script language="JavaScript"> function checkrequired(which) { var pass=true; if (document.images) { for (i=0;i<which.length;i++) { var tempobj=which.elements[i]; if (tempobj.name.substring(0,8)=="required") { if (((tempobj.type=="text"||tempobj.type=="textarea")&& tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&& tempobj.selectedIndex==0)) { pass=false; break; } } } } if (!pass) { shortFieldName=tempobj.name.substring(8,30).toUpperCase(); alert("Tolong silahkan anda isikan "+shortFieldName+" untuk melengkapinya"); return false; } else return true; } </script> <style type="text/css"> <!-- .style7 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } .style8 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; } --> </style> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="top"> <form action="<?php echo "index.php?".paramEncrypt('p=langganan_save');?>" method="post" onSubmit="return checkrequired(this)"> <table width="500" border="0" cellspacing="1" cellpadding="5" style="border-bottom:#999999 1px solid; border-left:#999999 1px solid; border-right:#999999 1px solid; border-top:#999999 1px solid"> <tr> <td colspan="3"><span class="style7">Dapatkan paket berlangganan Surabaya Pagi menjelang akhir tahun 2013 dengan berbagai bonus ucapan iklan selamat (khusus wilayah Surabaya).<br> </span> <li class="style8">3 Bulan, Rp. 150.000, Bonus Iklan Rp. 100.000</li> <li class="style8">6 Bulan, Rp. 300.000, Bonus Iklan Rp. 200.000</li> <hr size="1px" /> </td> </tr> <tr> <td colspan="3"><span class="style3">Form Berlangganan : <hr size="1px" /></span></td> </tr> <tr> <td width="205" align="left" valign="top"><span class="style3">Nama</span></td> <td width="6" align="left" valign="top"><span class="style3">:</span></td> <td width="253" align="left" valign="top"><input name="requirednama" type="text" id="requirednama" /></td> </tr> <tr> <td align="left" valign="top"><span class="style3">Alamat</span></td> <td align="left" valign="top"><span class="style3">:</span></td> <td align="left" valign="top"><span class="style3"> <textarea name="requiredalamat" id="requiredalamat" cols='20' rows='5'></textarea> </span></td> </tr> <tr> <td align="left" valign="top"><span class="style3">Telp</span></td> <td align="left" valign="top"><span class="style3">:</span></td> <td align="left" valign="top"><input name="requiredtelp" type="text" id="requiredtelp" /></td> </tr> <tr> <td align="left" valign="top"><span class="style3">Email</span></td> <td align="left" valign="top"><span class="style3">:</span></td> <td align="left" valign="top"><input name="requiredemail" type="text" id="requiredemail" /></td> </tr> <tr> <td align="left" valign="top"><span class="style3">Paket</span></td> <td align="left" valign="top"><span class="style3">:</span></td> <td align="left" valign="top"><span class="style3"> <label> <input name="paket" type="radio" value="3" checked /> 3 Bulan </label> <label> <input name="paket" type="radio" value="6" /> 6 Bulan </label> </span></td> </tr> <tr> <td align="left" valign="top"><span class="style3">Mulai Berlangganan </span></td> <td align="left" valign="top"><span class="style3">:</span></td> <td align="left" valign="top"><input name="requiredmulai" readonly='readonly' type="text" id="utility_example_1" /></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top"><span class="field"><img id="imgCaptcha" src="create_image.php" /></span></td> </tr> <tr> <td align="left" valign="top"><span class="style3">Kode</span></td> <td align="left" valign="top"><span class="style3">:</span></td> <td align="left" valign="top"><input name="requiredkode" type="text" id="requiredkode" size="15" /></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><input type="submit" name="Submit" value="Submit" /></td> </tr> </table> </form> <br><br> </td> </tr> </table>

m_breaking.php <table width="100%" border="0" cellspacing="1" cellpadding="1"> <?php $queryinfo2 = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM2,TIME from BERITA where JUDUL!='' and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 10") or die("Data Berita tidak ada !!"); $no=0; while($bk=mysql_fetch_array($queryinfo2)) { $ttl_bk=str_replace(" ","-",$bk['JUDUL']); $no++; $bgcolor=($no%2)?"bgcolor='#F9F9F9' onMouseover=this.style.backgroundColor='#F3F3F3' onMouseout=this.style.backgroundColor='#F9F9F9'":"bgcolor='#EEEEEE' onMouseover=this.style.backgroundColor='#F3F3F3' onMouseout=this.style.backgroundColor='#EEEEEE'"; ?> <tr <?php echo $bgcolor;?>> <td width="5%" align="left" valign="top"><span class="time_bk"><?php echo $bk['TIME']; ?></span></td> <td width="95%" align="left" valign="top"><span class="judul_bk"><?php echo "<a href='index.php?read~$ttl_bk;".paramEncrypt('p=m_detil&id='.$bk[0].'')."'>"; echo $bk['JUDUL']."</a>"; ?></span></td> </tr> <?php }?> </table>

m_detil_l.phpx <table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td bgcolor="#F3F3F3"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><div class="kat"><?php echo $d['JUDUL']; ?></div><hr color="#CCCCCC 1px solid" /><div class="tgl"><?php echo tanggal("D, j M Y",$d['TGLKIRIM']);echo " | ".$d['TIME']." WIB";?></div></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top"><img src="http://www.surabayapagi.com/photos/bigs/<?php echo $d['NAMAFOTO']; ?>" width="100%" /></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top"><div class="isi"><?php echo nl2br($d['ISI']); ?></div></td> </tr> </table></td> </tr> <tr> <td bgcolor="#F3F3F3"><div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilberita&id='.$id.''); ?>" data-num-posts="10" data-width="600"></div></td> </tr> </table>

AES.class.php <?php /** * AES Cipher Library * Based on Federal Information Processing Standards Publication 197 - 26th November 2001 * @author Marcin F. Winiowski <marcin.wisniowski@mfw.pl> * @version 1.0.5 * @license http://opensource.org/licenses/lgpl-3.0.html The GNU Lesser General Public License * @package AES */ /** * AES Encryption Class. * This class supports three lenghts of key (128, 192, 256) * @author Marcin F. Winiowski <marcin.wisniowski@mfw.pl> * @version 1.0.2 * @license http://opensource.org/licenses/lgpl-3.0.html The GNU Lesser General Public License */ class AES { /** @var int Number of rounds in AES algorithm (Nr) */ private $number_of_rounds; /** @var int Number of columns (32-bit words) comprising the State. (Nb) */ private $block_size; /** @var int Number of 32-bit words comprising the Cipher Key (Nk) */ private $key_size; /** @var array S-Box: Non-linear substitution table used in several byte substitution transformations */ private $s_box; /** @var array Inverted S-Box */ private $s_box_inverted; /** @var array Araay of [pow(2,x),{00},{00},{00}] values used as round constant value */ private $round_constants; /** @var array Logaritmic array used in Galois filed multiplication proccess */ private $log; /** @var array Expotencial array used in Galois filed multiplication proccess */ private $exp; /** @var array Array of collumn (words) */ private $state; const AES128 = 0; const AES192 = 1; const AES256 = 2; const WORD_LENGTH = 4; const BYTE_LENGTH = 8; /** * Class constructor default construkts AES128 Objeckt * @param int Key strength default values is AES128. Also supports AES192 and AES256 values. */ public function __construct($strength=self::AES128) { switch($strength) { case self::AES256: $this->key_size = 8; $this->block_size = 4; $this->number_of_rounds = 14; break; case self::AES192: $this->key_size = 6; $this->block_size = 4; $this->number_of_rounds = 12; break; case self::AES128: default: $this->key_size = 4; $this->block_size = 4; $this->number_of_rounds = 10; break; } $this->createSBox(); $this->createInvertedSBox(); $this->createRoundConstants(); $this->createLogarithmicArray(); $this->createExpotecialArray(); $this->state = array(); } /** * Class destructor */ public function __destruct() {} /** * Definition of method which takes undefined methods of this Class */ public function __call($name, $params) { throw new Exception("Undefined method call of AES class. Method name: ".$name); } /** * Creates S-Box Table */ private function createSBox() { $this->s_box = array( 0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76, 0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0xAD, 0xD4, 0xA2, 0xAF, 0x9C, 0xA4, 0x72, 0xC0, 0xB7, 0xFD, 0x93, 0x26, 0x36, 0x3F, 0xF7, 0xCC, 0x34, 0xA5, 0xE5, 0xF1, 0x71, 0xD8, 0x31, 0x15, 0x04, 0xC7, 0x23, 0xC3, 0x18, 0x96, 0x05, 0x9A, 0x07, 0x12, 0x80, 0xE2, 0xEB, 0x27, 0xB2, 0x75, 0x09, 0x83, 0x2C, 0x1A, 0x1B, 0x6E, 0x5A, 0xA0, 0x52, 0x3B, 0xD6, 0xB3, 0x29, 0xE3, 0x2F, 0x84, 0x53, 0xD1, 0x00, 0xED, 0x20, 0xFC, 0xB1, 0x5B, 0x6A, 0xCB, 0xBE, 0x39, 0x4A, 0x4C, 0x58, 0xCF, 0xD0, 0xEF, 0xAA, 0xFB, 0x43, 0x4D, 0x33, 0x85, 0x45, 0xF9, 0x02, 0x7F, 0x50, 0x3C, 0x9F, 0xA8, 0x51, 0xA3, 0x40, 0x8F, 0x92, 0x9D, 0x38, 0xF5, 0xBC, 0xB6, 0xDA, 0x21, 0x10, 0xFF, 0xF3, 0xD2, 0xCD, 0x0C, 0x13, 0xEC, 0x5F, 0x97, 0x44, 0x17, 0xC4, 0xA7, 0x7E, 0x3D, 0x64, 0x5D, 0x19, 0x73, 0x60, 0x81, 0x4F, 0xDC, 0x22, 0x2A, 0x90, 0x88, 0x46, 0xEE, 0xB8, 0x14, 0xDE, 0x5E, 0x0B, 0xDB, 0xE0, 0x32, 0x3A, 0x0A, 0x49, 0x06, 0x24, 0x5C, 0xC2, 0xD3, 0xAC, 0x62, 0x91, 0x95, 0xE4, 0x79, 0xE7, 0xC8, 0x37, 0x6D, 0x8D, 0xD5, 0x4E, 0xA9, 0x6C, 0x56, 0xF4, 0xEA, 0x65, 0x7A, 0xAE, 0x08, 0xBA, 0x78, 0x25, 0x2E, 0x1C, 0xA6, 0xB4, 0xC6, 0xE8, 0xDD, 0x74, 0x1F, 0x4B, 0xBD, 0x8B, 0x8A, 0x70, 0x3E, 0xB5, 0x66, 0x48, 0x03, 0xF6, 0x0E, 0x61, 0x35, 0x57, 0xB9, 0x86, 0xC1, 0x1D, 0x9E, 0xE1, 0xF8, 0x98, 0x11, 0x69, 0xD9, 0x8E, 0x94, 0x9B, 0x1E, 0x87, 0xE9, 0xCE, 0x55, 0x28, 0xDF, 0x8C, 0xA1, 0x89, 0x0D, 0xBF, 0xE6, 0x42, 0x68, 0x41, 0x99, 0x2D, 0x0F, 0xB0, 0x54, 0xBB, 0x16); } /** * Creates invertet S-Box Table */ private function createInvertedSBox() { $this->s_box_inverted = array( 0x52, 0x09, 0x6A, 0xD5, 0x30, 0x36, 0xA5, 0x38, 0xBF, 0x40, 0xA3, 0x9E, 0x81, 0xF3, 0xD7, 0xFB, 0x7C, 0xE3, 0x39, 0x82, 0x9B, 0x2F, 0xFF, 0x87, 0x34, 0x8E, 0x43, 0x44, 0xC4, 0xDE, 0xE9, 0xCB, 0x54, 0x7B, 0x94, 0x32, 0xA6, 0xC2, 0x23, 0x3D, 0xEE, 0x4C, 0x95, 0x0B, 0x42, 0xFA, 0xC3, 0x4E, 0x08, 0x2E, 0xA1, 0x66, 0x28, 0xD9, 0x24, 0xB2, 0x76, 0x5B, 0xA2, 0x49, 0x6D, 0x8B, 0xD1, 0x25, 0x72, 0xF8, 0xF6, 0x64, 0x86, 0x68, 0x98, 0x16, 0xD4, 0xA4, 0x5C, 0xCC, 0x5D, 0x65, 0xB6, 0x92, 0x6C, 0x70, 0x48, 0x50, 0xFD, 0xED, 0xB9, 0xDA, 0x5E, 0x15, 0x46, 0x57, 0xA7, 0x8D, 0x9D, 0x84, 0x90, 0xD8, 0xAB, 0x00, 0x8C, 0xBC, 0xD3, 0x0A, 0xF7, 0xE4, 0x58, 0x05, 0xB8, 0xB3, 0x45, 0x06, 0xD0, 0x2C, 0x1E, 0x8F, 0xCA, 0x3F, 0x0F, 0x02, 0xC1, 0xAF, 0xBD, 0x03, 0x01, 0x13, 0x8A, 0x6B, 0x3A, 0x91, 0x11, 0x41, 0x4F, 0x67, 0xDC, 0xEA, 0x97, 0xF2, 0xCF, 0xCE, 0xF0, 0xB4, 0xE6, 0x73, 0x96, 0xAC, 0x74, 0x22, 0xE7, 0xAD, 0x35, 0x85, 0xE2, 0xF9, 0x37, 0xE8, 0x1C, 0x75, 0xDF, 0x6E, 0x47, 0xF1, 0x1A, 0x71, 0x1D, 0x29, 0xC5, 0x89, 0x6F, 0xB7, 0x62, 0x0E, 0xAA, 0x18, 0xBE, 0x1B, 0xFC, 0x56, 0x3E, 0x4B, 0xC6, 0xD2, 0x79, 0x20, 0x9A, 0xDB, 0xC0, 0xFE, 0x78, 0xCD, 0x5A, 0xF4, 0x1F, 0xDD, 0xA8, 0x33, 0x88, 0x07, 0xC7, 0x31, 0xB1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xEC, 0x5F, 0x60, 0x51, 0x7F, 0xA9, 0x19, 0xB5, 0x4A, 0x0D, 0x2D, 0xE5, 0x7A, 0x9F, 0x93, 0xC9, 0x9C, 0xEF, 0xA0, 0xE0, 0x3B, 0x4D, 0xAE, 0x2A, 0xF5, 0xB0, 0xC8, 0xEB, 0xBB, 0x3C, 0x83, 0x53, 0x99, 0x61, 0x17, 0x2B, 0x04, 0x7E, 0xBA, 0x77, 0xD6, 0x26, 0xE1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0C, 0x7D); } /** * Creates Round Contstants Table: Array of [pow(2,x),{00},{00},{00}] values used as round constant value */ private function createRoundConstants() { $this->round_constants = array( 0x01000000, 0x02000000, 0x04000000, 0x08000000, 0x10000000, 0x20000000, 0x40000000, 0x80000000, 0x1B000000, 0x36000000, 0x6C000000, 0xD8000000, 0xAB000000, 0x4D000000, 0x9A000000, 0x2F000000, 0x5E000000, 0xBC000000, 0x63000000, 0xC6000000, 0x97000000, 0x35000000, 0x6A000000, 0xD4000000, 0xB3000000, 0x7D000000, 0xFA000000, 0xEF000000, 0xC5000000, 0x91000000); } /** * Creates Logarithmic array with generator number 0xe5 */ private function createLogarithmicArray() { $this->log = array( 0x00, 0xFF, 0xC8, 0x08, 0x91, 0x10, 0xD0, 0x36, 0x5A, 0x3E, 0xD8, 0x43, 0x99, 0x77, 0xFE, 0x18, 0x23, 0x20, 0x07, 0x70, 0xA1, 0x6C, 0x0C, 0x7F, 0x62, 0x8B, 0x40, 0x46, 0xC7, 0x4B, 0xE0, 0x0E, 0xEB, 0x16, 0xE8, 0xAD, 0xCF, 0xCD, 0x39, 0x53, 0x6A, 0x27, 0x35, 0x93, 0xD4, 0x4E, 0x48, 0xC3, 0x2B, 0x79, 0x54, 0x28, 0x09, 0x78, 0x0F, 0x21, 0x90, 0x87, 0x14, 0x2A, 0xA9, 0x9C, 0xD6, 0x74, 0xB4, 0x7C, 0xDE, 0xED, 0xB1, 0x86, 0x76, 0xA4, 0x98, 0xE2, 0x96, 0x8F, 0x02, 0x32, 0x1C, 0xC1, 0x33, 0xEE, 0xEF, 0x81, 0xFD, 0x30, 0x5C, 0x13, 0x9D, 0x29, 0x17, 0xC4, 0x11, 0x44, 0x8C, 0x80, 0xF3, 0x73, 0x42, 0x1E, 0x1D, 0xB5, 0xF0, 0x12, 0xD1, 0x5B, 0x41, 0xA2, 0xD7, 0x2C, 0xE9, 0xD5, 0x59, 0xCB, 0x50, 0xA8, 0xDC, 0xFC, 0xF2, 0x56, 0x72, 0xA6, 0x65, 0x2F, 0x9F, 0x9B, 0x3D, 0xBA, 0x7D, 0xC2, 0x45, 0x82, 0xA7, 0x57, 0xB6, 0xA3, 0x7A, 0x75, 0x4F, 0xAE, 0x3F, 0x37, 0x6D, 0x47, 0x61, 0xBE, 0xAB, 0xD3, 0x5F, 0xB0, 0x58, 0xAF, 0xCA, 0x5E, 0xFA, 0x85, 0xE4, 0x4D, 0x8A, 0x05, 0xFB, 0x60, 0xB7, 0x7B, 0xB8, 0x26, 0x4A, 0x67, 0xC6, 0x1A, 0xF8, 0x69, 0x25, 0xB3, 0xDB, 0xBD, 0x66, 0xDD, 0xF1, 0xD2, 0xDF, 0x03, 0x8D, 0x34, 0xD9, 0x92, 0x0D, 0x63, 0x55, 0xAA, 0x49, 0xEC, 0xBC, 0x95, 0x3C, 0x84, 0x0B, 0xF5, 0xE6, 0xE7, 0xE5, 0xAC, 0x7E, 0x6E, 0xB9, 0xF9, 0xDA, 0x8E, 0x9A, 0xC9, 0x24, 0xE1, 0x0A, 0x15, 0x6B, 0x3A, 0xA0, 0x51, 0xF4, 0xEA, 0xB2, 0x97, 0x9E, 0x5D, 0x22, 0x88, 0x94, 0xCE, 0x19, 0x01, 0x71, 0x4C, 0xA5, 0xE3, 0xC5, 0x31, 0xBB, 0xCC, 0x1F, 0x2D, 0x3B, 0x52, 0x6F, 0xF6, 0x2E, 0x89, 0xF7, 0xC0, 0x68, 0x1B, 0x64, 0x04, 0x06, 0xBF, 0x83, 0x38); } /** * Creates Expotencial array with generator number 0xe5 */ private function createExpotecialArray() { $this->exp = array( 0x01, 0xe5, 0x4c, 0xb5, 0xfb, 0x9f, 0xfc, 0x12, 0x03, 0x34, 0xd4, 0xc4, 0x16, 0xba, 0x1f, 0x36, 0x05, 0x5c, 0x67, 0x57, 0x3a, 0xd5, 0x21, 0x5a, 0x0f, 0xe4, 0xa9, 0xf9, 0x4e, 0x64, 0x63, 0xee, 0x11, 0x37, 0xe0, 0x10, 0xd2, 0xac, 0xa5, 0x29, 0x33, 0x59, 0x3b, 0x30, 0x6d, 0xef, 0xf4, 0x7b, 0x55, 0xeb, 0x4d, 0x50, 0xb7, 0x2a, 0x07, 0x8d, 0xff, 0x26, 0xd7, 0xf0, 0xc2, 0x7e, 0x09, 0x8c, 0x1a, 0x6a, 0x62, 0x0b, 0x5d, 0x82, 0x1b, 0x8f, 0x2e, 0xbe, 0xa6, 0x1d, 0xe7, 0x9d, 0x2d, 0x8a, 0x72, 0xd9, 0xf1, 0x27, 0x32, 0xbc, 0x77, 0x85, 0x96, 0x70, 0x08, 0x69, 0x56, 0xdf, 0x99, 0x94, 0xa1, 0x90, 0x18, 0xbb, 0xfa, 0x7a, 0xb0, 0xa7, 0xf8, 0xab, 0x28, 0xd6, 0x15, 0x8e, 0xcb, 0xf2, 0x13, 0xe6, 0x78, 0x61, 0x3f, 0x89, 0x46, 0x0d, 0x35, 0x31, 0x88, 0xa3, 0x41, 0x80, 0xca, 0x17, 0x5f, 0x53, 0x83, 0xfe, 0xc3, 0x9b, 0x45, 0x39, 0xe1, 0xf5, 0x9e, 0x19, 0x5e, 0xb6, 0xcf, 0x4b, 0x38, 0x04, 0xb9, 0x2b, 0xe2, 0xc1, 0x4a, 0xdd, 0x48, 0x0c, 0xd0, 0x7d, 0x3d, 0x58, 0xde, 0x7c, 0xd8, 0x14, 0x6b, 0x87, 0x47, 0xe8, 0x79, 0x84, 0x73, 0x3c, 0xbd, 0x92, 0xc9, 0x23, 0x8b, 0x97, 0x95, 0x44, 0xdc, 0xad, 0x40, 0x65, 0x86, 0xa2, 0xa4, 0xcc, 0x7f, 0xec, 0xc0, 0xaf, 0x91, 0xfd, 0xf7, 0x4f, 0x81, 0x2f, 0x5b, 0xea, 0xa8, 0x1c, 0x02, 0xd1, 0x98, 0x71, 0xed, 0x25, 0xe3, 0x24, 0x06, 0x68, 0xb3, 0x93, 0x2c, 0x6f, 0x3e, 0x6c, 0x0a, 0xb8, 0xce, 0xae, 0x74, 0xb1, 0x42, 0xb4, 0x1e, 0xd3, 0x49, 0xe9, 0x9c, 0xc8, 0xc6, 0xc7, 0x22, 0x6e, 0xdb, 0x20, 0xbf, 0x43, 0x51, 0x52, 0x66, 0xb2, 0x76, 0x60, 0xda, 0xc5, 0xf3, 0xf6, 0xaa, 0xcd, 0x9a, 0xa0, 0x75, 0x54, 0x0e, 0x01); } /** * Encrypts 16 bytes of data using AES algoritm * @param string Decrypted Content * @return string Encrypted Content */ public function encrypt($content, $key) { $expand_key = $this->keyExpansion($this->convertToWords($key)); $this->state = $this->convertToWords($content); $this->addRoundKey($this->createRoundKey(0, $expand_key)); for ($round = 1; $round < $this->number_of_rounds; $round++) { $this->subBytes(); $this->shiftRows(); $this->mixColumns(); $this->addRoundKey($this->createRoundKey($round, $expand_key)); } $this->subBytes(); $this->shiftRows(); $this->addRoundKey($this->createRoundKey($this->number_of_rounds, $expand_key)); return $this->convertToHexString(); } /** * Decrypts encrypteta 16 bytes of data using AES algoritm * @param string Encrypted Content * @return string Decrypted Content */ public function decrypt($content, $key) { $expand_key = $this->keyExpansion($this->convertToWords($key)); $this->state = $this->convertToWords($content); $this->addRoundKey($this->createRoundKey($this->number_of_rounds, $expand_key)); for ($round = $this->number_of_rounds - 1; $round > 0; $round--) { $this->invShiftRows(); $this->invSubBytes(); $this->addRoundKey($this->createRoundKey($round, $expand_key)); $this->invMixColumns(); } $this->invShiftRows(); $this->invSubBytes(); $this->addRoundKey($this->createRoundKey(0, $expand_key)); return $this->convertToHexString(); } /** * Processes the State table using a nonlinear byte substitution table (S-box). */ private function subBytes() { for ($i=0; $i < $this->block_size; $i++) { $this->state[$i] = $this->subWord($this->state[$i]); } } /** * Inversion of subBytes() method * @see subBytes() */ private function invSubBytes() { for ($i=0; $i < $this->block_size; $i++) { $this->state[$i] = $this->subWord($this->state[$i], true); } } /** * Processes the State by cyclically shifting the last three rows of the State by different offsets. */ private function shiftRows() { for ($i=1; $i < self::WORD_LENGTH; $i++) { $buffer = array(); for ($j=$this->block_size-1; $j >= 0; $j--) { $pos = ($i + $j) % $this->block_size; $buffer[$j] = $this->getByteFromWord($this->state[$j], $i); $byte = isset($buffer[$pos]) ? $buffer[$pos] : $this->getByteFromWord($this->state[$pos], $i); $this->state[$j] = $this->putByteIntoWord( $byte, $this->state[$j], $i); } } } /** * Inversion of shiftRows() method. * @see shiftRows() */ private function invShiftRows() { for ($i=1; $i < self::WORD_LENGTH; $i++) { $buffer = array(); for ($j=0; $j < $this->block_size; $j++) { $pos = ($i + $j) % $this->block_size; $buffer[$pos] = $this->getByteFromWord($this->state[$pos], $i); $byte = isset($buffer[$j]) ? $buffer[$j] : $this->getByteFromWord($this->state[$j], $i); $this->state[$pos] = $this->putByteIntoWord( $byte, $this->state[$pos], $i); } } } /** * Takes all of the columns of theState and mixes their data to produce new columns. */ private function mixColumns() { $mul1 = array(); $mul2 = array(); $mul3 = array(); for ($i=0; $i < $this->block_size; $i++) { for ($j = 0; $j < self::WORD_LENGTH; $j++) { $mul1[$j] = $this->getByteFromWord($this->state[$i], $j); $mul2[$j] = $this->galoisFieldMultiplication($mul1[$j], 0x02); $mul3[$j] = $mul2[$j] ^ $mul1[$j]; } for ($j = 0; $j < self::WORD_LENGTH; $j++) { $byte = $mul2[$j] ^ $mul1[($j+3) % $this->block_size] ^ $mul1[($j+2) % $this->block_size] ^ $mul3[($j+1) % $this->block_size]; $this->state[$i] = $this->putByteIntoWord( $byte, $this->state[$i], $j); } } } /** * Inversion of mixColumns() * @see mixColumns() */ private function invMixColumns() { $mulE = array(); $mulD = array(); $mulB = array(); $mul9 = array(); for ($i=0; $i < $this->block_size; $i++) { for ($j = 0; $j < self::WORD_LENGTH; $j++) { $temp = $this->getByteFromWord($this->state[$i], $j); $mulE[$j] = $this->galoisFieldMultiplication($temp, 0x0E); $mulD[$j] = $this->galoisFieldMultiplication($temp, 0x0D); $mulB[$j] = $this->galoisFieldMultiplication($temp, 0x0B); $mul9[$j] = $this->galoisFieldMultiplication($temp, 0x09); } for ($j = 0; $j < self::WORD_LENGTH; $j++) { $byte = $mulE[$j] ^ $mul9[($j+3) % $this->block_size] ^ $mulD[($j+2) % $this->block_size] ^ $mulB[($j+1) % $this->block_size]; $this->state[$i] = $this->putByteIntoWord( $byte, $this->state[$i], $j); } } } /** * Adds Round Key to the State using an XOR operation. */ private function addRoundKey($key) { for ($i=0; $i < $this->block_size; $i++) { $this->state[$i] ^= $key[$i]; } } /** * Generates Key schedule from Cipher Key * @return array Expanded key array */ private function keyExpansion($key) { $expanded_key = array(); for ($i=0; $i<$this->key_size; $i++) { $expanded_key[$i] = $key[$i]; } for ($i=$this->key_size; $i<$this->block_size * ($this->number_of_rounds + 1); $i++) { $temp = $expanded_key[$i - 1]; if ($i % $this->key_size == 0) $temp = $this->subWord($this->rotWord($temp)) ^ $this->round_constants[$i / $this->key_size -1]; else if ($this->key_size > 6 && $i % $this->key_size == 4) $temp = $this->subWord($temp); $expanded_key[$i] = $expanded_key[$i - $this->key_size] ^ $temp; } return $expanded_key; } /** * Creates array of 4 words from expanded key depend of round * @param int Number of round * @param array Expanded key array * @return array Round key. */ private function createRoundKey($round, $key) { return array($key[self::WORD_LENGTH * $round], $key[self::WORD_LENGTH * $round + 1], $key[self::WORD_LENGTH * $round + 2], $key[self::WORD_LENGTH * $round + 3]); } /** * Galios field multiplication function * @param int First byte * @param int Second byte * @return int Multiplication result */ private function galoisFieldMultiplication($number_a, $number_b) { $temp = $this->exp[($this->log[$number_a] + $this->log[$number_b]) % 0xFF]; $result = $number_a ? ($number_b ? $temp : 0) : 0; return $result; /* // Old Implementanion $result = 0; for ($i=0; $i<self::BYTE_LENGTH; $i++) { if ($number_b & 1) $result ^= $number_a; $number_a = ($number_a << 1) ^ (($number_a & 0x80) ? 0x1B : 0); $number_b >>= 1; } return $result; */ } /** * Changing value of each byte in word using SBOX table * @param word Input word * @param bool Inversion flag. Default value: false * @return word Result word of transformation */ private function subWord($word, $invers=false) { if (!$invers) return $this->s_box[(( $word >> 24 ) & 0x000000FF)] << 24 | $this->s_box[(($word & 0x00FF0000) >> 16)] << 16 | $this->s_box[(($word & 0x0000FF00) >> 8 )] << 8 | $this->s_box[($word & 0x000000FF)]; else return $this->s_box_inverted[(( $word >> 24 ) & 0x000000FF)] << 24 | $this->s_box_inverted[(($word & 0x00FF0000) >> 16)] << 16 | $this->s_box_inverted[(($word & 0x0000FF00) >> 8 )] << 8 | $this->s_box_inverted[($word & 0x000000FF)]; } /** * Clock-wise rotation of bytes in word [aa bb cc dd] -> [bb cc dd aa] * @param word Input word * @return word Result of transformation */ private function rotWord($word) { return (( $word << 8 ) & 0xFFFFFFFF ) | (( $word >> 24 ) & 0x000000FF); } /** * Get specyfic byte from word * @param word Input word * @param int Position of byte in word * @return byte Selected byte */ private function getByteFromWord($word, $position) { switch ($position) { case 0: return ( $word >> 24 ) & 0x000000FF; case 1: return ($word & 0x00FF0000) >> 16; case 2: return ($word & 0x0000FF00) >> 8; case 3: return $word & 0x000000FF; } } /** * Puts byte into word * @param byte Byte * @param word Word * @param int Position of insertion * @return word Modified word */ private function putByteIntoWord($byte, $word, $position) { switch ($position) { case 0: return (($word & 0x00FFFFFF) | (($byte << 24) & 0xFF000000)); case 1: return (($word & 0xFF00FFFF) | (($byte << 16) & 0x00FF0000)); case 2: return (($word & 0xFFFF00FF) | (($byte << 8) & 0x0000FF00)); case 3: return (($word & 0xFFFFFF00) | $byte); } } /** * Creates words array from hexadecimal string * @param string hexadecimal string * @return array words reprezentatnion of content */ private function convertToWords($content) { $words = array(); for ($i = 0; $i < strlen($content); $i+=2*$this->block_size){ $words[$i/(2*$this->block_size)] = hexdec(substr($content, $i, 2*$this->block_size)); } return $words; } /** * Converts state array into hexadecimal string * @return string 16 bytes string representation of state array */ private function convertToHexString() { $string = ""; for ($i = 0; $i < $this->block_size; $i++) { $string .= $this->addZeros(dechex($this->state[$i])); } return $string; } /** * Converts Strings to HEX representation * @param string Input string * @return string Hex representation */ public function stringToHex($str) { $hex=""; $zeros = ""; $len = 2 * self::WORD_LENGTH * $this->block_size; for ($i = 0; $i < strlen($str); $i++){ $val = dechex(ord($str{$i})); if( strlen($val)< 2 ) $val="0".$val; $hex.=$val; } for ($i = 0; $i < $len - strlen($hex); $i++){ $zeros .= '0'; } return $hex.$zeros; } /** * Converts HEX values into strings * @param string HEX value in string repreentation * @return string */ public function hexToString($hex) { $str=""; for($i=0; $i<strlen($hex); $i=$i+2 ) { $temp = hexdec(substr($hex, $i, 2)); if (!$temp) continue; $str .= chr($temp); } return $str; } /** * Add zeros in front od Hex string representation of single word * @return string Zeros string */ private function addZeros($word) { $len = 2*self::WORD_LENGTH - strlen($word); $zeros = ""; for ($i=0; $i < $len; $i++) $zeros .= '0'; return $zeros.$word; } /** * Self testing method */ public function selfTest() { $content = '00112233445566778899aabbccddeeff'; $password = 'Test password'; $key = md5($password); print('Challenge content: 0x'.$content.'<br />'); print('Password: "'.$password.'", key: 0x'.$key.'<br />'); print('<br />Encryption process<br />'); $start = microtime(true); $this->state = $this->convertToWords($content); $time1 = microtime(true); $expand_key = $this->keyExpansion($this->convertToWords($key)); $time2 = microtime(true); print('Key expansion time: '.(($time2 - $time1)*1000).' ms<br />'); $this->addRoundKey($this->createRoundKey(0, $expand_key)); $time1 = microtime(true); $this->subBytes(); $time2 = microtime(true); print('Sub bytes time: '.(($time2 - $time1)*1000).' ms<br />'); $time1 = microtime(true); $this->shiftRows(); $time2 = microtime(true); print('Shift rows time: '.(($time2 - $time1)*1000).' ms<br />'); $time1 = microtime(true); $this->mixColumns(); $time2 = microtime(true); print('Mix columns time: '.(($time2 - $time1)*1000).' ms<br />'); $time1 = microtime(true); $this->addRoundKey($this->createRoundKey(1, $expand_key)); $time2 = microtime(true); print('Add round key time: '.(($time2 - $time1)*1000).' ms<br />'); for ($round = 2; $round < $this->number_of_rounds; $round++) { $this->subBytes(); $this->shiftRows(); $this->mixColumns(); $this->addRoundKey($this->createRoundKey($round, $expand_key)); } $this->subBytes(); $this->shiftRows(); $this->addRoundKey($this->createRoundKey($this->number_of_rounds, $expand_key)); $end = microtime(true); $content = $this->convertToHexString(); print('Encryption time: '.(($end-$start)*1000).' ms<br />Encrypted content: 0x'.$content.'<br />'); print('<br />Decryption process<br />'); $start = microtime(true); $this->state = $this->convertToWords($content); $time1 = microtime(true); $expand_key = $this->keyExpansion($this->convertToWords($key)); $time2 = microtime(true); print('Key expansion time: '.(($time2 - $time1)*1000).' ms<br />'); $this->addRoundKey($this->createRoundKey($this->number_of_rounds, $expand_key)); $time1 = microtime(true); $this->invShiftRows(); $time2 = microtime(true); print('Invers shift rows time: '.(($time2 - $time1)*1000).' ms<br />'); $time1 = microtime(true); $this->invSubBytes(); $time2 = microtime(true); print('Invers sub bytes time: '.(($time2 - $time1)*1000).' ms<br />'); $time1 = microtime(true); $this->addRoundKey($this->createRoundKey($this->number_of_rounds -1, $expand_key)); $time2 = microtime(true); print('Add round key time: '.(($time2 - $time1)*1000).' ms<br />'); $time1 = microtime(true); $this->invMixColumns(); $time2 = microtime(true); print('Invers mix columns time: '.(($time2 - $time1)*1000).' ms<br />'); for ($round = $this->number_of_rounds - 2; $round > 0; $round--) { $this->invShiftRows(); $this->invSubBytes(); $this->addRoundKey($this->createRoundKey($round, $expand_key)); $this->invMixColumns(); } $this->invShiftRows(); $this->invSubBytes(); $this->addRoundKey($this->createRoundKey(0, $expand_key)); $end = microtime(true); $content = $this->convertToHexString(); print('Decryption time: '.(($end-$start)*1000).' ms<br />Decrypted content: 0x'.$content.'<br />'); } } ?>

tes_detilberita_n.php <link href="css_detil_l.css" rel="stylesheet" type="text/css"> <table width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="600" align="left" valign="top"> <div class="clearit"></div> <!--TOP BAR END --> <div align="center"> <div class="cangkang_master2012"> <div align="left"> <!-- start: header --> <!-- end: header --> <!-- start: konten --> <div class="cangkang_konten002"> <div class="content_kiri_detail"> <div class="judul_artikel2012"><a href='http://indosat.com/' target='_blank'><img src="images/indosat.jpg" width="100%" border="0" /></a><?php echo $d['JUDUL']; ?></div> <div class="pb_20"></div> <div class="clearit bl_1 mb_10"></div> <div class="left_share"> <div class="font11 c_abu03_sp2012 pb_3"><span class="share"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"><font size="3"><i><?php echo $d['SUBJUDUL']; ?></i></font></td> </tr> <tr> <td colspan="3" align="left" valign="middle"><span class="c_abu01_sp2012"><?php echo tanggal("D, j M Y",$d['TGLKIRIM']);echo " | ".$d['TIME']." WIB";?></span></td> </tr> <tr> <td width="40%" align="right" valign="middle"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="SbyPagiOnline">Tweet</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td> <td width="16%" align="right" valign="middle" cols> <script >function fbs_click() { u=location.href; t=document.title; window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false; } </script> <a href="http://www.facebook.com/share.php?u=http://surabayapagi.com<?php echo $_SERVER['REQUEST_URI'];?>" onclick="return fbs_click()" target="_blank"> <img src="images/share-on-facebook1.jpg" alt=\"Share On Facebook\" align="left"/></a> <!--<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php?u=http://surabayapagi.com<?php //echo $_SERVER['REQUEST_URI'];?>">Share</a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>--> </td> </tr> </table> </span></div> </div> <div class="clearit"></div> <div class="clearit bl_orange pt_10"></div> <!--IMAGES --> <div class="pt_10"></div> <!-- s: headline --> <?php if($kodetema!="") { $bt=mysql_query("select IDBERITA,JUDUL from BERITA where KODETEMA='$kodetema' and `STATUS`='Show' and IDBERITA <'$hit' order by TGLKIRIM2 desc,TIME DESC,IDBERITA desc limit 0,5"); if(mysql_num_rows($bt)>=1) { ?> <div class="right w310 pl_10 pb_10 pt_5"> <p> <!--TERKAIT --> </p> <div class="pd_5 hl_1 font12 c_abu01_sp2012"><strong>TERKAIT:</strong></div> <div class="list_4 font12 arial c_biru_sp2012 pb_10 bl_1"> <ul> <?php while($dbt=mysql_fetch_array($bt)) { $ttl_tk=str_replace(" ","-",$dbt['JUDUL']); ?> <li><?php echo "<a title='".$dbt['JUDUL']."' href='index.php?read=$ttl_tk;".paramEncrypt('p=detilberita&id='.$dbt[0].'')."'>"; echo $dbt['JUDUL']."</a>"; ?></li> <?php }?> </ul> </div> <!--TERKAIT END --> </div> <?php }}?> <div class="isi_berita2012 pt_5"> <p><?php echo nl2br($d['ISI']);?></p><div class="clearit pt_30"></div> <div class="clearit bl_orange mb_3 pt_10"></div> </div> </div> <div class="clearit"></div> <!--FOOTER : datanya harap disesuaikan saja dengan update footer yg terakhir --> <!--FOOTER END --> </div> <!-- end: konten --> </div></div> </td> <td width="300" rowspan="2" align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td align="left" valign="top" height="100%"><table width="285" border="0" cellspacing="0" cellpadding="5"> <tr> <td><?php include "berita_lainnya.php";?></td> </tr> </table> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"> <table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td> <div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilberita&id='.$hit.''); ?>" data-num-posts="10" data-width="600"></div></td> </tr> </table> </td> </tr> </table>

m_css.css /* CSS Document */ .kat {font:bold 17px Arial; color:#FF0000; text-decoration:none;} .tgl {font:normal 10px Arial; color:#000000; text-decoration:none;} .time_bk {font:italic 12px Arial; color:#000000; text-decoration:none;} .lead_bk {font:normal 12px Arial; color:#000000; text-decoration:none;} .judul_hl {font:bold 17px Arial; color:#2076B5; text-decoration:none;} .judul_hl a:link {font:bold 17px Arial; color:#2076B5; text-decoration:none;} .judul_hl a:visited {font:bold 17px Arial; color:#2076B5; text-decoration:none;} .judul_hl a:hover {font:bold 17px Arial;color:#FF0000; text-decoration:none} .judul_bk {font:bold 17px Arial; color:#2076B5; text-decoration:none;} .judul_bk a:link {font:bold 17px Arial; color:#2076B5; text-decoration:none;} .judul_bk a:visited {font:bold 17px Arial; color:#2076B5; text-decoration:none;} .judul_bk a:hover {font:bold 17px Arial;color:#FF0000; text-decoration:none} .judul_detil {font:bold 18px Arial; color:#2076B5; text-decoration:none;} .judul_detil a:link {font:bold 18px Arial; color:#2076B5; text-decoration:none;} .judul_detil a:visited {font:bold 18px Arial; color:#2076B5; text-decoration:none;} .judul_detil a:hover {font:bold 18px Arial;color:#FF0000; text-decoration:none} .isi {font:normal 12px Arial; color:#000000; text-decoration:none;}

hl2_2_preview.php <? $queryinfo = mysql_query("select * from BERITA where STATUS='Show' and STATUSKATEGORI='Headline' and NAMAFOTO!='' order by IDBERITA desc limit 1, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"> <a <?php echo "href='index.php?".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'";?> onMouseover="changeimage(myimages[1],this.href);document.getElementById('hl2').value='<? echo $tbl['NAMAFOTO'];?>';"> <img src="photos/bigs/<?php echo $tbl['NAMAFOTO']; ?>" align='center' width='132' height='85' vspace='0' hspace='0' border='0'/> </a></td> </tr> </table><input name="hl2" id="hl2" value="<? echo $tbl['NAMAFOTO'];?>" type="hidden"> <? } } ?>

home_surat_terbuka.php <table width="224" border="0" cellspacing="0" cellpadding="0" style="border-bottom:#CCCCCC 1px solid; border-left:#CCCCCC 1px solid; border-right:#CCCCCC 1px solid; border-top:#CCCCCC 1px solid;"> <tr> <td align="left" valign="middle" background="images/bg_menu.png" bgcolor="#FFFFFF" height="34"><table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td><b><font color="#FF0000" size="3" face="tahoma, arial">Catatan Tatang Istiawan</font></b></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top" bgcolor="#EAEAEA"> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td><?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='CatatanHukum' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 1"); $tbl2=mysql_fetch_array($pr); echo "<div class=\"judul_box\"><a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl2[0].'')."'>"; echo $tbl2['JUDUL']."</a></div>"; ?><div class="lead_box"><?php echo $tbl2['NEWLEAD'];?></div><hr /></td> </tr> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='CatatanHukum' order by TGLKIRIM2 desc,IDBERITA desc limit 1, 2"); while($tbl2=mysql_fetch_array($pr)) { ?> <tr> <td> <?php echo "<div class=\"judul_box2\"><a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl2[0].'')."'>"; echo $tbl2['JUDUL']."</a></div>";?> </td> </tr><?php }?> </table> </td> </tr> </table>

pdf

home_infotainment_preview.php <table width="255" border="0" cellspacing="0" cellpadding="0"> <tr> <td ><img src="images/infotainment.png" width="100%" /></td> </tr> </table><table width="255" border="0" cellpadding="0" cellspacing="0"> <tr> <td bgcolor="#FFFFFF"> <?php $q=mysql_query("select IDBERITA,JUDUL,NAMAFOTO,NEWLEAD from BERITA where STATUS='Show' and KATEGORI='Entertainment' and NAMAFOTO!='' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 3"); while($d=mysql_fetch_array($q)) { ?> <table width="100%" border="0" cellpadding="3" cellspacing="1"> <tr> <td width="253" height="21" align="left" valign="top" bgcolor="#EBEBEB"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="59%" align="left" valign="top" bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#F4F1CE'" onmouseout="this.style.backgroundColor='#EBEBEB'"><table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td><div class="judul_kanan"> <?php echo " <a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$d[0].'')."'>$d[JUDUL]<span class=\"classic\"><em>".$d['JUDUL']."</em>$d[NEWLEAD]</span></a>"; ?> </div> <div class="lead_kanan"> <?php $lead=$d['NEWLEAD']; $lead_array = explode(' ',$lead); $lead_baru = ''; $i=1; foreach($lead_array AS $lead_array1){ if ($i<=7) $lead_baru .= $lead_array1.' '; $i++; } echo $lead_baru."..."; ?> </div></td> </tr> </table></td> <td width="41%" align="left" valign="top" bgcolor="#FFFFFF"><? if($d['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $d['NAMAFOTO'];?>" width="100" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="100" height="100" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table></td> </tr> </table> <?php } ?> </td> </tr> </table>

saveberita.phpx <? session_start(); include "go/go.php"; //$judul=htmlentities(strip_tags($_POST["requiredjudul"],"<b><i>"), ENT_QUOTES); $judul=addslashes(strip_tags($_POST["requiredjudul"],"<b><i>")); $idberita=$_POST["idberita"]; $subjudul=$_POST["subjudul"]; $kodetema=$_POST["kodetema"]; //$lead=addslashes(htmlentities(strip_tags($_POST["requiredlead"],"<b><i>"), ENT_QUOTES)); $lead=addslashes(strip_tags($_POST["requiredlead"],"<b><i>")); $isi1=addslashes(strip_tags($_POST["requiredisi"],"<b><i>")); $isi2=strip_tags($_POST["isi2"],"<b><i>"); $isi3=strip_tags($_POST["isi3"],"<b><i>"); $kategori=$_POST["requiredkategori"]; $caption=$_POST['caption']; $fotolama=$_POST['fotolama']; $statuskategori0=$_POST["statusberita"]; if($statuskategori0=='') { $statuskategori="Breaking"; } else { $statuskategori=$statuskategori0; } $pengirim=$_SESSION['slevel']; $konversi=$_POST["konversijam"]; if ($konversi!="") { $sekarang=time(); $tambah=$sekarang + ($konversi) * 3600; //$tglawal= date("d F Y", $tambah); //$tgl=date("d F Y, G:i", $tambah); $tgl=date("Y-m-d", $tambah); $time=date("H:i", $tambah); $tgltime=date("Y-m-d H:i:s", $tambah); }else { $tgl=date("Y-m-d"); $time=date("H:i"); $tgltime=date("Y-m-d H:i:s"); } $terbaca='1'; $status="Show"; //$posisi1=$_POST["posisi1"]; $spasi="Ok"; $kota=$_POST["biro"]; $foto = $_FILES['image']['name']; if($foto!="") { $namafoto= str_replace(" ","",(date("YmdHis").rtrim($foto))); } else { $namafoto=$fotolama; } if($_POST['Kirim']) { //Save photo if(isset($_FILES['image'])) { if($foto!='' && $fotolama!='') { if(file_exists('photos/thumbs/'.$fotolama)) { unlink('photos/thumbs/'.$fotolama); } if(file_exists('photos/bigs/'.$fotolama)) { unlink('photos/bigs/'.$fotolama); } } include 'photocrop.php'; $photo = new Photo($_FILES['image']); if(count($errors = $photo->validate()) == 0) { $errors = $photo->doThumb(150,'photos/thumbs/'); } if(count($errors) == 0 ) { if($photo->getWidth() > 600 || $photo->getHeight() > 600) { $errors = $photo->doResize(600,'photos/bigs/'); } else { $errors = $photo->move('photos/bigs/'); } } else { extract($_POST); } } if($idberita!='') { if($konversi=='0') { $qq="update BERITA set JUDUL='$judul',SUBJUDUL='$subjudul',CAPTION='$caption',NEWLEAD='$lead',ISI='$isi1',KATEGORI='$kategori',STATUSKATEGORI='$statuskategori', PENGIRIM='$pengirim',STATUS='$status',KODETEMA='$kodetema',SPASI='$spasi',KOTA='$kota',NAMAFOTO='$namafoto' where IDBERITA='$idberita'"; $ref ="index.php?2e2d6476e4ea2f1f74888f0cd8b07362"; } else { $qq="update BERITA set JUDUL='$judul',SUBJUDUL='$subjudul',CAPTION='$caption',NEWLEAD='$lead',ISI='$isi1',KATEGORI='$kategori',STATUSKATEGORI='$statuskategori', PENGIRIM='$pengirim',TGLKIRIM='$tgl',TGLKIRIM2='$tgltime',TERBACA='$terbaca',STATUS='$status', KONVERSI='$konversi',KODETEMA='$kodetema',SPASI='$spasi',TIME='$time',KOTA='$kota',NAMAFOTO='$namafoto' where IDBERITA='$idberita'"; $ref ="index.php?2e2d6476e4ea2f1f74888f0cd8b07362"; } }else { $qq = "insert into BERITA set JUDUL='$judul',SUBJUDUL='$subjudul',CAPTION='$caption',NEWLEAD='$lead',ISI='$isi1',KATEGORI='$kategori', STATUSKATEGORI='$statuskategori',PENGIRIM='$pengirim',TGLKIRIM='$tgl',TGLKIRIM2='$tgltime',TERBACA='$terbaca',STATUS='$status', KONVERSI='$konversi',KODETEMA='$kodetema',SPASI='$spasi',TIME='$time',KOTA='$kota',NAMAFOTO='$namafoto'"; $ref = $_SERVER['HTTP_REFERER']; } $querysave=mysql_query($qq); if($querysave){ ?> <script language="JavaScript">document.location='<?php echo $ref; ?>'</script> <? } else { echo "<font color=#ff0000>Data Gagal Tersimpan!</font>"; } } ?>

Mobile_Detect.php <?php /** * Mobile Detect * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ class Mobile_Detect { protected $accept; protected $userAgent; protected $isMobile = false; protected $isAndroid = null; protected $isAndroidtablet = null; protected $isIphone = null; protected $isIpad = null; protected $isBlackberry = null; protected $isBlackberrytablet = null; protected $isOpera = null; protected $isPalm = null; protected $isWindows = null; protected $isWindowsphone = null; protected $isGeneric = null; protected $devices = array( "android" => "android.*mobile", "androidtablet" => "android(?!.*mobile)", "blackberry" => "blackberry", "blackberrytablet" => "rim tablet os", "iphone" => "(iphone|ipod)", "ipad" => "(ipad)", "palm" => "(avantgo|blazer|elaine|hiptop|palm|plucker|xiino)", "windows" => "windows ce; (iemobile|ppc|smartphone)", "windowsphone" => "windows phone os", "generic" => "(kindle|mobile|mmp|midp|pocket|psp|symbian|smartphone|treo|up.browser|up.link|vodafone|wap|opera mini)" ); public function __construct() { $this->userAgent = $_SERVER['HTTP_USER_AGENT']; $this->accept = $_SERVER['HTTP_ACCEPT']; if (isset($_SERVER['HTTP_X_WAP_PROFILE']) || isset($_SERVER['HTTP_PROFILE'])) { $this->isMobile = true; } elseif (strpos($this->accept, 'text/vnd.wap.wml') > 0 || strpos($this->accept, 'application/vnd.wap.xhtml+xml') > 0) { $this->isMobile = true; } else { foreach ($this->devices as $device => $regexp) { if ($this->isDevice($device)) { $this->isMobile = true; } } } } /** * Overloads isAndroid() | isAndroidtablet() | isIphone() | isIpad() | isBlackberry() | isBlackberrytablet() | isPalm() | isWindowsphone() | isWindows() | isGeneric() through isDevice() * * @param string $name * @param array $arguments * @return bool */ public function __call($name, $arguments) { $device = substr($name, 2); if ($name == "is" . ucfirst($device) && array_key_exists(strtolower($device), $this->devices)) { return $this->isDevice($device); } else { trigger_error("Method $name not defined", E_USER_WARNING); } } /** * Returns true if any type of mobile device detected, including special ones * @return bool */ public function isMobile() { return $this->isMobile; } protected function isDevice($device) { $var = "is" . ucfirst($device); $return = $this->$var === null ? (bool) preg_match("/" . $this->devices[strtolower($device)] . "/i", $this->userAgent) : $this->$var; if ($device != 'generic' && $return == true) { $this->isGeneric = false; } return $return; } }

formberita.php <? session_start(); if(($_SESSION['slevel']=="Administrator") || ($_SESSION['slevel']=="Redaksi2")) { $id=$var['idinfo']; $cek=mysql_query("select * from BERITA where IDBERITA='$id'"); $dcek=mysql_fetch_array($cek); ?> <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title></title> <style type="text/css"> <!-- .style5 {font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; } .style43 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } .style45 {font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif;} .style46 { font-size: 10px; color: #FF0000; } .style50 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; } .style52 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10; } .style53 {font-size: 10} --> </style> <script type="text/javascript"> function ismaxlength(obj){ var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : "" if (obj.getAttribute && obj.value.length>mlength) obj.value=obj.value.substring(0,mlength) } </script> <script type="text/javascript" src="include/jquery-1.2.6.pack.js"></script> <script type='text/javascript' src='include/jquery.autocomplete.pack.js'></script> <!-- Autocomplete Formatting --> <link rel="stylesheet" type="text/css" href="include/jquery.autocomplete.css" /> <script type="text/javascript"> $().ready(function() { $("#targetDiv").autocomplete("include/mysql.php", { width: 260, selectFirst: true }); }); </script> </head> <body marginheight="0" marginwidth="0" topmargin="0"> <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="97%" align="left"><font size="2"><b>:: Surabaya Pagi - Breaking </b></font> <?php $tgl_skr=date("Y-m-d"); $jam=date("H:i"); echo $tgl_skr." ".$jam?> <hr size="1"></td> </tr> <tr> <td> <script language="JavaScript"> function checkrequired(which) { var pass=true; if (document.images) { for (i=0;i<which.length;i++) { var tempobj=which.elements[i]; if (tempobj.name.substring(0,8)=="required") { if (((tempobj.type=="text"||tempobj.type=="textarea")&& tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&& tempobj.selectedIndex==0)) { pass=false; break; } } } } if (!pass) { shortFieldName=tempobj.name.substring(8,30).toUpperCase(); alert("Tolong silahkan anda isikan "+shortFieldName+" untuk melengkapinya"); return false; } else return true; } </script> <table width="100%" border="0" cellspacing="2" cellpadding="0"> <form onSubmit="return checkrequired(this)" name="data_admin" enctype="multipart/form-data" method="post" action="saveberita.php"> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Judul </span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input type="text" name="requiredjudul" class="textbox" size="35" value="<?php echo $dcek['JUDUL'];?>"> <input type="hidden" name="idberita" class="textbox" size="35" value="<?php echo $dcek['IDBERITA'];?>"> <input type="hidden" name="fotolama" class="textbox" size="35" value="<?php echo $dcek['NAMAFOTO'];?>"> <input type="hidden" name="fotolama2" class="textbox" size="35" value="<?php echo $dcek['NAMAFOTO2'];?>"> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Sub Judul </span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input type="text" name="subjudul" class="textbox" size="35" value="<?php echo $dcek['SUBJUDUL'];?>"> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Kategori Berita </span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style5"> <span class="style45"> <select name="requiredkategori" class="textbox"> <option value="<?php echo $dcek['KATEGORI'];?>"><?php echo $dcek['KATEGORI'];?></option> <option value="">Pilih Kategori</option> <optgroup label="Hukum"> <option value="CatatanHukum">Catatan Hukum</option> <option value="WhiteCrime">White Collar Crime</option> <option value="KemiskinanKota">Kemiskinan Kota</option> <option value="KorbanHukum">Korban Ketidakadilan</option> <option value="KiatHukum">Kiat Berperkara</option> <option value="Slc">SLC</option> <option value="PolitikHukum">Politik Hukum</option> <option value="ProfilCaleg">Profil Caleg</option> <option value="LayananPublik">Layanan Publik</option> <option value="ProRakyat">Pro Rakyat</option> <!-- <option value="Megapolitan">Megapolitan</option> --> </optgroup> <optgroup label="Kriminal"> <option value="Kriminal">Kriminal</option> </optgroup> <optgroup label="Umum"> <option value="Peristiwa">Umum/Peristiwa</option> <option value="Pendidikan">Pendidikan</option> <option value="Kesehatan">Kesehatan</option> <option value="Kuliner">Kuliner</option> <option value="Unik">Unik</option> <option value="GeliatMalam">Geliat Malam</option> <option value="Polling">Polling</option> <option value="Suroboyoan">Suroboyoan</option> <option value="KamusSuroboyoan">Kamus Suroboyoan</option> </optgroup> <optgroup label="Otoda"> <option value="OtodaSurabaya">Otoda Surabaya</option> <option value="OtodaSidoarjo">Otoda Sidoarjo</option> <option value="OtodaGresik">Otoda Gresik</option> <option value="OtodaMojokerto">Otoda Mojokerto</option> <option value="OtodaMalang">Otoda Malang</option> <option value="OtodaTapalkuda">Otoda Tapalkuda</option> <option value="OtodaKediri">Otoda Kediri</option> <option value="OtodaMadiun">Otoda Madiun</option> <option value="OtodaPantura">Otoda Pantura</option> <option value="OtodaMadura">Otoda Madura</option> </optgroup> <optgroup label="Bisnis"> <option value="EkonomiBisnis">Ekonomi Bisnis</option> <!-- <option value="HukumBisnis">Hukum Bisnis</option> <option value="BinsisHongkong">Bisnis Hongkong</option> --> </optgroup> <optgroup label="Skandal"> <option value="Entertainment">Selebritis</option> <option value="Sportainment">Sportainment</option> <option value="Internasional">Internasional</option> </optgroup> <optgroup label="Klinik Hukum"> <option value="KlinikPerburuhan">Perburuhan</option> <option value="KlinikTatanegara">Tata Negara</option> <option value="KlinikKesehatan">Kesehatan</option> <option value="KlinikHam">H A M</option> <option value="KlinikHaki">H A K I</option> <option value="KlinikPidanaKorupsi">Pidana Korupsi</option> <option value="KlinikPelayananPublik">Pelayanan Publik</option> <option value="KlinikHukumKontrak">Hukum Kontrak</option> <option value="KlinikPerdata">Perdata</option> <option value="KlinikUsaha">Persaingan Usaha</option> </optgroup> <optgroup label="Indonesia Memilih"> <option value="Pemilu">Pemilu/Pilkada</option> </optgroup> </select> </span> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Kode Tema </span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input type="text" id="targetDiv" name="kodetema" class="textbox" size="35" value="<?php echo $dcek['KODETEMA'];?>" /> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><p class="style43">Lead Berita </p> <p class="style43"><span class="style46">Gunakan Tag Berikut : <br> <br> &lt;b&gt;.....&lt;/b&gt; Untuk Bold<br> &lt;i&gt;.....&lt;/i&gt; Untuk Italic</span></p></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style50"> <textarea name="requiredlead" cols="60" rows="10" wrap="VIRTUAL" maxlength="160" onKeyUp="return ismaxlength(this)"><?php echo $dcek['NEWLEAD'];?></textarea> max. 160 karakter </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><p class="style43">Isi Berita 1 </p> <p class="style43"><span class="style46">Gunakan Tag Berikut : <br> <br> &lt;b&gt;.....&lt;/b&gt; Untuk Bold<br> &lt;i&gt;.....&lt;/i&gt; Untuk Italic <br> &lt;b&gt;&lt;i&gt;&nbsp;&lt;/i&gt;&lt;/b&gt; </span></p></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style50"> <textarea name="requiredisi" cols="60" rows="20" wrap="VIRTUAL"><?php echo $dcek['ISI'];?></textarea> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><p class="style43">Isi Berita 2 </p> <p class="style43"><span class="style46">Jika Foto ada 2, isi berita 2 harus terisi</span></p></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style50"> <textarea name="isi2" cols="60" rows="20" wrap="VIRTUAL"><?php echo $dcek['ISI2'];?></textarea> </span></td> </tr> <tr align="left" valign="top"> <td class="text"><span class="style43">Foto 1 </span></td> <td class="text"><span class="style43">:</span></td> <td class="text"> <span class="style43"> <input name="image" type="file" class="textbox" id="image"> <label></label> &nbsp;&nbsp;&nbsp; <label></label> </span></td> </tr> <tr align="left" valign="top"> <td class="text"><span class="style43">Foto 2 </span></td> <td class="text"><span class="style43">:</span></td> <td class="text"> <span class="style43"> <input name="image2" type="file" class="textbox" id="image2"> <label></label> &nbsp;&nbsp;&nbsp; <label></label> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Caption</span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input type="text" name="caption" class="textbox" size="35" value="<?php echo $dcek['CAPTION'];?>"> </span></td> </tr> <tr align="left" valign="top"> <td width="27%" class="text"><span class="style43">Caption 2</span></td> <td width="2%" class="text"><span class="style43">:</span></td> <td width="71%" class="text"> <span class="style43"> <input type="text" name="caption2" class="textbox" size="35" value="<?php echo $dcek['CAPTION2'];?>"> </span></td> </tr> <tr align="left" valign="top" class="style43"> <td><span class="style53">Biro</span></td> <td><span class="style53">:</span></td> <td><span class="style52"><span class="text"><span class="style5"><span class="style45"> <select name="biro" class="textbox"> <option value="<?php echo $dcek['KOTA'];?>"><?php echo $dcek['KOTA'];?></option> <option value="Surabaya">Surabaya</option> <option value="Sidoarjo">Sidoarjo</option> <option value="Gresik">Gresik</option> <option value="Jember">Jember</option> <option value="Kediri">Kediri</option> <option value="Madiun">Madiun</option> <option value="Madura">Madura</option> <option value="Malang">Malang</option> <option value="Mojokerto">Mojokerto</option> <option value="Pantura">Pantura</option> <option value="Lainnya">Lainnya</option> <option value="LuarNegeri">Luar Negeri</option> </select> </span></span></span> </span></td> </tr> <tr align="left" valign="top" class="style43"> <td><span class="style53">Konversi Jam </span></td> <td><span class="style53">:</span></td> <td> <input type="text" name="konversijam" class="textbox" size="35" value="4" value="<?php echo $dcek['KONVERSI'];?>"> Jam</td> <tr align="left" valign="top" class="style43"> <td><span class="style53">Jenis Berita </span></td> <td><span class="style53">:</span></td> <td> <label><input name="statusberita" type="radio" value="Breaking" <?php if($dcek['STATUSKATEGORI']=='Breaking'){?>checked="checked"<?php }?>> Breaking</label> &nbsp;&nbsp;&nbsp; <label><input name="statusberita" type="radio" value="Headline" <?php if($dcek['STATUSKATEGORI']=='Headline'){?>checked="checked"<?php }?>> Headline</label></td> </tr> <tr align="left" valign="top" class="style43"> <td>&nbsp;</td> <td>&nbsp;</td> <td><span class="style52"> <input style="FONT-WEIGHT: bold; COLOR: #ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #335882" type=submit value=" Kirim " name="Kirim"> <input style="FONT-WEIGHT: bold; COLOR: #ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #335882" type=reset value=" Reset " name=reset> </span></td> </tr> </form> </table></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </body> </html> <? } else { //if(!isset($_SESSION['susername']) || !isset($_SESSION['spassword'])) { ?><script language='javascript'>alert('Anda Tidak Berhak Masuk Form Ini'); document.location='index.php'</script><? } ?>

langganan_email_sirkulasi.php <?php $subject_mail1 = "surabayapagi.com"; $pengirim1="hildatabafaikal@gmail.com"; $email1="sirkulasi@surabayapagi.com"; $isi1 = "Berikut ada permintaan langganan koran, harap di follow up<br>Nama Pelanggan : $nama<br>Alamat : $alamat<br>Telepon : $telp<br>Email : $email<br>Paket : $paket bulan<br>Mulai Langganan : $mulai<br>Email ini adalah email otomatis, jadi tidak perlu di replay<br>Terima kasih"; $subject1 = ''.$subject_mail1.': Reservasi'; $headers1 = 'MIME-Version: 1.0' . "\r\n"; $headers1 .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers1 .= 'From: '.$subject_mail1.' <noreplay@'.strtolower($subject_mail1).'>' . "\r\n"; $headers11 .= 'Bcc: noreplay@'.strtolower($subject_mail1).''. "\r\n"; mail($email1, $subject1, $isi1, $headers1); ?>

streaming_save.php <?php $title=$_POST['title']; $ket=$_POST['embed']; $pengirim=$_SESSION['snama']; $tgl=date("Y-m-d H:i"); $foto = $_FILES['image']['name']; if($foto!="") { $namafoto= str_replace(" ","",(date("YmdHis").rtrim($foto))); if(isset($_FILES['image'])) { include 'photocrop.php'; $photo = new Photo($_FILES['image']); if(count($errors = $photo->validate()) == 0) { $errors = $photo->doCenterCrop(200,133,'photos/thumbs/'); } if(count($errors) == 0 ) { if($photo->getWidth() > 600 || $photo->getHeight() > 600) { $errors = $photo->doResize(600,'/photos/bigs/'); } else { $errors = $photo->move('photos/bigs/'); } } else { extract($_POST); } } } $ins=mysql_query("insert into VIDEO set TITLE='$title',NAMAFOTO='$namafoto',EMBED='$ket',PENGIRIM='$pengirim',TGLKIRIM='$tgl'"); if($ins) { $redirect_url= "index.php?1594f9347ddd83e4d03a6d24d0a5353d"; echo" <html><head> <META HTTP-EQUIV=\"Refresh\" Content = \"1; URL=$redirect_url\"> <link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\" /> </head><body > <table class=\"tborder\" width=\"500\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\" align=\"center\"> <tr> <td align=\"left\" valign=\"top\" bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" align=\"center\"> <tr> <td align=\"center\" valign=\"top\"><font face=verdana size=2 color=black><B>Please wait a moment while as redirecting to your pages ..</b></font></td> </tr> </table> </td> </tr> </table> </body></html> "; } ?>

data_berita.php <?php if($_SESSION['slevel']!="Administrator") { include "alert_admin.php"; } else { ?> <script> function confirmDelete(delUrl) { if (confirm("Are you sure you want to delete")) { document.location = delUrl; } } </script> <style type="text/css"> <!-- .style3 {font-family: Arial, Helvetica, sans-serif; font-weight: bold; } .style6 {font-size: 12px} --> </style> <table width="98%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"> <fieldset style="border:#CCCCCC 1px solid"> <legend><font size="+2" color="#FF6600"><b>Data Berita</b></font></legend> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td width="10%" align="left" valign="top">&nbsp;</td> </tr> </table> <table width="100%" border="0" cellspacing="3" cellpadding="3" style="border-bottom:#CCCCCC 1px solid; border-left:#CCCCCC 1px solid; border-right:#CCCCCC 1px solid; border-top:#CCCCCC 1px solid;"> <tr> <td align="left" valign="top"> <table width="100%" cellspacing="0" cellpadding="2"> <tr align="left" valign="top"> <td width="9%" align="center" bgcolor="#FFCC00" class="style6"><span class="style3">Menu</span></td> <td width="54%" align="center" bgcolor="#FFCC00" class="style6"><span class="style3">Judul</span></td> <td width="20%" align="center" bgcolor="#FFCC00" class="style6"><span class="style3">Kategori</span></td> <td width="17%" align="center" bgcolor="#FFCC00" class="style6"><span class="style3">Tanggal</span></td> </tr> <?php $dataPerPage = 50; $page =$var['page']; if(isset($page)) { $noPage = $page; } else $noPage = 1; $offset = ($noPage - 1) * $dataPerPage; $query = "select IDBERITA,JUDUL,TERBACA,TGLKIRIM,TIME,KATEGORI from BERITA where STATUS='Show' order by IDBERITA desc LIMIT $offset, $dataPerPage"; $result = mysql_query($query) or die('Error'); while($data = mysql_fetch_array($result)) { $qjumlah = mysql_query("select count(*) as jumlah from BERITA where STATUS='Show' group by IDBERITA") or die("Data Berita tidak ada !!"); $qjumlah_r=mysql_num_rows($qjumlah); $qjumlah_d=mysql_fetch_array($qjumlah); $ttl_ct=str_replace(" ","-",$data['JUDUL']); ?> <tr align="left" valign="top"> <td class="style6" style="border-bottom:#CCCCCC 1px solid; border-left:#CCCCCC 1px solid; border-right:#CCCCCC 1px solid; border-top:#CCCCCC 1px solid"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><? echo "<a href='index.php?".paramEncrypt('p=formberita&idinfo='.$data['IDBERITA'].'')."'>"; ?><img src="images/edit.png" width="16" height="16" title="edit" /></a></td> <td align="left" valign="top"> <a href="javascript:confirmDelete('<? echo "index.php?".paramEncrypt('p=data_berita_delete&idberita='.$data['IDBERITA']);?>')"> <img src="images/delete.png" width="16" height="16" title="delete" /></a></td> </tr> </table> </td> <td align="left" class="style6" style="border-bottom:#CCCCCC 1px solid; border-left:#CCCCCC 1px solid; border-right:#CCCCCC 1px solid; border-top:#CCCCCC 1px solid"><? echo "<font size=2 color=red><b>";echo $data['TERBACA'];echo "</b></font>&nbsp;"; echo "<font size=2><b>"; echo "<a href='index.php?read=$ttl_ct;".paramEncrypt('&p=detilberita&id='.$data[0].'')."'>"; echo $data['JUDUL']; echo "</a></b></font>"; ?> </td> <td align="center" valign="middle" class="style6" style="border-bottom:#CCCCCC 1px solid; border-left:#CCCCCC 1px solid; border-right:#CCCCCC 1px solid; border-top:#CCCCCC 1px solid"><?php echo $data['KATEGORI'];?></td> <td align="center" valign="middle" class="style6" style="border-bottom:#CCCCCC 1px solid; border-left:#CCCCCC 1px solid; border-right:#CCCCCC 1px solid; border-top:#CCCCCC 1px solid"><?php echo $data['TGLKIRIM']."#".$data['TIME'];?></td> </tr> <?php }?> </table> <span class="style6"> <?php $query = "SELECT COUNT(*) AS jumData FROM BERITA where STATUS='Show'"; $hasil = mysql_query($query); $data = mysql_fetch_array($hasil); $jumData = $data['jumData']; $jumPage = ceil($jumData/$dataPerPage); if ($noPage > 1) echo "<a href='index.php?".paramEncrypt('p=data_berita&page='.($noPage-1).'')."'>&lt;&lt; Prev</a>"; // memunculkan nomor halaman dan linknya for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 3) && ($page <= $noPage + 3)) || ($page == 1) || ($page == $jumPage)) { if (($showPage == 1) && ($page != 2)) echo "..."; if (($showPage != ($jumPage - 1)) && ($page == $jumPage)) echo "..."; if ($page == $noPage) echo " <b>".$page."</b> "; else echo " <a href='index.php?".paramEncrypt('p=data_berita&page='.$page.'')."'>".$page."</a> "; $showPage = $page; } } // menampilkan link next if ($noPage < $jumPage) echo "<a href='index.php?".paramEncrypt('p=data_berita&page='.($noPage+1).'')."'>Next &gt;&gt;</a>"; ?> </span></td> </tr> </table> </fieldset> </td> </tr> </table> <?php //include "sitemap.php"; } ?>

m_indeks.php <!-- Begin Left Column --> <style type="text/css"> <!-- .style1 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; } --> </style> <div id="detil"> <?php if(isset($_POST['Submit'])) { $ctgl=$_POST['tanggal']; $cbulan=$_POST['bulan']; $ctahun=$_POST['tahun']; if($cbulan=="01"){$abulan="Januari";} elseif($cbulan=="02"){$abulan="Februari";} elseif($cbulan=="03"){$abulan="Maret";} elseif($cbulan=="04"){$abulan="April";} elseif($cbulan=="05"){$abulan="Mei";} elseif($cbulan=="06"){$abulan="Juni";} elseif($cbulan=="07"){$abulan="Juli";} elseif($cbulan=="08"){$abulan="Agustus";} elseif($cbulan=="09"){$abulan="September";} elseif($cbulan=="10"){$abulan="Oktober";} elseif($cbulan=="11"){$abulan="November";} else{$abulan="Desember";} /* switch ($cbulan) { case 01: $abulan="Januari"; break; case 02: $abulan="Februari"; break; case 03: $abulan="Maret"; break; case 04: $abulan="April"; break; case 05: $abulan="Mei"; break; case 06: $abulan="Juni"; break; case 07: $abulan="Juli"; break; case 08: $abulan="Agustus"; break; case 09: $abulan="September"; break; case 10: $abulan="Oktober"; break; case 11: $abulan="November"; break; case 12: $abulan="Desember"; break; } */ $default_tgl=($ctgl); $default_bulan=($abulan); $default_bulan_value=($cbulan); $default_tahun=($ctahun); $tglcari1=$ctahun."-".$cbulan."-".$ctgl; $tglcari2=$ctgl." ".$bulan." ".$ctahun; $tgl_skr=date("Y-m-d"); $jam=date("H:i"); if($tglcari1<$tgl_skr) { $query="select * from BERITA where STATUS='Show' and JUDUL!='' and (TGLKIRIM2 like '%".$tglcari1."%' or TGLKIRIM2 like '%".$tglcari2."%') and TIME <='$jam' order by TGLKIRIM2 desc,IDBERITA desc"; //echo $query; $queryinfo = mysql_query($query); $tbl1=mysql_num_rows($queryinfo); } if($tglcari1<=$tgl_skr) { $query="select * from BERITA where STATUS='Show' and JUDUL!='' and (TGLKIRIM2 like '%".$tglcari1."%' or TGLKIRIM2 like '%".$tglcari2."%') and TIME <='$jam' order by TGLKIRIM2 desc,IDBERITA desc"; //echo $query; $queryinfo = mysql_query($query); $tbl1=mysql_num_rows($queryinfo); } //echo $query; } else { $ctgl=date(d,time()); $cbulan=date(m,time()); $ctahun=date(Y,time()); $jam=date("H:i"); if($cbulan=="01"){$abulan="Januari";} elseif($cbulan=="02"){$abulan="Februari";} elseif($cbulan=="03"){$abulan="Maret";} elseif($cbulan=="04"){$abulan="April";} elseif($cbulan=="05"){$abulan="Mei";} elseif($cbulan=="06"){$abulan="Juni";} elseif($cbulan=="07"){$abulan="Juli";} elseif($cbulan=="08"){$abulan="Agustus";} elseif($cbulan=="09"){$abulan="September";} elseif($cbulan=="10"){$abulan="Oktober";} elseif($cbulan=="11"){$abulan="November";} else{$abulan="Desember";} /* switch ($cbulan) { case 01: $abulan="Januari"; break; case 02: $abulan="Februari"; break; case 03: $abulan="Maret"; break; case 04: $abulan="April"; break; case 05: $abulan="Mei"; break; case 06: $abulan="Juni"; break; case 07: $abulan="Juli"; break; case 08: $abulan="Agustus"; break; case 09: $abulan="September"; break; case 10: $abulan="Oktober"; break; case 11: $abulan="November"; break; case 12: $abulan="Desember"; break; } */ $default_tgl=($ctgl); $default_bulan=($abulan); $default_bulan_value=($cbulan); $default_tahun=date(Y,time()); $tglcari1=$ctahun."-".$cbulan."-".$ctgl; $tglcari2=$ctgl."-".$cbulan."-".$ctahun; $query="select * from BERITA where STATUS='Show' and JUDUL!='' and (TGLKIRIM2 like '%".$tglcari1."%' or TGLKIRIM2 like '%".$tglcari2."%') and TIME <='$jam' order by TGLKIRIM2 desc,IDBERITA desc"; //echo $query; $queryinfo = mysql_query($query); $tbl1=mysql_num_rows($queryinfo); //echo $query; } if($cbulan=="01"){$bulan="January";} elseif($cbulan=="02"){$bulan="February";} elseif($cbulan=="03"){$bulan="March";} elseif($cbulan=="04"){$bulan="April";} elseif($cbulan=="05"){$bulan="May";} elseif($cbulan=="06"){$bulan="June";} elseif($cbulan=="07"){$bulan="July";} elseif($cbulan=="08"){$bulan="August";} elseif($cbulan=="09"){$bulan="September";} elseif($cbulan=="10"){$bulan="October";} elseif($cbulan=="11"){$bulan="November";} else{$bulan="December";} /* switch ($cbulan) { case 01: $bulan="January"; break; case 02: $bulan="February"; break; case 03: $bulan="March"; break; case 04: $bulan="April"; break; case 05: $bulan="May"; break; case 06: $bulan="June"; break; case 07: $bulan="July"; break; case 08: $bulan="August"; break; case 09: $bulan="September"; break; case 10: $bulan="October"; break; case 11: $bulan="November"; break; case 12: $bulan="December"; break; } */ //echo "t1: ".$tglcari1; //echo "t2: ".$tglcari2; ?> <table width="100%" border="0" cellspacing="0" cellpadding="0" height="630"> <tr><td height="18" align="left" valign="top"><a href="m_surabayapagi_com/index.php"></a><span class="style1"> &raquo; Indeks Berita : <em><?php echo $ctgl; echo"&nbsp;&nbsp;";echo $default_bulan; echo"&nbsp;&nbsp;";echo $ctahun;?></em></span> <div class="h-rule"></div></td></tr> <tr> <td width="100%" align="left" valign="top"> <?php if($tbl1 == 0) { //echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { ?> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr align="left" valign="top"> <td width="93%"><li><? echo "<div class='tgl'><i>"; echo $ctgl; echo"&nbsp;&nbsp;";echo $default_bulan; echo"&nbsp;&nbsp;";echo $ctahun; echo " : ".$tbl['TIME']." wib"; echo "</i></div>"; echo "<div class='judul_bk'><a href='index.php?".paramEncrypt('p=m_detil&id='.$tbl[0].'')."'>"; echo $tbl['JUDUL']; echo "</a>"; echo "</div>"; ?> </li></td> </tr> </table> <?php }}?> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #ccc; "> <tr> <td align="left" valign="middle"><form name="form1" method="post" action=""> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr align="left" valign="top"> <td height="40" align="left" valign="middle">&nbsp;&nbsp;&nbsp; <select name="tanggal"> <option selected value="<?=trim($default_tgl); ?>"> <?=trim($default_tgl); ?> </option> <option value="01">1</option> <option value="02">2</option> <option value="03">3</option> <option value="04">4</option> <option value="05">5</option> <option value="06">6</option> <option value="07">7</option> <option value="08">8</option> <option value="09">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> <select name="bulan"> <option value="<?=trim($default_bulan_value); ?>" selected> <?=trim($default_bulan); ?> </option> <option value="01"> Januari</option> <option value="02"> Februari</option> <option value="03"> Maret</option> <option value="04"> April</option> <option value="05"> Mei</option> <option value="06"> Juni</option> <option value="07"> Juli</option> <option value="08"> Agustus</option> <option value="09"> September</option> <option value="10"> Oktober</option> <option value="11"> November</option> <option value="12"> Desember</option> </select> <select name="tahun"> <option selected value="<?=trim($default_tahun); ?>"> <?=trim($default_tahun); ?> </option> <option value="2007"> 2007</option> <option value="2008"> 2008</option> <option value="2009"> 2009</option> <option value="2010"> 2010</option> <option value="2011"> 2011</option> <option value="2012"> 2012</option> <option value="2013"> 2013</option> </select> <input type="submit" name="Submit" value="Cari" /></td> </tr> </table> </form></td> </tr> </table> </td> <td width="0%" align="left" valign="top">&nbsp;</td> </tr> </table><br> </div>

hl3_3.php <? $queryinfo = mysql_query("select * from BERITA where STATUS='Show' and STATUSKATEGORI='Headline' and TGLKIRIM2<='$tgl_sekarang' and NAMAFOTO!='' order by IDBERITA desc limit 2, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_h3=str_replace(" ","-",$tbl['JUDUL']); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"> <a <?php echo "href='index.php?read~$ttl_h3;".paramEncrypt('p=detilberita&id='.$tbl[0].'')."'";?> onMouseover="changeimage(myimages[2],this.href);document.getElementById('hl3').value='<? echo $tbl['NAMAFOTO'];?>';"> <img src="photos/bigs/<?php echo $tbl['NAMAFOTO']; ?>" align='center' width='132' height='85' vspace='0' hspace='0' border='0'/> </a></td> </tr> </table><input name="hl3" id="hl3" value="<? echo $tbl['NAMAFOTO'];?>" type="hidden"> <? } } ?>

member_iklan_form.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- .style2 {font-family: Arial, Helvetica, sans-serif} .style5 {font-size: 12px} --> </style> </head> <body> <script type="text/javascript"> function simpan() { if ((document.form1.nama.value == "")||(document.form1.nama.value.length < 3)) { alert("Nama lengkap harus diisi") return false } else if (document.form1.alamat_rumah.value == "") { alert("Alamat domisili harus diisi") return false } else if (document.form1.alamat_kantor.value == "") { alert("Alamat kantor harus diisi") return false } else if (document.form1.hp.value == "") { alert("HP harus diisi") return false } else if (document.form1.telp_kantor.value == "") { alert("Telp kantor harus diisi") return false } else if (document.form1.email.value == "" || document.form1.email.value.indexOf ('@',0) == -1 || document.form1.email.value.indexOf ('.',0) == -1) { alert("Email tidak valid") return false } } </script> <form name="form1" method="post" action="<?php echo "index.php?".paramEncrypt('p=member_iklan_save');?>" onSubmit="return simpan()"> <table width="350" border="0" cellspacing="3" cellpadding="1" style="border-bottom:#FF0000 1px solid; border-left:#FF0000 1px solid; border-right:#FF0000 1px solid; border-top:#FF0000 1px solid;"> <tr> <td colspan="4"><h2>Registrasi : </h2> <hr size="1px"></td> </tr> <tr> <td width="2%" align="left" valign="top">&nbsp;</td> <td width="31%" align="left" valign="top"><span class="stylereg style2 style5">Nama Lengkap </span></td> <td width="2%" align="left" valign="top"><span class="stylereg style2 style5">:</span></td> <td width="65%" align="left" valign="top"><span class="stylereg style2 style5"> <input type="text" name="nama" size="20" <?php if($_SESSION['snama']!=''){echo "value=\"".$_SESSION['snama']."\"";}?> > </span></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top"><span class="stylereg style2 style5">Alamat Domisili </span></td> <td align="left" valign="top"><span class="stylereg style2 style5">:</span></td> <td align="left" valign="top"><span class="stylereg style2 style5"> <textarea name="alamat_rumah" cols="20" rows="3"><?php if($_SESSION['salamat_rumah']!=''){echo $_SESSION['salamat_rumah'];}?></textarea> </span></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top"><span class="stylereg style2 style5">Alamat Kantor </span></td> <td align="left" valign="top"><span class="stylereg style2 style5">:</span></td> <td align="left" valign="top"><span class="stylereg style2 style5"> <textarea name="alamat_kantor" cols="20" rows="3"><?php if($_SESSION['salamat_kantor']!=''){echo $_SESSION['salamat_kantor'];}?></textarea> </span></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top"><span class="stylereg style2 style5">No. HP </span></td> <td align="left" valign="top"><span class="stylereg style2 style5">:</span></td> <td align="left" valign="top"><span class="stylereg style2 style5"> <input name="hp" type="text" id="hp" size="20" <?php if($_SESSION['shp']!=''){echo "value=\"".$_SESSION['shp']."\"";}?>> </span></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top"><span class="stylereg style2 style5">No. Telp Kantor </span></td> <td align="left" valign="top"><span class="stylereg style2 style5">:</span></td> <td align="left" valign="top"><span class="stylereg style2 style5"> <input name="telp_kantor" type="text" id="telp_kantor" size="20" <?php if($_SESSION['stelp_kantor']!=''){echo "value=\"".$_SESSION['stelp_kantor']."\"";}?>> </span></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top"><span class="stylereg style2 style5">Email</span></td> <td align="left" valign="top"><span class="stylereg style2 style5">:</span></td> <td align="left" valign="top"><span class="stylereg style2 style5"> <input name="email" type="text" id="email" size="20" <?php if($_SESSION['semail']!=''){echo "value=\"".$_SESSION['semail']."\"";}?>> </span></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top"><span class="stylereg style2 style5">:</span></td> <td align="left" valign="top"><span class="stylereg style2 style5"> <img id="imgCaptcha" src="create_image.php" /> </span></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top"><span class="stylereg style2 style5">Kode</span></td> <td align="left" valign="top"><span class="stylereg style2 style5">:</span></td> <td align="left" valign="top"><span class="stylereg style2 style5"> <input name="kode" type="text" id="kode" size="15" /> </span></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top"><input name="Submit" type="submit" value="Lanjutkan" /></td> </tr> </table> </form> </body> </html>

tes_detilberita_l.php <link href="css_detil_l.css" rel="stylesheet" type="text/css"> <table width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="600" align="left" valign="top"> <div class="clearit"></div> <!--TOP BAR END --> <div align="center"> <div class="cangkang_master2012"> <div align="left"> <!-- start: header --> <!-- end: header --> <!-- start: konten --> <div class="cangkang_konten002"> <div class="content_kiri_detail"> <div class="judul_artikel2012"><a href='http://indosat.com/' target='_blank'><img src="images/indosat.jpg" width="100%" border="0" /></a><?php echo $d['JUDUL']; ?></div> <div class="pb_20"></div> <div class="clearit bl_1 mb_10"></div> <div class="left_share"> <div class="font11 c_abu03_sp2012 pb_3"><span class="share"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"><font size="3"><i><?php echo $d['SUBJUDUL']; ?></i></font></td> </tr> <tr> <td colspan="3" align="left" valign="middle"><span class="c_abu01_sp2012"><?php echo tanggal("D, j M Y",$d['TGLKIRIM']);echo " | ".$d['TIME']." WIB";?></span></td> </tr> <tr> <td width="40%" align="right" valign="middle"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="SbyPagiOnline">Tweet</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td> <td width="16%" align="right" valign="middle" cols> <script >function fbs_click() { u=location.href; t=document.title; window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false; } </script> <a href="http://www.facebook.com/share.php?u=http://surabayapagi.com<?php echo $_SERVER['REQUEST_URI'];?>" onclick="return fbs_click()" target="_blank"> <img src="images/share-on-facebook1.jpg" alt=\"Share On Facebook\" align="left"/></a> <!--<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php?u=http://surabayapagi.com<?php //echo $_SERVER['REQUEST_URI'];?>">Share</a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>--> </td> </tr> </table> </span></div> </div> <div class="clearit"></div> <div class="clearit bl_orange pt_10"></div> <!--IMAGES --> <div class="pt_10"></div> <!-- s: headline --> <div class="multi_foto_wide"> <div id="foto1" style="display: block; "><img src="photos/bigs/<?php echo $d['NAMAFOTO'];?>" width="630"><span class="pb_10"></span> <?php if($d['CAPTION']!=''){echo $d['CAPTION'];}?></div> </div> <?php if($kodetema!="") { $bt=mysql_query("select IDBERITA,JUDUL from BERITA where KODETEMA='$kodetema' and `STATUS`='Show' and IDBERITA <'$hit' order by TGLKIRIM2 desc,TIME DESC,IDBERITA desc limit 0,5"); if(mysql_num_rows($bt)>=1) { ?> <div class="right w310 pl_10 pb_10 pt_5"> <p> <!--TERKAIT --> </p> <div class="pd_5 hl_1 font12 c_abu01_sp2012"><strong>TERKAIT:</strong></div> <div class="list_4 font12 arial c_biru_sp2012 pb_10 bl_1"> <ul> <?php while($dbt=mysql_fetch_array($bt)) { $ttl_tk=str_replace(" ","-",$dbt['JUDUL']); ?> <li><?php echo "<a title='".$dbt['JUDUL']."' href='index.php?read=$ttl_tk;".paramEncrypt('p=detilberita&id='.$dbt[0].'')."'>"; echo $dbt['JUDUL']."</a>"; ?></li> <?php }?> </ul> </div> <!--TERKAIT END --> </div> <?php }}?> <div class="isi_berita2012 pt_5"> <p><?php echo nl2br($d['ISI']);?></p> </div> <?php if($d['NAMAFOTO2']!='') { $gb2="photos/bigs/".$d['NAMAFOTO2']; if (file_exists($gb2)) { $xx2=getimagesize($gb2); list($width2,$height2)=$xx2; if($height2<$width2) { include "isi_foto2_l.php"; } if($height2>=$width2) { include "isi_foto2_p.php"; } } } if($d['ISI2']!='') { ?> <div class="isi_berita2012 pt_5"> <p><?php echo nl2br($d['ISI2']);?></p> </div> <?php }?> <div class="clearit pt_30"></div> <div class="clearit bl_orange mb_3 pt_10"></div> </div> <div class="clearit"></div> </div> <!-- end: konten --> </div></div> </td> <td width="300" rowspan="2" align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td align="left" valign="top"><table width="285" border="0" cellspacing="0" cellpadding="5"> <tr> <td><?php include "berita_lainnya.php";?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="5"> <tr> <td> <div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilberita&id='.$hit.''); ?>" data-num-posts="10" data-width="600"></div></td> </tr> </table> </td> </tr> </table>

home_kriminal_new_preview.php <table width="230" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><img src="images/kriminal.png" width="100%" /></td> </tr> <tr> <td align="left" valign="top"> <?php $pr0=mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO from BERITA where STATUS='Show' and KATEGORI='Kriminal' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 1"); $dpr0=mysql_fetch_array($pr0); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <? if(($dpr0['NAMAFOTO']!='') && file_exists('photos/thumbs/'.$dpr0['NAMAFOTO'])){?> <td width="37%" align="left" valign="top"> <img src="photos/thumbs/<? echo $dpr0['NAMAFOTO'];?>" width="75" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid; margin-right:5px"/> </td> <?php }?> <td width="63%" align="left" valign="top"><span class="left_berita2"> <?php echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dpr0[0].'')."'>"; $jdl=$dpr0['JUDUL']; echo $jdl; echo "<span class=\"classic\"><em>".$dpr0['JUDUL']."</em>$dpr0[NEWLEAD]</span></a><br>"; ?></span> </td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top"><span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and KATEGORI='Kriminal' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 1, 5"); while($dpr=mysql_fetch_array($pr)) { echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dpr[0].'')."'>"; if(strlen($dpr['JUDUL'])>29) { $jdl=substr_replace($dpr['JUDUL'],CHR(13),0,"<br>"); echo substr($jdl,0,28); echo "..."; }else { echo $dpr['JUDUL']; } /*$jdl=$dpr['JUDUL']; $jdl_array = explode(' ',$jdl); $jdl_baru = ''; $i=1; foreach($jdl_array AS $jdl_array1){ if ($i<=4) $jdl_baru .= $jdl_array1.' '; $i++; } if(count($jdl_array)>4) { echo $jdl_baru."..."; } else { echo $jdl_baru; }*/ echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span></td> </tr> </table></td> </tr> </table>

create_image.php <?php session_start(); create_image(); exit(); function create_image(){ $md5_hash = md5(rand(0,9999)); $security_code = substr($md5_hash, 15, 5); $_SESSION["security_code"] = $security_code; $width = 100; $height = 30; $image = ImageCreate($width, $height); $white = ImageColorAllocate($image, 255, 255, 255); $black = ImageColorAllocate($image, 0, 0, 0); $grey = ImageColorAllocate($image, 204, 204, 204); ImageFill($image, 0, 0, $black); ImageString($image, 40, 30, 6, $security_code, $white); ImageRectangle($image,0,0,$width-1,$height-1,$grey); imageline($image, 300, $height/2, $width, $height/2, $grey); imageline($image, $width/2, 300, $width/2, $height, $grey); header("Content-Type: image/jpeg"); ImageJpeg($image); ImageDestroy($image); } ?>

2014

iklan_baris_ori.php <?php $dskr=date("Y-m-d"); ?> <script> !window.jQuery && document.write('<script src="jquery-1.8.2.min.js"><\/script>'); </script> <script type="text/javascript" src="fancybox/jquery.mousewheel-3.0.4.pack.js"></script> <script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.pack.js"></script> <link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css" media="screen" /> <link rel="stylesheet" href="stylefancy.css" /> <script type="text/javascript"> $(document).ready(function() { /* * Examples - images */ $("a#example1").fancybox(); $("a#example2").fancybox({ 'overlayShow' : false, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic' }); $("a#example3").fancybox({ 'transitionIn' : 'none', 'transitionOut' : 'none' }); $("a#example4").fancybox({ 'opacity' : true, 'overlayShow' : false, 'transitionIn' : 'elastic', 'transitionOut' : 'none' }); $("a#example5").fancybox(); $("a#example6").fancybox({ 'titlePosition' : 'outside', 'overlayColor' : '#000', 'overlayOpacity' : 0.9 }); $("a#example7").fancybox({ 'titlePosition' : 'inside' }); $("a#example8").fancybox({ 'titlePosition' : 'over' }); $("a[rel=example_group]").fancybox({ 'transitionIn' : 'none', 'transitionOut' : 'none', 'titlePosition' : 'over', 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) { return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>'; } }); /* * Examples - various */ $("#various1").fancybox({ 'titlePosition' : 'inside', 'transitionIn' : 'none', 'transitionOut' : 'none' }); $("#various2").fancybox(); $("#various3").fancybox({ 'width' : '75%', 'height' : '75%', 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe' }); $("#various4").fancybox({ 'padding' : 0, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none' }); }); </script> <style type="text/css"> <!-- .style2 { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; color: #FF3300; } .style3 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } --> </style> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FCFBBE"> <tr> <td align="left" valign="top"><span class="style2">:: IKLAN MINI </span> <hr /></td> <td width="31%" rowspan="2" align="left" valign="top" bgcolor="#FFFFFF"><?php include "berita_kanan.php"?></td> </tr> <tr> <td width="69%" align="left" valign="top"> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <?php $dataPerPage = 16; $page =$var['page']; if(isset($page)) { $noPage = $page; } else $noPage = 1; $offset = ($noPage - 1) * $dataPerPage; $query = "select * from ADV where expired >='$dskr' order by idadv desc LIMIT $offset, $dataPerPage"; $result = mysql_query($query) or die('Error'); $data1 = mysql_query($query) or die('Error'); //$no=0; //$jum=mysql_num_rows while($data = mysql_fetch_assoc($result)) { $qjumlah = mysql_query("select count(*) as jumlah from ADV where expired >='$dskr' group by idadv") or die("Data Berita tidak ada !!"); $qjumlah_r=mysql_num_rows($qjumlah); $qjumlah_d=mysql_fetch_array($qjumlah); $no++; for($j=1;$row= mysql_fetch_array($data1);$j++){ if($j % 2 == 1) echo "<tr>"; ?> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td width="20%" align="left" valign="top"><a id="example7" href=<?php if(($row['foto']!='') && file_exists("photos/bigs/".$namafoto)){echo "photos/bigs/".$row['foto'];}else {echo "images/logo.jpg";}?> title="<?php echo nl2br($row['caption']);?>"><img alt="example6" src=<?php if(($row['foto']!='') && file_exists("photos/thumbs/".$namafoto)){echo "photos/thumbs/".$row['foto'];}else {echo "images/logo.jpg";}?> width="100" height="100" vspace="2px" hspace="2px" style="BORDER-RIGHT: #d7d7d7 2px solid; PADDING-RIGHT: 2px; BORDER-TOP: #d7d7d7 2px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; margin-right:2px; BORDER-LEFT: #d7d7d7 2px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #d7d7d7 2px solid"/></a></td> <td width="80%" align="left" valign="top"><a id="example7" style="text-decoration:none" href=<?php if(($row['foto']!='') && file_exists("photos/bigs/".$namafoto)){echo "photos/bigs/".$row['foto'];}else {echo "images/logo.jpg";}?> title="<?php echo nl2br($row['caption']);?>"><font size="3"><b><?php echo $row['judul'];?></b></font><br /> <font size="2"><?php if(strlen($row['caption'])>100) { $jdl=substr_replace($row['caption'],CHR(13),0,"<br>"); echo substr($jdl,0,98); echo "..."; }else { echo $row['caption']; } ?></font></a> </td> </tr> </table></td> <?php if($j % 2 == 0) echo "</tr>"; ?> <?PHP }}?> </table> </td> </tr> </table> <table width="450" border="0" cellspacing="3" cellpadding="3"> <tr> <td align="left" valign="top"><div class="page style3"> <?php $query = "SELECT COUNT(*) AS jumData FROM ADV where expired >='$dskr'"; $hasil = mysql_query($query); $data =mysql_fetch_array($hasil); $jumData = $data['jumData']; $jumPage = ceil($jumData/$dataPerPage); if ($noPage > 1) echo "<a href='index.php?".paramEncrypt('p=iklan_baris&page='.($noPage-1).'')."'>&lt;&lt; Prev</a>"; // memunculkan nomor halaman dan linknya for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 3) && ($page <= $noPage + 3)) || ($page == 1) || ($page == $jumPage)) { if (($showPage == 1) && ($page != 2)) echo "..."; if (($showPage != ($jumPage - 1)) && ($page == $jumPage)) echo "..."; if ($page == $noPage) echo " <b>".$page."</b> "; else echo " <a href='index.php?".paramEncrypt('p=iklan_baris&page='.$page.'')."'>".$page."</a> "; $showPage = $page; } } // menampilkan link next if ($noPage < $jumPage) echo "<a href='index.php?".paramEncrypt('p=iklan_baris&page='.($noPage+1).'')."'>Next &gt;&gt;</a>"; ?> </div></td> </tr> </table>

iklan_baris_ori2.php <?php $dskr=date("Y-m-d"); ?> <script> !window.jQuery && document.write('<script src="jquery-1.8.2.min.js"><\/script>'); </script> <script type="text/javascript" src="fancybox/jquery.mousewheel-3.0.4.pack.js"></script> <script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.pack.js"></script> <link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css" media="screen" /> <link rel="stylesheet" href="stylefancy.css" /> <script type="text/javascript"> $(document).ready(function() { /* * Examples - images */ $("a#example1").fancybox(); $("a#example2").fancybox({ 'overlayShow' : false, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic' }); $("a#example3").fancybox({ 'transitionIn' : 'none', 'transitionOut' : 'none' }); $("a#example4").fancybox({ 'opacity' : true, 'overlayShow' : false, 'transitionIn' : 'elastic', 'transitionOut' : 'none' }); $("a#example5").fancybox(); $("a#example6").fancybox({ 'titlePosition' : 'outside', 'overlayColor' : '#000', 'overlayOpacity' : 0.9 }); $("a#example7").fancybox({ 'titlePosition' : 'inside' }); $("a#example8").fancybox({ 'titlePosition' : 'over' }); $("a[rel=example_group]").fancybox({ 'transitionIn' : 'none', 'transitionOut' : 'none', 'titlePosition' : 'over', 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) { return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>'; } }); /* * Examples - various */ $("#various1").fancybox({ 'titlePosition' : 'inside', 'transitionIn' : 'none', 'transitionOut' : 'none' }); $("#various2").fancybox(); $("#various3").fancybox({ 'width' : '75%', 'height' : '75%', 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe' }); $("#various4").fancybox({ 'padding' : 0, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none' }); }); </script> <style type="text/css"> <!-- .style2 { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; color: #FF3300; } .style3 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } --> </style> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FCFBBE"> <tr> <td align="left" valign="top"><span class="style2">:: IKLAN MINI </span> <hr /></td> </tr> <tr> <td width="69%" align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="2"> <?php $dataPerPage = 15; $page =$var['page']; if(isset($page)) { $noPage = $page; } else $noPage = 1; $offset = ($noPage - 1) * $dataPerPage; $query = "select * from ADV where expired >='$dskr' order by idadv desc LIMIT $offset, $dataPerPage"; $result = mysql_query($query) or die('Error'); $data1 = mysql_query($query) or die('Error'); //$no=0; //$jum=mysql_num_rows while($data = mysql_fetch_assoc($result)) { $qjumlah = mysql_query("select count(*) as jumlah from ADV where expired >='$dskr' group by idadv") or die("Data Berita tidak ada !!"); $qjumlah_r=mysql_num_rows($qjumlah); $qjumlah_d=mysql_fetch_array($qjumlah); $no++; for($j=1;$row= mysql_fetch_array($data1);$j++){ if($j % 3 == 1) echo "<tr>"; ?> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td width="20%" align="left" valign="top"><a id="example7" href=<?php if(($row['foto']!='') && file_exists("photos/bigs/".$namafoto)){echo "photos/bigs/".$row['foto'];}else {echo "images/logo.jpg";}?> title="<?php echo nl2br($row['caption']);?>"><img alt="example6" src=<?php if(($row['foto']!='') && file_exists("photos/thumbs/".$namafoto)){echo "photos/thumbs/".$row['foto'];}else {echo "images/logo.jpg";}?> width="100" height="100" vspace="2px" hspace="2px" style="BORDER-RIGHT: #d7d7d7 2px solid; PADDING-RIGHT: 2px; BORDER-TOP: #d7d7d7 2px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; margin-right:2px; BORDER-LEFT: #d7d7d7 2px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #d7d7d7 2px solid"/></a></td> <td width="80%" align="left" valign="top"><a id="example7" style="text-decoration:none" href=<?php if(($row['foto']!='') && file_exists("photos/bigs/".$namafoto)){echo "photos/bigs/".$row['foto'];}else {echo "images/logo.jpg";}?> title="<?php echo nl2br($row['caption']);?>"><font size="3"><b><?php echo $row['judul'];?></b></font><br /> <font size="2"><?php if(strlen($row['caption'])>100) { $jdl=substr_replace($row['caption'],CHR(13),0,"<br>"); echo substr($jdl,0,98); echo "..."; }else { echo $row['caption']; } ?></font></a> </td> </tr> </table></td> <?php if($j % 3 == 0) echo "</tr>"; ?> <?PHP }}?> </table> </td> </tr> </table> <table width="450" border="0" cellspacing="3" cellpadding="3"> <tr> <td align="left" valign="top"><div class="page style3"> <?php $query = "SELECT COUNT(*) AS jumData FROM ADV where expired >='$dskr'"; $hasil = mysql_query($query); $data =mysql_fetch_array($hasil); $jumData = $data['jumData']; $jumPage = ceil($jumData/$dataPerPage); if ($noPage > 1) echo "<a href='index.php?".paramEncrypt('p=iklan_baris&page='.($noPage-1).'')."'>&lt;&lt; Prev</a>"; // memunculkan nomor halaman dan linknya for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 3) && ($page <= $noPage + 3)) || ($page == 1) || ($page == $jumPage)) { if (($showPage == 1) && ($page != 2)) echo "..."; if (($showPage != ($jumPage - 1)) && ($page == $jumPage)) echo "..."; if ($page == $noPage) echo " <b>".$page."</b> "; else echo " <a href='index.php?".paramEncrypt('p=iklan_baris&page='.$page.'')."'>".$page."</a> "; $showPage = $page; } } // menampilkan link next if ($noPage < $jumPage) echo "<a href='index.php?".paramEncrypt('p=iklan_baris&page='.($noPage+1).'')."'>Next &gt;&gt;</a>"; ?> </div></td> </tr> </table>

kontak.php <style type="text/css"> <!-- .style1 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } --> </style> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="7%" align="left" valign="top">&nbsp;</td> <td width="93%" align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top"><span class="style1"> Pembaca yang kami hormati,<br> kami mengharapkan partisipasi aktif Anda dalam memberi masukan, saran<br> serta kritik membangun, atau uneg-uneg berkaitan dengan sesuatu hal<br> dari pemberitaan atau penayangan berita di Harian Surabaya Pagi.<br> Karena ini akan membuat kami lebih baik dalam menyediakan berita dan<br> informasi di hari-hari mendatang.<br> <br> Silahkan dapat menghubungi kami di:<br> PT. Surabaya Sore<br> REDAKSI, IKLAN DAN LANGGANAN:<br> Jl. Gubeng Kertajaya VII Raya No. 62-64 Surabaya<br> Telp. (031) 5016699 (Hunting), 5010099 (Iklan), 70871111 (Pengaduan Koran),<br> Fax. (031) 5053347 (Bisnis), 5031353 (Redaksi),<br> SEKRETARIAT REDAKSI: 0818581111<br> E-MAIL REDAKSI:<br> redaksi@surabayapagi.com,<br> <br> E-MAIL PENJUALAN, IKLAN &amp; BISNIS:<br> iklan@surabayapagi.com,&nbsp;bisnis@surabayapagi.com,&nbsp;sirkulasi@surabayapagi.com,<br> <br> E-MAIL WEBMASTER &amp; IT:<br> sp_online@surabayapagi.com,&nbsp;webmaster@surabayapagi.com </span></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp;</td> </tr> </table>

desain

home_agenda.php <table width="226" border="0" cellspacing="0" cellpadding="0" style="border-bottom:#CCCCCC 1px solid; border-left:#CCCCCC 1px solid; border-right:#CCCCCC 1px solid; border-top:#CCCCCC 1px solid;"> <tr> <td align="left" valign="middle" background="images/bg_menu.png" bgcolor="#FFFFFF" height="34"><table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td><b><font color="#FF0000" size="3" face="tahoma, arial">Agenda Kota</font></b></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top" bgcolor="#EAEAEA"><p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p></td> </tr> </table>

disclaimer.php <style type="text/css"> <!-- .style3 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } --> </style> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="3%" align="left" valign="top">&nbsp;</td> <td width="83%" align="left" valign="top">&nbsp;</td> <td width="14%" align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top"><p class="style3">Disclaimer<br /> <br /> Semua isi berupa teks, gambar, suara dan segala bentuk grafis di situs ini hanya sebagai informasi dan tidak diharapkan untuk tujuan komersial, perdagangan saham, atau transaksi lainnya.<br /> <br /> Kami berupaya keras menampilkan isi seakurat mungkin. Namun, Surabaya Pagi Online (Surabayapagi.com) dan semua mitra penyedia isi --termasuk pengelola konsultasi dan pengembang isi dari pihak lain di situs ini--tidak bertanggung jawab atas segala kesalahan dan keterlambatan memperbarui data atau informasi, atau segala kerugian yang timbul karena tindakan berkaitan penggunaan informasi yang disajikan.<br /> <br /> Surabaya Pagi Online (Surabayapagi.com) tidak bertanggungjawab atas akibat langsung atau pun tidak langsung dari semua teks, gambar, suara, dan segala bentuk grafis yang dihasilkan dan disampaikan pembaca atau pengguna di berbagai rubrik seperti Komentar Pembaca, dan lainnya. Namun demikian, Surabaya Pagi Online (Surabayapagi.com) berhak mengatur dan menyunting isi dari pembaca atau pengguna agar tidak merugikan orang lain, lembaga, atau pun badan tertentu, serta menjauhi isi berbau pornografi atau menyinggung sentimen suku, agama, dan ras.<br /> <br /> Segala isi berupa teks, gambar, suara dan segala bentuk grafis yang disampaikan pembaca atau pun pengguna adalah tanggung jawab setiap individu, bukan tanggungjawab Surabaya Pagi Online (Surabayapagi.com) .<br /> <br /> Semua hasil karya yang dimuat di Surabaya Pagi Online (Surabayapagi.com) berupa teks, gambar, dan suara serta segala bentuk grafis adalah menjadi hak cipta Surabaya Pagi Online (Surabayapagi.com).</p> </td> <td align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp;</td> </tr> </table>

js

berita_terkait.php <?php if($kodetema!="") { $bt=mysql_query("select IDBERITA,JUDUL from BERITA where KODETEMA='$kodetema' and `STATUS`='Show' and IDBERITA <'$hit' order by TGLKIRIM2 desc,TIME DESC,IDBERITA desc limit 0,5"); if(mysql_num_rows($bt)>=1) { ?> <hr color="#999999 1px solid"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><font face="tahoma, arial" size="+1" color="#FF0000"><b>Berita terkait</b></font></td> </tr> <ul> <?php while($dbt=mysql_fetch_array($bt)) { ?> <tr> <td align="left" valign="top"><li> <span class="judul_kolom"><?php echo "<a title='".$dbt['JUDUL']."' href='index.php?".paramEncrypt('p=detilberita&id='.$dbt[0].'')."'>"; echo $dbt['JUDUL']; ?></span></li></td> </tr> <?php } ?></ul> </table> <?php } } ?>

hl0.php <?php $queryinfo = mysql_query("select * from BERITA where STATUS='Show' and STATUSKATEGORI='Headline' and TGLKIRIM2<='$tgl_sekarang' and NAMAFOTO!='' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); $tbl1=mysql_num_rows($queryinfo); if($tbl1 == 0) { echo "<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000080'>Maaf, Data Sedang Dalam Proses!</font></center>"; } else { while($tbl=mysql_fetch_array($queryinfo)) { $ttl_h0=str_replace(" ","-",$tbl['JUDUL']); ?> <img src="photos/bigs/<?php echo $tbl['NAMAFOTO']; ?>" name="targetimage" border='0' width="399" height="266" /> <? } } ?>

kolom_surat_terbuka.php <tr> <td colspan="2" align="left" valign="top"><table width="99%" border="0" cellspacing="0" cellpadding="0" style="background-color:#2E4570; border-bottom:#FF0000 2px solid; border-left:#FF0000 2px solid; border-right:#FF0000 2px solid; border-top:#FF0000 2px solid; margin-bottom:5px;"> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="3"> <tr> <td align="left" valign="top"> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td colspan="2" align="left" valign="top" bgcolor="#FDFDFD"><span class="kolom_suratterbuka"> &nbsp;:: Surat Terbuka Untuk Kajari Surabaya</span></td> </tr> <?php $ct = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM2 from BERITA where KATEGORI='CatatanHukum' and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 1") or die("Data Berita tidak ada !!"); while($dct=mysql_fetch_array($ct)) { ?> <tr> <?php if($dct['NAMAFOTO']!="") { ?> <td width="17%" rowspan="2" align="left" valign="top"><img src="photos/thumbs/<?php echo $dct['NAMAFOTO'];?>" align="left" width="150" vspace="5px" hspace="5px" style="BORDER-RIGHT: #d7d7d7 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #d7d7d7 1px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; margin-right:10px; BORDER-LEFT: #d7d7d7 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #d7d7d7 1px solid"/></td> <?php }?> <td width="83%" align="left" valign="top"><div style="font: 10px normal Arial, Helvetica, sans-serif; color:#FFFFFF"> <?php echo tanggal("D, j M Y H:i",$dct['TGLKIRIM2']);echo " WIB";?></div> <div class="judul_kolom_tab"> <?php echo "<a href='index.php?".paramEncrypt('p=detilberita&id='.$dct[0].'')."'>"; echo $dct['JUDUL']."</a>"; ?> </div></td> </tr> <tr> <td align="left" valign="top"><div class="lead_kolom_tab"><?php echo $dct['NEWLEAD'];?></div></td> </tr> <?php } ?> </table></td> </tr> </table></td> </tr> </table></td> </tr>

rss

m_detil_l.php <table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td bgcolor="#F3F3F3"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><div class="kat"><?php echo $d['JUDUL']; ?></div><hr color="#CCCCCC 1px solid" /><div class="tgl"><?php echo tanggal("D, j M Y",$d['TGLKIRIM']);echo " | ".$d['TIME']." WIB";?></div></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top"><img src="http://www.surabayapagi.com/photos/bigs/<?php echo $d['NAMAFOTO']; ?>" width="100%" /></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top"><div class="isi"><?php echo nl2br($d['ISI']); ?></div></td> </tr> <?php if($d['ISI2']!=''){ ?> <?php if($d['NAMAFOTO2']!='' && file_exists('photos/bigs/'.$d['NAMAFOTO2'])){?> <tr> <td align="left" valign="top"><img src="http://www.surabayapagi.com/photos/bigs/<?php echo $d['NAMAFOTO2']; ?>" width="100%" /></td> </tr><?php }?> <tr> <td align="left" valign="top"><div class="isi"><?php echo nl2br($d['ISI2']); ?></div></td> </tr> <?php } ?> </table></td> </tr> <tr> <td bgcolor="#F3F3F3"><div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilberita&id='.$id.''); ?>" data-num-posts="10" data-width="600"></div></td> </tr> </table>

dummy

std_delete.php <?php if($_SESSION['slevel']=="Administrator" || $_SESSION['slevel']=="Redaksi") { $idberita=$var['idberita']; $ref = $_SERVER['HTTP_REFERER']; $cek=mysql_query("select * from STD where IDFOTO='$idberita'"); $num = mysql_num_rows($cek); $data_d=mysql_fetch_array($cek); $namafoto=$data_d['FOTO']; $namafoto2=$data_d['FOTO2']; if($namafoto!="") { $namaDir1="photos/bigs/"; $namaDir2="photos/thumbs/"; if(file_exists($namaDir1.$namafoto)) { unlink($namaDir1.$namafoto); } if(file_exists($namaDir2.$namafoto)) { unlink($namaDir2.$namafoto); } if($namafoto2!="") { if(file_exists($namaDir1.$namafoto2)) { unlink($namaDir1.$namafoto2); } if(file_exists($namaDir2.$namafoto2)) { unlink($namaDir2.$namafoto2); } } $delete=mysql_query("delete from STD where IDFOTO='".$idberita."'",$link) or die("error!"); if($delete) { ?> <script language="javascript"> alert('Data Berhasil Dihapus.'); document.location='<?php echo $ref; ?>' </script> <? } else { ?> <script language="javascript"> alert('Data Gagal Dihapus.'); document.location='<?php echo $ref; ?>' </script> <? } } else { $delete=mysql_query("delete from STD where IDFOTO='".$idberita."'",$link) or die("error!!!"); if($delete) { ?> <script language="javascript"> alert('Data Berhasil Dihapus.'); document.location='<?php echo $ref; ?>' </script> <? } else { ?> <script language="javascript"> alert('Data Gagal Dihapus.'); document.location='<?php echo $ref; ?>' </script> <? } } } else { include "alert_admin.php"; } ?>

home_sportainment_preview.php <table width="255" border="0" cellspacing="0" cellpadding="0" > <tr> <td ><img src="images/sportainment.png" width="100%" /></td> </tr> <tr> <td> <?php $q=mysql_query("select IDBERITA,JUDUL,NAMAFOTO,NEWLEAD from BERITA where STATUS='Show' and KATEGORI='Sportainment' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 3"); while($d=mysql_fetch_array($q)) { ?><table width="100%" border="0" cellpadding="3" cellspacing="1"> <tr> <td width="253" height="21" align="left" valign="top" bgcolor="#EBEBEB"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="59%" align="left" valign="top" bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#F4F1CE'" onmouseout="this.style.backgroundColor='#EBEBEB'"><table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td><div class="judul_kanan"> <?php echo " <a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$d[0].'')."'>$d[JUDUL]<span class=\"classic\"><em>".$d['JUDUL']."</em>$d[NEWLEAD]</span></a>"; ?> </div> <div class="lead_kanan"> <?php $lead=$d['NEWLEAD']; $lead_array = explode(' ',$lead); $lead_baru = ''; $i=1; foreach($lead_array AS $lead_array1){ if ($i<=7) $lead_baru .= $lead_array1.' '; $i++; } echo $lead_baru."..."; ?> </div></td> </tr> </table></td> <td width="41%" align="left" valign="top" bgcolor="#FFFFFF"> <? if($d['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $d['NAMAFOTO'];?>" width="100" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="100" height="100" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table></td> </tr> </table> <?php } ?> </td> </tr> </table>

m_detil_p.php <table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td bgcolor="#F3F3F3"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><div class="kat"><?php echo $d['JUDUL']; ?></div><hr color="#CCCCCC 1px solid" /><div class="tgl"><?php echo tanggal("D, j M Y",$d['TGLKIRIM']);echo " | ".$d['TIME']." WIB";?></div></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top"><div class="isi"> <?php echo ("<img src=http://www.surabayapagi.com/photos/bigs/"); echo $d['NAMAFOTO']; echo(" align=left width='60%' vspace='10px' hspace='10px' style='BORDER-RIGHT: #d7d7d7 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #d7d7d7 1px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; margin-right:10px; BORDER-LEFT: #d7d7d7 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #d7d7d7 1px solid'"); echo(">"); echo nl2br($d['ISI']); ?></div></td> </tr> <?php if($d['ISI2']!=''){ ?> <tr> <td align="left" valign="top"><div class="isi"> <?php if($d['NAMAFOTO2']!='' && file_exists('photos/bigs/'.$d['NAMAFOTO2'])){ echo ("<img src=http://www.surabayapagi.com/photos/bigs/"); echo $d['NAMAFOTO2']; echo(" align=left width='60%' vspace='10px' hspace='10px' style='BORDER-RIGHT: #d7d7d7 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #d7d7d7 1px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; margin-right:10px; BORDER-LEFT: #d7d7d7 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #d7d7d7 1px solid'"); echo(">"); } echo nl2br($d['ISI2']); ?></div></td> </tr> <?php } ?> </table></td> </tr> <tr> <td bgcolor="#F3F3F3"><div class="fb-comments" data-href="http://surabayapagi.com/<?php echo "index.php?".paramEncrypt('p=detilberita&id='.$id.''); ?>" data-num-posts="10" data-width="600"></div></td> </tr> </table>

test

photocrop.php <?php /* By Joyce Johnston http://www.uncontentio.us April 18, 2009 */ class Photo { private $tmp_name; private $name; private $error; private $max_size = 1000000; private $accepted_mime_types = array('image/jpeg','image/png','image/gif'); private $tmp; private $src; private $directory; private $src_x; private $src_y; private $dst_x; private $dst_y; private $orig_width; private $orig_height; private $src_width; private $src_height; private $dst_width; private $dst_height; function __construct($file_info, $max_size='') { $this->tmp_name = $file_info['tmp_name']; $this->name = str_replace(" ","",(date("YmdHis").rtrim($file_info['name']))); $this->size = $file_info['size']; $this->error = $file_info['error']; $info = getimagesize($this->tmp_name); $this->mime = $info['mime']; $this->orig_width = $info[0]; $this->orig_height = $info[1]; if($max_size != '') { $this->max_size = $max_size; } } function validate() { $errors = array(); if(!isset($error) || $this->error == 0 ) { if (!in_array($this->mime,$this->accepted_mime_types)) { $errors[] = 'Hold it! You may upload files of type .jpg, .jpeg, .gif, or .png. What you tried to upload was something else.'; } if($photo->size > $photo->max_size) { $errors[] = 'Whoa! Your photo is too big. File size cannot exceed '.($this->max_size/1000).'KB.'; } } else { $errors[] = "There was a problem uploading your photo. It may be that your photo is too big or that something bad happened during upload. If your photo is less than ".($this->max_size/1000)." in size, please try again."; } return $errors; } function getFileType() { return $this->mime; } function getWidth() { return $this->orig_width; } function getHeight() { return $this->orig_height; } function getDimensionRatio() { return $this->orig_width/$this->orig_height; } public function doResize($max_dimension,$directory) { $errors = array(); $this->setDimensions($max_dimension); $success = $this->resize($directory); if(!$success) { $errors[] = 'Sorry! I couldn\'t resize your photo. Please try again later.'; } return $errors; } //doThumb -center public function doThumb($thumb_size,$directory) { $errors = array(); $this->setThumbDimensions($thumb_size); $success = $this->resize($directory); if(!$success) { $errors[] = 'Sorry! I couldn\'t make a thumbnail for your image. Please try again later.'; } return $errors; } //doCenterCrop -landscape public function doCenterCrop($x,$y,$directory='') { $errors = array(); $success = $this->setCenterCropDimensions($x,$y); $success = $success && $this->resize($directory); if(!$success) { $errors[] = 'Sorry! I couldn\'t crop your image. Check your image dimensions. If it is less than '.$x.'px by '.$y.'px, it is too small to crop.'; } return $errors; } //doFullCrop -potrait public function doFullCrop($x,$y,$width,$height,$directory='') { $errors = array(); $success = $this->setFullCropDimensions($x,$y,$width,$height); $success = $success && $this->resize($directory); if(!$success) { $errors[] = 'Sorry! I couldn\'t crop your image. Check your image dimensions. If it is less than '.$x.'px by '.$y.'px, it is too small to crop.'; } return $errors; } public function move($directory) { $errors = array(); $success = @move_uploaded_file($this->tmp_name, $directory.$this->name); if(!$success) { $errors[] = 'Sorry! I couldn\'t store your image. Please try again later.'; } return $errors; } private function setDimensions($max_dimension) { if($this->getDimensionRatio() > 1) { //our image is wider than it is tall $this->dst_width = $max_dimension; $this->dst_height=($this->orig_height/$this->orig_width)*$this->dst_width; } else { $this->dst_height = $max_dimension; $this->dst_width = ($this->orig_width*$this->dst_height)/$this->orig_height; } $this->src_width = $this->orig_width; $this->src_height = $this->orig_height; $this->src_x = 0; $this->src_y = 0; $this->dst_x = 0; $this->dst_y = 0; } //doThumb -center private function setThumbDimensions($thumb_size) { //find the larger dimension, height or width if($this->getDimensionRatio() > 1) { //our src image is wider than it is tall $this->src_x = 0 + (($this->orig_width-$this->orig_height)/2); $this->src_y = 0; $this->src_width = $this->orig_height; $this->src_height = $this->orig_height; } else { $this->src_x = 0; $this->src_y = 0 + (($this->orig_height-$this->orig_width)/2); $this->src_height = $this->orig_width; $this->src_width = $this->orig_width; } $this->dst_width = $thumb_size; $this->dst_height = $thumb_size; $this->dst_x = 0; $this->dst_y = 0; } //doCenterCrop -landscape private function setCenterCropDimensions($x,$y) { if($this->getDimensionRatio() > 1) { //our src image is wider than it is tall $this->src_x = 0 + (($this->orig_width-$this->orig_height)); $this->src_y = 0; $this->src_width = $this->orig_height; $this->src_height = $this->orig_height; } else { $this->src_x = 0; $this->src_y = 0 + (($this->orig_height-$this->orig_width)); $this->src_height = $this->orig_width; $this->src_width = $this->orig_width; } $this->dst_width = $x; $this->dst_height = $y; $this->dst_x = 0; $this->dst_y = 0; //---------ori /* //if the image is smaller than crop size if($this->orig_width < $x || $this->orig_height < $y) { return false; exit; } //we're always going to crop from center $this->src_x = 0 + (($this->orig_width-$x)/2); $this->src_y = 0 + (($this->orig_height-$y)/2); $this->dst_x = 0; $this->dst_y = 0; $this->dst_width = $x; $this->dst_height = $y; $this->src_width = $x; $this->src_height = $y; */ return true; } //doFullCrop -potrait private function setFullCropDimensions($x,$y,$width,$height) { if($this->getDimensionRatio() > 1) { //our src image is wider than it is tall $this->src_x = 0 + (($this->orig_width-$this->orig_height)/10); $this->src_y = 0; $this->src_width = $this->orig_height; $this->src_height = $this->orig_height; } else { $this->src_x = 0; $this->src_y = 0 + (($this->orig_height-$this->orig_width)/10); $this->src_height = $this->orig_width; $this->src_width = $this->orig_width; } $this->dst_width = $width; $this->dst_height = $height; $this->dst_x = 0; $this->dst_y = 0; //---------------------------------ori /* if($this->orig_width < $x || $this->orig_height < $y) { return false; exit; } $this->src_x = 0 + (($this->orig_width-$x)/2); $this->src_y = 0 + (($this->orig_height-$y)/2); $this->dst_x = 0; $this->dst_y = 0; $this->dst_width = $width; $this->dst_height = $height; $this->src_width = $width; $this->src_height = $height; */ //--------------------batas ori return true; } private function resize($directory) { // create an Image to resize //$this->src = imagecreatefromjpeg($this->tmp_name); $this->createImage(); // get all of the sizes $width=$this->src_width; $height=$this->src_height; $newheight=$this->dst_height; $newwidth=$this->dst_width; $src_x = $this->src_x; $src_y = $this->src_y; $this->tmp= @imagecreatetruecolor($newwidth,$newheight); // resize image $success = @imagecopyresampled($this->tmp,$this->src,0,0,$src_x,$src_y,$newwidth,$newheight,$width,$height); // write the resized image to disk. $filename = $directory.$this->name; $success = @imagejpeg($this->tmp,$filename); // clean up imagedestroy($this->src); imagedestroy($this->tmp); return $success; } private function createImage() { switch ($this->mime) { case 'image/jpeg': $this->src = @imagecreatefromjpeg($this->tmp_name); break; case 'image/gif': $this->src = @imagecreatefromgif($this->tmp_name); break; case 'image/png': $this->src = @imagecreatefrompng($this->tmp_name); break; } } } ?>

detilberita.php <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=187360121279395"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <?php //include "go/go.php"; if ($detect->isMobile()) { //$hal=$_SERVER['REQUEST_URI']; //$hal2="http://m.surabayapagi.com".$hal; //header("Location:$hal2") ; //header('Location:http://m.surabayapagi.com') ; include "m_detil.php"; } else { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <?php $hit=intval($var["id"]); //echo $hit; $hari=date("Y-m-d H:i"); $upd=date("Y-m-d H:i:s"); $querydata=mysql_query("select * from BERITA where `STATUS`='Show' and IDBERITA='$hit'"); if(mysql_num_rows($querydata)>0) { $tblbaca=mysql_fetch_array($querydata); $baca=$tblbaca["TERBACA"]; $data2=mysql_fetch_row($querydata); $jumlah=$baca; $jumlah++; $ip=$_SERVER['REMOTE_ADDR']; $queryupdate= mysql_query("update BERITA set TERBACA='$jumlah',UPD='$upd',IP='$ip' where IDBERITA='".$hit."'"); $query = mysql_query("select * from BERITA where IDBERITA='$hit' and STATUS='Show'"); $tbl=mysql_fetch_array($query); $kategori=$tbl["KATEGORI"]; if($tbl["KODETEMA"]!='') { $kodetema=$tbl["KODETEMA"]; } $id=intval($var['id']); $news = mysql_query("select * from BERITA where IDBERITA='$id' and STATUS='Show' and KATEGORI = '$kategori'") or die("Tabel Info2 tidak ada !"); //echo "select * from BERITA where IDBERITA='$id' and STATUS='Show' and KATEGORI = '$kategori'"; $d=mysql_fetch_array($news); if($hari>=$d['TGLKIRIM2']) { if($d['NAMAFOTO']!='') { $gb="photos/bigs/".$d['NAMAFOTO']; if (file_exists($gb)) { $xx=getimagesize($gb); list($width,$height)=$xx; if($height<$width) { include "detilberita_l.php"; //echo "L"; } if($height>=$width) { include "detilberita_p.php"; //echo "P"; } } else { include "detilberita_n.php"; //echo "N"; } //echo $width."|".$height; } else { include "detilberita_n.php"; //echo "N2"; } } else { $redirect_url= "index.php"; echo"<html><head> <META HTTP-EQUIV=\"Refresh\" Content = \"1; URL=$redirect_url\"> </head><body ><table align=center><tr><td><img src='facebook.gif'></td></tr></table></body></html>"; } } else { $ad="http://www.surabayapagi.com".$_SERVER['REQUEST_URI']; $pesan="WARNING"; $ip=$_SERVER['REMOTE_ADDR']; $tgl=date("Y-m-d H:i:s"); $msk=mysql_query("insert into DATA_URL_ACT set KATA='$ad',TGLKIRIM='$tgl',IP='$ip',PESAN='$pesan'"); $redirect_url= "index.php"; echo"<html><head> <META HTTP-EQUIV=\"Refresh\" Content = \"1; URL=$redirect_url\"> </head><body ><table align=center><tr><td><img src='facebook.gif'></td></tr></table></body></html>"; } /* if($d['NAMAFOTO']!='' && $d['POSISI_FOTO']=="L") { include "detilberita_l.php"; } elseif($d['NAMAFOTO']!='' && $d['POSISI_FOTO']=="P") { include "detilberita_p.php"; } else { include "detilberita_n.php"; } */ ?> </td> </tr> </table> <?php //if($_SESSION['slevel']==""){?> <!--banner <script src='js/jquery-1.3.2.min.js' type='text/javascript'></script> <script type='text/javascript' src='js/jquery-ui.min.js'></script> <script type='text/javascript'> $(window).bind("load", function() { // animasikan nilai top saat halaman telah selesai dimuat $('#kotak-pesan').animate({top:"30px"}, 1000, "easeOutBounce"); // hilangkan kotak pesan saat tombol (x) diklik $('a.close').click(function() { $(this).parent().slideUp(800, "easeOutBounce"); return false; }); }); </script> <style> #kotak-pesan{ position:fixed !important; position:absolute; /* IE6 */ top:-900px; margin:0px 0px 0px 0px; width:890px; height:auto; padding:5px; border:2px solid #fff; font:normal 1em Cambria,Georgia,Serif; color:#111; -webkit-box-shadow:0px 0px 0px rgba(0,0,0,0.4); -moz-box-shadow:0px 0px 0px rgba(0,0,0,0.4); box-shadow:0px 0px 0px rgba(0,0,0,0.4); z-index:999; } #kotak-pesan a.close{ position:absolute; top:-10px; right:-10px; background:#333; font:bold 16px Arial,Sans-Serif; text-decoration:none; line-height:22px; width:22px; text-align:center; color:#fff; border:2px solid #fff; -webkit-box-shadow:0px 1px 2px rgba(0,0,0,0.4); -moz-box-shadow:0px 1px 2px rgba(0,0,0,0.4); box-shadow:0px 1px 2px rgba(0,0,0,0.4); -webkit-border-radius:22px; -moz-border-radius:22px; border-radius:22px; cursor:pointer; } </style> <div id='kotak-pesan' align='center'> <center> <a href='http://www.facebook.com/GaunGmu' target='_blank'><img src="images/paul3.jpg" width="400" border="0" /></a> </center> <a class='close' href='#'>&times;</a> </div> --> <?php } //}?>

menu.php <table width="100%" border="0" cellspacing="2" cellpadding="2" style="background-image:url(images/bg_menu.png); background-repeat:repeat-x"> <tr> <td align="left" valign="middle">&nbsp;&nbsp;<span class="menu_utama"><a href="index.php">Home</a> | <?php echo "<a href='index.php?".paramEncrypt('p=arsip&id=politik')."'>";?>Politik</a> | <?php echo "<a href='index.php?".paramEncrypt('p=arsip&id=korupsi')."'>";?>Korupsi</a> | <?php echo "<a href='index.php?".paramEncrypt('p=arsip&id=slc')."'>";?>SLC</a> | <?php echo "<a href='index.php?".paramEncrypt('p=arsip&id=catatanhukum')."'>";?>Catatan Tatang Istiawan</a> | <?php echo "<a href='index.php?".paramEncrypt('p=arsip&id=hukrim')."'>";?>Hukum Kriminal</a> | <?php echo "<a href='index.php?".paramEncrypt('p=arsip&id=ekonomi')."'>";?>Ekonomi Bisnis</a> | <?php echo "<a href='index.php?".paramEncrypt('p=arsip&id=nasional')."'>";?>Nasional</a> | <?php echo "<a href='index.php?".paramEncrypt('p=arsip&id=internasional')."'>";?>Internasional</a></div> </td> <td><? include "pencarian.php";?></td> </tr> </table> <?php if($_SESSION['slevel']=="Administrator" || $_SESSION['slevel']=="Redaksi" || $_SESSION['slevel']=="Redaksi2" || $_SESSION['slevel']=="Epaper") { ?> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td bgcolor="#FFFF00" height="20px"><strong>&nbsp;MENU : <?php include "menu_admin.php"; ?></strong></td> </tr> </table> <?php } ?>

index.php.bak <?php session_start(); include("Mobile_Detect.php"); $detect = new Mobile_Detect(); if ($detect->isMobile()) { header( 'Location: http://m.surabayapagi.com' ) ; } else { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="top"><img src="images/sp.png" width="437" height="70" /></td> </tr> <tr> <td align="center" valign="top"><font face="helvetica" size="2" color="#FF0000"><b>untuk sementara hanya bisa diakses via mobile version</b></font> </tr> </table> <?php }?>

walimatul2

m_karir.php <style type="text/css"> <!-- .style1 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } --> </style> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="7%" align="left" valign="top">&nbsp;</td> <td width="93%" align="left" valign="top">&nbsp;</td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top"><img src="images/imb.jpg" width="100%" /></td> </tr> <tr> <td align="left" valign="top">&nbsp;</td> <td align="left" valign="top">&nbsp;</td> </tr> </table>

home_catatan.php <table width="230" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><img src="images/catatan.png" width="100%" /></td> </tr> <tr> <td align="left" valign="top"> <?php $pr0=mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='CatatanHukum' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 1"); $dpr0=mysql_fetch_array($pr0); $ttl_ct=str_replace(" ","-",$dpr0['JUDUL']); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <? if(($dpr0['NAMAFOTO']!='') && file_exists('photos/thumbs/'.$dpr0['NAMAFOTO'])){?> <td width="37%" align="left" valign="top"> <img src="photos/thumbs/<? echo $dpr0['NAMAFOTO'];?>" width="75" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid; margin-right:5px"/> </td> <?php }?> <td width="63%" align="left" valign="top"><span class="left_berita2"> <?php echo "<a class=\"tooltip\" href='index.php?read=$ttl_ct;".paramEncrypt('&p=detilberita&id='.$dpr0[0].'')."'>"; $jdl=$dpr0['JUDUL']; echo $jdl; echo "<span class=\"classic\"><em>".$dpr0['JUDUL']."</em>$dpr0[NEWLEAD]</span></a><br>"; ?></span> </td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"><span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='CatatanHukum' order by TGLKIRIM2 desc,IDBERITA desc limit 1, 5"); while($dpr=mysql_fetch_array($pr)) { $ttl_ct2=str_replace(" ","-",$dpr['JUDUL']); echo "<a class=\"tooltip\" href='index.php?read=$ttl_ct2;".paramEncrypt('&p=detilberita&id='.$dpr[0].'')."'>"; if(strlen($dpr['JUDUL'])>29) { $jdl=substr_replace($dpr['JUDUL'],CHR(13),0,"<br>"); echo substr($jdl,0,28); echo "..."; }else { echo $dpr['JUDUL']; } echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span></td> </tr> </table></td> </tr> </table>

AES-docs-en.html <html> <head> <title>AES Cipher Class</title> <style> body { background-color: #ffffff; font-family: verdana; color: #000000; } div.title { position: relative; color: #000000; text-align: left; font-weight: bold; font-size: 30px; left: 0px; top: 0px; padding: 4px 0px 4px 0px; margin-bottom: 4px; } div.menu { font-size: 20px; padding: 4px 0px 20px 0px; color: #000000; } div.chapter { position: relative; background-color: #ffaa44; color: #000000; font-weight: bold; padding: 4px 20px 4px 20px; } div.text{ position: relative; padding: 30px 20px 30px 20px; } a { text-decoration: none; color: #999999; background-color: #ffffff; font-weight: normal; } div.signature { text-decoration: none; font-size: 11px; padding: 1px 0px 1px 0px; color: #345678; background-color: #ffaa44; font-weight: bold; width: 100%; text-align: center; } div.code { border: 1px #000000 dotted; margin: 10px 30px 10px 30px; padding: 10px; font-family: Courier; font-size: 10px; color: #000000; background-color: #e0e0e0; } </style> </head> <body> <div class="title"> <big>AES Class</big> </div> <div class="menu"> <a href="#intro">Introduction</a> | <a href="#install">Install</a> | <a href="#config">Configuration</a> | <a href="#functions">Cipher functions</a> | <a href="#examples">Examples</a> </div> <div class="content"> <a name="intro"></a> <div class="chapter">Introduction:</div> <div class="text"> This is an implementation of AES (Advanced Encryption Standard) algoritm that can easyly encrypt/decrypt data without external liblary. </div> <a name="install"></a> <div class="chapter">Install:</div> <div class="text"> To install this class just copy the file <i>AES.class.php</i> to your php liblary or scripts execution directory. </div> <a name="config"></a> <div class="chapter">Configuration:</div> <div class="text"> There are no configuration options. However during the object creation You can choose the length of key using: AES::AES128, AES::AES192, or AES::AES256 values. </div> <a name="functions"></a> <div class="chapter">Cipher functions:</div> <div class="text"> This functions are used to crypt data: <ul> <li><b>AES(key_strength):</b> Class constructor. The parameter <i>key_strength</i> takes values: <i>AES::AES128, AES::AES192, AES::AES256</i>.</li> <li><b>encrypt(content, key):</b>Encrypts 16 bytes of data. The parameter <i>content</i> is 16 bytes of data to encrypt in hexadecimal string representation, <i>key</i> Hexadecimal key with lenght specified in class constructor</li> <li><b>decrypt(content, key):</b>Decrypts 16 bytes of data. The parameter <i>content</i> is 16 bytes of data to decrypt in hexadecimal string representation, <i>key</i> Hexadecimal key with lenght specified in class constructor</li> <li><b>stringToHex(str):</b>Converts string content into hexadecimal representation. The parameter <i>str</i> is string that is converting.</li> <li><b>hexToString(hex):</b>Converts hexadecimal string into charactes string. The parameter <i>hex</i> reprsets the hexadecimal input data</li> <li><b>selfTest():</b>Testing how algoritm works showing time of execution each routine.</li> </ul> </div> <a name="examples"></a> <div class="chapter">Examples:</div> <div class="text"> <b>Testing:</b> <div class="code"> require_once('./AES.class.php');<br /> $Cipher = new AES(AES::AES128);<br /> $Cipher->selfTest(); </div> <b>Basic use (128bit):</b> <div class="code"> require_once('./AES.class.php');<br /> $Cipher = new AES();<br /> $key_128bit = '2b7e151628aed2a6abf7158809cf4f3c';<br /> <br /> // Encryption<br /> $cryptext = $Cipher->encrypt($Cipher->stringToHex('Alice has a cat'), $key_128bit);<br /> print $cryptext;<br /> <br /> // Decryption<br /> $result = $Cipher->encrypt($cryptext, $key_128bit);<br /> print $Cipher->hexToString($result); </div> <b>Custom key strength:</b> <div class="code"> require_once('./AES.class.php');<br /> $Cipher = new AES(AES::AES256);<br /> $key_256bit = '603deb1015ca71be2b73aef0857d77811f352c073b6108d72d9810a30914dff4';<br /> <br /> // Encryption<br /> $cryptext = $Cipher->encrypt($Cipher->stringToHex('Alice has a cat'), $key_256bit);<br /> print $cryptext;<br /> <br /> // Decryption<br /> $result = $Cipher->encrypt($cryptext, $key_256bit);<br /> print $Cipher->hexToString($result); </div> </div> </div> <div class="signature"> <center>&copy; 2007 Marcin F. Wisniowski</center> </div> </body> </html>

menutop.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- saved from url=(0014)about:internet --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>menu.jpg</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css">td img {display: block;}</style> <!--Fireworks 8 Dreamweaver 8 target. Created Sat Oct 06 18:52:59 GMT+0000 (GMT Standard Time) 2012--> <script language="JavaScript1.2" type="text/javascript"> <!-- function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } //--> </script> </head> <body bgcolor="#cccccc" onload="MM_preloadImages('images/menu_r1_c1_f2.jpg','images/menu_r1_c2_f2.jpg','images/menu_r1_c3_f2.jpg','images/menu_r1_c4_f2.jpg','images/menu_r1_c5_f2.jpg','images/menu_r1_c6_f2.jpg','images/menu_r1_c8_f2.jpg','images/menu_r1_c10_f2.jpg','images/menu_r1_c12_f2.jpg');"> <table border="0" cellpadding="0" cellspacing="0" width="687"> <!-- fwtable fwsrc="menu.png" fwbase="menu.jpg" fwstyle="Dreamweaver" fwdocid = "1775292176" fwnested="0" --> <tr> <td><img src="images/spacer.gif" width="46" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="109" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="61" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="39" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="148" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="48" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="1" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="58" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="1" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="90" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="1" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="85" height="1" border="0" alt="" /></td> <td><img src="images/spacer.gif" width="1" height="1" border="0" alt="" /></td> </tr> <tr> <td><a href="index.php" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('menu_r1_c1','','images/menu_r1_c1_f2.jpg',1);"><img name="menu_r1_c1" src="images/menu_r1_c1.jpg" width="46" height="30" border="0" id="menu_r1_c1" alt="" /></a></td> <td><a href=<?php echo "'index.php?".paramEncrypt('p=arsip&id=politik')."'";?> onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('menu_r1_c2','','images/menu_r1_c2_f2.jpg',1);"><img name="menu_r1_c2" src="images/menu_r1_c2.jpg" width="109" height="30" border="0" id="menu_r1_c2" alt="" /></a></td> <td><a href=<?php echo "'index.php?".paramEncrypt('p=arsip&id=korupsi')."'";?> onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('menu_r1_c3','','images/menu_r1_c3_f2.jpg',1);"><img name="menu_r1_c3" src="images/menu_r1_c3.jpg" width="61" height="30" border="0" id="menu_r1_c3" alt="" /></a></td> <td><a href=<?php echo "'index.php?".paramEncrypt('p=arsip&id=slc')."'";?> onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('menu_r1_c4','','images/menu_r1_c4_f2.jpg',1);"><img name="menu_r1_c4" src="images/menu_r1_c4.jpg" width="39" height="30" border="0" id="menu_r1_c4" alt="" /></a></td> <td><a href=<?php echo "'index.php?".paramEncrypt('p=arsip&id=catatanhukum')."'";?> onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('menu_r1_c5','','images/menu_r1_c5_f2.jpg',1);"><img name="menu_r1_c5" src="images/menu_r1_c5.jpg" width="148" height="30" border="0" id="menu_r1_c5" alt="" /></a></td> <td><a href=<?php echo "'index.php?".paramEncrypt('p=arsip&id=otoda')."'";?> onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('menu_r1_c6','','images/menu_r1_c6_f2.jpg',1);"><img name="menu_r1_c6" src="images/menu_r1_c6.jpg" width="48" height="30" border="0" id="menu_r1_c6" alt="" /></a></td> <td><img name="menu_r1_c7" src="images/menu_r1_c7.jpg" width="1" height="30" border="0" id="menu_r1_c7" alt="" /></td> <td><a href=<?php echo "'index.php?".paramEncrypt('p=arsip&id=ekonomi')."'";?> onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('menu_r1_c8','','images/menu_r1_c8_f2.jpg',1);"><img name="menu_r1_c8" src="images/menu_r1_c8.jpg" width="58" height="30" border="0" id="menu_r1_c8" alt="" /></a></td> <td><img name="menu_r1_c9" src="images/menu_r1_c9.jpg" width="1" height="30" border="0" id="menu_r1_c9" alt="" /></td> <td><a href=<?php echo "'index.php?".paramEncrypt('p=arsip&id=sportainment')."'";?> onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('menu_r1_c10','','images/menu_r1_c10_f2.jpg',1);"><img name="menu_r1_c10" src="images/menu_r1_c10.jpg" width="90" height="30" border="0" id="menu_r1_c10" alt="" /></a></td> <td><img name="menu_r1_c11" src="images/menu_r1_c11.jpg" width="1" height="30" border="0" id="menu_r1_c11" alt="" /></td> <td><a href=<?php echo "'index.php?".paramEncrypt('p=arsip&id=infotainment')."'";?> onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('menu_r1_c12','','images/menu_r1_c12_f2.jpg',1);"><img name="menu_r1_c12" src="images/menu_r1_c12.jpg" width="85" height="30" border="0" id="menu_r1_c12" alt="" /></a></td> <td><img src="images/spacer.gif" width="1" height="30" border="0" alt="" /></td> </tr> </table> </body> </html>

savesuararakyat.php <? session_start(); include "go/go.php"; $judul=$_POST["requiredjudul"]; $lead=strip_tags($_POST["requiredlead"],"<b><i>"); $isi1=strip_tags($_POST["requiredisi"],"<b><i>"); $pengirim=$_SESSION['slevel']; $konversi="4"; $sekarang=time(); $tambah=$sekarang + ($konversi) * 3600; $tgl=date("Y-m-d H:i", $tambah); //$time=date("H:i", $tambah); //$tgl=date("Y-m-d H:i"); $ref = $_SERVER['HTTP_REFERER']; $querysave = mysql_query("insert into SUARA_RAKYAT set JUDUL='$judul',LEAD='$lead',ISI='$isi1',TGLKIRIM='$tgl'"); if($querysave){ ?> <script language="JavaScript">document.location='<?php echo $ref; ?>'</script> <? } else { echo "<font color=#ff0000>Data Gagal Tersimpan!</font>"; } ?>

m_pencarian.php <form name="pencarian" method="post" id="searchform" action="<?php echo "index.php?".paramEncrypt('p=m_pencarian_proses');?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="23%"><input type="text" value="" name="s" id="s"/></td> <td width="77%"><label> <input type="submit" name="Submit" value="Search"> </label></td> </tr> </table> </form>

std_save.php <? session_start(); include "go/go.php"; include 'photocrop.php'; $judul=htmlentities(strip_tags($_POST["requiredjudul"],"<b><i>"), ENT_QUOTES); $idberita=$_POST["idberita"]; $subjudul=$_POST["subjudul"]; $isi1=strip_tags($_POST["requiredisi"],"<b><i>"); $fotolama=$_POST['fotolama']; $fotolama2=$_POST['fotolama2']; $tgl=date("Y-m-d"); $foto = $_FILES['image']['name']; $foto2 = $_FILES['image2']['name']; if($foto!="") { $namafoto= str_replace(" ","",(date("YmdHis").rtrim($foto))); } else { $namafoto=$fotolama; } if($foto2!="") { $namafoto2= str_replace(" ","",(date("YmdHis").rtrim($foto2))); } else { $namafoto2=$fotolama2; } if($_POST['Kirim']) { //Save photo if(isset($_FILES['image'])) { if($idberita!='') { if($fotolama!='' && $foto!='') { if(file_exists('photos/thumbs/'.$fotolama)) { unlink('photos/thumbs/'.$fotolama); } if(file_exists('photos/bigs/'.$fotolama)) { unlink('photos/bigs/'.$fotolama); } } } $photo = new Photo($_FILES['image']); if(count($errors = $photo->validate()) == 0) { $errors = $photo->doThumb(150,'photos/thumbs/'); } if(count($errors) == 0 ) { if($photo->getWidth() > 600 || $photo->getHeight() > 600) { $errors = $photo->doResize(600,'photos/bigs/'); } else { $errors = $photo->move('photos/bigs/'); } } else { extract($_POST); } } if(isset($_FILES['image2'])) { if($idberita!='') { if($fotolama2!='' && $foto2!='') { if(file_exists('photos/thumbs/'.$fotolama2)) { unlink('photos/thumbs/'.$fotolama2); } if(file_exists('photos/bigs/'.$fotolama2)) { unlink('photos/bigs/'.$fotolama2); } } } $photo = new Photo($_FILES['image2']); if(count($errors = $photo->validate()) == 0) { $errors = $photo->doThumb(150,'photos/thumbs/'); } if(count($errors) == 0 ) { if($photo->getWidth() > 600 || $photo->getHeight() > 600) { $errors = $photo->doResize(600,'photos/bigs/'); } else { $errors = $photo->move('photos/bigs/'); } } else { extract($_POST); } } if($idberita!='') { $qq="update STD set JUDUL='$judul',SUBJUDUL='$subjudul',ISI='$isi1',TGL='$tgl',FOTO='$namafoto',FOTO2='$namafoto2' where IDFOTO='$idberita'"; $ref = 'index.php?7ee22fd49fc03c5e8e17ca65941e315e'; }else { $qq = "insert into STD set JUDUL='$judul',SUBJUDUL='$subjudul',ISI='$isi1',TGL='$tgl',FOTO='$namafoto',FOTO2='$namafoto2'"; $ref = $_SERVER['HTTP_REFERER']; } $querysave=mysql_query($qq); if($querysave){ ?> <script language="JavaScript">document.location='<?php echo $ref; ?>'</script> <? } else { echo "<font color=#ff0000>Data Gagal Tersimpan!</font>"; } } ?>

nizal

include.php <?php $page = $var['p']; if(eregi("^[a-z0-9\-_\.]+$", $page, $regs)) //make sure $page is alphanumeric { $dir = ""; //not strictly necessary, can be blank. $ext = ".php"; //.php, .html, .txt, whatever if(file_exists($dir . $page . $ext)) { include($dir . $page . $ext); //or readfile if not expecting php code } else { $ad="http://www.surabayapagi.com".$_SERVER['REQUEST_URI']; $pesan="WARNING"; $ip=$_SERVER['REMOTE_ADDR']; $tgl=date("Y-m-d H:i:s"); $msk=mysql_query("insert into DATA_URL_ACT set KATA='$ad',TGLKIRIM='$tgl',IP='$ip',PESAN='$pesan'"); $redirect_url= "index.php"; echo"<html><head> <META HTTP-EQUIV=\"Refresh\" Content = \"1; URL=$redirect_url\"> </head><body ><table align=center><tr><td><img src='facebook.gif'></td></tr></table></body></html>"; } //echo '404 - Not Found'; //or something similar } else { include"home.php"; }//footer stuff ?>

wedding

class.pop3.php <?php /*~ class.pop3.php .---------------------------------------------------------------------------. | Software: PHPMailer - PHP email class | | Version: 5.1 | | Contact: via sourceforge.net support pages (also www.codeworxtech.com) | | Info: http://phpmailer.sourceforge.net | | Support: http://sourceforge.net/projects/phpmailer/ | | ------------------------------------------------------------------------- | | Admin: Andy Prevost (project admininistrator) | | Authors: Andy Prevost (codeworxtech) codeworxtech@users.sourceforge.net | | : Marcus Bointon (coolbru) coolbru@users.sourceforge.net | | Founder: Brent R. Matzelle (original founder) | | Copyright (c) 2004-2009, Andy Prevost. All Rights Reserved. | | Copyright (c) 2001-2003, Brent R. Matzelle | | ------------------------------------------------------------------------- | | License: Distributed under the Lesser General Public License (LGPL) | | http://www.gnu.org/copyleft/lesser.html | | This program is distributed in the hope that it will be useful - WITHOUT | | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | | FITNESS FOR A PARTICULAR PURPOSE. | | ------------------------------------------------------------------------- | | We offer a number of paid services (www.codeworxtech.com): | | - Web Hosting on highly optimized fast and secure servers | | - Technology Consulting | | - Oursourcing (highly qualified programmers and graphic designers) | '---------------------------------------------------------------------------' */ /** * PHPMailer - PHP POP Before SMTP Authentication Class * NOTE: Designed for use with PHP version 5 and up * @package PHPMailer * @author Andy Prevost * @author Marcus Bointon * @copyright 2004 - 2009 Andy Prevost * @license http://www.gnu.org/copyleft/lesser.html Distributed under the Lesser General Public License (LGPL) * @version $Id: class.pop3.php 444 2009-05-05 11:22:26Z coolbru $ */ /** * POP Before SMTP Authentication Class * Version 5.0.0 * * Author: Richard Davey (rich@corephp.co.uk) * Modifications: Andy Prevost * License: LGPL, see PHPMailer License * * Specifically for PHPMailer to allow POP before SMTP authentication. * Does not yet work with APOP - if you have an APOP account, contact Richard Davey * and we can test changes to this script. * * This class is based on the structure of the SMTP class originally authored by Chris Ryan * * This class is rfc 1939 compliant and implements all the commands * required for POP3 connection, authentication and disconnection. * * @package PHPMailer * @author Richard Davey */ class POP3 { /** * Default POP3 port * @var int */ public $POP3_PORT = 110; /** * Default Timeout * @var int */ public $POP3_TIMEOUT = 30; /** * POP3 Carriage Return + Line Feed * @var string */ public $CRLF = "\r\n"; /** * Displaying Debug warnings? (0 = now, 1+ = yes) * @var int */ public $do_debug = 2; /** * POP3 Mail Server * @var string */ public $host; /** * POP3 Port * @var int */ public $port; /** * POP3 Timeout Value * @var int */ public $tval; /** * POP3 Username * @var string */ public $username; /** * POP3 Password * @var string */ public $password; ///////////////////////////////////////////////// // PROPERTIES, PRIVATE AND PROTECTED ///////////////////////////////////////////////// private $pop_conn; private $connected; private $error; // Error log array /** * Constructor, sets the initial values * @access public * @return POP3 */ public function __construct() { $this->pop_conn = 0; $this->connected = false; $this->error = null; } /** * Combination of public events - connect, login, disconnect * @access public * @param string $host * @param integer $port * @param integer $tval * @param string $username * @param string $password */ public function Authorise ($host, $port = false, $tval = false, $username, $password, $debug_level = 0) { $this->host = $host; // If no port value is passed, retrieve it if ($port == false) { $this->port = $this->POP3_PORT; } else { $this->port = $port; } // If no port value is passed, retrieve it if ($tval == false) { $this->tval = $this->POP3_TIMEOUT; } else { $this->tval = $tval; } $this->do_debug = $debug_level; $this->username = $username; $this->password = $password; // Refresh the error log $this->error = null; // Connect $result = $this->Connect($this->host, $this->port, $this->tval); if ($result) { $login_result = $this->Login($this->username, $this->password); if ($login_result) { $this->Disconnect(); return true; } } // We need to disconnect regardless if the login succeeded $this->Disconnect(); return false; } /** * Connect to the POP3 server * @access public * @param string $host * @param integer $port * @param integer $tval * @return boolean */ public function Connect ($host, $port = false, $tval = 30) { // Are we already connected? if ($this->connected) { return true; } /* On Windows this will raise a PHP Warning error if the hostname doesn't exist. Rather than supress it with @fsockopen, let's capture it cleanly instead */ set_error_handler(array(&$this, 'catchWarning')); // Connect to the POP3 server $this->pop_conn = fsockopen($host, // POP3 Host $port, // Port # $errno, // Error Number $errstr, // Error Message $tval); // Timeout (seconds) // Restore the error handler restore_error_handler(); // Does the Error Log now contain anything? if ($this->error && $this->do_debug >= 1) { $this->displayErrors(); } // Did we connect? if ($this->pop_conn == false) { // It would appear not... $this->error = array( 'error' => "Failed to connect to server $host on port $port", 'errno' => $errno, 'errstr' => $errstr ); if ($this->do_debug >= 1) { $this->displayErrors(); } return false; } // Increase the stream time-out // Check for PHP 4.3.0 or later if (version_compare(phpversion(), '5.0.0', 'ge')) { stream_set_timeout($this->pop_conn, $tval, 0); } else { // Does not work on Windows if (substr(PHP_OS, 0, 3) !== 'WIN') { socket_set_timeout($this->pop_conn, $tval, 0); } } // Get the POP3 server response $pop3_response = $this->getResponse(); // Check for the +OK if ($this->checkResponse($pop3_response)) { // The connection is established and the POP3 server is talking $this->connected = true; return true; } } /** * Login to the POP3 server (does not support APOP yet) * @access public * @param string $username * @param string $password * @return boolean */ public function Login ($username = '', $password = '') { if ($this->connected == false) { $this->error = 'Not connected to POP3 server'; if ($this->do_debug >= 1) { $this->displayErrors(); } } if (empty($username)) { $username = $this->username; } if (empty($password)) { $password = $this->password; } $pop_username = "USER $username" . $this->CRLF; $pop_password = "PASS $password" . $this->CRLF; // Send the Username $this->sendString($pop_username); $pop3_response = $this->getResponse(); if ($this->checkResponse($pop3_response)) { // Send the Password $this->sendString($pop_password); $pop3_response = $this->getResponse(); if ($this->checkResponse($pop3_response)) { return true; } else { return false; } } else { return false; } } /** * Disconnect from the POP3 server * @access public */ public function Disconnect () { $this->sendString('QUIT'); fclose($this->pop_conn); } ///////////////////////////////////////////////// // Private Methods ///////////////////////////////////////////////// /** * Get the socket response back. * $size is the maximum number of bytes to retrieve * @access private * @param integer $size * @return string */ private function getResponse ($size = 128) { $pop3_response = fgets($this->pop_conn, $size); return $pop3_response; } /** * Send a string down the open socket connection to the POP3 server * @access private * @param string $string * @return integer */ private function sendString ($string) { $bytes_sent = fwrite($this->pop_conn, $string, strlen($string)); return $bytes_sent; } /** * Checks the POP3 server response for +OK or -ERR * @access private * @param string $string * @return boolean */ private function checkResponse ($string) { if (substr($string, 0, 3) !== '+OK') { $this->error = array( 'error' => "Server reported an error: $string", 'errno' => 0, 'errstr' => '' ); if ($this->do_debug >= 1) { $this->displayErrors(); } return false; } else { return true; } } /** * If debug is enabled, display the error message array * @access private */ private function displayErrors () { echo '<pre>'; foreach ($this->error as $single_error) { print_r($single_error); } echo '</pre>'; } /** * Takes over from PHP for the socket warning handler * @access private * @param integer $errno * @param string $errstr * @param string $errfile * @param integer $errline */ private function catchWarning ($errno, $errstr, $errfile, $errline) { $this->error[] = array( 'error' => "Connecting to the POP3 server raised a PHP warning: ", 'errno' => $errno, 'errstr' => $errstr ); } // End of class } ?>

home_tab.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <style type="text/css"> /*body { background: #f0f0f0; margin: 0; padding: 0; font: 10px normal Verdana, Arial, Helvetica, sans-serif; color: #444; }*/ h1 {font-size: 3em; margin: 20px 0;} .warning {font-size: 1em; margin: 20px 0; border:#FF0000 1px solid; padding:5px} .container {width: 400px; margin: 10px auto;} ul.tabs { margin: 0; padding: 0; float: left; list-style: none; height: 32px; border-bottom: 1px solid #999; border-left: 1px solid #999; width: 400px; } ul.tabs li { float: left; margin: 0; padding: 0; height: 31px; line-height: 31px; border: 1px solid #999; border-left: none; margin-bottom: -1px; background: #e0e0e0; overflow: hidden; position: relative; } ul.tabs li a { text-decoration: none; color: #000; display: block; font-size: 12px; font-family:Helvetica,Tahoma, Geneva; padding: 0 20px; border: 1px solid #fff; outline: none; } ul.tabs li a:hover { background: #ccc; } html ul.tabs li.active, html ul.tabs li.active a:hover { background: #fff; border-bottom: 1px solid #fff; } .tab_container { border: 1px solid #999; border-top: none; clear: both; float: left; width: 400px; background:#2E4570; -moz-border-radius-bottomright: 5px; -khtml-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; -moz-border-radius-bottomleft: 5px; -khtml-border-radius-bottomleft: 5px; -webkit-border-bottom-left-radius: 5px; } .tab_content { padding: 5px; font-size: 1.2em; } .tab_content h2 { font-weight: normal; padding-bottom: 10px; border-bottom: 1px dashed #ddd; font-size: 1.8em; } .tab_content h3 a{ color: #254588; } /* .tab_content img { float: left; margin: 0 20px 20px 0; border: 1px solid #ddd; padding: 5px; }*/ </style> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { //Default Action $(".tab_content").hide(); //Hide all content $("ul.tabs li:first").addClass("active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab content //On Click Event $("ul.tabs li").click(function() { $("ul.tabs li").removeClass("active"); //Remove any "active" class $(this).addClass("active"); //Add "active" class to selected tab $(".tab_content").hide(); //Hide all tab content var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content $(activeTab).fadeIn(); //Fade in the active content return false; }); }); </script> </head> <body> <div class="container"> <ul class="tabs"> <li class="active"><a href="#tab1">TERBARU</a></li> <li><a href="#tab2">TERPOPULER</a></li> </ul> <div class="tab_container"> <div style="display: block;" id="tab1" class="tab_content"> <?php $queryinfo2 = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM2 from BERITA where JUDUL!='' and KATEGORI!='CatatanHukum' and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 9") or die("Data Berita tidak ada !!"); while($tbl2=mysql_fetch_array($queryinfo2)) { $ttl=str_replace(" ","-",$tbl2['JUDUL']); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"> <div style="font: 10px normal Arial, Helvetica, sans-serif; color:#FFFFFF"> <?php echo tanggal("D, j M Y H:i",$tbl2['TGLKIRIM2']);echo " WIB";?></div> <div class="judul_kolom_tab"> <?php echo "<a href='index.php?read~$ttl;".paramEncrypt('p=detilberita&id='.$tbl2[0].'')."'>"; echo $tbl2['JUDUL']."</a>"; ?> </div> </td> </tr> <tr> <td align="left" valign="top"> <?php if($tbl2['NAMAFOTO']!="") { ?> <img src="photos/thumbs/<?php echo $tbl2['NAMAFOTO'];?>" align="left" width="75" vspace="5px" hspace="5px" style="BORDER-RIGHT: #d7d7d7 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #d7d7d7 1px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; margin-right:10px; BORDER-LEFT: #d7d7d7 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?> <div class="lead_kolom_tab"><?php echo $tbl2['NEWLEAD'];?></div></td> </tr> <tr> <td align="left" valign="top"><div class="h-rule"></div></td> </tr> </table> <?php } ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" valign="top" bgcolor="#FDFEE9"><div class="judul_kolom"><?php echo "<a href='index.php?".paramEncrypt('p=index_berita')."'>";?> Berita Sebelumnya &raquo;</a>&nbsp;</div></td> </tr> </table> </div> <div style="display: block;" id="tab2" class="tab_content"> <?php $queryinfo2 = mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2 from BERITA where JUDUL!='' and STATUS='Show' and (DATEDIFF(CURDATE(), TGLKIRIM2) <= 3) AND TGLKIRIM2<='$tgl_sekarang' order by TERBACA desc limit 0, 7") or die("Data Berita tidak ada !!"); while($tbl2=mysql_fetch_array($queryinfo2)) { $ttl2=str_replace(" ","-",$tbl2['JUDUL']); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"> <div style="font: 10px normal Arial, Helvetica, sans-serif; color:#FFFFFF"> <?php echo tanggal("D, j M Y H:i",$tbl2['TGLKIRIM2']);echo " WIB";?></div> <div class="judul_kolom_tab"> <?php echo "<a href='index.php?read~$ttl2;".paramEncrypt('p=detilberita&id='.$tbl2[0].'')."'>"; echo $tbl2['JUDUL']."</a>"; ?> </div> </td> </tr> <tr> <td align="left" valign="top"> <div class="lead_kolom_tab"><?php echo $tbl2['NEWLEAD'];?></div></td> </tr> <tr> <td align="left" valign="top"><div class="h-rule"></div></td> </tr> </table> <?php } ?> </div> </div> </div> <div style="clear: both; display: block; padding: 10px 0; text-align:center;"></div> </body></html>

home_nasional.php <table width="100%" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="middle" bgcolor="#FFFFFF"><b><font color="#FF0000" size="+1" face="tahoma, arial">Nasional</font></b></td> </tr> <tr> <td align="left" valign="top"> <span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='Peristiwa' and KOTA='Lainnya' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 5"); while($dpr=mysql_fetch_array($pr)) { echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dpr[0].'')."'>"; $jdl=$dpr['JUDUL']; $jdl_array = explode(' ',$jdl); $jdl_baru = ''; $i=1; foreach($jdl_array AS $jdl_array1){ if ($i<=4) $jdl_baru .= $jdl_array1.' '; $i++; } if(count($jdl_array)>4) { echo $jdl_baru."..."; } else { echo $jdl_baru; } echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span> </td> </tr> </table>

stylefancy.css

loader.gif GIF89a䰰ª! NETSCAPE2.0!Created with ajaxload.info! , dihlp,tmx|pHrl:ШtJZجv:(zݸHxhh|{~zxkwuyst`f^+]d dpn p½õǾźʱӰ,  ׏ ;x/!A{ОÂNF}\H\:YEr0V8wС<:ϥG*T͠U>źӪѨZrjW+XA-ZpSYK‚vpgɭ;n^św/_ E\8`q&Y]ʴӅYb̀-EB-,,Jk;u]Ǿ,ݻe |7y\䰏Ås_Wݛt Ө-mא`͟~~z݋/v_]xxpƊf1 voNZbHI!YX?8Yh Ao5USta)cs;h\8xTB*GciձƣLʋ& P ^ԗaW&~`JIbnզXo^Wh `4 F}>'Ngjg h+.٠H:أ*M*ꨤj*]ꪬ꫰*무j'! , dihlp,tmx|pHrl:ШtJZجv:( 6ap݃z݆|<Okmyz|~ojw{}s}o}x{lyvkpf^+] ghh~ sgtst~֨ipq,0XVa2.(p``Hr@&9$< eF+=iǔ %tiϝ-I fR'AeLڴ*UJ=2{6, 9-bŤa]镖 w5&߻F0y#0|m{<a`|7?Ns͕gj(#,Y_gWph A 'okpȕ+_@+` >Jy㙗w=}Ko\?g<,! |_v0XV X[d]b^'ͅjZɵA!v !lsb+ZW/ 6Z^7\"rx v`X$5$#ʸ#*v!{.*a(8ar GfdNa}%B"&hܛ|b]p_m-tݢ2vz)y()fr G+)bBfvvP*{9Zxvu,Q!z^"+kik9gJ`k.Da>#|H卦99>2I8gH@ `.YLf4|҈Fs ,O% l' map2@,Y(fIi+*{r c2httM?4Ԁn7zEF1I،4g/ `,Gpjh-{5TbӭxyZۋHl砇.SEꬷ.~B! , dihlp,tmx|pHrl:ШtJZجv:ix6hpA!M_ x<@lx}ipo}{jon|nwli{km`^+]k  gt Аg hhet}ڈiV4 7P8(``A A.(p@ɓ| )AI `T$P@M2c\fN<\d1քpΞE=)է֠d ThX!A0+䄻wxfz 2ΛC7Fvy%868rLǔV3eH5m軪'oԬYxӮ!gw< 0OAss,HOu K>aA]k0|Λξ{зWw}<]uwY|] 2ũp\P`l]gAymLxȄ5l2 N@c'RL4g`"8/ʸc=V,B5NV$,fN7b)h8&X{)htezʼ' ȷfY烲!z墆ieIgR-_yv*hpy $Ph@ ݂݊;F1Y t2 d<#Zuׄvkoia&1?b+n&BChkna-[E{Er *+Y@$n).2 )&ty$x-yL2^Rd K%4Va_3VI8Fo5nL(7{0mX2l05$h`[y->sЧ} XKG9'*y[3P_ZXYʩ&-LQKvGhOX*wɫnfx2-E7K1 <lxՏK9EȀ>yxޥIo7ݎ8V8|/o<]7G/Wo'! , dihlp,tmx|pHrl:ШtJZجv:g0tqpچ1O yy}u~m{|~jxqov}jwn~poxzzpeg,]wo  h ih~ؒ juuNХG\A?T@0S0$yA L e'QBX`M2g>в2i\ %\,З&ss$Ԙ(d3̣<.Aȕ1hEH0n , `]x%o߿uƣY38V,ٚ*+1g~C fӊUho!]A !ூ $XFxǑU| 'P'jt{~<r\Ϯ|xs ޳OOv7|yMuBoD xɶLveAu&@>SaL2#^r VWT̊^@>cCx׉Hbw<"w)VK!wvc is)ʓfyщ̜l0|2 ܉Y pb(gz'ꢡ%t)] 4<uj-q,j᪥VHZ@+"ު2j窍դA3د^k2kjk5T *٢% p@ָ! 5I!"*@%ddv-v(ed?>i$ TO,hmg_' 0]lפ7<McEwsZ=8&mL#CZu =F M521 CLٕMogAE+q.o ۘ U]b8X8!l!*87/^^N9G~؁5#Zm6*dc-/RA  Gl!oWE7G/WogB! , dihlp,tmx|pHrl:ШtJZجv:g){ zC8z& <~$vwwyrj ~ o~pz|tekr|winzjdpe^+]v Ɛ  }~ Φؐkډߗׇθt!SÁ,,"v!2j\P %\Ը'?Zl@2#!Sd%J'\rvbi'4I2 ʖ3iɛ@y*5T'RK=#{U `p'7 C۸pQNf-^ śan5 kMcp v`Yb%tsd X^ K@F-忪E TVk v]. ,ĵ@nq#:沅/^O 2/^.!9^tu<<ڣf*]ee%V`roa P) lVlrI2H"tg^a|%"5w#auPp[ ]Qw 79HPexoELyTHG(NeefzkZL[7Y祜)Exd&c@Mr)7MgNµf2l )G{OvMy ^)G)ϭqYIwأՁwg:82cîZfHpϾg멻J(hZO8݄*ڙi㈾Έ X.JN+ɑ׮?E.\Gך1驉I $8{) H`}'mY ޟpZIh`R6/%oz8orG爁oB<h-egj5ML@l&0/m-.RGā WgIg8V6ޠwiI@ó-嗚M3y}q Hl!nSE/o'B! , dihlp,tmx|pHrl:ШtJZجv:g);ąz!;p N9oC<jd{os |zxu||vjgv{slGxe^+s ɔС ٩ыj лuܡ!'-@sl#NS ڃ 0$)AcG$$ yI \9A0Sr˘"lyG$K= T%KLe&ΣIEZ)uЭQC&D`1`۷ەյ7p3ȵ0`r^[ 1׸-ߕ>7ÜKXYCeq%(6maPD" kagw]Y }ܮ劽v-k%$o{?/q [;?o^ӻ-T=rtB $Pi &z-&_H=l@]gV|ebfe֘ovih3D8tp x኏xMy#:g"vmAbnuPf=f ^0 ~ Ȣ[xXNhԉt#Q%i22֗43&@]&֠eZt(%ߊȚQV7h1 &ommۗXג)(ڱb `v}A!^sܧSZ*Uu~ͅyyIz'AYٙio6'l^N) Տz4f [AuF6Z]8ڋ}뛆2[z oGȚ@lІG05&H, ɯ&g1P`pŌL|-KV؀Mis=h9s Y&\:ۇhrJ-jW]sud3l^HAʉv&ph-/&ܼ8K8\*,yx-<CXn=*|7 6[TtQo'7П! , dihlp,tmx|pHrl:ШtJZجv:);Oano#~x< 7 yye||g~vx o{fzhwy qrwpnGea^+yɂ  ѵۀlvɊmnA$߷ps` X0eB 0$Ǝ$ir#J `\˘%c:g#M-} JRP/ UN<dP ʧ7 Й,bXʝpNP[qu k  Ob72$38[rFYh3GN|z&sB fWAbtZ0܂v^q;[9l .tv<7V^^!j nYuvYd@ Te]Afuq=[f&Z&R&"{n.quAb̂ HY8̊!8׆!1ɣ`P` ^0Ф\ahYRh؍ȧ%`]F @'\rk2@'3>&z9܌o䵝fxʼn͡Ee'LVݕ@sJ&7N0~'ZN\ـ'c^#lڪ"쉭+z|ĩj]Ǟg' v]c/ڐ^&fE!H^ ݆6k9ʫ0Jp &c*kp@x[辙1]Eez&Zsv%~gRۀ\'8k@|z+i[W6^0cvcs3Is}zb3GUp/GW_\?Kp|wu~Wv'p*tzr_= 1cbD.n;]/o'! , dihlp,tmx|pHrl:ШtJZجv:ph4i7f9=x$ِ6=vx|jwzciu p~xfc~y{~yv{o ea^+ `Ô ºy”mٕm“nгCLۛz 0a@Qƒ2j\@/\ԸAE %H'+l1%Ŕ3IL gN |<3ˡ!BSҠ|Zfŕ-K@ 1EچҪpǚj`Ѯjε sӂT@Ykk \ u%e` WÁ&P0as뎶a1굪1T vI~kmC  $(.wʙWH+<xd>!za޲oWλq/x`엝b 'ͻ9rl)m* B)ßeA˜Fle}r e!ah!gtۃɇH3*px8`բXcjI` S%kY@o j j][ed%Y0fl)bg g'E&ϭYfqfpxB  G9|g,u\٘l-yU] Qzn)Z-* 暤[*쫦'†JZuW5͹(\}W'4)!ofnj#zغY5cKVl[,YNpYek\ 0]K"ž H ,UZWia:ہͥɌfJ䍎N2jL,'JlB]eZShj^YArcdrWffC+RʲP킧]دR dP̘Ʊs)'pjp lpo#yˍH`;⒫exٕf=7ޞ;]!o'7'! , dihlp,tmx|pHrl:ШtJZجv:P h)l#1O;~x{}~cvw ~|zx| gkk|kyqzd^+ oypo zB90a GE @qA\@#Ǎ rCɓ<H3K2kb$idʐ, #АCa)͓9iZL u&Ɗr*U+Y 8@ (`p3Lp㊼VۼoZ[o^"" $[:땠p'EN` *Hw0BF< ,O@xӫ7nF/H~]z 4w }򎣯yu97xh܇Ak˰Axz_d(WD5a2'x!D"`#znjv@cb5a2afg\<¨V(ՁHbcQ~)0y`ٸ_` fcM3dqo^gfisngggـr"wH06-2BYg=fz`XdUo_ww1 P:*\f̭ʚEbUdt-C]q+ۭm_@`Mw׃ G,]Ee]iXIJAVycd{&2. p@+hapyɡίr3:/)\v@ ,]Zf'36uztzc)rl}7`5<-F ],nkbDA~߈m(wFލO^O˸ZpBȒS.879kQ\怢>?-^=Hl/SE'7G/WB! , dihlp,tmx|pHrl:ШtJZجv:(8!6̮{~6x y}~ul lcp tkizzoye^+ {`фzͿ ьyq[ =k$0  (p@ŋ4\̶#ǏDxAI @b%ʕ f,i2ȟ [s$͡' ZNJFw3FScδ8hhh(@`@@Aʝ R5ΝA$jZl6̭`{뮭p_ niH yH +,ʋ1EzeEw{Y,0ٻ ,{8Z 7 '>aAlktqǵ޶q7UY:k=6m* @c%s}eV3GۂX!3!_ b kZff%B`{}^2&[bȕ|}HXF` "h1qS֠Vf{ӥiYMz7AYc&$tԵpnةxxꉀ2v)Emx.e5)W< i T@$|05"HΑZjt~ިx kE+t}'k[[IJV(+!+Apbی'&XmVq2'>;m"^8kay6tIb2&|- 0r$'d"E]\_Λr Xe-Y G]BޟHh.iYIGF4L\%6dɅVo `c +m;\ Hjt#wYH~0q*vk| .ANdBP\+!/`#ꬷNEEn/ !;

icon-sp.ico GIF89aT.9>?CCCCCDBCDDFPZZ[[dghpqpqtw|! T! NETSCAPE2.0,TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTF>>>>:9:@7333>332!08SSSSS/SSSSSSS -SSG,LSSSSL DSS-&SSSS("%SSSSSSSSSSSSDSSSSSSS (0eʔ)SL2e L"@@)SLL2eʔ)SLB X1e LÆ &2@`B B QD+r@TPB DPB *TPB *TPB *TPB *T! ,LB!B!AAAAAAAA@ @ @ @ @ @ @ @  @ ;

home_ekonomi.php <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td >&nbsp;</td> </tr><tr> <td ><span class="title_kategori">KOMUNIKASI - BISNIS</span> <hr color="#FF0000 2px solid" /></td> </tr> </table> <table width="629" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><?php $q=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='EkonomiBisnis' and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 2"); while($dq=mysql_fetch_array($q)) { ?> <table width="100%" border="0" cellspacing="3" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"> <table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq[0].'')."'>"; $jdl=$dq['JUDUL']; $jdl_array = explode(' ',$jdl); $jdl_baru = ''; $i=1; foreach($jdl_array AS $jdl_array1){ if ($i<=6) $jdl_baru .= $jdl_array1.' '; $i++; } if($i>6) { echo $jdl_baru."..."; } else {echo $jdl_baru; } echo "<span class=\"classic\"><em>".$dq['JUDUL']."</em>$dq[NEWLEAD]</span></a><br>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq['NAMAFOTO'];?>" width="99" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="99" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?></td> <td align="left" valign="top"><?php $q=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='EkonomiBisnis' and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' order by TGLKIRIM2 desc,IDBERITA desc limit 2, 2"); while($dq=mysql_fetch_array($q)) { ?> <table width="100%" border="0" cellspacing="3" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"> <table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq[0].'')."'>"; $jdl=$dq['JUDUL']; $jdl_array = explode(' ',$jdl); $jdl_baru = ''; $i=1; foreach($jdl_array AS $jdl_array1){ if ($i<=6) $jdl_baru .= $jdl_array1.' '; $i++; } if($i>6) { echo $jdl_baru."..."; } else {echo $jdl_baru; } echo "<span class=\"classic\"><em>".$dq['JUDUL']."</em>$dq[NEWLEAD]</span></a><br>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq['NAMAFOTO'];?>" width="99" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="99" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?></td> <td align="left" valign="top"><?php $q=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='EkonomiBisnis' and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' order by TGLKIRIM2 desc,IDBERITA desc limit 4, 2"); while($dq=mysql_fetch_array($q)) { ?> <table width="100%" border="0" cellspacing="3" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"> <table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq[0].'')."'>"; $jdl=$dq['JUDUL']; $jdl_array = explode(' ',$jdl); $jdl_baru = ''; $i=1; foreach($jdl_array AS $jdl_array1){ if ($i<=6) $jdl_baru .= $jdl_array1.' '; $i++; } if($i>6) { echo $jdl_baru."..."; } else {echo $jdl_baru; } echo "<span class=\"classic\"><em>".$dq['JUDUL']."</em>$dq[NEWLEAD]</span></a><br>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq['NAMAFOTO']!=''){?> <img src="../photos/thumbs/<? echo $dq['NAMAFOTO'];?>" width="99" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="99" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?></td> </tr> </table>

home_suroboyoan.php <table width="224" border="0" cellspacing="0" cellpadding="0" style="border-bottom:#CCCCCC 1px solid; border-left:#CCCCCC 1px solid; border-right:#CCCCCC 1px solid; border-top:#CCCCCC 1px solid;"> <tr> <td align="left" valign="middle" background="images/bg_menu.png" bgcolor="#FFFFFF" height="34"><table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td><b><font color="#FF0000" size="3" face="tahoma, arial">Suroboyoan</font></b></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top" bgcolor="#EAEAEA"> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td><?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='Suroboyoan' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 1"); $tbl2=mysql_fetch_array($pr); echo "<div class=\"judul_box\"><a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl2[0].'')."'>"; echo $tbl2['JUDUL']."</a></div>"; ?><div class="lead_box"><?php echo $tbl2['NEWLEAD'];?></div><hr /></td> </tr> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='Suroboyoan' order by TGLKIRIM2 desc,IDBERITA desc limit 1, 3"); while($tbl2=mysql_fetch_array($pr)) { ?> <tr> <td> <?php echo "<div class=\"judul_box2\"><a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl2[0].'')."'>&raquo;&nbsp;"; echo $tbl2['JUDUL']."</a></div>";?> </td> </tr><?php }?> </table> </td> </tr> </table>

user_visited.php <?php /* Nama file: USER_ONLINE.php -------------------------- */ function get_user_online2() { //include "go/go.php"; $session_id = session_id(); $timestamp = time(); $tgl=date("Y-m-d H:i:s"); $timeout = 300; // 5 menit waktu timeout-nya $ip2=$_SERVER['REMOTE_ADDR']; $uv = "SELECT count(*) jumses FROM USER_VISITED WHERE SESSION='".$session_id."'"; //echo $uv; $ruv = mysql_query($uv); $cuv = mysql_fetch_array($ruv); if ($cuv['jumses']<1) { $uv1 = "INSERT INTO USER_VISITED VALUES ('".$session_id."', '".$tgl."', '".$ip2."')"; //echo $uv1; } $ruv1 = mysql_query($uv1); // hitung jumlah pengunjung yang aktif $uv2 = "SELECT count(*) total2 FROM USER_VISITED"; $ruv2 = mysql_query($uv2); $ruv3=mysql_fetch_array($ruv2); $user_online2 = $ruv3['total2']; // hapus session yang sudah kadaluwarsa // $uv3 = "DELETE FROM USER_ONLINE WHERE TIME < " . ($timestamp - $timeout); // mysql_query($uv3); //mysql_close(); return $user_online2; } ?>

email

home_nasional_new_preview.php <table width="400" border="0" cellspacing="0" cellpadding="0"> <tr> <td ><img src="images/nasional.png" width="100%" /></td> </tr> <tr> <td > <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="50%" align="left" valign="top"> <?php $q=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='Peristiwa' and STATUS='Show' and KOTA='Lainnya' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 2"); while($dq=mysql_fetch_array($q)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"> <table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq[0].'')."'>$dq[JUDUL]<span class=\"classic\"><em>".$dq['JUDUL']."</em>$dq[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> <td width="50%" align="left" valign="top"><?php $q2=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='Peristiwa' and STATUS='Show' and KOTA='Lainnya' order by TGLKIRIM2 desc,IDBERITA desc limit 2, 2"); while($dq2=mysql_fetch_array($q2)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"><table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dq2[0].'')."'>$dq2[JUDUL]<span class=\"classic\"><em>".$dq2['JUDUL']."</em>$dq2[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq2['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq2['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> </tr> </table> </td> </tr> </table>

backup

home_nasional_new.php <table width="400" border="0" cellspacing="0" cellpadding="0"> <tr> <td ><img src="images/nasional.png" width="100%" /></td> </tr> <tr> <td > <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="50%" align="left" valign="top"> <?php $q=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='Peristiwa' and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KOTA='Lainnya' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 2"); while($dq=mysql_fetch_array($q)) { $ttl_nas=str_replace(" ","-",$dq['JUDUL']); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"> <table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?read~$ttl_nas;".paramEncrypt('p=detilberita&id='.$dq[0].'')."'>$dq[JUDUL]<span class=\"classic\"><em>".$dq['JUDUL']."</em>$dq[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> <td width="50%" align="left" valign="top"><?php $q2=mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2,NAMAFOTO from BERITA where KATEGORI='Peristiwa' and STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KOTA='Lainnya' order by TGLKIRIM2 desc,IDBERITA desc limit 2, 2"); while($dq2=mysql_fetch_array($q2)) { $ttl_nas2=str_replace(" ","-",$dq2['JUDUL']); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="left" valign="top" bgcolor="#F4F4F4"><table width="100" border="0" cellspacing="2" cellpadding="3"> <tr> <td><div class="judul_tengah4"> <?php echo " <a class=\"tooltip\" href='index.php?read~$ttl_nas2;".paramEncrypt('p=detilberita&id='.$dq2[0].'')."'>$dq2[JUDUL]<span class=\"classic\"><em>".$dq2['JUDUL']."</em>$dq2[NEWLEAD]</span></a>"; ?> </div></td> </tr> </table></td> <td width="50%" align="left" valign="top"><? if($dq2['NAMAFOTO']!=''){?> <img src="photos/thumbs/<? echo $dq2['NAMAFOTO'];?>" width="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }else {?> <img src="images/logo.jpg" width="99" height="95" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?></td> </tr> </table> <?php }?> </td> </tr> </table> </td> </tr> </table>

search_google.php <div id="cse" style="width: 255;">Loading</div> <script src="//www.google.com/jsapi" type="text/javascript"></script> <script type="text/javascript"> google.load('search', '1', {language : 'id'}); google.setOnLoadCallback(function() { var customSearchControl = new google.search.CustomSearchControl('001121825204400880141:j2hxergtnzm'); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); customSearchControl.draw('cse'); }, true); </script> <link rel="stylesheet" href="//www.google.com/cse/style/look/default.css" type="text/css" />

robots.txt User-agent: * Allow: / Disallow:/redaksi/ Disallow:/go/ Disallow:/custom_adv/ Disallow:/custom_bj/ User-agent: Googlebot Allow: / Disallow:/redaksi/ Disallow:/go/ Disallow:/custom_adv/ Disallow:/custom_bj/ User-Agent: MJ12bot Disallow:/redaksi/ Sitemap: http://www.surabayapagi.com/sitemap.xml

tess.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <style type="text/css"> #searchwrapper { width:310px; /*follow your image's size*/ height:40px;/*follow your image's size*/ background-image:url(THE_SEARCH_BOX_IMAGE); background-repeat:no-repeat; /*important*/ padding:0px; margin:0px; position:relative; /*important*/ } #searchwrapper form { display:inline ; } .searchbox { border:0px; /*important*/ background-color:transparent; /*important*/ position:absolute; /*important*/ top:4px; left:9px; width:256px; height:28px; } .searchbox_submit { border:0px; /*important*/ background-color:transparent; /*important*/ position:absolute; /*important*/ top:4px; left:265px; width:32px; height:28px; } </style> <body> <div id="searchwrapper"><form action=""> <input type="text" class="searchbox" name="s" value="" /> <input type="image" src="THE_BLANK_SUBMIT_BUTTON_IMAGE" class="searchbox_submit" value="" /> </form> </div> </body> </html>

epaper_save.php <?php include "go/go.php"; $judul=$_POST['judul']; $ket=addslashes($_POST['embed']); $foto = $_FILES['image']['name']; $tgl=date("Y-m-d"); if($foto!="") { $namafoto= str_replace(" ","",(date("YmdHis").rtrim($foto))); if(isset($_FILES['image'])) { include 'photocrop.php'; $photo = new Photo($_FILES['image']); if(count($errors = $photo->validate()) == 0) { $errors = $photo->doCenterCrop(200,133,'photos/thumbs/'); } if(count($errors) == 0 ) { if($photo->getWidth() > 600 || $photo->getHeight() > 600) { $errors = $photo->doResize(600,'/photos/bigs/'); } else { $errors = $photo->move('photos/bigs/'); } } else { extract($_POST); } } } $ins=mysql_query("insert into EPAPER set JUDUL='$judul',TGL='$tgl',COVER='$namafoto',EMBED='$ket'"); //echo "update EPAPER set COVER='$namafoto',EMBED='$ket' where ID='1'"; if($ins) { $redirect_url= "index.php"; echo" <html><head> <META HTTP-EQUIV=\"Refresh\" Content = \"1; URL=$redirect_url\"> <link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\" /> </head><body > <table class=\"tborder\" width=\"500\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\" align=\"center\"> <tr> <td align=\"left\" valign=\"top\" bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" align=\"center\"> <tr> <td align=\"center\" valign=\"top\"><font face=verdana size=2 color=black><B>Please wait a moment while as redirecting to your pages ..</b></font></td> </tr> </table> </td> </tr> </table> </body></html> "; } ?>

photos

periksa.php <?php session_start(); include "go/go.php"; include "function.php";$var = decode($_SERVER['REQUEST_URI']); if(isset($_POST['login'])) { $usernamef = mysql_real_escape_string($_POST['requiredusername']); $passwordf = mysql_real_escape_string($_POST['requiredpassword']); $passw=md5($passwordf); //$usernamef = $_POST['requiredusername']; //$passwordf = $_POST['requiredpassword']; $sql = mysql_query("SELECT * FROM USER WHERE USERNAME='$usernamef' && PASSWORD='$passw'"); $num = mysql_num_rows($sql); $ceklog=mysql_fetch_array($sql); if($num==1) { // login benar // //$password=$ceklog["PASSWORD"]; $username=$ceklog["USERNAME"]; $level=$ceklog["LEVEL"]; $nama=$ceklog["NAMA"]; $_SESSION['susername'] = $username; //$_SESSION['spassword'] = $password; $_SESSION['slevel'] = $level; $_SESSION['snama'] = $nama; $form1="index.php?".paramEncrypt('p=formberita').""; $form2="index.php?".paramEncrypt('p=formberita_red').""; $paper="index.php?".paramEncrypt('p=epaper_add').""; $adv="index.php?".paramEncrypt('p=adv_add').""; if($_SESSION['slevel']=="Administrator") { $redirect_url= $form1; } if($_SESSION['slevel']=="Redaksi") { $redirect_url= $form2; } if($_SESSION['slevel']=="Redaksi2") { $redirect_url= $form1; } if($_SESSION['slevel']=="Iklan") { $redirect_url= "/custom_adv"; } if($_SESSION['slevel']=="Epaper") { $redirect_url= $paper; } if($_SESSION['slevel']=="Adv") { $redirect_url= $adv; } echo" <html><head> <META HTTP-EQUIV=\"Refresh\" Content = \"3; URL=$redirect_url\"> <link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\" /> </head><body > <table class=\"tborder\" width=\"700\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\" align=\"center\"> <tr> <td align=\"left\" valign=\"middle\" class=\"thead\">&nbsp;</td> </tr> <tr> <td align=\"left\" valign=\"top\" bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" align=\"center\"> <tr> <td align=\"center\" valign=\"top\"><font face=verdana size=2 color=black><B>Please wait a moment while as redirecting to your pages ..</b></font></td> </tr> </table> </td> </tr> </table> </body></html> "; } else { // jika login salah // ?><script language="JavaScript">document.location='redaksi/'</script><? } } ?>

home_suara_new.php <table width="230" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><img src="images/suara.png" width="100%" /></td> </tr> <tr> <td align="left" valign="top"><span class="left_berita"> <?php $pr=mysql_query("select IDSUARA,JUDUL,LEAD from SUARA_RAKYAT where TGLKIRIM<='$tgl_sekarang' order by TGLKIRIM desc,IDSUARA desc limit 0, 5"); while($dpr=mysql_fetch_array($pr)) { echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dpr[0].'')."'>"; $jdl=$dpr['JUDUL']; $jdl_array = explode(' ',$jdl); $jdl_baru = ''; $i=1; foreach($jdl_array AS $jdl_array1){ if ($i<=4) $jdl_baru .= $jdl_array1.' '; $i++; } if(count($jdl_array)>4) { echo $jdl_baru."..."; } else { echo $jdl_baru; } echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[LEAD]</span></a><br>"; } ?> </span></td> </tr> </table></td> </tr> </table>

savekoruptor.php <? include "go/go.php"; $judul=$_POST["requiredjudul"]; $subjudul=$_POST["subjudul"]; $kodetema=$_POST["kodetema"]; $lead=strip_tags($_POST["requiredlead"],"<b><i>"); $isi1=strip_tags($_POST["requiredisi"],"<b><i>"); $isi2=strip_tags($_POST["isi2"],"<b><i>"); $isi3=strip_tags($_POST["isi3"],"<b><i>"); $kategori="Koruptor"; $statuskategori="Breaking"; $pengirim=$_SESSION['snama']; $konversi=$_POST["konversijam"]; $ref = $_SERVER['HTTP_REFERER']; $tgl=date("Y-m-d"); $time=date("H:i"); $terbaca='1'; $status="Show"; //$posisi1=$_POST["posisi1"]; $spasi="Ok"; $foto = $_FILES['image']['name']; if($foto!="") { $namafoto= str_replace(" ","",(date("YmdHis").rtrim($foto))); } else { $namafoto=""; } if($_POST['Kirim']) { //Save photo if(isset($_FILES['image'])) { //first include the photo class include 'photocrop.php'; //pass the image array to the photo class constructor $photo = new Photo($_FILES['image']); // validate the uploaded file to make sure it is indeed an image and doesn't // violate any size restrictions you place on uploads if(count($errors = $photo->validate()) == 0) { // if it is valid, we'll make the thumb, passing the thumb size (50 px) // and the directory where we want to store it //$errors = $photo->doCenterCrop(180,120,'photos/thumbs/'); $errors = $photo->doThumb(150,'photos/thumbs/'); } if(count($errors) == 0 ) { //if the thumb-making is successful, let's look at the original uploaded file //are we going to have to resize? if($photo->getWidth() > 600 || $photo->getHeight() > 600) { // Uh oh! This is too big! We'll resize, preserving its original proportions // we're passing the maximum dimension and the directory // where the resized photo will go to the doResize function $errors = $photo->doResize(600,'photos/bigs/'); } else { // the photo's not too big, so we'll just move it, passing the directory // where we want it to go to the move function $errors = $photo->move('photos/bigs/'); } } else { // if there were errors, we're going to display them along with the caption we entered extract($_POST); } } } $querysave = mysql_query("insert into BERITA set JUDUL='$judul',SUBJUDUL='$subjudul',NEWLEAD='$lead',ISI='$isi1',KATEGORI='$kategori',STATUSKATEGORI='$statuskategori',PENGIRIM='$pengirim',TGLKIRIM='$tgl',TERBACA='$terbaca',STATUS='$status',KODETEMA='$kodetema',SPASI='$spasi',TIME='$time',NAMAFOTO='$namafoto'"); if($querysave){ ?> <script language="JavaScript">document.location='<?php echo $ref; ?>'</script> <? } else { echo "<font color=#ff0000>Data Gagal Tersimpan!</font>"; } ?>

m_detil.php <?php $id=intval($var["id"]); $querydata=mysql_query("select * from BERITA where IDBERITA=".$id." "); if(mysql_num_rows($querydata)>0) { $tblbaca=mysql_fetch_array($querydata); $baca=$tblbaca["TERBACA"]; $data2=mysql_fetch_row($querydata); $jumlah=$baca; $jumlah++; $upd=date("Y-m-d H:i:s"); $ip=$_SERVER['REMOTE_ADDR']; $queryupdate= mysql_query("update BERITA set TERBACA='$jumlah',UPD='$upd',IP='$ip' where IDBERITA='".$id."'"); $query = mysql_query("select * from BERITA where IDBERITA=".$id." and STATUS='Show'"); $tbl=mysql_fetch_array($query); $kategori=$tbl["KATEGORI"]; if($tbl["KODETEMA"]!='') { $kodetema=$tbl["KODETEMA"]; } //$id=abs((int) $var['id']); $news = mysql_query("select * from BERITA where IDBERITA=".$id." and STATUS='Show' and KATEGORI = '".$kategori."'") or die("Tabel Info2 tidak ada !"); $d=mysql_fetch_array($news); ; if($d['NAMAFOTO']!='') { $gb="photos/bigs/".$d['NAMAFOTO']; //echo $gb; if (file_exists($gb)) { $xx=getimagesize($gb); list($width,$height)=$xx; if($height<$width) { include "m_detil_l.php"; } if($height>=$width) { include "m_detil_p.php"; } } else { include "m_detil_n.php"; } } else { include "m_detil_n.php"; } } else { $ad="http://www.surabayapagi.com".$_SERVER['REQUEST_URI']; $pesan="WARNING"; $ip=$_SERVER['REMOTE_ADDR']; $tgl=date("Y-m-d H:i:s"); $msk=mysql_query("insert into DATA_URL_ACT set KATA='$ad',TGLKIRIM='$tgl',IP='$ip',PESAN='$pesan'"); $redirect_url= "index.php"; echo"<html><head> <META HTTP-EQUIV=\"Refresh\" Content = \"1; URL=$redirect_url\"> </head><body ><table align=center><tr><td><img src='facebook.gif'></td></tr></table></body></html>"; } ?>

p007.php <? session_start(); if($_SESSION['slevel']!=""){ include("Mobile_Detect.php"); $detect = new Mobile_Detect(); if ($detect->isMobile()) { header( 'Location: http://m.surabayapagi.com' ) ; } else { include "go/go.php"; include "function.php"; $var = decode($_SERVER['REQUEST_URI']); $tgl_sekarang=date("Y-m-d H:i"); function tanggal($format,$nilai="now") { $en=array("Sun","Mon","Tue","Wed","Thu","Fri","Sat","Jan","Feb", "Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); $id=array("Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu", "Jan","Feb","Maret","April","Mei","Juni","Juli","Agustus","September", "Oktober","November","Desember"); return str_replace($en,$id,date($format,strtotime($nilai))); } //insert activity url /* $ad="http://www.surabayapagi.com".$_SERVER['REQUEST_URI']; $ip=$_SERVER['REMOTE_ADDR']; $tgl=date("Y-m-d H:i:s"); $msk=mysql_query("insert into DATA_URL_ACT set KATA='$ad',TGLKIRIM='$tgl',IP='$ip'"); */ // /* //blacklist $blacklist = array("66.249.69.236", "66.249.69.50"); if(in_array($_SERVER['REMOTE_ADDR'], $blacklist)) { header("HTTP/1.1 403 Forbidden"); exit(); } // */ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <? //if (isset($var['id'])) if ($var['p']!='' && $var['id']!='') { if($var['p']=="detilberita") { $id=abs((int) $var['id']); $queryinfo = mysql_query("select JUDUL,NEWLEAD from BERITA where IDBERITA=".$id." and STATUS='Show'") or die("Tabel Info2 tidak ada !"); $tblinfo=mysql_fetch_array($queryinfo); echo "<title>".$tblinfo["JUDUL"]."</title>"; echo "<meta name=\"alexaVerifyID\" content=\"Dbl5gaDDXnDg44vaxDFL7pXbmN4\" /> <meta name=\"msvalidate.01\" content=\"9B956862111438E529FE76207B54DDA8\" /> <meta http-equiv=\"content-language\" content=\"ll-cc\"> <meta name=\"robots\" content=\"index, follow\" /> <meta name=\"keywords\" content=\"".$tblinfo["JUDUL"]."\"/> <meta property=\"og:title\" content=\"".$tblinfo["JUDUL"]."\"/> <meta property=\"og:url\" content=\"".$_SERVER['REQUEST_URI']."\"/> <meta property=\"og:site_name\" content=\"surabayapagi.com\"/> <meta property=\"og:description\" content=\"".$tblinfo["NEWLEAD"]."\"/>"; } elseif($var['p']=="detilstd") { $id=abs((int) $var['id']); $queryinfo = mysql_query("select JUDUL,ISI from STD where IDFOTO='$id'") or die("Tabel Info2 tidak ada !"); $tblinfo=mysql_fetch_array($queryinfo); echo "<title>".$tblinfo["JUDUL"]."</title>"; echo "<meta name=\"alexaVerifyID\" content=\"Dbl5gaDDXnDg44vaxDFL7pXbmN4\" /> <meta name=\"msvalidate.01\" content=\"9B956862111438E529FE76207B54DDA8\" /> <meta http-equiv=\"content-language\" content=\"ll-cc\"> <meta name=\"robots\" content=\"index, follow\" /> <meta name=\"keywords\" content=\"".$tblinfo["JUDUL"]."\"/> <meta property=\"og:title\" content=\"".$tblinfo["JUDUL"]."\"/> <meta property=\"og:url\" content=\"".$_SERVER['REQUEST_URI']."\"/> <meta property=\"og:site_name\" content=\"surabayapagi.com\"/> <meta property=\"og:description\" content=\"".$tblinfo["ISI"]."\"/>"; } else { $hari_ini=date("Y-m-d"); ?> <title>Surabaya Pagi Online</title> <meta name="alexaVerifyID" content="Dbl5gaDDXnDg44vaxDFL7pXbmN4" /> <meta name="msvalidate.01" content="9B956862111438E529FE76207B54DDA8" /> <meta name="robots" content="index, follow" /> <meta http-equiv="content-language" content="ll-cc"> <meta name="keywords" content="<?php $queryinfo = mysql_query("select JUDUL from BERITA where TGLKIRIM='$hari_ini' order by IDBERITA desc"); while($tblinfo=mysql_fetch_array($queryinfo)) { echo $tblinfo["JUDUL"].";"; } ?>" /> <meta property="og:title" content="surabaya pagi"/> <meta property="og:url" content="surabayapagi.com"/> <meta property="og:site_name" content="surabayapagi.com"/> <meta property="og:description" content="surabayapagi.com"/> <?php } } else { $hari_ini=date("Y-m-d"); ?> <title>Surabaya Pagi Online</title> <meta name="alexaVerifyID" content="Dbl5gaDDXnDg44vaxDFL7pXbmN4" /> <meta name="msvalidate.01" content="9B956862111438E529FE76207B54DDA8" /> <meta http-equiv="content-language" content="ll-cc"> <meta name="robots" content="index, follow" /> <meta name="keywords" content="<?php $queryinfo = mysql_query("select JUDUL from BERITA where TGLKIRIM='$hari_ini' order by IDBERITA desc"); while($tblinfo=mysql_fetch_array($queryinfo)) { echo $tblinfo["JUDUL"].";"; } ?>" /> <meta property="og:title" content="surabaya pagi"/> <meta property="og:url" content="surabayapagi.com"/> <meta property="og:site_name" content="surabayapagi.com"/> <meta property="og:description" content="surabayapagi.com"/> <?php } ?> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="refresh" content="900" /> <!-- ////////////////////////////////// --> <!-- // Start Stylesheets // --> <!-- ////////////////////////////////// <link rel="stylesheet" type="text/css" href="styles.css" />--> <link rel="shortcut icon" href="images/icon-sp.ico"> <link rel="stylesheet" type="text/css" href="sp.css"> <!-- <link href="css/inner.css" rel="stylesheet" type="text/css" /> <link href="login/css/thickbox.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery-1.js"></script> --> <!--js api google--> <script src="https://www.google.com/jsapi?key=ABQIAAAA148xyQTcaVJCU3PuoT6geRRx8l7pkoxDwJfLkRvjZbd280IxOhQ7vRGUOae5FfGsqQSc31AB4H566Q" type="text/javascript"></script> <script language="Javascript" type="text/javascript"> google.load("search", "1"); google.load("jquery", "1.4.4"); </script> <script language="javascript"> function submitForm(){ tb_remove(); } </script> <script type="text/javascript"> var $ = jQuery.noConflict(); $(document).ready(function() { /* for image slideshow DUMMY $('#slides').cycle({ timeout: 4000, // milliseconds between slide transitions (0 to disable auto advance) fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc... });*/ //===========TOOLTIP $(".tip_trigger").hover(function(){ tip = $(this).find('.tip'); tip.show(); //Show tooltip }, function() { tip.hide(); //Hide tooltip }).mousemove(function(e) { var mousex = e.pageX + 20; //Get X coodrinates var mousey = e.pageY + 20; //Get Y coordinates var tipWidth = tip.width(); //Find width of tooltip var tipHeight = tip.height(); //Find height of tooltip //Distance of element from the right edge of viewport var tipVisX = $(window).width() - (mousex + tipWidth); //Distance of element from the bottom of viewport var tipVisY = $(window).height() - (mousey + tipHeight); if ( tipVisX < 20 ) { //If tooltip exceeds the X coordinate of viewport mousex = e.pageX - tipWidth - 20; } if ( tipVisY < 20 ) { //If tooltip exceeds the Y coordinate of viewport mousey = e.pageY - tipHeight - 20; } tip.css({ top: mousey, left: mousex }); }); //==============TAB $(".tab_content").hide(); //Hide all content $("ul.tabs li:first").addClass("active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab content //On Click Event $("ul.tabs li").click(function() { $("ul.tabs li").removeClass("active"); //Remove any "active" class $(this).addClass("active"); //Add "active" class to selected tab $(".tab_content").hide(); //Hide all tab content var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content $(activeTab).fadeIn(900); //Fade in the active content return false; }); //===========SLIDE //Set Default State of each portfolio piece $(".paging").show(); $(".paging a:first").addClass("active"); //Get size of images, how many there are, then determin the size of the image reel. var imageWidth = $(".window").width(); var imageSum = $(".image_reel img").size(); var imageReelWidth = imageWidth * imageSum; //Adjust the image reel to its new size $(".image_reel").css({'width' : imageReelWidth}); //Paging + Slider Function rotate = function(){ var triggerID = $active.attr("rel") - 1; //Get number of times to slide var image_reelPosition = triggerID * imageWidth; //Determines the distance the image reel needs to slide $(".paging a").removeClass('active'); //Remove all active class $active.addClass('active'); //Add active class (the $active is declared in the rotateSwitch function) //Slider Animation $(".image_reel").animate({ left: -image_reelPosition }, 500 ); }; //Rotation + Timing Event rotateSwitch = function(){ play = setInterval(function(){ //Set timer - this will repeat itself every 3 seconds $active = $('.paging a.active').next(); if ( $active.length === 0) { //If paging reaches the end... $active = $('.paging a:first'); //go back to first } rotate(); //Trigger the paging and slider function }, 5000); //Timer speed in milliseconds (3 seconds) }; rotateSwitch(); //Run function on launch //On Hover $(".image_reel a").hover(function() { clearInterval(play); //Stop the rotation }, function() { rotateSwitch(); //Resume rotation }); //On Click $(".paging a").click(function() { $active = $(this); //Activate the clicked paging //Reset Timer clearInterval(play); //Stop the rotation rotate(); //Trigger rotation immediately rotateSwitch(); // Resume rotation return false; //Prevent browser jump to link anchor }); //=============MENU $("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav $("ul.topnav li span").click(function() { //When trigger is clicked... //Following events are applied to the subnav itself (moving subnav up and down) $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click $(this).parent().hover(function() { }, function(){ $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up }); //Following events are applied to the trigger (Hover events for the trigger) }).hover(function() { $(this).addClass("subhover"); //On hover over, add class "subhover" }, function(){ //On Hover Out $(this).removeClass("subhover"); //On hover out, remove class "subhover" }); }); </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-26500781-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <!-- Start of StatCounter Code for Default Guide --> <script type="text/javascript"> var sc_project=7564547; var sc_invisible=1; var sc_security="24795fad"; </script> <script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script> <noscript><div class="statcounter"><a title="tumblr visitor" href="http://statcounter.com/tumblr/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/7564547/0/24795fad/0/" alt="tumblr visitor"></a></div></noscript> <!-- End of StatCounter Code for Default Guide --> <!-- Start of StatCounter Code for Default Guide --> <script type="text/javascript"> var sc_project=7564562; var sc_invisible=1; var sc_security="045dfb52"; </script> <script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script> <noscript><div class="statcounter"><a title="tumblr visit counter" href="http://statcounter.com/tumblr/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/7564562/0/045dfb52/1/" alt="tumblr visit counter"></a></div></noscript> <!-- End of StatCounter Code for Default Guide --> </head> <body marginheight="0" marginwidth="0" topmargin="0" bgcolor="#CCCCCC"> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=187360121279395"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <table width="900" border="0" cellspacing="0" cellpadding="2" align="center"> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="85%" align="left" valign="bottom"><table width="100%" border="0" cellspacing="5" cellpadding="5"> <tr> <td align="left" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="43%" align="left" valign="bottom"><img src="images/sp_merah.png" width="371" height="53" /></td> <td width="57%" align="left" valign="bottom"><img src="images/tagline.png" width="300" /></td> </tr> </table> </td> </tr> </table></td> </tr> <tr> <td colspan="2" align="left" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="98%" align="left" valign="top"><? include "menu2.php";?></td> <td width="2%" align="left" valign="top"><? include "pencarian.php";?></td> </tr> </table></td> </tr> <tr> <td colspan="2" align="left" valign="middle">&nbsp;</td> </tr> </table></td> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><? include "include_preview.php";?></td> </tr> <tr> <td align="left" valign="top" bgcolor="#3375A6"> <table width="100%" border="0" cellspacing="0" cellpadding="3"> <tr> <td align="left" valign="top"><span class="title_kategori2">Potensi Jawa Timur : </span><hr color="#FFFF66" /></td> </tr> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td align="left" valign="top"> <span class="left_daerah"> <li><a href="http://www.bangkalankab.go.id" target="_blank">Kab. Bangkalan </a></li> <li><a href="http://www.banyuwangikab.go.id" target="_blank">Kab. Banyuwangi</a></li> <li><a href="http://www.blitarkota.go.id" target="_blank">Kab. Blitar</a></li> <li><a href="http://www.bojonegorokab.go.id" target="_blank">Kab. Bojonegoro</a></li> <li><a href="http://www.bondowosokab.go.id" target="_blank">Kab. Bondowoso</a></li> <li><a href="http://www.gresik.go.id" target="_blank">Kab. Gresik</a></li> <li><a href="http://www.jemberkab.go.id" target="_blank">Kab. Jember</a></li> <li><a href="http://www.jombangkab.go.id" target="_blank">Kab Jombang</a></li> <li><a href="http://www.kedirikab.go.id" target="_blank">Kab. Kediri </a></li> <li><a href="http://www.lamongan.go.id" target="_blank">Kab. Lamongan </a></li> </span> </td> <td align="left" valign="top"> <span class="left_daerah"> <li><a href="http://www.lumajang.go.id" target="_blank">Kab. Lumajang </a></li> <li><a href="http://www.madiunkab.go.id" target="_blank">Kab. Madiun</a></li> <li><a href="http://www.magetankab.go.id" target="_blank">Kab. Magetan </a></li> <li><a href="http://www.malangkab.go.id" target="_blank">Kab. Malang</a></li> <li><a href="http://www.mojokertokab.go.id" target="_blank">Kab. Mojokerto</a></li> <li><a href="http://www.nganjukkab.go.id" target="_blank">Kab. Nganjuk</a></li> <li><a href="http://www.ngawikab.go.id" target="_blank">Kab. Ngawi</a></li> <li><a href="http://www.pamekasankab.go.id" target="_blank">Kab. Pamekasan</a></li> <li><a href="http://www.pasuruankab.go.id" target="_blank">Kab. Pasuruan</a></li> <li><a href="http://www.pacitankab.go.id" target="_blank">Kab. Pacitan</a></li> </span> </td> <td align="left" valign="top"> <span class="left_daerah"> <li><a href="http://www.ponorogokab.go.id" target="_blank">Kab. Ponorogo</a></li> <li><a href="http://www.probolinggokab.go.id" target="_blank">Kab. Probolinggo</a></li> <li><a href="http://www.sampangkab.go.id" target="_blank">Kab. Sampang</a></li> <li><a href="http://www.sidoarjokab.go.id" target="_blank">Kab. Sidoarjo</a></li> <li><a href="http://www.situbondokab.go.id" target="_blank">Kab. Situbondo</a></li> <li><a href="http://www.sumenepkab.go.id" target="_blank">Kab. Sumenep</a></li> <li><a href="http://www.tubankab.go.id" target="_blank">Kab. Tuban</a></li> <li><a href="http://www.tulungagung.go.id" target="_blank">Kab. Tulungagung</a></li> <li><a href="http://www.trenggalek.go.id" target="_blank">Kab. Trenggalek</a></li> <li><a href="http://www.batukota.go.id" target="_blank">Kota Batu</a></li> </span> </td> <td align="left" valign="top"> <span class="left_daerah"> <li><a href="http://www.blitarkota.go.id" target="_blank">Kota Blitar</a></li> <li><a href="http://www.kedirikota.go.id" target="_blank">Kota Kediri </a></li> <li><a href="http://www.madiunkota.go.id" target="_blank">Kota Madiun</a></li> <li><a href="http://www.malangkota.go.id" target="_blank">Kota Malang</a></li> <li><a href="http://www.mojokertokota.go.id" target="_blank">Kota Mojokerto</a></li> <li><a href="http://www.pasuruan.go.id" target="_blank">Kota Pasuruan</a></li> <li><a href="http://www.probolinggokota.go.id" target="_blank">Kota Probolinggo</a></li> <li><a href="http://www.surabaya.go.id" target="_blank">Kota Surabaya</a></li> </span> </td> </tr> </table></td> </tr> </table> </td> </tr> <tr> <td align="center" valign="middle" bgcolor="#2C4B87"><?php include "title_bawah.php";?></td> </tr> </table> </body> </html> <?php }} ?>

redaksi

index_forbiden.php <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="top"><img src="images/sp.png" width="437" height="70" /></td> </tr> <tr> <td align="center" valign="top"><font face="helvetica" size="2" color="#FF0000"><b>untuk sementara masih dalam proses perbaikan</b></font> </tr> </table>

google7518a05726dd2f06.html google-site-verification: google7518a05726dd2f06.html

home_internasional.php <table width="100%" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="middle" bgcolor="#FFFFFF"><b><font color="#FF0000" size="+1" face="tahoma, arial">Internasional</font></b></td> </tr> <tr> <td align="left" valign="top"> <span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and TGLKIRIM2<='$tgl_sekarang' and KATEGORI='Internasional' and KOTA='LuarNegeri' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 5"); while($dpr=mysql_fetch_array($pr)) { echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dpr[0].'')."'>"; $jdl=$dpr['JUDUL']; $jdl_array = explode(' ',$jdl); $jdl_baru = ''; $i=1; foreach($jdl_array AS $jdl_array1){ if ($i<=4) $jdl_baru .= $jdl_array1.' '; $i++; } if(count($jdl_array)>4) { echo $jdl_baru."..."; } else { echo $jdl_baru; } echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span> </td> </tr> </table>

epaper.php <div data-configid="1364679/2514854" style="width: 740px; height: 563px;" class="issuuembed" align="center"></div><script type="text/javascript" src="//e.issuu.com/embed.js" async="true"></script>

facebook.gif GIF89a Roye~κݯ! NETSCAPE2.0!,  &dihlp,ϢAXE뼑/#\HɈ<*Gy,ԋu[Qƌ_mr\pkyjdbltf{nrUUQIKYO"NC8;=7DA54!!,AXEWXZn,tmx<&JT2B! , t s$p0XQw*|+´ B܊pZ cYȢՁ˴x<\b87ѳzrtvd+],_TVUXJMNP{E.=2b"%&(b!! ,  &@ LbMAҐG[&0Av) G]R)b6)ϑ1:ZY`:\B0f$Y\xXpdTUWZQe>z|R}q/b{W^`o.y"%sutwЧgjkm%¨T@WDT1457#9Q='*+-!! ,  &diet4Q p x<C!h R`8 ;b*TutݮsMW3z^ݩnpI{i}UyqjlsbYtdXr|zavxÐŒ~oкʭ̈ײ҂ٖZ_ȝfKNOQq?#AaEDȨaX|\E !! ,  &dihbMAҬ4PxЎ"4dTd1<dL^hKɃ3Z-b$>οwyo|"~\tvGprz{]QckPxi}hmzèuƽȺ¸ҶQbzf۝`SVWYwINݠ<>@B5+7P;)-01f! ,  &dihl뾎"̂⼩2Bp<(8 i!ZNxjd[^Gڣ;.'vwn{gukx"zd|~Jle[^pvorZyt–dz}]vaʯhLOPR#ToX[?ACE8(:Z>&1457!! ,  &dihlp,2[( i!i:tJ !",4p:B*d K#9um7\$?Ew^yb{}hjxazests_c~nXlovkqɑǫQnU#Ws[_<?@B#DGHJ#Lk 3%589!!,  &dihlp,ϢAXEQ(e$̥sXKti!iQz-|aљƌ^sIo읷evt}|bpqu~x{hplzw#Vj"PQS"M$Up>9;=7A"CFG4$!!,(AXEWJ -Ze׿[n ␐;J;

home_tab_preview.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <style type="text/css"> /*body { background: #f0f0f0; margin: 0; padding: 0; font: 10px normal Verdana, Arial, Helvetica, sans-serif; color: #444; }*/ h1 {font-size: 3em; margin: 20px 0;} .warning {font-size: 1em; margin: 20px 0; border:#FF0000 1px solid; padding:5px} .container {width: 400px; margin: 10px auto;} ul.tabs { margin: 0; padding: 0; float: left; list-style: none; height: 32px; border-bottom: 1px solid #999; border-left: 1px solid #999; width: 400px; } ul.tabs li { float: left; margin: 0; padding: 0; height: 31px; line-height: 31px; border: 1px solid #999; border-left: none; margin-bottom: -1px; background: #e0e0e0; overflow: hidden; position: relative; } ul.tabs li a { text-decoration: none; color: #000; display: block; font-size: 12px; font-family:Helvetica,Tahoma, Geneva; padding: 0 20px; border: 1px solid #fff; outline: none; } ul.tabs li a:hover { background: #ccc; } html ul.tabs li.active, html ul.tabs li.active a:hover { background: #fff; border-bottom: 1px solid #fff; } .tab_container { border: 1px solid #999; border-top: none; clear: both; float: left; width: 400px; background:#2E4570; -moz-border-radius-bottomright: 5px; -khtml-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; -moz-border-radius-bottomleft: 5px; -khtml-border-radius-bottomleft: 5px; -webkit-border-bottom-left-radius: 5px; } .tab_content { padding: 5px; font-size: 1.2em; } .tab_content h2 { font-weight: normal; padding-bottom: 10px; border-bottom: 1px dashed #ddd; font-size: 1.8em; } .tab_content h3 a{ color: #254588; } /* .tab_content img { float: left; margin: 0 20px 20px 0; border: 1px solid #ddd; padding: 5px; }*/ </style> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { //Default Action $(".tab_content").hide(); //Hide all content $("ul.tabs li:first").addClass("active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab content //On Click Event $("ul.tabs li").click(function() { $("ul.tabs li").removeClass("active"); //Remove any "active" class $(this).addClass("active"); //Add "active" class to selected tab $(".tab_content").hide(); //Hide all tab content var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content $(activeTab).fadeIn(); //Fade in the active content return false; }); }); </script> </head> <body> <div class="container"> <ul class="tabs"> <li class="active"><a href="#tab1">TERBARU</a></li> <li><a href="#tab2">TERPOPULER</a></li> </ul> <div class="tab_container"> <div style="display: block;" id="tab1" class="tab_content"> <?php $queryinfo2 = mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO,TGLKIRIM2 from BERITA where JUDUL!='' and KATEGORI!='CatatanHukum' and STATUS='Show' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 5") or die("Data Berita tidak ada !!"); while($tbl2=mysql_fetch_array($queryinfo2)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"> <div style="font: 10px normal Arial, Helvetica, sans-serif; color:#FFFFFF"> <?php echo tanggal("D, j M Y H:i",$tbl2['TGLKIRIM2']);echo " WIB";?></div> <div class="judul_kolom_tab"> <?php echo "<a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl2[0].'')."'>"; echo $tbl2['JUDUL']."</a>"; ?> </div> </td> </tr> <tr> <td align="left" valign="top"> <?php if($tbl2['NAMAFOTO']!="") { ?> <img src="photos/thumbs/<?php echo $tbl2['NAMAFOTO'];?>" align="left" width="75" vspace="5px" hspace="5px" style="BORDER-RIGHT: #d7d7d7 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #d7d7d7 1px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; margin-right:10px; BORDER-LEFT: #d7d7d7 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #d7d7d7 1px solid"/> <?php }?> <div class="lead_kolom_tab"><?php echo $tbl2['NEWLEAD'];?></div></td> </tr> <tr> <td align="left" valign="top"><div class="h-rule"></div></td> </tr> </table> <?php } ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" valign="top" bgcolor="#FDFEE9"><div class="judul_kolom"><?php echo "<a href='index.php?".paramEncrypt('p=index_berita')."'>";?> Berita Sebelumnya &raquo;</a>&nbsp;</div></td> </tr> </table> </div> <div style="display: block;" id="tab2" class="tab_content"> <?php $queryinfo2 = mysql_query("select IDBERITA,JUDUL,NEWLEAD,TGLKIRIM2 from BERITA where JUDUL!='' and STATUS='Show' and (DATEDIFF(CURDATE(), TGLKIRIM2) <= 3) AND TGLKIRIM2<='$tgl_sekarang' order by TERBACA desc limit 0, 6") or die("Data Berita tidak ada !!"); while($tbl2=mysql_fetch_array($queryinfo2)) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"> <div style="font: 10px normal Arial, Helvetica, sans-serif; color:#FFFFFF"> <?php echo tanggal("D, j M Y H:i",$tbl2['TGLKIRIM2']);echo " WIB";?></div> <div class="judul_kolom_tab"> <?php echo "<a href='index.php?".paramEncrypt('p=detilberita&id='.$tbl2[0].'')."'>"; echo $tbl2['JUDUL']."</a>"; ?> </div> </td> </tr> <tr> <td align="left" valign="top"> <div class="lead_kolom_tab"><?php echo $tbl2['NEWLEAD'];?></div></td> </tr> <tr> <td align="left" valign="top"><div class="h-rule"></div></td> </tr> </table> <?php } ?> </div> </div> </div> <div style="clear: both; display: block; padding: 10px 0; text-align:center;"></div> </body></html>

qmen

home_headline.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script> function changeimage(towhat,url){ if (document.images){ document.images.targetimage.src=towhat.src gotolink=url } } function warp(){ window.location=gotolink } </script> <script language="JavaScript1.1"> var myimages=new Array() var gotolink="#" function preloadimages(){ for (i=0;i<preloadimages.arguments.length;i++){ myimages[i]=new Image() myimages[i].src=preloadimages.arguments[i] } } <?php $queryinfo = mysql_query("select * from BERITA where STATUS='Show' and STATUSKATEGORI='Headline' and TGLKIRIM2<='$tgl_sekarang' and NAMAFOTO!='' order by IDBERITA desc limit 0, 1") or die("Data Berita tidak ada1 !!"); while($tbl=mysql_fetch_array($queryinfo)) { $a=$tbl['NAMAFOTO']; } $queryinfo2 = mysql_query("select * from BERITA where STATUS='Show' and STATUSKATEGORI='Headline' and TGLKIRIM2<='$tgl_sekarang' and NAMAFOTO!='' order by IDBERITA desc limit 1, 1") or die("Data Berita tidak ada2 !!"); while($tbl2=mysql_fetch_array($queryinfo2)) { $b=$tbl2['NAMAFOTO']; } $queryinfo3 = mysql_query("select * from BERITA where STATUS='Show' and STATUSKATEGORI='Headline' and TGLKIRIM2<='$tgl_sekarang' and NAMAFOTO!='' order by IDBERITA desc limit 2, 1") or die("Data Berita tidak ada3 !!"); while($tbl3=mysql_fetch_array($queryinfo3)) { $c=$tbl3['NAMAFOTO']; } ?> preloadimages( "<? echo "photos/bigs/";echo $a;?>","<? echo "photos/bigs/";echo $b;?>","<? echo "photos/bigs/";echo $c;?>" ) </script> </head> <body> <table width="400" border="0" cellspacing="0" cellpadding="0" style="border-right: #EFEFEF 1px solid; border-left: #EFEFEF 1px solid; border-bottom: #EFEFEF 1px solid; border-top: #EFEFEF 1px solid; padding-bottom:0px; padding-left:0px; padding-right:0px; padding-top:0px;"> <!-- <tr align="left" valign="top"> <td colspan="3" bgcolor="#0099FF">Headline</td> </tr> --> <tr align="left" valign="top"> <td colspan="3"><!--webbot bot="HTMLMarkup" startspan --> <a href="javascript:warp()"><? include"hl0.php";?></a> <!--webbot bot="HTMLMarkup" endspan --></td> </tr> </table> <table width="394" border="0" cellspacing="1" cellpadding="0"> <tr align="center" valign="top"> <td><? include"hl1_1.php";?></td> <td><? include"hl2_2.php";?></td> <td><? include"hl3_3.php";?></td> </tr> </table> </body> </html>

home_kuliner_new_preview.php <table width="100%" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><img src="images/kuliner.png" width="100%" /></td> </tr> <tr> <td align="left" valign="top"> <?php $pr0=mysql_query("select IDBERITA,JUDUL,NEWLEAD,NAMAFOTO from BERITA where STATUS='Show' and KATEGORI='Kuliner' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 0, 1"); $dpr0=mysql_fetch_array($pr0); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <? if(($dpr0['NAMAFOTO']!='') && file_exists('photos/thumbs/'.$dpr0['NAMAFOTO'])){?> <td width="8%" align="left" valign="top"> <img src="photos/thumbs/<? echo $dpr0['NAMAFOTO'];?>" width="75" style="BORDER-RIGHT: #d7d7d7 1px solid; BORDER-TOP: #d7d7d7 1px solid;BORDER-LEFT: #d7d7d7 1px solid; BORDER-BOTTOM: #d7d7d7 1px solid; margin-right:5px"/> </td> <?php }?> <td width="92%" align="left" valign="top"><span class="left_berita2"> <?php echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dpr0[0].'')."'>"; $jdl=$dpr0['JUDUL']; echo $jdl; echo "<span class=\"classic\"><em>".$dpr0['JUDUL']."</em>$dpr0[NEWLEAD]</span></a><br>"; ?></span> </td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top"><span class="left_berita"> <?php $pr=mysql_query("select IDBERITA,JUDUL,NEWLEAD from BERITA where STATUS='Show' and KATEGORI='Kuliner' and STATUSKATEGORI='Breaking' order by TGLKIRIM2 desc,IDBERITA desc limit 1, 5"); while($dpr=mysql_fetch_array($pr)) { echo "<a class=\"tooltip\" href='index.php?".paramEncrypt('p=detilberita&id='.$dpr[0].'')."'>"; if(strlen($dpr['JUDUL'])>29) { $jdl=substr_replace($dpr['JUDUL'],CHR(13),0,"<br>"); echo substr($jdl,0,28); echo "..."; }else { echo $dpr['JUDUL']; } /*$jdl=$dpr['JUDUL']; $jdl_array = explode(' ',$jdl); $jdl_baru = ''; $i=1; foreach($jdl_array AS $jdl_array1){ if ($i<=4) $jdl_baru .= $jdl_array1.' '; $i++; } if(count($jdl_array)>4) { echo $jdl_baru."..."; } else { echo $jdl_baru; }*/ echo "<span class=\"classic\"><em>".$dpr['JUDUL']."</em>$dpr[NEWLEAD]</span></a><br>"; } ?> </span></td> </tr> </table></td> </tr> </table>

iklan_bpr_jatim.php <tr> <td colspan="2" align="left" valign="top"> <img src="images/SG.jpg" width="627" border="0" style="margin-left:3px;margin-bottom:3px;" /> </td> </tr>

langganan_save.php <? session_start(); if (!$_POST) die("You can only reach this page by posting from the html form"); if(($_POST["requiredkode"] == $_SESSION["security_code"]) && (!empty($_POST["requiredkode"]) && !empty($_SESSION["security_code"]))) { include "go/go.php"; $nama=$_POST['requirednama']; $alamat=$_POST['requiredalamat']; $telp=$_POST['requiredtelp']; $email=$_POST['requiredemail']; $paket=$_POST['paket']; $mulai=$_POST['requiredmulai']; $ref = $_SERVER['HTTP_REFERER']; if($nama!='' and $alamat!='' and $telp!='' and $email!='' and $paket!='' and $mulai!='') { $i1="insert into LANGGANAN set NAMA='$nama',ALAMAT='$alamat',TELP='$telp',EMAIL='$email',PAKET='$paket',MULAI='$mulai'"; $ins=mysql_query($i1); if($ins) { //include "langganan_email_sirkulasi.php"; //include "langganan_email_pelanggan.php"; $redirect_url= "index.php"; echo"<html><head> <META HTTP-EQUIV=\"Refresh\" Content = \"2; URL=$redirect_url\"> </head><body ><table align=center><tr><td align='center'><font face=verdana size=2 color=black><B>Processing<br><img src='facebook.gif'></b></font></td></tr></table></body></html>"; } } else {?> <script language="JavaScript">alert('Data Anda tidak valid!');document.location='<?php echo $ref; ?>'</script> <?php } }else{ ?> <script language="javascript"> alert('Kode tidak valid!');document.location='http://surabayapagi.com/index.php?78e3a5c0f856dd84f517bffacc073adf' </script> <?php } ?>

phpinfo.php <meta http-equiv="refresh" content="3" /> <?php $load = sys_getloadavg(); echo $load[0]; ?>

include

data_berita_delete.php <?php if($_SESSION['slevel']=="Administrator" || $_SESSION['slevel']=="Redaksi") { ?> <?php $idberita=$var['idberita']; $ref = $_SERVER['HTTP_REFERER']; $cek=mysql_query("select * from BERITA where IDBERITA='$idberita'"); $num = mysql_num_rows($cek); $data_d=mysql_fetch_array($cek); $namafoto=$data_d['NAMAFOTO']; if($namafoto!="") { $namaDir1="photos/bigs/"; $namaDir2="photos/thumbs/"; if($_SESSION['susername']!='ariel') { if(file_exists($namaDir1.$namafoto)) { unlink($namaDir1.$namafoto); } if(file_exists($namaDir2.$namafoto)) { unlink($namaDir2.$namafoto); } } if($_SESSION['susername']=='ariel') { $delete=mysql_query("update BERITA set STATUS='Hide' where IDBERITA='".$idberita."'",$link) or die("error!"); }else { $delete=mysql_query("delete from BERITA where IDBERITA='".$idberita."'",$link) or die("error!"); } if($delete) { ?> <script language="javascript"> alert('Data Berhasil Dihapus.'); document.location='<?php echo $ref; ?>' </script> <? } else { ?> <script language="javascript"> alert('Data Gagal Dihapus.'); document.location='<?php echo $ref; ?>' </script> <? } } else { if($_SESSION['susername']=='ariel') { $delete=mysql_query("update BERITA set STATUS='Hide' where IDBERITA='".$idberita."'",$link) or die("error!"); }else { $delete=mysql_query("delete from BERITA where IDBERITA='".$idberita."'",$link) or die("error!"); } //$delete=mysql_query("delete from BERITA where IDBERITA='".$idberita."'",$link) or die("error!!!"); if($delete) { ?> <script language="javascript"> alert('Data Berhasil Dihapus.'); document.location='<?php echo $ref; ?>' </script> <? } else { ?> <script language="javascript"> alert('Data Gagal Dihapus.'); document.location='<?php echo $ref; ?>' </script> <? } } } else { include "alert_admin.php"; } ?>

AESCipher.class.php <?php /** * AES Cipher Library * Based on Federal Information Processing Standards Publication 197 - 26th November 2001 * @author Marcin F. Wiśniowski <marcin.wisniowski@mfw.pl> * @version 1.0.5 * @license http://opensource.org/licenses/lgpl-3.0.html The GNU Lesser General Public License * @package AES */ /** * @see AES */ require_once('AES.class.php'); /** * Text cipher class * This class is using AES crypt algoritm * @author Marcin F. Wiśniowski <marcin.wisniowski@mfw.pl> * @version 1.0.0 * @license http://opensource.org/licenses/lgpl-3.0.html The GNU Lesser General Public License */ class AESCipher { /** @var object An AES cipher object. */ private $_cipher; /** @var int Key strenght */ private $_strenght; /** @const int Maximum number of bytes in encryption chunk */ const BYTE_LIMIT = 16; /** * Class constructor * It initialize cipher object with proper key lenght. By default it uses 128bit. * @param int Key strength, Takes AES Class const values * @see AES::AES128 */ public function __construct($strength=AES::AES128) { $this->_cipher = new AES($strength); $this->_strenght = $strength; } /** * Generates Hexadecimal key from inserted pass phrase * @param string Pass phrase * @return string Hexadecimal key */ private function _generateKey($password) { switch ($this->_strenght) { case AES::AES256: return md5($password).md5($password.'1'); case AES::AES192: return sha1($password); case AES::AES128: default: return md5($password); } } /** * Encrypt method * @param string input string * @param string Pass phrase * @return string Cryptext */ public function encrypt($content, $password) { $key = $this->_generateKey($password); $input = str_split($this->_cipher->stringToHex($content), self::BYTE_LIMIT*2); $output = ''; foreach ($input as $chunk) $output .= $this->_cipher->encrypt($chunk, $key); return $this->_cipher->hexToString($output); } /** * Decrypt method * @param string Cryptext * @param string Pass phrase * @return string Decoded message */ public function decrypt($cryptext, $password) { $key = $this->_generateKey($password); $input = str_split($this->_cipher->stringToHex($cryptext), self::BYTE_LIMIT*2); $output = ''; foreach ($input as $chunk) $output .= $this->_cipher->decrypt($chunk, $key); return $this->_cipher->hexToString($output); } } ?>

jquery-ui-timepicker-addon.js /* * jQuery timepicker addon * By: Trent Richardson [http://trentrichardson.com] * Version 1.1.1 * Last Modified: 11/07/2012 * * Copyright 2012 Trent Richardson * You may use this project under MIT or GPL licenses. * http://trentrichardson.com/Impromptu/GPL-LICENSE.txt * http://trentrichardson.com/Impromptu/MIT-LICENSE.txt */ /*jslint evil: true, white: false, undef: false, nomen: false */ (function($) { /* * Lets not redefine timepicker, Prevent "Uncaught RangeError: Maximum call stack size exceeded" */ $.ui.timepicker = $.ui.timepicker || {}; if ($.ui.timepicker.version) { return; } /* * Extend jQueryUI, get it started with our version number */ $.extend($.ui, { timepicker: { version: "1.1.1" } }); /* * Timepicker manager. * Use the singleton instance of this class, $.timepicker, to interact with the time picker. * Settings for (groups of) time pickers are maintained in an instance object, * allowing multiple different settings on the same page. */ function Timepicker() { this.regional = []; // Available regional settings, indexed by language code this.regional[''] = { // Default regional settings currentText: 'Now', closeText: 'Done', amNames: ['AM', 'A'], pmNames: ['PM', 'P'], timeFormat: 'HH:mm', timeSuffix: '', timeOnlyTitle: 'Choose Time', timeText: 'Time', hourText: 'Hour', minuteText: 'Minute', secondText: 'Second', millisecText: 'Millisecond', timezoneText: 'Time Zone', isRTL: false }; this._defaults = { // Global defaults for all the datetime picker instances showButtonPanel: true, timeOnly: false, showHour: true, showMinute: true, showSecond: false, showMillisec: false, showTimezone: false, showTime: true, stepHour: 1, stepMinute: 1, stepSecond: 1, stepMillisec: 1, hour: 0, minute: 0, second: 0, millisec: 0, timezone: null, useLocalTimezone: false, defaultTimezone: "+0000", hourMin: 0, minuteMin: 0, secondMin: 0, millisecMin: 0, hourMax: 23, minuteMax: 59, secondMax: 59, millisecMax: 999, minDateTime: null, maxDateTime: null, onSelect: null, hourGrid: 0, minuteGrid: 0, secondGrid: 0, millisecGrid: 0, alwaysSetTime: true, separator: ' ', altFieldTimeOnly: true, altTimeFormat: null, altSeparator: null, altTimeSuffix: null, pickerTimeFormat: null, pickerTimeSuffix: null, showTimepicker: true, timezoneIso8601: false, timezoneList: null, addSliderAccess: false, sliderAccessArgs: null, controlType: 'slider', defaultValue: null, parse: 'strict' }; $.extend(this._defaults, this.regional['']); } $.extend(Timepicker.prototype, { $input: null, $altInput: null, $timeObj: null, inst: null, hour_slider: null, minute_slider: null, second_slider: null, millisec_slider: null, timezone_select: null, hour: 0, minute: 0, second: 0, millisec: 0, timezone: null, defaultTimezone: "+0000", hourMinOriginal: null, minuteMinOriginal: null, secondMinOriginal: null, millisecMinOriginal: null, hourMaxOriginal: null, minuteMaxOriginal: null, secondMaxOriginal: null, millisecMaxOriginal: null, ampm: '', formattedDate: '', formattedTime: '', formattedDateTime: '', timezoneList: null, units: ['hour','minute','second','millisec'], control: null, /* * Override the default settings for all instances of the time picker. * @param settings object - the new settings to use as defaults (anonymous object) * @return the manager object */ setDefaults: function(settings) { extendRemove(this._defaults, settings || {}); return this; }, /* * Create a new Timepicker instance */ _newInst: function($input, o) { var tp_inst = new Timepicker(), inlineSettings = {}, fns = {}, overrides, i; for (var attrName in this._defaults) { if(this._defaults.hasOwnProperty(attrName)){ var attrValue = $input.attr('time:' + attrName); if (attrValue) { try { inlineSettings[attrName] = eval(attrValue); } catch (err) { inlineSettings[attrName] = attrValue; } } } } overrides = { beforeShow: function (input, dp_inst) { if ($.isFunction(tp_inst._defaults.evnts.beforeShow)) { return tp_inst._defaults.evnts.beforeShow.call($input[0], input, dp_inst, tp_inst); } }, onChangeMonthYear: function (year, month, dp_inst) { // Update the time as well : this prevents the time from disappearing from the $input field. tp_inst._updateDateTime(dp_inst); if ($.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)) { tp_inst._defaults.evnts.onChangeMonthYear.call($input[0], year, month, dp_inst, tp_inst); } }, onClose: function (dateText, dp_inst) { if (tp_inst.timeDefined === true && $input.val() !== '') { tp_inst._updateDateTime(dp_inst); } if ($.isFunction(tp_inst._defaults.evnts.onClose)) { tp_inst._defaults.evnts.onClose.call($input[0], dateText, dp_inst, tp_inst); } } }; for (i in overrides) { if (overrides.hasOwnProperty(i)) { fns[i] = o[i] || null; } } tp_inst._defaults = $.extend({}, this._defaults, inlineSettings, o, overrides, { evnts:fns, timepicker: tp_inst // add timepicker as a property of datepicker: $.datepicker._get(dp_inst, 'timepicker'); }); tp_inst.amNames = $.map(tp_inst._defaults.amNames, function(val) { return val.toUpperCase(); }); tp_inst.pmNames = $.map(tp_inst._defaults.pmNames, function(val) { return val.toUpperCase(); }); // controlType is string - key to our this._controls if(typeof(tp_inst._defaults.controlType) === 'string'){ if($.fn[tp_inst._defaults.controlType] === undefined){ tp_inst._defaults.controlType = 'select'; } tp_inst.control = tp_inst._controls[tp_inst._defaults.controlType]; } // controlType is an object and must implement create, options, value methods else{ tp_inst.control = tp_inst._defaults.controlType; } if (tp_inst._defaults.timezoneList === null) { var timezoneList = ['-1200', '-1100', '-1000', '-0930', '-0900', '-0800', '-0700', '-0600', '-0500', '-0430', '-0400', '-0330', '-0300', '-0200', '-0100', '+0000', '+0100', '+0200', '+0300', '+0330', '+0400', '+0430', '+0500', '+0530', '+0545', '+0600', '+0630', '+0700', '+0800', '+0845', '+0900', '+0930', '+1000', '+1030', '+1100', '+1130', '+1200', '+1245', '+1300', '+1400']; if (tp_inst._defaults.timezoneIso8601) { timezoneList = $.map(timezoneList, function(val) { return val == '+0000' ? 'Z' : (val.substring(0, 3) + ':' + val.substring(3)); }); } tp_inst._defaults.timezoneList = timezoneList; } tp_inst.timezone = tp_inst._defaults.timezone; tp_inst.hour = tp_inst._defaults.hour; tp_inst.minute = tp_inst._defaults.minute; tp_inst.second = tp_inst._defaults.second; tp_inst.millisec = tp_inst._defaults.millisec; tp_inst.ampm = ''; tp_inst.$input = $input; if (o.altField) { tp_inst.$altInput = $(o.altField).css({ cursor: 'pointer' }).focus(function() { $input.trigger("focus"); }); } if (tp_inst._defaults.minDate === 0 || tp_inst._defaults.minDateTime === 0) { tp_inst._defaults.minDate = new Date(); } if (tp_inst._defaults.maxDate === 0 || tp_inst._defaults.maxDateTime === 0) { tp_inst._defaults.maxDate = new Date(); } // datepicker needs minDate/maxDate, timepicker needs minDateTime/maxDateTime.. if (tp_inst._defaults.minDate !== undefined && tp_inst._defaults.minDate instanceof Date) { tp_inst._defaults.minDateTime = new Date(tp_inst._defaults.minDate.getTime()); } if (tp_inst._defaults.minDateTime !== undefined && tp_inst._defaults.minDateTime instanceof Date) { tp_inst._defaults.minDate = new Date(tp_inst._defaults.minDateTime.getTime()); } if (tp_inst._defaults.maxDate !== undefined && tp_inst._defaults.maxDate instanceof Date) { tp_inst._defaults.maxDateTime = new Date(tp_inst._defaults.maxDate.getTime()); } if (tp_inst._defaults.maxDateTime !== undefined && tp_inst._defaults.maxDateTime instanceof Date) { tp_inst._defaults.maxDate = new Date(tp_inst._defaults.maxDateTime.getTime()); } tp_inst.$input.bind('focus', function() { tp_inst._onFocus(); }); return tp_inst; }, /* * add our sliders to the calendar */ _addTimePicker: function(dp_inst) { var currDT = (this.$altInput && this._defaults.altFieldTimeOnly) ? this.$input.val() + ' ' + this.$altInput.val() : this.$input.val(); this.timeDefined = this._parseTime(currDT); this._limitMinMaxDateTime(dp_inst, false); this._injectTimePicker(); }, /* * parse the time string from input value or _setTime */ _parseTime: function(timeString, withDate) { if (!this.inst) { this.inst = $.datepicker._getInst(this.$input[0]); } if (withDate || !this._defaults.timeOnly) { var dp_dateFormat = $.datepicker._get(this.inst, 'dateFormat'); try { var parseRes = parseDateTimeInternal(dp_dateFormat, this._defaults.timeFormat, timeString, $.datepicker._getFormatConfig(this.inst), this._defaults); if (!parseRes.timeObj) { return false; } $.extend(this, parseRes.timeObj); } catch (err) { $.datepicker.log("Error parsing the date/time string: " + err + "\ndate/time string = " + timeString + "\ntimeFormat = " + this._defaults.timeFormat + "\ndateFormat = " + dp_dateFormat); return false; } return true; } else { var timeObj = $.datepicker.parseTime(this._defaults.timeFormat, timeString, this._defaults); if (!timeObj) { return false; } $.extend(this, timeObj); return true; } }, /* * generate and inject html for timepicker into ui datepicker */ _injectTimePicker: function() { var $dp = this.inst.dpDiv, o = this.inst.settings, tp_inst = this, litem = '', uitem = '', max = {}, gridSize = {}, size = null; // Prevent displaying twice if ($dp.find("div.ui-timepicker-div").length === 0 && o.showTimepicker) { var noDisplay = ' style="display:none;"', html = '<div class="ui-timepicker-div'+ (o.isRTL? ' ui-timepicker-rtl' : '') +'"><dl>' + '<dt class="ui_tpicker_time_label"' + ((o.showTime) ? '' : noDisplay) + '>' + o.timeText + '</dt>' + '<dd class="ui_tpicker_time"' + ((o.showTime) ? '' : noDisplay) + '></dd>'; // Create the markup for(var i=0,l=this.units.length; i<l; i++){ litem = this.units[i]; uitem = litem.substr(0,1).toUpperCase() + litem.substr(1); // Added by Peter Medeiros: // - Figure out what the hour/minute/second max should be based on the step values. // - Example: if stepMinute is 15, then minMax is 45. max[litem] = parseInt((o[litem+'Max'] - ((o[litem+'Max'] - o[litem+'Min']) % o['step'+uitem])), 10); gridSize[litem] = 0; html += '<dt class="ui_tpicker_'+ litem +'_label"' + ((o['show'+uitem]) ? '' : noDisplay) + '>' + o[litem +'Text'] + '</dt>' + '<dd class="ui_tpicker_'+ litem +'"><div class="ui_tpicker_'+ litem +'_slider"' + ((o['show'+uitem]) ? '' : noDisplay) + '></div>'; if (o['show'+uitem] && o[litem+'Grid'] > 0) { html += '<div style="padding-left: 1px"><table class="ui-tpicker-grid-label"><tr>'; if(litem == 'hour'){ for (var h = o[litem+'Min']; h <= max[litem]; h += parseInt(o[litem+'Grid'], 10)) { gridSize[litem]++; var tmph = $.datepicker.formatTime(useAmpm(o.pickerTimeFormat || o.timeFormat)? 'hht':'HH', {hour:h}, o); html += '<td data-for="'+litem+'">' + tmph + '</td>'; } } else{ for (var m = o[litem+'Min']; m <= max[litem]; m += parseInt(o[litem+'Grid'], 10)) { gridSize[litem]++; html += '<td data-for="'+litem+'">' + ((m < 10) ? '0' : '') + m + '</td>'; } } html += '</tr></table></div>'; } html += '</dd>'; } // Timezone html += '<dt class="ui_tpicker_timezone_label"' + ((o.showTimezone) ? '' : noDisplay) + '>' + o.timezoneText + '</dt>'; html += '<dd class="ui_tpicker_timezone" ' + ((o.showTimezone) ? '' : noDisplay) + '></dd>'; // Create the elements from string html += '</dl></div>'; var $tp = $(html); // if we only want time picker... if (o.timeOnly === true) { $tp.prepend('<div class="ui-widget-header ui-helper-clearfix ui-corner-all">' + '<div class="ui-datepicker-title">' + o.timeOnlyTitle + '</div>' + '</div>'); $dp.find('.ui-datepicker-header, .ui-datepicker-calendar').hide(); } // add sliders, adjust grids, add events for(var i=0,l=tp_inst.units.length; i<l; i++){ litem = tp_inst.units[i]; uitem = litem.substr(0,1).toUpperCase() + litem.substr(1); // add the slider tp_inst[litem+'_slider'] = tp_inst.control.create(tp_inst, $tp.find('.ui_tpicker_'+litem+'_slider'), litem, tp_inst[litem], o[litem+'Min'], max[litem], o['step'+uitem]); // adjust the grid and add click event if (o['show'+uitem] && o[litem+'Grid'] > 0) { size = 100 * gridSize[litem] * o[litem+'Grid'] / (max[litem] - o[litem+'Min']); $tp.find('.ui_tpicker_'+litem+' table').css({ width: size + "%", marginLeft: o.isRTL? '0' : ((size / (-2 * gridSize[litem])) + "%"), marginRight: o.isRTL? ((size / (-2 * gridSize[litem])) + "%") : '0', borderCollapse: 'collapse' }).find("td").click(function(e){ var $t = $(this), h = $t.html(), n = parseInt(h.replace(/[^0-9]/g),10), ap = h.replace(/[^apm]/ig), f = $t.data('for'); // loses scope, so we use data-for if(f == 'hour'){ if(ap.indexOf('p') !== -1 && n < 12){ n += 12; } else{ if(ap.indexOf('a') !== -1 && n === 12){ n = 0; } } } tp_inst.control.value(tp_inst, tp_inst[f+'_slider'], litem, n); tp_inst._onTimeChange(); tp_inst._onSelectHandler(); }) .css({ cursor: 'pointer', width: (100 / gridSize[litem]) + '%', textAlign: 'center', overflow: 'hidden' }); } // end if grid > 0 } // end for loop // Add timezone options this.timezone_select = $tp.find('.ui_tpicker_timezone').append('<select></select>').find("select"); $.fn.append.apply(this.timezone_select, $.map(o.timezoneList, function(val, idx) { return $("<option />").val(typeof val == "object" ? val.value : val).text(typeof val == "object" ? val.label : val); })); if (typeof(this.timezone) != "undefined" && this.timezone !== null && this.timezone !== "") { var local_date = new Date(this.inst.selectedYear, this.inst.selectedMonth, this.inst.selectedDay, 12); var local_timezone = $.timepicker.timeZoneOffsetString(local_date); if (local_timezone == this.timezone) { selectLocalTimeZone(tp_inst); } else { this.timezone_select.val(this.timezone); } } else { if (typeof(this.hour) != "undefined" && this.hour !== null && this.hour !== "") { this.timezone_select.val(o.defaultTimezone); } else { selectLocalTimeZone(tp_inst); } } this.timezone_select.change(function() { tp_inst._defaults.useLocalTimezone = false; tp_inst._onTimeChange(); }); // End timezone options // inject timepicker into datepicker var $buttonPanel = $dp.find('.ui-datepicker-buttonpane'); if ($buttonPanel.length) { $buttonPanel.before($tp); } else { $dp.append($tp); } this.$timeObj = $tp.find('.ui_tpicker_time'); if (this.inst !== null) { var timeDefined = this.timeDefined; this._onTimeChange(); this.timeDefined = timeDefined; } // slideAccess integration: http://trentrichardson.com/2011/11/11/jquery-ui-sliders-and-touch-accessibility/ if (this._defaults.addSliderAccess) { var sliderAccessArgs = this._defaults.sliderAccessArgs, rtl = this._defaults.isRTL; sliderAccessArgs.isRTL = rtl; setTimeout(function() { // fix for inline mode if ($tp.find('.ui-slider-access').length === 0) { $tp.find('.ui-slider:visible').sliderAccess(sliderAccessArgs); // fix any grids since sliders are shorter var sliderAccessWidth = $tp.find('.ui-slider-access:eq(0)').outerWidth(true); if (sliderAccessWidth) { $tp.find('table:visible').each(function() { var $g = $(this), oldWidth = $g.outerWidth(), oldMarginLeft = $g.css(rtl? 'marginRight':'marginLeft').toString().replace('%', ''), newWidth = oldWidth - sliderAccessWidth, newMarginLeft = ((oldMarginLeft * newWidth) / oldWidth) + '%', css = { width: newWidth, marginRight: 0, marginLeft: 0 }; css[rtl? 'marginRight':'marginLeft'] = newMarginLeft; $g.css(css); }); } } }, 10); } // end slideAccess integration } }, /* * This function tries to limit the ability to go outside the * min/max date range */ _limitMinMaxDateTime: function(dp_inst, adjustSliders) { var o = this._defaults, dp_date = new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay); if (!this._defaults.showTimepicker) { return; } // No time so nothing to check here if ($.datepicker._get(dp_inst, 'minDateTime') !== null && $.datepicker._get(dp_inst, 'minDateTime') !== undefined && dp_date) { var minDateTime = $.datepicker._get(dp_inst, 'minDateTime'), minDateTimeDate = new Date(minDateTime.getFullYear(), minDateTime.getMonth(), minDateTime.getDate(), 0, 0, 0, 0); if (this.hourMinOriginal === null || this.minuteMinOriginal === null || this.secondMinOriginal === null || this.millisecMinOriginal === null) { this.hourMinOriginal = o.hourMin; this.minuteMinOriginal = o.minuteMin; this.secondMinOriginal = o.secondMin; this.millisecMinOriginal = o.millisecMin; } if (dp_inst.settings.timeOnly || minDateTimeDate.getTime() == dp_date.getTime()) { this._defaults.hourMin = minDateTime.getHours(); if (this.hour <= this._defaults.hourMin) { this.hour = this._defaults.hourMin; this._defaults.minuteMin = minDateTime.getMinutes(); if (this.minute <= this._defaults.minuteMin) { this.minute = this._defaults.minuteMin; this._defaults.secondMin = minDateTime.getSeconds(); if (this.second <= this._defaults.secondMin) { this.second = this._defaults.secondMin; this._defaults.millisecMin = minDateTime.getMilliseconds(); } else { if (this.millisec < this._defaults.millisecMin) { this.millisec = this._defaults.millisecMin; } this._defaults.millisecMin = this.millisecMinOriginal; } } else { this._defaults.secondMin = this.secondMinOriginal; this._defaults.millisecMin = this.millisecMinOriginal; } } else { this._defaults.minuteMin = this.minuteMinOriginal; this._defaults.secondMin = this.secondMinOriginal; this._defaults.millisecMin = this.millisecMinOriginal; } } else { this._defaults.hourMin = this.hourMinOriginal; this._defaults.minuteMin = this.minuteMinOriginal; this._defaults.secondMin = this.secondMinOriginal; this._defaults.millisecMin = this.millisecMinOriginal; } } if ($.datepicker._get(dp_inst, 'maxDateTime') !== null && $.datepicker._get(dp_inst, 'maxDateTime') !== undefined && dp_date) { var maxDateTime = $.datepicker._get(dp_inst, 'maxDateTime'), maxDateTimeDate = new Date(maxDateTime.getFullYear(), maxDateTime.getMonth(), maxDateTime.getDate(), 0, 0, 0, 0); if (this.hourMaxOriginal === null || this.minuteMaxOriginal === null || this.secondMaxOriginal === null) { this.hourMaxOriginal = o.hourMax; this.minuteMaxOriginal = o.minuteMax; this.secondMaxOriginal = o.secondMax; this.millisecMaxOriginal = o.millisecMax; } if (dp_inst.settings.timeOnly || maxDateTimeDate.getTime() == dp_date.getTime()) { this._defaults.hourMax = maxDateTime.getHours(); if (this.hour >= this._defaults.hourMax) { this.hour = this._defaults.hourMax; this._defaults.minuteMax = maxDateTime.getMinutes(); if (this.minute >= this._defaults.minuteMax) { this.minute = this._defaults.minuteMax; this._defaults.secondMax = maxDateTime.getSeconds(); } else if (this.second >= this._defaults.secondMax) { this.second = this._defaults.secondMax; this._defaults.millisecMax = maxDateTime.getMilliseconds(); } else { if (this.millisec > this._defaults.millisecMax) { this.millisec = this._defaults.millisecMax; } this._defaults.millisecMax = this.millisecMaxOriginal; } } else { this._defaults.minuteMax = this.minuteMaxOriginal; this._defaults.secondMax = this.secondMaxOriginal; this._defaults.millisecMax = this.millisecMaxOriginal; } } else { this._defaults.hourMax = this.hourMaxOriginal; this._defaults.minuteMax = this.minuteMaxOriginal; this._defaults.secondMax = this.secondMaxOriginal; this._defaults.millisecMax = this.millisecMaxOriginal; } } if (adjustSliders !== undefined && adjustSliders === true) { var hourMax = parseInt((this._defaults.hourMax - ((this._defaults.hourMax - this._defaults.hourMin) % this._defaults.stepHour)), 10), minMax = parseInt((this._defaults.minuteMax - ((this._defaults.minuteMax - this._defaults.minuteMin) % this._defaults.stepMinute)), 10), secMax = parseInt((this._defaults.secondMax - ((this._defaults.secondMax - this._defaults.secondMin) % this._defaults.stepSecond)), 10), millisecMax = parseInt((this._defaults.millisecMax - ((this._defaults.millisecMax - this._defaults.millisecMin) % this._defaults.stepMillisec)), 10); if (this.hour_slider) { this.control.options(this, this.hour_slider, 'hour', { min: this._defaults.hourMin, max: hourMax }); this.control.value(this, this.hour_slider, 'hour', this.hour); } if (this.minute_slider) { this.control.options(this, this.minute_slider, 'minute', { min: this._defaults.minuteMin, max: minMax }); this.control.value(this, this.minute_slider, 'minute', this.minute); } if (this.second_slider) { this.control.options(this, this.second_slider, 'second', { min: this._defaults.secondMin, max: secMax }); this.control.value(this, this.second_slider, 'second', this.second); } if (this.millisec_slider) { this.control.options(this, this.millisec_slider, 'millisec', { min: this._defaults.millisecMin, max: millisecMax }); this.control.value(this, this.millisec_slider, 'millisec', this.millisec); } } }, /* * when a slider moves, set the internal time... * on time change is also called when the time is updated in the text field */ _onTimeChange: function() { var hour = (this.hour_slider) ? this.control.value(this, this.hour_slider, 'hour') : false, minute = (this.minute_slider) ? this.control.value(this, this.minute_slider, 'minute') : false, second = (this.second_slider) ? this.control.value(this, this.second_slider, 'second') : false, millisec = (this.millisec_slider) ? this.control.value(this, this.millisec_slider, 'millisec') : false, timezone = (this.timezone_select) ? this.timezone_select.val() : false, o = this._defaults, pickerTimeFormat = o.pickerTimeFormat || o.timeFormat, pickerTimeSuffix = o.pickerTimeSuffix || o.timeSuffix; if (typeof(hour) == 'object') { hour = false; } if (typeof(minute) == 'object') { minute = false; } if (typeof(second) == 'object') { second = false; } if (typeof(millisec) == 'object') { millisec = false; } if (typeof(timezone) == 'object') { timezone = false; } if (hour !== false) { hour = parseInt(hour, 10); } if (minute !== false) { minute = parseInt(minute, 10); } if (second !== false) { second = parseInt(second, 10); } if (millisec !== false) { millisec = parseInt(millisec, 10); } var ampm = o[hour < 12 ? 'amNames' : 'pmNames'][0]; // If the update was done in the input field, the input field should not be updated. // If the update was done using the sliders, update the input field. var hasChanged = (hour != this.hour || minute != this.minute || second != this.second || millisec != this.millisec || (this.ampm.length > 0 && (hour < 12) != ($.inArray(this.ampm.toUpperCase(), this.amNames) !== -1)) || ((this.timezone === null && timezone != this.defaultTimezone) || (this.timezone !== null && timezone != this.timezone))); if (hasChanged) { if (hour !== false) { this.hour = hour; } if (minute !== false) { this.minute = minute; } if (second !== false) { this.second = second; } if (millisec !== false) { this.millisec = millisec; } if (timezone !== false) { this.timezone = timezone; } if (!this.inst) { this.inst = $.datepicker._getInst(this.$input[0]); } this._limitMinMaxDateTime(this.inst, true); } if (useAmpm(o.timeFormat)) { this.ampm = ampm; } // Updates the time within the timepicker this.formattedTime = $.datepicker.formatTime(o.timeFormat, this, o); if (this.$timeObj) { if(pickerTimeFormat === o.timeFormat){ this.$timeObj.text(this.formattedTime + pickerTimeSuffix); } else{ this.$timeObj.text($.datepicker.formatTime(pickerTimeFormat, this, o) + pickerTimeSuffix); } } this.timeDefined = true; if (hasChanged) { this._updateDateTime(); } }, /* * call custom onSelect. * bind to sliders slidestop, and grid click. */ _onSelectHandler: function() { var onSelect = this._defaults.onSelect || this.inst.settings.onSelect; var inputEl = this.$input ? this.$input[0] : null; if (onSelect && inputEl) { onSelect.apply(inputEl, [this.formattedDateTime, this]); } }, /* * update our input with the new date time.. */ _updateDateTime: function(dp_inst) { dp_inst = this.inst || dp_inst; var dt = $.datepicker._daylightSavingAdjust(new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay)), dateFmt = $.datepicker._get(dp_inst, 'dateFormat'), formatCfg = $.datepicker._getFormatConfig(dp_inst), timeAvailable = dt !== null && this.timeDefined; this.formattedDate = $.datepicker.formatDate(dateFmt, (dt === null ? new Date() : dt), formatCfg); var formattedDateTime = this.formattedDate; /* * remove following lines to force every changes in date picker to change the input value * Bug descriptions: when an input field has a default value, and click on the field to pop up the date picker. * If the user manually empty the value in the input field, the date picker will never change selected value. */ //if (dp_inst.lastVal !== undefined && (dp_inst.lastVal.length > 0 && this.$input.val().length === 0)) { // return; //} if (this._defaults.timeOnly === true) { formattedDateTime = this.formattedTime; } else if (this._defaults.timeOnly !== true && (this._defaults.alwaysSetTime || timeAvailable)) { formattedDateTime += this._defaults.separator + this.formattedTime + this._defaults.timeSuffix; } this.formattedDateTime = formattedDateTime; if (!this._defaults.showTimepicker) { this.$input.val(this.formattedDate); } else if (this.$altInput && this._defaults.altFieldTimeOnly === true) { this.$altInput.val(this.formattedTime); this.$input.val(this.formattedDate); } else if (this.$altInput) { this.$input.val(formattedDateTime); var altFormattedDateTime = '', altSeparator = this._defaults.altSeparator ? this._defaults.altSeparator : this._defaults.separator, altTimeSuffix = this._defaults.altTimeSuffix ? this._defaults.altTimeSuffix : this._defaults.timeSuffix; if (this._defaults.altFormat) altFormattedDateTime = $.datepicker.formatDate(this._defaults.altFormat, (dt === null ? new Date() : dt), formatCfg); else altFormattedDateTime = this.formattedDate; if (altFormattedDateTime) altFormattedDateTime += altSeparator; if (this._defaults.altTimeFormat) altFormattedDateTime += $.datepicker.formatTime(this._defaults.altTimeFormat, this, this._defaults) + altTimeSuffix; else altFormattedDateTime += this.formattedTime + altTimeSuffix; this.$altInput.val(altFormattedDateTime); } else { this.$input.val(formattedDateTime); } this.$input.trigger("change"); }, _onFocus: function() { if (!this.$input.val() && this._defaults.defaultValue) { this.$input.val(this._defaults.defaultValue); var inst = $.datepicker._getInst(this.$input.get(0)), tp_inst = $.datepicker._get(inst, 'timepicker'); if (tp_inst) { if (tp_inst._defaults.timeOnly && (inst.input.val() != inst.lastVal)) { try { $.datepicker._updateDatepicker(inst); } catch (err) { $.datepicker.log(err); } } } } }, /* * Small abstraction to control types * We can add more, just be sure to follow the pattern: create, options, value */ _controls: { // slider methods slider: { create: function(tp_inst, obj, unit, val, min, max, step){ var rtl = tp_inst._defaults.isRTL; // if rtl go -60->0 instead of 0->60 return obj.prop('slide', null).slider({ orientation: "horizontal", value: rtl? val*-1 : val, min: rtl? max*-1 : min, max: rtl? min*-1 : max, step: step, slide: function(event, ui) { tp_inst.control.value(tp_inst, $(this), unit, rtl? ui.value*-1:ui.value); tp_inst._onTimeChange(); }, stop: function(event, ui) { tp_inst._onSelectHandler(); } }); }, options: function(tp_inst, obj, unit, opts, val){ if(tp_inst._defaults.isRTL){ if(typeof(opts) == 'string'){ if(opts == 'min' || opts == 'max'){ if(val !== undefined) return obj.slider(opts, val*-1); return Math.abs(obj.slider(opts)); } return obj.slider(opts); } var min = opts.min, max = opts.max; opts.min = opts.max = null; if(min !== undefined) opts.max = min * -1; if(max !== undefined) opts.min = max * -1; return obj.slider(opts); } if(typeof(opts) == 'string' && val !== undefined) return obj.slider(opts, val); return obj.slider(opts); }, value: function(tp_inst, obj, unit, val){ if(tp_inst._defaults.isRTL){ if(val !== undefined) return obj.slider('value', val*-1); return Math.abs(obj.slider('value')); } if(val !== undefined) return obj.slider('value', val); return obj.slider('value'); } }, // select methods select: { create: function(tp_inst, obj, unit, val, min, max, step){ var sel = '<select class="ui-timepicker-select" data-unit="'+ unit +'" data-min="'+ min +'" data-max="'+ max +'" data-step="'+ step +'">', ul = tp_inst._defaults.timeFormat.indexOf('t') !== -1? 'toLowerCase':'toUpperCase', m = 0; for(var i=min; i<=max; i+=step){ sel += '<option value="'+ i +'"'+ (i==val? ' selected':'') +'>'; if(unit == 'hour' && useAmpm(tp_inst._defaults.pickerTimeFormat || tp_inst._defaults.timeFormat)) sel += $.datepicker.formatTime("hh TT", {hour:i}, tp_inst._defaults); else if(unit == 'millisec' || i >= 10) sel += i; else sel += '0'+ i.toString(); sel += '</option>'; } sel += '</select>'; obj.children('select').remove(); $(sel).appendTo(obj).change(function(e){ tp_inst._onTimeChange(); tp_inst._onSelectHandler(); }); return obj; }, options: function(tp_inst, obj, unit, opts, val){ var o = {}, $t = obj.children('select'); if(typeof(opts) == 'string'){ if(val === undefined) return $t.data(opts); o[opts] = val; } else o = opts; return tp_inst.control.create(tp_inst, obj, $t.data('unit'), $t.val(), o.min || $t.data('min'), o.max || $t.data('max'), o.step || $t.data('step')); }, value: function(tp_inst, obj, unit, val){ var $t = obj.children('select'); if(val !== undefined) return $t.val(val); return $t.val(); } } } // end _controls }); $.fn.extend({ /* * shorthand just to use timepicker.. */ timepicker: function(o) { o = o || {}; var tmp_args = Array.prototype.slice.call(arguments); if (typeof o == 'object') { tmp_args[0] = $.extend(o, { timeOnly: true }); } return $(this).each(function() { $.fn.datetimepicker.apply($(this), tmp_args); }); }, /* * extend timepicker to datepicker */ datetimepicker: function(o) { o = o || {}; var tmp_args = arguments; if (typeof(o) == 'string') { if (o == 'getDate') { return $.fn.datepicker.apply($(this[0]), tmp_args); } else { return this.each(function() { var $t = $(this); $t.datepicker.apply($t, tmp_args); }); } } else { return this.each(function() { var $t = $(this); $t.datepicker($.timepicker._newInst($t, o)._defaults); }); } } }); /* * Public Utility to parse date and time */ $.datepicker.parseDateTime = function(dateFormat, timeFormat, dateTimeString, dateSettings, timeSettings) { var parseRes = parseDateTimeInternal(dateFormat, timeFormat, dateTimeString, dateSettings, timeSettings); if (parseRes.timeObj) { var t = parseRes.timeObj; parseRes.date.setHours(t.hour, t.minute, t.second, t.millisec); } return parseRes.date; }; /* * Public utility to parse time */ $.datepicker.parseTime = function(timeFormat, timeString, options) { var o = extendRemove(extendRemove({}, $.timepicker._defaults), options || {}); // Strict parse requires the timeString to match the timeFormat exactly var strictParse = function(f, s, o){ // pattern for standard and localized AM/PM markers var getPatternAmpm = function(amNames, pmNames) { var markers = []; if (amNames) { $.merge(markers, amNames); } if (pmNames) { $.merge(markers, pmNames); } markers = $.map(markers, function(val) { return val.replace(/[.*+?|()\[\]{}\\]/g, '\\$&'); }); return '(' + markers.join('|') + ')?'; }; // figure out position of time elements.. cause js cant do named captures var getFormatPositions = function(timeFormat) { var finds = timeFormat.toLowerCase().match(/(h{1,2}|m{1,2}|s{1,2}|l{1}|t{1,2}|z|'.*?')/g), orders = { h: -1, m: -1, s: -1, l: -1, t: -1, z: -1 }; if (finds) { for (var i = 0; i < finds.length; i++) { if (orders[finds[i].toString().charAt(0)] == -1) { orders[finds[i].toString().charAt(0)] = i + 1; } } } return orders; }; var regstr = '^