forked from hendra-cspdg/SIM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.php
More file actions
executable file
·19 lines (16 loc) · 759 Bytes
/
conf.php
File metadata and controls
executable file
·19 lines (16 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
$homedir= "SIM"; //direktori SIM
$template="default"; //nama template
$home_uri="http://".$_SERVER["HTTP_HOST"]."/$homedir/"; //url SIM
$template_uri=$home_uri."templates/$template/"; //url template
$home=$home_uri."home.php/"; //alamat home.php, router bagi SIM dilengkapi dengan / (slash)
$dashboard=$home_uri."home.php"; //url dashboard
$servername = "localhost"; //alamat server database
$username = "sim"; //username database
$password = "sim"; //password database
$dbname="sim"; //database
$conn = new mysqli($servername, $username, $password, $dbname); //koneksi ke database
if ($conn->connect_error) {
die("Koneksi ke basisdata gagal: " . $conn->connect_error); //tampilkan pesan kesalahan jika gagal koneksi ke database
}
?>