forked from fauzan1892/pos-kasir-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·39 lines (36 loc) · 985 Bytes
/
Copy pathindex.php
File metadata and controls
executable file
·39 lines (36 loc) · 985 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
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/*
| Source Code Aplikasi Penjualan Barang Kasir dengan PHP & MYSQL
|
| @package : pos-kasir-php
| @file : index.php
| @author : fauzan1892 / Fauzan Falah
| @copyright : Copyright (c) 2017-2021 Codekop.com (https://www.codekop.com)
| @blog : https://www.codekop.com/read/source-code-aplikasi-penjualan-barang-kasir-dengan-php-amp-mysql-gratis.html
|
|
|
|
*/
@ob_start();
session_start();
if(!empty($_SESSION['admin'])){
require 'config.php';
include $view;
$lihat = new view($config);
$toko = $lihat -> toko();
// admin
include 'admin/template/header.php';
include 'admin/template/sidebar.php';
if(!empty($_GET['page'])){
include 'admin/module/'.$_GET['page'].'/index.php';
}else{
include 'admin/template/home.php';
}
include 'admin/template/footer.php';
// end admin
}else{
echo '<script>window.location="login.php";</script>';
exit;
}
?>