-
Notifications
You must be signed in to change notification settings - Fork 30
/
getprem.php
43 lines (36 loc) · 1.08 KB
/
getprem.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
//************************************************
// Sceipt By Rud Az ( Dilarang Ganti Copy Right )
// [ fb.me/rud.az.9 ] Jan lup add
// [ wa : 085730882379 ]
//************************************************
date_default_timezone_set('Asia/Jakarta');
error_reporting(0);
$maintenance = 0; // Maintenance? 1 = ya 0 = tidak
if($maintenance == 1) {
die("Server Error.");
}
//database
$config['database'] = array(
'host' => 'localhost',
'name' => 'rudaz',
'username' => 'root',
'password' => ''
);
$konek = mysqli_connect($config['database']['host'], $config['database']['username'], $config['database']['password'], $config['database']['name']);
if(!$konek) {
die("Koneksi Gagal : ".mysqli_connect_error());
}
$web['base'] = array(
'url' => 'http://localhost:8080/premium/' // Setting Url Masing Masing!
);
function rudaz($input) {
global $konek;
$result = mysqli_real_escape_string($konek,stripslashes(strip_tags(htmlspecialchars($input,ENT_QUOTES))));
return $result;
}
// date & time
$date = date("Y-m-d");
$time = date("H:i:s");
require("lib/function.php");
?>