-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
172 lines (155 loc) · 9.19 KB
/
index.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
<?php
// *************************************************************************
// * *
// * DEPRIXA - Integrated Web system *
// * Copyright (c) JAOMWEB. All Rights Reserved *
// * *
// *************************************************************************
// * *
// * Email: [email protected] *
// * Website: http://www.jaom.info *
// * *
// *************************************************************************
// * *
// * This software is furnished under a license and may be used and copied *
// * only in accordance with the terms of such license and with the *
// * inclusion of the above copyright notice. *
// * If you Purchased from Codecanyon, Please read the full License from *
// * here- http://codecanyon.net/licenses/standard *
// * *
// *************************************************************************
define("_VALID_PHP", true);
require_once("init.php");
if (isset($_POST['doLogin']))
: $result = $user->login($_POST['username'], $_POST['password']);
/* Login Successful */
if ($result)
if($_SESSION['userlevel'] == 9)
: redirect_to("dashboard/index.php");
elseif($_SESSION['userlevel'] == 1)
: redirect_to("dashboard/client.php");
elseif($_SESSION['userlevel'] == 2)
: redirect_to("dashboard/index.php");
else:
if($_SESSION['userlevel'] == 3)
: redirect_to("dashboard/dash_driver.php");
endif;
endif;
endif;
?>
<?php include("assets/templates/head_login.php");?>
<!-- Loader -->
<div id="preloader">
<div id="status">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
</div>
<!-- Loader -->
<!-- Navbar STart -->
<header id="topnav" class="defaultscroll sticky">
<div class="container">
<!-- Logo container-->
<div>
<a class="logo" href="index.php"><?php echo ($core->logo) ? '<img src="'.SITEURL.'/uploads/'.$core->logo.'" alt="'.$core->site_name.'" width="190" height="39"/>': $core->site_name;?></a>
</div>
<div class="buy-button">
<a href="sign-up.php" class="btn btn-light-outline rounded"><i class="mdi mdi-account-alert ml-3 icons"></i> <?php echo $lang['left112'] ?></a>
</div><!--end login button-->
<div class="menu-extras">
<div class="menu-item">
<!-- Mobile menu toggle-->
<a class="navbar-toggle">
<div class="lines">
<span></span>
<span></span>
<span></span>
</div>
</a>
<!-- End mobile menu toggle-->
</div>
</div>
<div id="navigation" class="">
<!-- Navigation Menu-->
<ul class="navigation-menu ">
<li><a href="index.php"><?php echo $lang['left111'] ?></a></li>
<li><a href="tracking.php"><i class="mdi mdi-package-variant-closed"></i> <?php echo $lang['left113'] ?></a></li>
<li><a href="tracking.php"><i class="mdi mdi-package-variant-closed"></i> Sending Business</a></li>
<li><a href="tracking.php"><i class="mdi mdi-package-variant-closed"></i> Receiving Business</a></li>
<li><a href="tracking.php"><i class="mdi mdi-package-variant-closed"></i> Custom Business</a></li>
</ul>
</div>
</div>
</header>
<!-- Navbar End -->
<!-- Hero Start -->
<section class="bg-home">
<div class="home-center">
<div class="home-desc-center">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-8 col-md-6">
<div >
<img src="<?php SITEURL ?>assets/theme_deprixa/images/user/login.png" class="img-fluid" alt="">
</div>
</div>
<div class="col-lg-4 col-md-6 mt-4 mt-sm-0 pt-2 pt-sm-0">
<div class="login-page bg-white shadow rounded p-4">
<div class="text-center">
<h4 class="mb-4"><?php echo $core->site_name ?>, <?php echo $lang['left114'] ?></h4>
</div>
<div id="msgholder2">
<?php print Filter::$showMsg;?>
</div>
<div id="loader" style="display:none"></div>
<form class="login-form" method="post" name="login_form" id="login-form">
<div class="row">
<div class="col-lg-12">
<div class="form-group position-relative">
<label><?php echo $lang['left115'] ?> <span class="text-danger">*</span></label>
<i class="mdi mdi-account ml-3 icons"></i>
<input type="text" class="form-control pl-5" placeholder="<?php echo $lang['left116'] ?>" name="username" id="username" required="">
</div>
</div>
<div class="col-lg-12">
<div class="form-group position-relative">
<label><?php echo $lang['left117'] ?> <span class="text-danger">*</span></label>
<i class="mdi mdi-key ml-3 icons"></i>
<input type="password" class="form-control pl-5" placeholder="<?php echo $lang['left118'] ?>" name="password" id="password" required="">
</div>
</div>
<div class="col-lg-12">
<p class="float-right forgot-pass"><a href="forgot-password.php" class="text-dark font-weight-bold"><?php echo $lang['left119'] ?></a></p>
<div class="form-group">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="customCheck1">
<label class="custom-control-label" for="customCheck1"><?php echo $lang['left120'] ?></label>
</div>
</div>
</div>
<div class="col-lg-12 mb-0">
<button class="btn btn-primary rounded w-100"><?php echo $lang['left121'] ?></button>
<input name="doLogin" type="hidden" value="1" />
</div>
<br><br>
<div class="col-12 text-center">
<p class="mb-0 mt-3"><small class="text-dark mr-2"><?php echo $lang['left122'] ?></small> <a href="sign-up.php" class="text-dark font-weight-bold"><?php echo $lang['left123'] ?></a></p>
</div>
</div>
</form>
</div><!---->
</div> <!--end col-->
</div><!--end row-->
</div> <!--end container-->
</div>
</div>
</section><!--end section-->
<!-- Hero End -->
<!-- Back to top -->
<a href="#" class="back-to-top rounded text-center" id="back-to-top">
<i class="mdi mdi-chevron-up d-block"> </i>
</a>
<!-- Back to top -->
<?php include("assets/templates/footer.php");?>