-
Notifications
You must be signed in to change notification settings - Fork 2
/
login_template.inc.php
executable file
·82 lines (72 loc) · 1.65 KB
/
login_template.inc.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/**
* @Author: ido_alit
* @Date: 2015-11-12 18:45:37
* @Last Modified by: ido_alit
* @Last Modified time: 2015-11-19 14:15:29
* @Dimodifikasi Oleh : M.Zaemakhrus 1 Januari 2018
*/
/*
=========================
Be sure that this file not accessed directly
=========================
*/
if (!defined('INDEX_AUTH')) {
die("can not access this file directly");
} elseif (INDEX_AUTH != 1) {
die("can not access this file directly");
}
/*
=========================
Define current public template directory
=========================
*/
define('CURRENT_TEMPLATE_DIR', $sysconf['template']['dir'].'/'.$sysconf['template']['theme'].'/');
/*
=========================
Load header
- open html tag
- head tag
- open body tag
=========================
*/
include 'part/head.php';
/*
=========================
Load content
=========================
| You can change the layout of template part
| by change/move/remove structure of load content part
*/
// visitor page
if ($_GET['p'] == 'visitor') {
echo $main_content;
} else {
// login page
?>
<div class="bg-login">
<div class="slims-container">
<div class="row">
<div class="col-sm-4"></div>
<div class="col-sm-4 box-login">
<div class="slims-card slims-card--default slims-vertical">
<div class="slims-card--header">
<?php echo __('Librarian LOGIN') ?>
</div>
<?php echo $main_content; ?>
</div>
</div>
</div>
</div>
</div>
<?php
}
/*
=========================
Load footer
- close body tag
- close html tag
=========================
*/
include 'part/footer.php';
include 'part/promo.php';