mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-05 10:44:52 +02:00
PHPMixBill v5.0 - First Upload
This commit is contained in:
commit
979475b312
767 changed files with 239450 additions and 0 deletions
BIN
system/install/.DS_Store
vendored
Normal file
BIN
system/install/.DS_Store
vendored
Normal file
Binary file not shown.
6203
system/install/css/bootstrap.css
vendored
Normal file
6203
system/install/css/bootstrap.css
vendored
Normal file
File diff suppressed because it is too large
Load diff
1
system/install/css/bootstrap.css.map
Normal file
1
system/install/css/bootstrap.css.map
Normal file
File diff suppressed because one or more lines are too long
5
system/install/css/bootstrap.min.css
vendored
Normal file
5
system/install/css/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
73
system/install/css/style.css
Normal file
73
system/install/css/style.css
Normal file
|
@ -0,0 +1,73 @@
|
|||
body {
|
||||
background-color: #FBFBFB;
|
||||
|
||||
}
|
||||
|
||||
img {
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
#main-container {
|
||||
width: 90%;
|
||||
max-width: 940px;
|
||||
margin: 20px auto;
|
||||
|
||||
background-color: #fff;
|
||||
border: 1px solid #E5E5E5;
|
||||
padding: 20px;
|
||||
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: 0px 5px 15px #bbb;
|
||||
-webkit-box-shadow: 0px 5px 15px #bbb;
|
||||
box-shadow: 0px 5px 15px #ddd;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
width: 100%;
|
||||
max-width: 940px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.header {
|
||||
height: 50px;
|
||||
position: relative;
|
||||
|
||||
}
|
||||
|
||||
.header-box {
|
||||
height: 50px;
|
||||
position: relative;
|
||||
margin-right: 0px;
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
.hd-logo {
|
||||
float: left;
|
||||
margin: 0px 0px 0 0;
|
||||
font-size: 13px;
|
||||
line-height: 16px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
|
||||
}
|
||||
|
||||
.box {
|
||||
width: 500px;
|
||||
height: 400px;
|
||||
padding: 10px;
|
||||
border: 1px solid black;
|
||||
float: left;
|
||||
margin: 0 20px 0 0;
|
||||
}
|
||||
|
||||
.box-two {
|
||||
overflow: auto;
|
||||
}
|
||||
|
BIN
system/install/img/favicon.png
Normal file
BIN
system/install/img/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.6 KiB |
BIN
system/install/img/logo.png
Normal file
BIN
system/install/img/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.1 KiB |
61
system/install/index.php
Normal file
61
system/install/index.php
Normal file
|
@ -0,0 +1,61 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>PHPMixBill v5.0 Installer</title>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.png">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<link type='text/css' href='css/style.css' rel='stylesheet'/>
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body style='background-color: #FBFBFB;'>
|
||||
<div id='main-container'>
|
||||
<div class='header'>
|
||||
<div class="header-box wrapper">
|
||||
<div class="hd-logo"><a href="#"><img src="img/logo.png" alt="Logo"/></a></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- contents area start -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h4> PHPMixBill v5.0 Installer </h4>
|
||||
<div class="box box-two">
|
||||
<h5>Please Read Before Continue</h5>
|
||||
<p><strong>Informasi Aplikasi</strong><br>
|
||||
Application Name: PHPMixBill v5.0<br>
|
||||
Release Date: 30/10/2015<br>
|
||||
By: PHPMixBill [ <a href="http://phpmixbill.blogspot.com" target="_blank">hhtp://phpmixbill.blogspot.com</a> ]<br>
|
||||
Donasi Paypal: <b>iesien22@yahoo.com</b><br>
|
||||
<br>
|
||||
<strong>Syarat Penggunaan:</strong><br>
|
||||
Syarat Penggunaan ini berlaku untuk semua versi.<br><br>
|
||||
<ul>
|
||||
<li>Silahkan Anda menggunakan aplikasi ini dengan bijak, Anda dapat mendesain ulang script maupun tampilan pada
|
||||
aplikasi ini sesuai dengan kebutuhan anda, memperbayak jumlah copy atau mendistribusikan aplikasi ini.
|
||||
Dengan catatan tidak menghapus link developer.</li>
|
||||
<li>Tidak ada garansi dari kami jika anda mengalami error atau merasa rugi ketika menggunakan aplikasi ini,
|
||||
Anda hanya dapat memberikan feedback yang berisi laporan error, dengan syarat dan ketentuan yang berlaku.</li>
|
||||
<li>Semua yang terkait biaya atau donasi apapun versi-nya, Anda dapat update seumur hidup atau selama aplikasi
|
||||
ini masih dikembangkan. Mohon jangan salah pengertian bahwa kami tim pengembang mengkomersilkan produk ini
|
||||
dan anda membeli produk kami.</li>
|
||||
<li>Aplikasi ini bersifat sosial untuk dapat dikembangkan bersama. Karena itu kami juga mengundang relawan-relawan
|
||||
yang mau menjadi pengembangkan aplikasi ini.</li>
|
||||
<li>Penulis berhak setiap saat untuk mengubah ketentuan Syarat Penggunaan tanpa pemberitahuan sebelumnya.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12"><br>
|
||||
<a href="step2.php" class="btn btn-primary">Accept & Continue</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- contents area end -->
|
||||
</div>
|
||||
<div class="footer">Copyright © 2015 PHPMixBill. All Rights Reserved<br/><br/></div>
|
||||
</body>
|
||||
</html>
|
||||
|
239
system/install/phpmixbill.sql
Normal file
239
system/install/phpmixbill.sql
Normal file
|
@ -0,0 +1,239 @@
|
|||
-- pjl SQL Dump
|
||||
-- Server version:5.6.25
|
||||
-- Generated: 2015-10-30 08:21:49
|
||||
-- Current PHP version: 5.6.11
|
||||
-- Host: localhost
|
||||
-- Database:biling
|
||||
-- --------------------------------------------------------
|
||||
-- Structure for 'tbl_appconfig'
|
||||
--
|
||||
|
||||
CREATE TABLE `tbl_appconfig` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`setting` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
||||
`value` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Dump Data for `tbl_appconfig`
|
||||
--
|
||||
|
||||
INSERT INTO tbl_appconfig (`id`,`setting`,`value`) VALUES ("1","CompanyName","PHPMixBill v5.0");
|
||||
INSERT INTO tbl_appconfig (`id`,`setting`,`value`) VALUES ("2","theme","default");
|
||||
INSERT INTO tbl_appconfig (`id`,`setting`,`value`) VALUES ("3","currency_code","Rp.");
|
||||
INSERT INTO tbl_appconfig (`id`,`setting`,`value`) VALUES ("4","language","english");
|
||||
INSERT INTO tbl_appconfig (`id`,`setting`,`value`) VALUES ("5","show-logo","1");
|
||||
INSERT INTO tbl_appconfig (`id`,`setting`,`value`) VALUES ("6","nstyle","blue");
|
||||
INSERT INTO tbl_appconfig (`id`,`setting`,`value`) VALUES ("7","timezone","Asia/Jakarta");
|
||||
INSERT INTO tbl_appconfig (`id`,`setting`,`value`) VALUES ("8","dec_point",".");
|
||||
INSERT INTO tbl_appconfig (`id`,`setting`,`value`) VALUES ("9","thousands_sep",",");
|
||||
INSERT INTO tbl_appconfig (`id`,`setting`,`value`) VALUES ("10","rtl","0");
|
||||
INSERT INTO tbl_appconfig (`id`,`setting`,`value`) VALUES ("11","address","Jl. Kubangsari VII No. 31 RT.03/RW.06 Bandung");
|
||||
INSERT INTO tbl_appconfig (`id`,`setting`,`value`) VALUES ("12","phone","081322225141");
|
||||
INSERT INTO tbl_appconfig (`id`,`setting`,`value`) VALUES ("13","date_format","d M Y");
|
||||
INSERT INTO tbl_appconfig (`id`,`setting`,`value`) VALUES ("14","note","Thank you...");
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Structure for 'tbl_bandwidth'
|
||||
--
|
||||
|
||||
CREATE TABLE `tbl_bandwidth` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`name_bw` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
||||
`rate_down` int(10) unsigned NOT NULL,
|
||||
`rate_down_unit` enum('Kbps','Mbps') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
||||
`rate_up` int(10) unsigned NOT NULL,
|
||||
`rate_up_unit` enum('Kbps','Mbps') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Structure for 'tbl_customers'
|
||||
--
|
||||
|
||||
CREATE TABLE `tbl_customers` (
|
||||
`id` int(10) NOT NULL AUTO_INCREMENT,
|
||||
`username` varchar(45) CHARACTER SET latin1 NOT NULL,
|
||||
`password` varchar(45) CHARACTER SET latin1 NOT NULL,
|
||||
`fullname` varchar(45) CHARACTER SET latin1 NOT NULL,
|
||||
`address` text CHARACTER SET latin1,
|
||||
`phonenumber` varchar(20) CHARACTER SET latin1 DEFAULT '0',
|
||||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`last_login` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Structure for 'tbl_language'
|
||||
--
|
||||
|
||||
CREATE TABLE `tbl_language` (
|
||||
`id` int(10) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(32) NOT NULL,
|
||||
`folder` varchar(32) NOT NULL,
|
||||
`author` varchar(60) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Dump Data for `tbl_language`
|
||||
--
|
||||
|
||||
INSERT INTO tbl_language (`id`,`name`,`folder`,`author`) VALUES ("1","Indonesia","indonesia","Ismail Marzuqi");
|
||||
INSERT INTO tbl_language (`id`,`name`,`folder`,`author`) VALUES ("2","English","english","Ismail Marzuqi");
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Structure for 'tbl_logs'
|
||||
--
|
||||
|
||||
CREATE TABLE `tbl_logs` (
|
||||
`id` int(10) NOT NULL AUTO_INCREMENT,
|
||||
`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`type` varchar(50) NOT NULL,
|
||||
`description` text NOT NULL,
|
||||
`userid` int(10) NOT NULL,
|
||||
`ip` text NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Structure for 'tbl_message'
|
||||
--
|
||||
|
||||
CREATE TABLE `tbl_message` (
|
||||
`id` int(10) NOT NULL AUTO_INCREMENT,
|
||||
`from_user` varchar(32) CHARACTER SET latin1 NOT NULL,
|
||||
`to_user` varchar(32) CHARACTER SET latin1 NOT NULL,
|
||||
`title` varchar(60) CHARACTER SET latin1 NOT NULL,
|
||||
`message` text CHARACTER SET latin1 NOT NULL,
|
||||
`status` enum('0','1') CHARACTER SET latin1 NOT NULL DEFAULT '0',
|
||||
`date` datetime NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Structure for 'tbl_plans'
|
||||
--
|
||||
|
||||
CREATE TABLE `tbl_plans` (
|
||||
`id` int(10) NOT NULL AUTO_INCREMENT,
|
||||
`name_plan` varchar(40) CHARACTER SET latin1 NOT NULL,
|
||||
`id_bw` int(10) NOT NULL,
|
||||
`price` varchar(40) CHARACTER SET latin1 NOT NULL,
|
||||
`type` enum('Hotspot','PPPOE') CHARACTER SET latin1 NOT NULL,
|
||||
`typebp` enum('Unlimited','Limited') CHARACTER SET latin1 DEFAULT NULL,
|
||||
`limit_type` enum('Time_Limit','Data_Limit','Both_Limit') CHARACTER SET latin1 DEFAULT NULL,
|
||||
`time_limit` int(10) unsigned DEFAULT NULL,
|
||||
`time_unit` enum('Mins','Hrs') CHARACTER SET latin1 DEFAULT NULL,
|
||||
`data_limit` int(10) unsigned DEFAULT NULL,
|
||||
`data_unit` enum('MB','GB') CHARACTER SET latin1 DEFAULT NULL,
|
||||
`validity` int(10) NOT NULL,
|
||||
`validity_unit` enum('Days','Months') CHARACTER SET latin1 NOT NULL,
|
||||
`shared_users` int(10) DEFAULT NULL,
|
||||
`routers` varchar(32) CHARACTER SET latin1 NOT NULL,
|
||||
`pool` varchar(40) CHARACTER SET latin1 DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Structure for 'tbl_pool'
|
||||
--
|
||||
|
||||
CREATE TABLE `tbl_pool` (
|
||||
`id` int(10) NOT NULL AUTO_INCREMENT,
|
||||
`pool_name` varchar(40) NOT NULL,
|
||||
`range_ip` varchar(40) NOT NULL,
|
||||
`routers` varchar(40) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Structure for 'tbl_routers'
|
||||
--
|
||||
|
||||
CREATE TABLE `tbl_routers` (
|
||||
`id` int(10) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(32) CHARACTER SET latin1 NOT NULL,
|
||||
`ip_address` varchar(128) CHARACTER SET latin1 NOT NULL,
|
||||
`username` varchar(50) CHARACTER SET latin1 NOT NULL,
|
||||
`password` varchar(60) CHARACTER SET latin1 NOT NULL,
|
||||
`description` varchar(50) CHARACTER SET latin1 DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Structure for 'tbl_transactions'
|
||||
--
|
||||
|
||||
CREATE TABLE `tbl_transactions` (
|
||||
`id` int(10) NOT NULL AUTO_INCREMENT,
|
||||
`invoice` varchar(25) NOT NULL,
|
||||
`username` varchar(32) NOT NULL,
|
||||
`plan_name` varchar(40) NOT NULL,
|
||||
`price` varchar(40) NOT NULL,
|
||||
`recharged_on` date NOT NULL,
|
||||
`expiration` date NOT NULL,
|
||||
`time` time NOT NULL,
|
||||
`method` enum('voucher','admin') NOT NULL,
|
||||
`routers` varchar(32) NOT NULL,
|
||||
`type` enum('Hotspot','PPPOE') NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Structure for 'tbl_user_recharges'
|
||||
--
|
||||
|
||||
CREATE TABLE `tbl_user_recharges` (
|
||||
`id` int(10) NOT NULL AUTO_INCREMENT,
|
||||
`customer_id` int(10) NOT NULL,
|
||||
`username` varchar(32) CHARACTER SET latin1 NOT NULL,
|
||||
`plan_id` int(10) NOT NULL,
|
||||
`namebp` varchar(40) CHARACTER SET latin1 NOT NULL,
|
||||
`recharged_on` date NOT NULL,
|
||||
`expiration` date NOT NULL,
|
||||
`time` time NOT NULL,
|
||||
`status` varchar(20) CHARACTER SET latin1 NOT NULL,
|
||||
`method` enum('voucher','admin') CHARACTER SET latin1 NOT NULL,
|
||||
`routers` varchar(32) CHARACTER SET latin1 NOT NULL,
|
||||
`type` varchar(15) CHARACTER SET latin1 NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Structure for 'tbl_users'
|
||||
--
|
||||
|
||||
CREATE TABLE `tbl_users` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`username` varchar(45) CHARACTER SET latin1 NOT NULL DEFAULT '',
|
||||
`fullname` varchar(45) CHARACTER SET latin1 NOT NULL DEFAULT '',
|
||||
`password` text CHARACTER SET latin1 NOT NULL,
|
||||
`user_type` enum('Admin','Sales') CHARACTER SET latin1 NOT NULL,
|
||||
`status` enum('Active','Inactive') CHARACTER SET latin1 NOT NULL DEFAULT 'Active',
|
||||
`last_login` datetime DEFAULT NULL,
|
||||
`creationdate` datetime NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Dump Data for `tbl_users`
|
||||
--
|
||||
|
||||
INSERT INTO tbl_users (`id`,`username`,`fullname`,`password`,`user_type`,`status`,`last_login`,`creationdate`) VALUES ("1","admin","Ismail Marzuqi","$1$W44.ns/.$MUnR0NeBH9xAcXm0Oku2h1","Admin","Active","2015-10-30 18:27:02","2014-06-23 01:43:07");
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- Structure for 'tbl_voucher'
|
||||
--
|
||||
|
||||
CREATE TABLE `tbl_voucher` (
|
||||
`id` int(10) NOT NULL AUTO_INCREMENT,
|
||||
`type` enum('Hotspot','PPPOE') CHARACTER SET latin1 NOT NULL,
|
||||
`routers` varchar(32) CHARACTER SET latin1 NOT NULL,
|
||||
`id_plan` int(10) NOT NULL,
|
||||
`code` varchar(55) CHARACTER SET latin1 NOT NULL,
|
||||
`user` varchar(45) CHARACTER SET latin1 NOT NULL,
|
||||
`status` varchar(25) CHARACTER SET latin1 NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
71
system/install/step2.php
Normal file
71
system/install/step2.php
Normal file
|
@ -0,0 +1,71 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>PHPMixBill v5.0 Installer</title>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<link type='text/css' href='css/style.css' rel='stylesheet'/>
|
||||
<link type='text/css' href="css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body style='background-color: #FBFBFB;'>
|
||||
<div id='main-container'>
|
||||
<div class='header'>
|
||||
<div class="header-box wrapper">
|
||||
<div class="hd-logo"><a href="#"><img src="img/logo.png" alt="Logo"/></a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span12">
|
||||
<h4> PHPMixBill v5.0 Installer </h4>
|
||||
<?php
|
||||
$passed = '';
|
||||
$ltext = '';
|
||||
if (version_compare(PHP_VERSION, '5.2.0') >= 0) {
|
||||
$ltext .= 'To Run PHPMixBill v5.0 You need at least PHP version 5.2.0, Your PHP Version is: ' . PHP_VERSION . " Tested <strong>---PASSED---</strong><br/>";
|
||||
$passed .= '1';
|
||||
|
||||
} else {
|
||||
$ltext .= 'To Run PHPMixBill v5.0 You need at least PHP version 5.2.0, Your PHP Version is: ' . PHP_VERSION . " Tested <strong>---FAILED---</strong><br/>";
|
||||
$passed .= '0';
|
||||
|
||||
}
|
||||
|
||||
if (extension_loaded('PDO')) {
|
||||
$ltext .= 'PDO is installed on your server: ' . "Tested <strong>---PASSED---</strong><br/>";
|
||||
$passed .= '1';
|
||||
} else {
|
||||
$ltext = 'PDO is installed on your server: ' . "Tested <strong>---FAILED---</strong><br/>";
|
||||
$passed .= '0';
|
||||
}
|
||||
|
||||
if (extension_loaded('pdo_mysql')) {
|
||||
$ltext .= 'PDO MySQL driver is enabled on your server: ' . "Tested <strong>---PASSED---</strong><br/>";
|
||||
$passed .= '1';
|
||||
} else {
|
||||
$ltext .= 'PDO MySQL driver is not enabled on your server: ' . "Tested <strong>---FAILED---</strong><br/>";
|
||||
$passed .= '0';
|
||||
}
|
||||
|
||||
if ($passed == '111') {
|
||||
echo("<br/> $ltext <br/> Great! System Test Completed. You can run PHPMixBill on your server. Click Continue For Next Step.
|
||||
<br><br>
|
||||
<a href=\"step3.php\" class=\"btn btn-primary\">Continue</a>");
|
||||
} else {
|
||||
echo("<br/> $ltext <br/> Sorry. The requirements of PHPMixBill v5.0 is not available on your server.
|
||||
Please contact with us- iesien22@yahoo.com with this code- $passed Or contact with your server administrator
|
||||
<br><br>
|
||||
<a href=\"#\" class=\"btn btn-primary disabled\">Correct The Problem To Continue</a>");
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">Copyright © 2015 PHPMixBill. All Rights Reserved<br/><br/></div>
|
||||
</body>
|
||||
</html>
|
||||
|
72
system/install/step3.php
Normal file
72
system/install/step3.php
Normal file
|
@ -0,0 +1,72 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>PHPMixBill v5.0 Installer</title>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<link type='text/css' href='css/style.css' rel='stylesheet'/>
|
||||
<link type='text/css' href="css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body style='background-color: #FBFBFB;'>
|
||||
<div id='main-container'>
|
||||
<div class='header'>
|
||||
<div class="header-box wrapper">
|
||||
<div class="hd-logo"><a href="#"><img src="img/logo.png" alt="Logo"/></a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span12">
|
||||
<h4> PHPMixBill v5.0 Installer </h4>
|
||||
<?php
|
||||
if (isset($_GET['_error']) && ($_GET['_error']) == '1') {
|
||||
echo '<h4 style="color: red;"> Unable to Connect Database, Please make sure database info is correct and try again ! </h4>';
|
||||
}
|
||||
|
||||
$cururl = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
||||
$appurl = str_replace('/install/step3.php', '', $cururl);
|
||||
$appurl = str_replace('?_error=1', '', $appurl);
|
||||
$appurl = str_replace('/system', '', $appurl);
|
||||
?>
|
||||
|
||||
<form action="step4.php" method="post">
|
||||
<fieldset>
|
||||
<legend>Database Connection & Site config</legend>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="appurl">Application URL</label>
|
||||
<input type="text" class="form-control" id="appurl" name="appurl" value="<?php echo $appurl; ?>">
|
||||
<span class='help-block'>Application url without trailing slash at the end of url (e.g. http://172.16.10.10). Please keep default, if you are unsure.</span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="dbhost">Database Host</label>
|
||||
<input type="text" class="form-control" id="dbhost" name="dbhost">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="dbuser">Database Username</label>
|
||||
<input type="text" class="form-control" id="dbuser" name="dbuser">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="dbpass">Database Password</label>
|
||||
<input type="text" class="form-control" id="dbpass" name="dbpass">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="dbname">Database Name</label>
|
||||
<input type="text" class="form-control" id="dbname" name="dbname">
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">Copyright © 2015 PHPMixBill. All Rights Reserved<br/><br/></div>
|
||||
</body>
|
||||
</html>
|
||||
|
108
system/install/step4.php
Normal file
108
system/install/step4.php
Normal file
|
@ -0,0 +1,108 @@
|
|||
<?php
|
||||
/**
|
||||
* PHP Mikrotik Billing (www.phpmixbill.com)
|
||||
* Ismail Marzuqi <iesien22@yahoo.com>
|
||||
* @version 5.0
|
||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4
|
||||
**/
|
||||
//error_reporting (0);
|
||||
$appurl = $_POST['appurl'];
|
||||
$db_host = $_POST['dbhost'];
|
||||
$db_user = $_POST['dbuser'];
|
||||
$db_password = $_POST['dbpass'];
|
||||
$db_name = $_POST['dbname'];
|
||||
$cn = '0';
|
||||
try{
|
||||
$dbh = new pdo( "mysql:host=$db_host;dbname=$db_name",
|
||||
"$db_user",
|
||||
"$db_password",
|
||||
array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));
|
||||
$cn = '1';
|
||||
}
|
||||
catch(PDOException $ex){
|
||||
$cn = '0';
|
||||
}
|
||||
|
||||
if ($cn == '1') {
|
||||
$input = '<?php
|
||||
$db_host = \'' . $db_host . '\';
|
||||
$db_user = \'' . $db_user . '\';
|
||||
$db_password = \'' . $db_password . '\';
|
||||
$db_name = \'' . $db_name . '\';
|
||||
define(\'APP_URL\', \'' . $appurl . '\');
|
||||
$_app_stage = \'Live\';
|
||||
';
|
||||
$wConfig = "../config.php";
|
||||
$fh = fopen($wConfig, 'w') or die("Can't create config file, your server does not support 'fopen' function,
|
||||
please create a file named - config.php with following contents- <br/>$input");
|
||||
|
||||
fwrite($fh, $input);
|
||||
fclose($fh);
|
||||
|
||||
$sql = file_get_contents('phpmixbill.sql');
|
||||
|
||||
$qr = $dbh->exec($sql);
|
||||
|
||||
} else {
|
||||
header("location: step3.php?_error=1");
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>PHPMixBill v5.0 Installer</title>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<link type='text/css' href='css/style.css' rel='stylesheet'/>
|
||||
<link type='text/css' href="css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body style='background-color: #FBFBFB;'>
|
||||
<div id='main-container'>
|
||||
<div class='header'>
|
||||
<div class="header-box wrapper">
|
||||
<div class="hd-logo"><a href="#"><img src="img/logo.png" alt="Logo"/></a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span12">
|
||||
<h4> PHPMixBill v5.0 Installer </h4>
|
||||
<?php
|
||||
if ($cn == '1') {
|
||||
?>
|
||||
<p><strong>Config File Created and Database Imported.</strong><br></p>
|
||||
<form action="step5.php" method="post">
|
||||
<fieldset>
|
||||
<legend>Click Continue</legend>
|
||||
<button type='submit' class='btn btn-primary'>Continue</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
<?php
|
||||
} elseif ($cn == '2') {
|
||||
?>
|
||||
<p> MySQL Connection was successfull. An error occured while adding data on MySQL. Unsuccessfull
|
||||
Installation. Please refer manual installation in the website phpmixbill.com or Contact iesien22@yahoo.com for
|
||||
helping on installation</p>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<p> MySQL Connection Failed.</p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer">Copyright © 2015 PHPMixBill. All Rights Reserved<br/><br/></div>
|
||||
</body>
|
||||
</html>
|
||||
|
46
system/install/step5.php
Normal file
46
system/install/step5.php
Normal file
|
@ -0,0 +1,46 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>PHPMixBill v5.0 Installer</title>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<link type='text/css' href='css/style.css' rel='stylesheet'/>
|
||||
<link type='text/css' href="css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body style='background-color: #FBFBFB;'>
|
||||
<div id='main-container'>
|
||||
<div class='header'>
|
||||
<div class="header-box wrapper">
|
||||
<div class="hd-logo"><a href="#"><img src="img/logo.png" alt="Logo"/></a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span12">
|
||||
<h4> PHPMixBill v5.0 Installer </h4>
|
||||
<p>
|
||||
<strong>Congratulations!</strong><br>
|
||||
You have just install PHPMixBill v5.0!<br>
|
||||
To Login Admin Portal:<br>
|
||||
Use this link -
|
||||
<?php
|
||||
$cururl = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
||||
$appurl = str_replace('/install/step5.php', '', $cururl);
|
||||
$appurl = str_replace('/system', '', $appurl);
|
||||
echo '<a href="' . $appurl . '/admin">' . $appurl . '/admin</a>';
|
||||
?>
|
||||
<br>
|
||||
Username: admin<br>
|
||||
Password: 123456<br>
|
||||
For security, Delete the <b>install</b> directory inside system folder.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">Copyright © 2015 PHPMixBill. All Rights Reserved<br/><br/></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue