-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathprofile.php
322 lines (298 loc) · 12.4 KB
/
profile.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
<?php
ob_start();
$stats_active = 'kt-menu__item--active';
include('sidebar.php');
$result = $odb -> prepare("SELECT * FROM `players` WHERE `uid`= uid");
$result -> execute(array("uid" => $_SESSION['ID']));
$row = $result -> fetch();
?>
<!-- begin:: Content Head -->
<div class="kt-subheader kt-grid__item" id="kt_subheader">
<div class="kt-container kt-container--fluid ">
<div class="kt-subheader__main">
<h3 class="kt-subheader__title">Profile Overview</h3>
<span class="kt-subheader__separator kt-subheader__separator--v"></span>
</div>
<div class="kt-subheader__toolbar">
<div class="kt-subheader__wrapper">
<span class="kt-subheader__btn-daterange-title" id="kt_dashboard_daterangepicker_title">Today is</span>
<span class="kt-subheader__btn-daterange-date" id="kt_dashboard_daterangepicker_date">
<?php $today = date("F j, Y");
echo $today;
?>
</span>
<i class="far fa-calendar-alt"></i>
</div>
</div>
</div>
</div>
<!-- end:: Content Head -->
<!-- begin:: Content -->
<div class="kt-container kt-container--fluid kt-grid__item kt-grid__item--fluid">
<!--Begin::App-->
<div class="kt-grid kt-grid--desktop kt-grid--ver kt-grid--ver-desktop kt-app">
<!--Begin:: App Aside-->
<?php $profilestatsmenu_active = 'kt-widget__item--active';
include('profilemenu.php'); ?>
<!--End:: App Aside-->
<!--Begin:: App Content-->
<div class="kt-grid__item kt-grid__item--fluid kt-app__content">
<div class="row">
<div class="col-xl-6">
<!--begin:: Widgets/Last Updates-->
<div class="kt-portlet kt-portlet--height-fluid kt-portlet--border-bottom-brand">
<div class="kt-portlet__body">
<div class="kt-widget kt-widget--user-profile-3">
<div class="kt-portlet__head-label">
<h3 class="kt-portlet__head-title portlettitle">
<span class="kt-portlet__head-icon">
<i class="flaticon-list"></i>
</span> Account Stats
</h3>
</div>
<div class="kt-widget__bottom">
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="flaticon-profile-1"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Player Name</span>
<span class="kt-widget__value"><?php echo $row['Username']; ?></span>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="flaticon-confetti"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Level</span>
<span class="kt-widget__value"><?php echo $row['Level']; ?></span>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="flaticon-clock-1"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Hours Played</span>
<span class="kt-widget__value"><?php echo number_format($row['HoursPlayed']); ?></span>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="flaticon-customer"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Age</span>
<span class="kt-widget__value"><?php echo $row['Age']; ?></span>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="la la-transgender"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Sex</span>
<span class="kt-widget__value">
<?php
if(($row['Sex'] == "1" ))
echo "Male";
else if (($row['Sex'] == "2" ))
echo "Female";?></span>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="la la-heartbeat"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Spouse</span>
<span class="kt-widget__value"><?php
$row['MarriedTo'] = str_replace("_", " ", $row['MarriedTo']);
$row['MarriedTo'] = ucwords($row['MarriedTo']);
echo $row['MarriedTo']; ?></span>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="flaticon-coins"></i>
</div>
<div class="kt-widget__details">
<?php $totalwealth = $row['Cash'] + $row['Bank'];?>
<span class="kt-widget__title">Total Wealth</span>
<?php echo '<span class="kt-widget__value"><span>$</span>' .number_format($totalwealth). '</span>';?>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="flaticon-placeholder-1"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Last Login</span>
<span class="kt-widget__value"><?php echo $row['LastLogin']; ?></span>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="flaticon-users"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title"><?php
if(($row['Gang'] > "0" ))
echo "Gang";
else echo "Faction";?></span>
<span class="kt-widget__value">Black Hand Triads</span>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="la la-star-o"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Rank</span>
<span class="kt-widget__value">
White Lotus</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end:: Widgets/Notifications-->
</div>
<div class="col-xl-6">
<div class="kt-portlet kt-portlet--height-fluid kt-portlet--border-bottom-brand">
<div class="kt-portlet__body">
<div class="kt-widget kt-widget--user-profile-3">
<div class="kt-portlet__head-label">
<h3 class="kt-portlet__head-title portlettitle">
<span class="kt-portlet__head-icon">
<i class="flaticon-diagram"></i>
</span> Account Skills
</h3>
</div>
<div class="kt-widget__bottom">
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="la la-user-secret"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Detective Skill</span>
<?php echo '<span class="kt-widget__value">' .$row['DetSkill']. '</span>';?>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="la la-anchor"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Fishing Skill</span>
<?php echo '<span class="kt-widget__value">' .$row['FishSkill']. '</span>';?>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="la la-legal"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Lawyer Skill</span>
<?php echo '<span class="kt-widget__value">' .$row['LawSkill']. '</span>';?>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="la la-female"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Whore Skill</span>
<?php echo '<span class="kt-widget__value">' .$row['SexSkill']. '</span>';?>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="la la-flask"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Drug Dealer Skill</span>
<?php echo '<span class="kt-widget__value">' .$row['DrugsSkill']. '</span>';?>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="la la-archive"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Drug Smuggler Skill</span>
<?php echo '<span class="kt-widget__value">' .$row['SmugglerSkill']. '</span>';?>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="la la-crosshairs"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Arms Dealer Skill</span>
<?php echo '<span class="kt-widget__value">' .$row['ArmsSkill']. '</span>';?>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="la la-wrench"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Mechanic Skill</span>
<?php echo '<span class="kt-widget__value">' .$row['MechSkill']. '</span>';?>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="la la-hand-grab-o"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Boxing Skill</span>
<?php echo '<span class="kt-widget__value">' .$row['BoxSkill']. '</span>';?>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="la la-car"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Car Jacker Skill</span>
<?php echo '<span class="kt-widget__value">' .$row['CarSkill']. '</span>';?>
</div>
</div>
<div class="kt-widget__item">
<div class="kt-widget__icon">
<i class="la la-truck"></i>
</div>
<div class="kt-widget__details">
<span class="kt-widget__title">Trucker Skill</span>
<?php echo '<span class="kt-widget__value">' .$row['TruckSkill']. '</span>';?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--End:: App Content-->
</div>
<!--End::App-->
</div>
<!-- end:: Content -->
</div>
<!-- end:: Page -->
<!-- begin::Scrolltop -->
<div id="kt_scrolltop" class="kt-scrolltop">
<i class="fa fa-arrow-up"></i>
</div>
<!-- end::Scrolltop -->
<!-- start:: footer -->
<?php include('footer.php'); ?>
<!-- end:: footer -->
</body>
<!-- end::Body -->
</html>