-
Notifications
You must be signed in to change notification settings - Fork 0
/
changelog.php
175 lines (175 loc) · 5.34 KB
/
changelog.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?php include('pages/page_header.php'); ?>
<link href="css/components.css" rel="stylesheet" type="text/css" />
<link href="css/layout.css" rel="stylesheet" type="text/css" />
<link href="css/signin.css" rel="stylesheet" type="text/css" />
<script type = "text/javascript">
history.pushState(null, null, 'changelog.php');
window.addEventListener('popstate', function(event) {
history.pushState(null, null, 'changelog.php');
});
</script>
<?php include('pages/page_meta.php'); ?>
<?php
require_once('db/db_config.php');
/**
Check session id.
**/
$login = $_SESSION['LOGIN_ID'];
$dbSelected = mysql_select_db($dbName) or die("Unable to select database: " . mysql_error());
$query = "SELECT * FROM tempSession
WHERE emailAdd = '$login'";
$result = mysql_query($query);
if(!$result) die ("Table access failed: " . mysql_error());
$data = mysql_fetch_assoc($result);
$sid = $data['sid'];
/**
Verify sid record with current sid.
**/
if($sid == $_SESSION['SID']) {
if(isset($_SESSION['LOGGEDIN']) && isset($_SESSION['SID'])) {
$fname = $_SESSION['FNAME'];
$role = $_SESSION['ROLE'];
$email = $_SESSION['LOGIN_ID'];
$sessionTimeout = $_SESSION['SESSIONTIMEOUT'];
/**
Lifetime added 5min.
**/
if(isset($_SESSION['EXPIRETIME'])) {
if($_SESSION['EXPIRETIME'] < time()) {
unset($_SESSION['EXPIRETIME']);
header('Location: logout.php?TIMEOUT');
exit(0);
} else {
/**
Session time out time 5min.
**/
//$_SESSION['EXPIRETIME'] = time() + 300;
$_SESSION['EXPIRETIME'] = time() + $sessionTimeout;
};
};
} else {
unset($_SESSION['STATUS']);
header('Location: status.php');
}
} else {
unset($_SESSION['STATUS']);
header('Location: status.php');
}
?>
<?php include('pages/page_menu.php'); ?>
<div class="page-container">
<div class="page-head">
<div class="container">
<div class="page-title">
<h1>ChangeLog <small> system develop changelog.</small></h1>
</div>
<div class="page-toolbar">
<div class="btn-group btn-theme-panel"><a href="javascript:;" class="btn dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="glyphicon glyphicon-cog"></i></a></div>
</div>
</div>
</div>
<div class="page-content">
<div class="container">
<ul class="breadcrumb">
<li>
<a href="index.php">Home</a><i class="fa fa-circle"></i>
</li>
<li>
<a href="javascript:;">Extras</a><i class="fa fa-circle"></i>
</li>
<li>
<a href="javascript:;">ChangeLog</a><i class="fa fa-circle"></i>
</li>
<li class="active">
ChangeLog
</li>
</ul>
<div class="row margin-top-10">
<div class="col-md-12">
<div class="portlet light">
<div class="portlet-title">
<div class="caption">
<span class="caption-subjet font-green-sharp bold uppercase">System ChangeLog</span>
</div>
<!--
<div class="actions btn-set">
<a class="btn green-haze btn-circle" href="add_employee.php"><i class="fa fa-plus"></i> Add </a>
</div>
-->
<div class="tools"></div>
</div>
<div class="portlet-body">
<div id="slimScrollChangeLog">
<h3><b>Version 1.0</b></h3>
<h5 class="changelog-date">04 Feb, 2016</h5>
<ul>
<li class="changelog-li">Add Procurement parts master file page. Support add, modify and delete function.</li>
</ul>
<h5 class="changelog-date">03 Feb, 2016</h5>
<ul>
<li class="changelog-li">Fix Liberia county and remove Malaysia state.</li>
<li class="changelog-li">Add jQuery Slimscroll function.</li>
<li class="changelog-li">Add logout confirmation.</li>
<li class="changelog-li">Add delete function on modification page.</li>
</ul>
<h5 class="changelog-date">02 Feb, 2016</h5>
<ul>
<li class="changelog-li">Fix multi-login problem. Each user only have one session.</li>
</ul>
<h5 class="changelog-date">30 Jan, 2016</h5>
<ul>
<li class="changelog-li">Add session timeout function. Logout user after period inactivity.</li>
<li class="changelog-li">Add modification for company, department, tax code, unit and position information.</li>
</ul>
<h5 class="changelog-date">29 Jan, 2016</h5>
<ul>
<li class="changelog-li">Allow adding data to company, department, tax code, unit and position.</li>
<li class="changelog-li">Superuser allow to backup, restore and destroy database.</li>
<li class="changelog-li">Employees information can view under Hr Data section.</li>
<li class="changelog-li">Browse all user accounts available.</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include('pages/page_jquery.php'); ?>
<script>
$(function() {
$('#slimScrollChangeLog').slimScroll({
height: '375px'
});
});
/**
Alertify confirm logout.
**/
$(function() {
$('.logoutAlert').click(function() {
alertify.confirm("[ALERT] Are you sure you want to LOGOUT?", function(result) {
if(result) {
window.location = "logout.php";
}
})
})
})
/**
Bootbox alert customize.
**/
/*
$(function() {
$('.logoutAlert').click(function(){
bootbox.confirm("Are you sure you want to LOGOUT?", function(result) {
if(result) {
window.location = "logout.php";
}
});
})
})
*/
</script>
<?php include('pages/page_footer.php'); ?>
</body>
</html>