APLIKASI SMS GATEWAY PRESENSI SISWA BERBASIS WEB DENGAN PHP DAN MYSQL TUGAS AKHIR SKRIPSI

1 APLIKASI SMS GATEWAY PRESENSI SISWA BERBASIS WEB DENGAN PHP DAN MYSQL TUGAS AKHIR SKRIPSI Diajukan kepada Fakultas Teknik Universitas Negeri Yogyaka...

24 downloads 563 Views 6MB Size

Recommend Documents

"); //echo ("<iframe src='listdatasiswa.php' width='450' height='620' frameborder='0'>"); echo ("

Menu Absensi Siswa

"); echo "
"; echo ("<pre>"); echo ("
  • Pilih Masukan Data Kehadiran untuk memasukan data kehadiran siswa

  • "); echo ("
  • Pilih Lihat Data Absensi untuk melihat data absensi siswa

  • "); echo ("
  • Pilih Statistik untuk melihat statistik Kehadiran siswa

  • "); echo "
    "; echo ("

    Untuk Memasukan data kehadiran Siswa :

    "); echo ("
  • Pilih Menu Masukan Data Kehadira Siswa

  • "); echo ("
  • Pilih Data Siswa(Semua atau Per Kelas)

  • "); echo ("
  • Pilih Tanggal

  • "); echo ("
  • Checklist pada kolom Hadir,Sakit,Izin, & Alpa sesuai kehadiran siswa

  • "); echo ("
  • Pilih Submit

  • "); echo "
    "; echo ("

    Untuk Mengubah Data Absensi :

    "); echo ("
  • Pilih Menu Lihat Data Absensi

  • "); echo ("
  • Kemudian klik icon edit del di kolom action

"); include "footer.php"; ?>

14. edit_siswa.php

Edit Data Siswa

"); echo ("<iframe src='formeditsiswa.php?nis=$nis' width='450' height='550' frameborder='0'>"); include "footer.php"; ?>

15. edit_walisiswa.php

Edit Data Wali Siswa

"); echo ("<iframe src='formeditwali.php?id_wali=$id_wali' width='450' height='550' frameborder='0'>"); include "footer.php"; ?>

119

16. edit_kelas.php

Edit Data Kelas

"); echo ("<iframe src='formeditkelas.php?id_kelas=$id_kelas' width='450' height='550' frameborder='0'>"); include "footer.php"; ?>

17. edit_Presensi.php

Edit Absensi Siswa

"); $link=open_connection(); $nis= $_GET['nis']; $tanggal= $_GET['tanggal']; $query_balas = "SELECT * FROM tbl_absensi INNER JOIN tbl_siswa ON tbl_siswa.nis = tbl_absensi.nis INNER JOIN tbl_kelas ON tbl_kelas.id_kelas = tbl_siswa.id_kelas WHERE tbl_siswa.nis = '$nis' AND tbl_absensi.tanggal = '$tanggal'"; $ebalas = mysql_query($query_balas); $ambil_kolom = mysql_fetch_array($ebalas); echo ("
"); echo ("
"); echo (""); echo (""); echo (""); echo ("
TanggalNISNama SiswaKelasHadirSakitIzinAlpa
$tanggal$nis$ambil_kolom[4] $ambil_kolom[14]
"); echo (""); echo (""); echo (""); echo (""); echo ("
"); echo (""); echo (""); echo (""); echo ("
"); mysql_close($link); //echo ("<iframe src='formeditsiswa.php?nis=$nis' width='450' height='550' frameborder='0'>"); include "footer.php"; ?>

120

18. formeditsiswa.php <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript" charset="utf8"> <script src="../jquery.uniform.js" type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8"> $(function(){ $("input, textarea, select, button").uniform(); }); <style type="text/css" media="screen"> body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #666; padding: 20px; } h1 { margin-top: 0; } ul { list-style: none; padding: 0; margin: 0; } li { margin-bottom: 5px; clear: both; } label { font-size: 10px; font-weight: bold; text-transform: uppercase; display: block; margin-bottom: 0; clear: both; }

<script type="text/javascript" src="datetimepicker_css.js">

121

lanjutan formeditsiswa.php
  • Pick a date
  • <select name="jenis_kelamin">
  • <select name="usia">
  • <select name="agama_siswa">
  • "; $myquery="select id_kelas, nama_kelas from tbl_kelas"; $daftarjurusan=mysql_query($myquery) or die (mysql_error()); while($dataku=mysql_fetch_object($daftarjurusan)) { //perulangan menampilkan data echo ""; 122 } echo ""; ?>


  • lanjutan formeditsiswa.php $myquery="select id_kelas, nama_kelas from tbl_kelas"; $daftarjurusan=mysql_query($myquery) or die (mysql_error()); while($dataku=mysql_fetch_object($daftarjurusan)) { //perulangan menampilkan data echo ""; } echo ""; ?>


19. formeditwali.php <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript" charset="utf8"> <script src="../jquery.uniform.js" type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8"> $(function(){ $("input, textarea, select, button").uniform(); }); <style type="text/css" media="screen"> body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #666; padding: 20px; } h1 { margin-top: 0; } ul { list-style: none; padding: 0; margin: 0; } li { margin-bottom: 5px; clear: both; }

123

lanjutan formeditwali.php label { font-size: 10px; font-weight: bold; text-transform: uppercase; display: block; margin-bottom: 0; clear: both; }

<script type="text/javascript" src="datetimepicker_css.js">
  • <select name="agama_wali">

  • 124

    lanjutan formeditwali.php //Koneksi database mysql_connect("localhost","root","") or die(mysql_error()); mysql_select_db("absensi") or die (mysql_error()); //Menampilkan combo box echo "<select name=\"nis\" id=\"nis\">"; $myquery="select nis, nama_siswa from tbl_siswa"; $daftarjurusan=mysql_query($myquery) or die (mysql_error()); while($dataku=mysql_fetch_object($daftarjurusan)) { //perulangan menampilkan data echo ""; } echo ""; ?>


20. formeditkelas.php <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript" charset="utf8"> <script src="../jquery.uniform.js" type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8"> $(function(){ $("input, textarea, select, button").uniform(); }); <style type="text/css" media="screen"> body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #666; padding: 20px; } h1 { margin-top: 0; } ul { list-style: none; padding: 0; margin: 0; }

125

lanjutan formeditkelas.php li { margin-bottom: 5px; clear: both; } label { font-size: 10px; font-weight: bold; text-transform: uppercase; display: block; margin-bottom: 0; clear: both; }

<script type="text/javascript" src="datetimepicker_css.js">


126

21. hapus_siswa.php

berhasil di hapus

"); } else { $value = '16'; setcookie("hapussiswagagalcook", $value); header("location: lihatdatasiswa.php"); //echo "gagal dihapus
"; } echo mysql_error(); ?>

22. hapus_wali.php

berhasil di hapus

"); } else { $value = '20'; setcookie("hapuswaligagalcook", $value); header("location: lihatdatawalisiswa.php"); //echo "gagal dihapus
"; } echo mysql_error(); ?>

127

23. hapus_kelas.php

berhasil di hapus

"); } else { $value = '18'; setcookie("hapuskelasgagalcook", $value); header("location: lihatdatakelas.php"); //echo "gagal dihapus
"; } echo mysql_error(); ?>

24. hapus_inbox.php

berhasil di hapus

"); } else { $value = '6'; setcookie("inboxgagalcook", $value); header("location: pesanmasuk.php"); //echo "gagal dihapus
"; } echo mysql_error(); include "footer.php"; ?>

128

25. hapus_outbox.php

berhasil di hapus

"); } else { $value = '33'; setcookie("outboxgagalcook", $value); header("location: pesanpending.php"); //echo "gagal dihapus
"; } echo mysql_error(); include "footer.php"; ?>

26. hapus_terkirim.php

berhasil di hapus

"); } else { $value = '8'; setcookie("terkirimgagalcook", $value); header("location: pesanterkirim.php"); //echo "gagal dihapus
"; } echo mysql_error(); ?>

129

27. inputdatasiswa.php Data Siswa Baru Berhasil ditambahkan


"; //echo ("

Data Siswa Baru Berhasil ditambahkan

"); } else { //$value = '10'; //setcookie("inputsiswagagalcook", $value); //header("location: listdatasiswa.php"); echo"

Gagal Menambah Data Siswa Baru !

".mysql_error(); //echo ("

Gagal Menambah Data Siswa Baru

".mysql_error()); } //include "footer.php"; ?>

130

28. inputdatawalisiswa.php
$nama_wali=$_POST['nama_wali']; $status_wali=$_POST['status_wali']; $alamat_wali=$_POST['alamat_wali']; $no_telepon=$_POST['no_telepon']; $agama_wali=$_POST['agama_wali']; $pekerjaan=$_POST['pekerjaan']; $nis=$_POST['nis']; $input="INSERT INTO tbl_walisiswa(nama_wali,status_wali,alamat_wali,no_telepon,agama_wali,pekerjaan,nis) VALUES ('$nama_wali','$status_wali','$alamat_wali','$no_telepon','$agama_wali','$pekerjaan','$nis')"; $hasil=mysql_query($input); if ($hasil) { //$value = '9'; //setcookie("inputsiswaokecook", $value); //header("location: listdatasiswa.php"); echo "

Data Wali Siswa Baru Berhasil ditambahkan


"; //echo ("

Data Siswa Baru Berhasil ditambahkan

"); } else { //$value = '10'; //setcookie("inputsiswagagalcook", $value); //header("location: listdatasiswa.php"); echo"

Gagal Menambah Data Wali Siswa Baru !

".mysql_error(); //echo ("

Gagal Menambah Data Siswa Baru

".mysql_error()); } //include "footer.php"; ?>

131

29. inputdataabsen.php "; $link=open_connection(); $query = "INSERT INTO tbl_absensi (tanggal, keterangan, nis) VALUES ('$tanggal', '$keterangan', '$nis')"; $hasil = mysql_query($query); mysql_close($link); } if ($hasil) { $value = '21'; setcookie("inputabsenokecook", $value); header("location: inputabsensi.php"); } else { $value = '22'; setcookie("inputabsengagalcook", $value); header("location: inputabsensi.php"); } } else { echo "Anda tidak dapat mengakses Halaman ini!"; } include "footer.php"; ?>

132

30. inputdatakelas.php
$nama_kelas=$_POST['nama_kelas']; $tahun_ajaran=$_POST['tahun_ajaran']; $input="INSERT INTO tbl_kelas(nama_kelas,tahun_ajaran) VALUES ('$nama_kelas','$tahun_ajaran')"; $hasil=mysql_query($input); if ($hasil) { //$value = '9'; //setcookie("inputsiswaokecook", $value); //header("location: listdatasiswa.php"); echo "

Data Kelas Baru Berhasil ditambahkan


"; //echo ("

Data Siswa Baru Berhasil ditambahkan

"); } else { //$value = '10'; //setcookie("inputsiswagagalcook", $value); //header("location: listdatasiswa.php"); echo"

Gagal Menambah Data Kelas Baru !

".mysql_error(); //echo ("

Gagal Menambah Data Siswa Baru

".mysql_error()); } //include "footer.php"; ?>

31. profil_siswa.php

Data Siswa

"); echo ("
"); //echo (""); while ($data = mysql_fetch_row ($tampil)){ echo (""); echo ("");

133

lanjutan profil_siswa.php echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); } echo ("
Kelas$data[1]
NIS$data[0]
Nama$data[1]
TTL$data[2], $data[3]
Jenis Kelamin$data[4]
Usia$data[5] Tahun
Agama$data[6]
Alamat$data[7]
Asal Sekolah$data[8]
Kelas$data[11]
"); mysql_close($link); echo ("<iframe src='chart/chartabsensipersiswa.php?nis=$nis' width='450' height='420' frameborder='0'>"); include "footer.php"; ?>

32. profil_walisiswa.php

Data Wali Siswa

"); echo ("
"); while ($data = mysql_fetch_row ($tampil)){ echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo ("
Nama$data[1]
No. Telepon$data[4]
Status$data[2]
Agama$data[5]
Alamat$data[3]
Pekerjaan$data[6]
Wali Dari$data[9]
"); mysql_close($link); include "footer.php"; ?>

134

33. profil_kelas.php

Data Kelas

"); echo ("
"); while ($data = mysql_fetch_row ($tampil)){ echo (""); echo (""); $perintah3 = "SELECT COUNT( nis ) AS 'totalsiswa' FROM tbl_siswa INNER JOIN tbl_kelas ON tbl_siswa.id_kelas = tbl_kelas.id_kelas WHERE tbl_kelas.id_kelas=$id_kelas"; $tampil2 = mysql_query($perintah3); while ($data4 = mysql_fetch_row ($tampil2)){ echo (""); } } echo ("
Kelas$data[1] 
Tahun Ajaran$data[2] 
Jumlah Siswa$data4[0] 
"); echo ("
"); echo ("
"); echo (""); echo "<select name=\"pilihan\" id=\"pilihan\">"; echo ""; echo ""; echo ""; echo ""; echo ""; echo (""); echo ("
");

135

lanjutan profil_kelas.php

if(!isset($_POST['pilihan'])||$_POST['pilihan']=='Kehadiran'){ $_POST['pilihan']='Kehadiran'; $id_kelas = $_GET['id_kelas']; echo ("<iframe src='chart/chartabsensiperkelas.php?id_kelas=$id_kelas' width='450' height='420' frameborder='0'>"); } if($_POST['pilihan']=='JenisKelamin'){ echo ("<iframe src='chart/chartjeniskelaminperkelas.php?id_kelas=$id_kelas' width='450' height='420' frameborder='0'>"); } if($_POST['pilihan']=='Usia'){ echo ("<iframe src='chart/chartusiaperkelas.php?id_kelas=$id_kelas' width='450' height='420' frameborder='0'>"); } if($_POST['pilihan']=='Agama'){ echo ("<iframe src='chart/chartagamaperkelas.php?id_kelas=$id_kelas' width='450' height='420' frameborder='0'>"); } mysql_close($link); //echo ("<iframe src='scripttester/chartabsensipersiswa.php?nis=$nis' width='450' height='420' frameborder='0'>"); //xecho ("<iframe src='scripttester/chartkelas.php' width='650' height='450' frameborder='0'>"); include "footer.php"; ?>

34. pesanmasuk.php

berhasil di hapus

"); setcookie("inboxokecook", "", time()-3600); } else if(isset($_COOKIE['inboxgagalcook' ])) { echo ("

gagal di hapus

"); setcookie("inboxgagalcook", "", time()-3600); } else { echo ("

Pesan Masuk

"); echo ("
"); echo (""); 136 while ($data = mysql_fetch_row ($tampil)){ echo (""); echo (""); echo("
PengirimWaktuIsi PesanAction
$data[3]$data[1] $data[8]
lanjutan pesanmasuk.php else { echo ("

Pesan Masuk

"); echo ("
"); echo (""); while ($data = mysql_fetch_row ($tampil)){ echo (""); echo (""); } echo ("
PengirimWaktuIsi PesanAction
$data[3]$data[1] $data[8]del del
"); $query = "SELECT COUNT(*) AS jumData FROM inbox"; $hasil = mysql_query($query); $data = mysql_fetch_array($hasil); mysql_close($link); $jumData = $data['jumData']; $jumPage = ceil($jumData/$dataPerPage); if ($noPage > 1) echo "
<< Prev"; $showPage = isset($_GET['page']) ? $_GET['page'] : 1 ; 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 " ".$page." "; else echo " ".$page." "; $showPage = $page; } } if ($noPage < $jumPage) echo "Next >>"; } include "footer.php"; ?>

137

35. pesanterkirim.php

berhasil di hapus

"); setcookie("terkirimokecook", "", time()-3600); } else if(isset($_COOKIE['terkirimgagalcook' ])) { echo ("

gagal di hapus

"); setcookie("terkirimgagalcook", "", time()-3600); } else { echo ("

Pesan Terkirim

"); echo ("
"); echo (""); while ($data = mysql_fetch_row ($tampil)) { echo (""); echo (""); } echo ("
No.Tujuan Isi Pesan Action
$data[5]$data[10]del
"); $query = "SELECT COUNT(*) AS jumData FROM sentitems WHERE Status='SendingOKNoReport'"; $hasil = mysql_query($query); $data = mysql_fetch_array($hasil); mysql_close($link); $jumData = $data['jumData']; $jumPage = ceil($jumData/$dataPerPage); if ($noPage > 1) echo "<< Prev"; $showPage = isset($_GET['page']) ? $_GET['page'] : 1 ; 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 " ".$page." "; else echo " ".$page." "; $showPage = $page; } } if ($noPage < $jumPage) echo "Next >>"; } include "footer.php"; ?>

138

36. pesanpending.php

berhasil di hapus

"); setcookie("outboxokecook", "", time()-3600); } else if(isset($_COOKIE['outboxgagalcook' ])) { echo ("

gagal di hapus

"); setcookie("outboxgagalcook", "", time()-3600); } else { echo ("

Pesan Pending

"); echo ("
"); echo (""); while ($data = mysql_fetch_row ($tampil)) { echo (""); echo (""); } echo ("
No.Tujuan Isi Pesan Action
$data[6]$data[10]del
"); $query = "SELECT COUNT(*) AS jumData FROM OUTBOX"; $hasil = mysql_query($query); $data = mysql_fetch_array($hasil); $jumData = $data['jumData']; $jumPage = ceil($jumData/$dataPerPage); if ($noPage > 1) echo "<< Prev"; $showPage = isset($_GET['page']) ? $_GET['page'] : 1 ; 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 " ".$page." "; else echo " ".$page." "; $showPage = $page; } } if ($noPage < $jumPage) echo "Next >>"; } mysql_close($link); include "footer.php"; ?>

139

37. pesangagal.php

Gagal Terkirim

"); echo ("
"); echo (""); while ($data = mysql_fetch_row ($tampil)) { echo (""); echo (""); } echo ("
No.Tujuan Isi Pesan Action
$data[5]$data[10]del
"); $query = "SELECT COUNT(*) AS jumData FROM sentitems WHERE Status='SendingError'"; $hasil = mysql_query($query); $data = mysql_fetch_array($hasil); mysql_close($link); $jumData = $data['jumData']; $jumPage = ceil($jumData/$dataPerPage); if ($noPage > 1) echo "<< Prev"; $showPage = isset($_GET['page']) ? $_GET['page'] : 1 ; 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 " ".$page." "; else echo " ".$page." "; $showPage = $page; } } if ($noPage < $jumPage) echo "Next >>"; include "footer.php"; ?>

140

38. cari.php Hasil Pencarian"); echo ("
"); echo (""); $link=open_connection(); if((isset($_POST['SenderNumber']))||(isset($_POST['TextDecoded']))||(isset($_POST['tanggalawal']))||(isset($_POST ['tanggalakhir']))){ $SenderNumber = $_POST['SenderNumber']; $TextDecoded = $_POST['TextDecoded']; $tanggalawal = $_POST['tanggalawal']; $tanggalakhir = $_POST['tanggalakhir']; $q = "SELECT * FROM `inbox` WHERE `SenderNumber` LIKE '%$SenderNumber%' AND `TextDecoded` LIKE '%$TextDecoded%' AND (ReceivingDateTime between '$tanggalawal' AND '$tanggalakhir')"; //echo $q; $exe= mysql_query($q); mysql_close($link); //echo $q; while($r=mysql_fetch_row($exe)){ echo (""); } } echo ("
PengirimIsi Pesanwaktu
$r[3] $r[8] $r[1]
"); include "footer.php"; ?>

39. logout.php

141

40. kirim.php

41. chpasswd.php id; $passcode=$_POST['passcode']; //echo $id; $input=" UPDATE admin SET passcode = '$passcode' WHERE admin.id = '$id' "; $hasil=mysql_query($input); if ($hasil) { //$value = '9'; //setcookie("inputsiswaokecook", $value); //header("location: listdatasiswa.php"); echo "

Password Berhasil diubah


"; //echo ("

Data Siswa Baru Berhasil ditambahkan

"); } else { //$value = '10'; //setcookie("inputsiswagagalcook", $value); //header("location: listdatasiswa.php"); echo"

Gagal Mengubah Password!

".mysql_error(); 142 //echo ("

Gagal Menambah Data Siswa Baru

".mysql_error()); } mysql_close($link); include "footer.php";

lanjutan chpasswd.php } else { //$value = '10'; //setcookie("inputsiswagagalcook", $value); //header("location: listdatasiswa.php"); echo"

Gagal Mengubah Password!

".mysql_error(); //echo ("

Gagal Menambah Data Siswa Baru

".mysql_error()); } mysql_close($link); include "footer.php"; ?>

42. smsmassal.php Pesan Terkirim
"; setcookie("okesentgrupcook", "", time()-3600); } else if(isset($_COOKIE['gagalsentgrupcook' ])){ echo"
Proses input Gagal !
".mysql_error(); setcookie("gagalsentgrupcook", "", time()-3600); } else{ echo "

SMS Group

"; echo ("
"); echo (""); echo("
"); echo ("
"); echo "<pre>Kirim SMS Ke Wali : <select name=\"id_kelas\" id=\"id_kelas\">"; $link=open_connection(); $myquery="select id_kelas, nama_kelas from tbl_kelas"; $daftarjurusan=mysql_query($myquery) or die (mysql_error()); echo ""; while($dataku=mysql_fetch_object($daftarjurusan)) { //perulangan menampilkan data echo ""; //$value = '13'; //setcookie("datawaliokecook", $value); } echo ""; echo ("
"); echo ("Pesan :
"); echo " "; echo ("
"); echo ("
"); 143 echo ("
"); } include "footer.php"; ?>

lanjutan smsmassal.php echo ("
"); echo ("Pesan :
"); echo " "; echo (""); echo ("
"); echo ("
"); } include "footer.php"; ?>

43. cekstatusmodem.php cekmodem.log"); header("location: statusmodem.php"); ?>

44. cekpulsa.php cekpulsa.log"); $fh = fopen("cekpulsa.log", "r"); $str = file_get_contents("cekpulsa.log"); function hextobin($hexstr){ $n = strlen($hexstr); $sbin=""; $i=0; while($i<$n){ $a =substr($hexstr,$i,2); $c = pack("H*",$a); if ($i==0){$sbin=$c;} else {$sbin.=$c;} $i+=2; }

144

lanjutan cekpulsa.php return $sbin; } //$str = preg_replace('/\D/', '', $str); //$hasil = hextobin($str); //echo $str; //echo $hasil; //$str = 'This is a text, "Your Balance left $0.10", End 0';

//isi //$value = '1'; //setcookie("kodeform", $value); if(isset($_COOKIE['pulsacook' ])) { //forward slashes are the start and end delimeters //third parameter is the array we want to fill with matches if (preg_match('/"([^"]+)"/', $str, $m)) { $hasil = hextobin($m[1]); echo $hasil; //print $m[1]; } else { echo ("Jaringan Sibuk, Coba Lagi"); //preg_match returns the number of matches found, //so if here didn't match pattern } setcookie("pulsacook", "", time()-3600); } else{ echo ("

Cek Pulsa

"); echo ("
"); echo ("Masukan Nomer Cek Pulsa   "); echo (" "); echo (""); echo (""); echo (" "); echo (" "); echo (""); echo ("
"); //echo $_POST["abc"]; } //batas isi echo "
"; echo ("

Untuk melakukan Cek Pulsa pastikan Servis Gammu dimatikan terlebih dahulu.

"); include "footer.php"; ?>

145

45. startgammu.php "; echo ""; echo ""; } ?>

46. stopgammu.php "; echo ""; echo ""; } ?>

146

Lampiran 5. Surat Keterangan Validasi Instrumen

147

Lampiran 6. Surat Pengangkatan Pembimbing Skripsi

148

Lampiran 7. Surat Ijin Penelitian

149

150

151