Upload Sertif login sebagai sisw, fix bug tampil sertifikat sebagai oprator dan siswa, cek_sertifikat login sebagai siswa bisa upload ulang file jika statusnya tidak valid
15 lines
406 B
PHP
Executable File
15 lines
406 B
PHP
Executable File
<?php
|
|
if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1' || $_SERVER['REMOTE_ADDR'] == '::1') {
|
|
$host = "localhost";
|
|
$username = "root";
|
|
$password = "passwordlocal";
|
|
$database = "SKKPd_RPL2";
|
|
} else {
|
|
$host = "192.168.0.249";
|
|
$username = "root";
|
|
$password = "password";
|
|
$database = "SKKPd_RPL2";
|
|
}
|
|
|
|
$koneksi = mysqli_connect($host, $username, $password, $database);
|
|
?>
|