-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmedia.php
More file actions
27 lines (25 loc) · 871 Bytes
/
media.php
File metadata and controls
27 lines (25 loc) · 871 Bytes
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
<?php
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip'))
ob_start("ob_gzhandler");
else
ob_start();
session_start();
// Panggil semua fungsi yang dibutuhkan (semuanya ada di folder config)
include "config/koneksi.php";
include "config/fungsi_indotgl.php";
include "config/class_paging.php";
include "config/fungsi_combobox.php";
include "config/library.php";
include "config/fungsi_autolink.php";
include "config/fungsi_badword.php";
include "config/fungsi_kalender.php";
include "config/option.php";
// Memilih template yang aktif saat ini
$pilih_template=mysqli_query($conn,"SELECT folder FROM templates WHERE aktif='Y'");
$f=mysqli_fetch_array($pilih_template);
if (file_exists("$f[folder]/template.php")){
include "$f[folder]/template.php";
}else{
echo "Cek Nama / Folder Template";exit;
}
?>