-
Notifications
You must be signed in to change notification settings - Fork 4
/
profile.php
3217 lines (2356 loc) · 160 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
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
$useragent=$_SERVER['HTTP_USER_AGENT'];
if(preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i',substr($useragent,0,4)))
{ echo '<body style="background-color: #f7f7f7; font-family: sans-serif; ">
<div style="width:56%; height:auto; margin-right: 22%; margin-left: 22%; margin-top:35%;">
<img src="images/unreachable.png" style="width:50px; height:50px; float: left;"> <br> <br> <br>
<p style="float: left;">
<h3 style="color: #716f6f;">This site can\'t be accessible on Mobile Devices .</h3> <br>
<p style="color:#969696">Try connecting website from Desktop <br> <br>
ERR_NOT_SUPPORTED_DEVICE</p>
</p>
</div>
</body>
' ;
}
else{
session_start();
if(!isset($_SESSION['steamid']))
{
/*session_start();*/
echo '<script type="text/javascript">
alert("Please Login To continue !");
window.location="../";
</script> ';
}
else
{
}
?>
<?php
require('steamauth/steamauth.php');
require('steamauth/userInfo.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>CSGOVIRAL-Profile</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="images/logo.png" rel="icon" type="image/icon">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="js/notification.js"></script>
<link href="color-picker.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/template.css">
<link rel="stylesheet" type="text/css" href="css/create case.css">
<link rel="stylesheet" type="text/css" href="css/profile.css">
<!--css fot div styles-->
<link rel="stylesheet" type="text/css" href="css/div_style_allInOne.css">
<link rel="stylesheet" type="text/css" href="css/div_style_rifle.css">
<link rel="stylesheet" type="text/css" href="css/div_style_pistol.css">
<link rel="stylesheet" type="text/css" href="css/div_style_smg.css">
<link rel="stylesheet" type="text/css" href="css/div_style_heavy.css">
<link rel="stylesheet" type="text/css" href="css/div_style_sniper.css">
<link rel="stylesheet" type="text/css" href="css/div_style_knife.css">
<link rel="stylesheet" type="text/css" href="css/div_style_glove.css">
<!--[/end css linking]-->
<link rel="stylesheet" type="text/css" href="css/your_case.css">
<style type="text/css">
body
{
background-color: #181818;
min-height: 1000px ! important ;
background: radial-gradient(#363636, #181818);
}
p{
width: fit-content;
}
#backdrop {
width: 100%;
height : auto;
opacity: 0.1;
}
.logout {
background-color: black;
color: white;
border: 0px;
margin-top: 56px;
margin-left: 12px;
cursor: pointer;
}
.player_info {
margin-top:15%;
margin-left :5%;
color :white;
}
#err_container{
display :inline;
width : 80%;
height :auto;
margin-left :10%;
margin-right: 10%;
margin-top:20%;
}
#err_button{
padding-top: 7px;
padding-bottom: 7px;
padding-right: 15px;
padding-left: 15px;
background-color: #351515;
border-radius: 3px;
border: 2px solid #f10e0e;
font-size: 30px;
text-align: center;
color: #f10e0e;
margin-left: 35%;
width:72px;
height:42px;
}
#err_button:hover{
color: #d81717;
}
#msg_error
{
color :#e84a4a;
font-size: 20px;
height: auto;
width : 90%;
margin-left: 10%;
margin-right: 10%;
font-weight: bold;
margin-top:10%;
}
.player_info >h1 {
font-size :28px;
font-weight: 400 ;
}
.player_info >a {
text-decoration: none !important ;
}
.goog-te-gadget-simple{
background-color: black !important;
border: none !important;
}
.goog-te-gadget-icon{
display: none;
}
.goog-te-menu-value{ /*select language*/
color: white !important;
font-family: HandelGotDBol;
}
.goog-te-menu-frame
{
background-color: black;
color:white;
border-radius: 5px;
z-index:1010;
position: absolute;
top:40px;
left:40px;
border: none;
}
.goog-te-menu-frame span {
background : rgba(220,38,38,0.9);
font-size: 30px;
position: absolute;
top:40px;
width: 195px;
}
.goog-te-menu2
{
background-color: black;
color :white;
}
.goog-te-menu2-item, .goog-te-menu2-item-selected
{
background-color: black;
color:white;
}
#google_translate_element
{
position: absolute;
top: 13px;
left: 215px;
font-weight: 700;
font-size: 20px;
display: inline-flex;
}
footer {
background-color: black;
background: linear-gradient(rgba(0,0,0,0) 5%, black 70%);
min-height: 50px;
height: 10%;
padding-top: 80px;
padding-left: 30px;
padding-bottom: 20px;
position: relative;
margin-top: 10%;
color: white;
}
@media screen and (max-width: 1440px)
{
footer
{
margin-top: 20%;
}
}
</style>
</head>
<body style="position: relative; min-width: 1100px; top:0px;">
<?php
include("headers/header_profile.php") ;
?>
<div id="main">
<img id="backdrop" src="images/backdrop.png">
</div>
<div class="gng_bk">
<span style="display: inline; float: left; " class="fav_font"><a href="index.php" title="Back to Home Page !" style="position:relative ; top: -4px; text-decoration: none;">Home</a></span>
<span style="display: inline; float:left;"> ⇨ </span>
<span style="display: inline; float:left;" class="fav_font">Profile</span>
</div>
<div id="profile_box">
<div class="whole-box">
<div class="small-line" style="width: 97%;"></div>
<div class="small-box">
<div id="big-dp">
<div class="dp_large circle">
<img alt="images/default-avatar.png" style="width:100%; height:100%;" src="<?php echo $_SESSION['avatar'];?> ">
</div>
</div>
<div class="player_info fav_font" style="position: absolute; top: -8.5%; left: 14%; ">
<h1 id="player_name" style="line-height: 0" class="fav_font"><?php echo $_SESSION['personaname'];?></h1><br>
<a href="<?php echo $_SESSION['profile_url'];?>" target="_blank" style="color: #a2a0a3; font-weight: 900;" class="fav_font"><u>Steam Profile</u></a>
</div>
<!--<a href=""><span class="fav_font logout">Logout</span></a>-->
<div class="wrap_small">
<div class="info-col" style="border-right: 2px solid rgba(192,192,192,0.25);">
<div class="fav_font" style="word-spacing: 5px;font-size: 20px; font-weight: 900;">
<div style="display: inline; float: left;">Your Wallet :</div>
<div style="color: #16d366; padding-left: 3px; padding-right: 3px; display: inline; float: left;">$</div>
<div style="display: inline; float: left;">
<?php
echo $user_amount;
?>
</div>
</div>
<br />
<div style="padding-top: 1vw">
<?php
if($user_amount>500)
{
//no add money in wallet
?>
<div title="You can't add more money. Wallet Limit reached of $ 500 ! " style="cursor: not-allowed; display: inline-block;">
<button disabled class="fav_font" style="opacity:0.5; pointer-events:none ; padding-top: 7px; padding-bottom: 7px; padding-right: 15px; padding-left: 15px; background-color: #16361f; border-radius: 3px; border: 2px solid #0ef229; font-size: 1.6vw; color: #0ef229; margin: 0 auto; cursor: pointer;" >Add Money</button></div>
<?php }
else
{
?>
<button type="add" class="fav_font" id="add_button" >Add Money</button>
<div id="add_money" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
<div style="text-align: center; font-size: 25px; margin-top: 5%;">
<span class="fav_font">
Add funds to your CSGOVIRAL wallet
</span>
</div>
</div>
<div class="modal-body">
<form class="paypal" action="payment/callPay.php" style="width:100%;" method="post" id="paypal_form" >
<div class="amount_enter">
<span class="fav_font">
csgoviral/user/<?php echo $_SESSION['personaname']; ?>
</span>
<br>
<div id="pricetag" style="width:100%; display: block;">
<div style="position:relative; width: 100%;">
<ul style="display:flex ; flex-wrap: wrap ; width:100% ; height:auto ;">
<li style="width: 30%; margin-right: 2%; margin-left: 1%; ">
<input type="radio" name="r_f" value="1" style="margin-right:3px;">
<span class="fav_font" id="curr">$ <span style="color:white; font-weight: 400; font-size: 20px; text-align: center; padding-right: 26px; padding-left:5px;" class="fav_font">2.00</span></span>
</li>
<li style="width: 30%; margin-right: 1.5%; margin-left: 1.5%;">
<input type="radio" name="r_f" value="2" style="margin-right:3px;">
<span class="fav_font" id="curr">$ <span style="color:white; font-weight: 400; font-size: 20px; text-align: center; padding-right: 26px; padding-left:5px;" class="fav_font">5.00</span></span>
</li>
<li style="width: 30%; margin-right: 2%; margin-left: 1%;">
<input type="radio" name="r_f" value="3" style="margin-right:3px;">
<span class="fav_font" id="curr">$ <span style="color:white; font-weight: 400; font-size: 20px; text-align: center; padding-right: 18px; padding-left:5px;" class="fav_font">10.00</span></span>
</li>
</ul>
</div>
<br> <br>
<div style="position: absolute; width: 100%;">
<ul style="display:flex ; flex-wrap: wrap ; width:100% ; height:auto ;">
<li style="width: 30%; margin-right: 2.5%; margin-left: 0.5%;">
<input type="radio" name="r_f" value="4" style="margin-right:3px;">
<span class="fav_font" id="curr">$ <span style="color:white; font-weight: 400; font-size: 20px; text-align: center; padding-right: 13px; padding-left:5px;" class="fav_font">25.00</span></span>
</li>
<li style="width: 30%; margin-right: 3.5%; margin-left: -0.5%;">
<input type="radio" name="r_f" value="5" style="margin-right:3px;">
<span class="fav_font" id="curr">$ <span style="color:white; font-weight: 400; font-size: 20px; text-align: center; padding-right: 12px; padding-left:5px;" class="fav_font">50.00</span></span>
</li>
<li style="width: 30%; margin-left: -2.5%;">
<input type="radio" name="r_f" value="6" style="margin-right:3px;">
<span class="fav_font" id="curr">$ <span style="color:white; font-weight: 400; font-size: 20px; text-align: center; padding-right: 5px; padding-left:5px;" class="fav_font">100.00</span></span>
</li>
</ul>
</div>
</div>
<div class="fav_font" style="color: #474747; font-weight:800; position:absolute ; margin-top: 10%; margin-left: 0%; ">
<span style="display: inline; width:50px; margin-top: 5px;">
<p style="display: inline; float: left; margin-left:10px;">Wallet Limit :</p>
<p style="display: inline; float: left; margin-left: 10px; overflow: hidden;" id="buyer_receive" >$ 500 </p>
</span>
</div>
</div>
</div>
<div class="modal-footer" >
<input type="submit" name="submit" value="PAY" class="fav_font" style="cursor:pointer; padding-top: 10px; padding-bottom: 10px; padding-right: 25px; padding-left: 25px; background-color:rgba(2, 37, 28, 1); border-radius: 1px; border: 2px solid rgba(14, 244, 180,1); font-size: 20px; font-weight: 600; margin-bottom: 3% ; letter-spacing: 3px; left:0; right :0; color:rgba(14, 244, 180,1); margin-top: 5%;"/>
</form>
<div class="conditions fav_font">
<p>* Payments are processed by Paypal</p>
<p style="margin-top:5px;">* Taxes & Conversion Rates are applicable. </p>
</div>
</div>
</div>
</div>
<?php
}
?>
<?php
if($user_amount>=5)
{
?>
<button type="cash" class="fav_font" id="cash_button" >Cashout</button>
<div id="cashout_money" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span class="close close_cashoutdialog">×</span>
<div style="text-align: center; font-size: 25px; margin-top: 5%;">
<span class="fav_font">
Cashout from your CSGOVIRAL wallet
</span>
</div>
</div>
<div class="modal-body" style="text-align: center;">
<span class="fav_font">
csgoviral/user/<?php echo $_SESSION['personaname']; ?>
</span>
<form method="post" action="intermediate/cashout.php" enctype="application/x-www-form-urlencoded" style="margin-top: 50px;">
<div id="pricetag" style="margin: 0 auto;">
<label style="font-size: 20px;padding: 7px; color: white; margin-right: 30px;" class="fav_font">Amount</label>
<span class="fav_font" id="curr">$</span>
<input type="number" min="5" max="500" name="amount" id="price" class="fav_font" style="width: 100px; background-color: #565555; color: white;">
<span class="fav_font" style="color: #474747;margin-left: 10px;">Minimum amount : $ 5</span>
</div>
<div id="pricetag" style="margin: 0 auto; margin-top: 30px;">
<label style="padding: 7px;margin-right: 20px;">
<img src="images/paypal_logo.png" width="100px">
</label>
<input type="text" name="paypalID" id="price" class="fav_font" style="width: 300px; background-color: #565555; color: #c3c1c1; font-size: 2vh;" placeholder="Email">
</div>
<div class="fav_font" style="margin-top:20px; font-size: 18px; font-weight: 600;">
Or
<br>
<span style="font-weight: 400; font-style: italic; font-size: 15px; color:#5ef2b4;">If you are from India , select Paytm </span>
</div>
<div id="pricetag" style="margin: 0 auto; margin-top: 20px;">
<label style="padding: 7px;margin-right: 20px;">
<img src="images/Paytm_logo.png" width="100px" height="26px">
</label>
<input type="text" name="paytmID" id="price" class="fav_font" style="width: 300px; background-color: #565555; color: #c3c1c1; font-size: 2vh;" placeholder="Email or mobile number">
</div>
</div>
<div class="modal-footer" >
<!-- <div id="pricetag" style="margin: 0 auto; margin-top: 50px;">
<input type="submit" name="continue" value="Continue" style="background-color: rgba(0,0,0,0); border: none; font-size: 25px; color: #10eeb1;">
</div>-->
<input type="submit" name="continue" value="CONTINUE" class="fav_font" style="cursor:pointer; padding-top: 10px; padding-bottom: 10px; padding-right: 10px; padding-left: 10px; background-color:rgba(2, 37, 28, 1); border-radius: 1px; border: 2px solid rgba(14, 244, 180,1); font-size: 14px; font-weight: 600; margin-bottom: 3% ; letter-spacing: 2px; left:0; right :0; color:rgba(14, 244, 180,1);">
<br>
</form>
<div class="conditions fav_font">
<p>* Payments are processed by Paypal & Paytm</p>
<p style="margin-top:5px;">* Cashout will be done once in a week</p>
<p style="margin-top:5px;">* Taxes & Conversion Rates are applicable. </p>
</div>
</div>
</div>
</div>
<?php
}
else
{?>
<div title="Minimum $5 wallet balance is required for cashout" style="cursor: not-allowed; display: inline-block;">
<button disabled title="Minimum $5 wallet balance is needed for cashout !" class="fav_font" style="opacity:0.6; display:inline-block; padding-top: 7px; padding-bottom: 7px; padding-right: 15px; padding-left: 15px; background-color: #382915; border-radius: 3px; border: 2px solid #ff9300; font-size: 1.6vw; color: #f7a639; margin-left: 1vw; pointer-events: none;">Cashout</button></div>
<?php }
?>
<a href="case.php"><button type="create" class="fav_font" id="create_button" >Create New Case</button></a>
</div>
</div>
<div class="info-col">
<span class="fav_font page-font" style="font-weight: 900; ">Your Trade URL</span><br>
<input style="width :70%; margin-top: 2%;" type="text" id="tradeURL" name="tradeURL" placeholder="Enter your trade URL!" value="<?php
$servername = "";
$username = "";
$password = "";
$dbname = "csgoviral";
$id = $_SESSION['steamid'];
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
$sql = "SELECT trade_url_val FROM trade_url WHERE steamid= '$id' ";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
echo $row["trade_url_val"];
$_SESSION["tu"] = $row["trade_url_val"];
}
} else {
echo "";
}
$conn->close();
?>">
<button type="save" class="fav_font" id="save_button" style="display: none;" >Save</button>
<div style="margin-top: 3vh;">
<span class="fav_font page-font" style="color: #1bd9b7"><?php
//$servername = "localhost";
$servername = "";
$un_co = "";
$pass_co = "";
// $un_co = "root";
// $pass_co = "root";
$db_co = "userCaseOpenDb";
$id = $_SESSION['steamid'];
// Create connection
$conn_co = new mysqli($servername, $un_co, $pass_co, $db_co);
$sql = "SELECT DISTINCT(COUNT(*) ) FROM User_Case_Open_Table_".$id." ";
$result = $conn_co->query($sql);
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
echo reset($row);
} else {
echo "0";
}
$conn_co->close();
?></span>
<span class="fav_font page-font" style="padding-left: 5px; font-weight: 900;">Cases Opened , </span>
<span class="fav_font page-font" style="color: #15d365"><?php
$servername = "";
$un_co = "";
$pass_co = "";
$db_co = "user_profile_case_db";
$id = $_SESSION['steamid'];
// Create connection
$conn_co = new mysqli($servername, $un_co, $pass_co, $db_co);
$sql = "SELECT DISTINCT(COUNT(*) ) FROM User_Case_Table_".$id." WHERE case_stat='sold' ";
$result = $conn_co->query($sql);
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
echo reset($row);
} else {
echo "0";
}
$conn_co->close();
?></span>
<span class="fav_font page-font" style="padding-left: 5px; font-weight: 900;">Cases Sold</span>
</div>
</div>
</div>
</div>
</div>
<div class="whole-box">
<div class="small-line" style="width: 97%;"></div>
<div class="small-box">
<div id="player_itm_info_box">
<div id="nav-tab">
<nav>
<a href="javascript:void(0)" class="prof-nav-button fav_font" id="case-button" onclick="toggInvt1()" class="fav_font yi" >Your Cases</a>
<a href="javascript:void(0)" class="prof-nav-button fav_font" id="invt-button" onclick="toggInvt()" class="fav_font yc" >Your Inventory</a>
<a href="javascript:void(0)" class="prof-nav-button fav_font" id="hld-button" onclick="toggHldItem()" class="fav_font yi" >Items on Hold</a>
<a href="javascript:void(0)" class="prof-nav-button fav_font" id="history-button" onclick="toggHistory()" class="fav_font yc" >History</a>
</nav>
</div>
<div id="invt-container">
<div class="inline-container">
<div id="invt-items-container">
<!-- Inventory Item list goes here -->
<div class="case-grid">
<!--Dynamically create this in form of a grid-->
<script type="text/javascript">
function showItem(id,src, name, exterior, type , trade_tp)
{
//prob to clear the session storage on page refreshing
var set = sessionStorage.getItem("inventory_item");
console.log(set);
if(set==id)
{
console.log('same');
if(trade_tp==0)
{ document.getElementById('tradeable_stat').style.color="#db0202";
document.getElementById('tradeable_stat').innerHTML="Non Tradeable"; }
else {
document.getElementById('tradeable_stat').style.color="green";
document.getElementById('tradeable_stat').innerHTML="Tradeable"; }
document.getElementById(set).style.cssText= "border:1px solid #c6c6c6;background: radial-gradient(#8c8c8c, #343235);";
//make hover class bg gradient
//sessionStorage.clear();
}
else {
if(set==null)
{}
else{
document.getElementById(set).style.cssText= "border : 1px solid rgba(0,0,0,0) ; ";
}
sessionStorage.setItem("inventory_item",id);
set = sessionStorage.getItem("inventory_item");
document.getElementById(set).style.cssText = "border:1px solid #c6c6c6;background: radial-gradient(#8c8c8c, #343235);";
document.getElementById('item_pic').src= src;
//set tradeable
if(trade_tp==0)
{ document.getElementById('tradeable_stat').style.color="#db0202";
document.getElementById('tradeable_stat').innerHTML="Non Tradeable"; }
else {
document.getElementById('tradeable_stat').style.color="green";
document.getElementById('tradeable_stat').innerHTML="Tradeable"; }
//if it is stat trel make order and write special stat trek tm
if(name.includes("StatTrak"))
{
var res= name.substring(10,);
document.getElementById('item_detail_name').innerHTML= res;
document.getElementById('StatTrak_logo').innerHTML=name.substring(0,10);
document.getElementById('item-info-container').style.border="2px solid #ff9300" ;
}
else
{
document.getElementById('StatTrak_logo').innerHTML="";
document.getElementById('item_detail_name').innerHTML= name;
document.getElementById('item-info-container').style.border="none" ;
}
document.getElementById('item_detail_extra_detail').innerHTML= type;
document.getElementById('item_detail_exterior').innerHTML= exterior;
}
}
</script>
<?php
require("get_inv.php")
?>
</div>
</div>
<!--<div id="item-info-container_layout">
</div>-->
<div id="item-info-container">
<span id="StatTrak_logo" class="fav_font"></span>
<div class="item_pic">
<img src="" id="item_pic" >
</div>
<!-- white break line -->
<div class="small-line" style="width: 90%; opacity: 0.2;"></div>
<!--display further item information-->
<div id="item_detail">
<div id="item_detail_name" class="fav_font">
</div>
<div id="csgo_image">
<img src="images/csgo.png" >
</div>
<div id="item_detail_extra">
<div id="item_detail_game_name" class="fav_font">
Counter Strike : Global Offensive
</div>
<div id="item_detail_extra_detail" class="fav_font">
</div>
</div>
<br />
<br />
<div id="item_detail_exterior" class="fav_font">
</div>
<div id="tradeable_stat" class="fav_font">
Tradeable
</div>
</div>
</div>
</div>
</div>
<div id="case-container"> <!-- user cases that he has created will be here-->
<div class="inline-container">
<div id="case-list-conatiner"> <!--user cases design-->
<ul id="caseLoadContainer" style="list-style-type: none;">
<?php
$db_userProfile = "user_profile_case_db" ;
$server = "";
$username = "";
$password = "";
$con_userProfile = new mysqli($server , $username , $password , $db_userProfile) ;
//$userid= $_SESSION['steamid'];
$q_pc = $con_userProfile->query("SELECT * FROM User_Case_Table_".$_SESSION['steamid']." WHERE case_stat='available' ");
if($q_pc->num_rows==0)
{
echo '<div class="no_case fav_font">No Case</div>';
}
else
{
$counting=-1;
while($q_r = $q_pc->fetch_assoc())
{ $counting+=1;
if(strcmp($q_r["case_type"], 'allInOne')==0)
{
echo '<li class="user_profile_cases_list upcl'.$counting.'" id="'.substr($q_r['case_desc_table'],6).'">
<div class="lin-grad id_user_profile_case_default'.$counting.'" id="id_user_profile_case_default'.$counting.'" style="opacity:0;"></div>
<div class="allinone_container">
<img src="'.$q_r["skinOfCase"].'" class="allinone_container_skinImage">
<div class="case_box" >
<div id="case-name" class="fav_font" >';
if(strlen($q_r['case_name'])>10 )
echo substr($q_r['case_name'],0, 10).'..' ;
else
echo $q_r['case_name'] ;
echo '</div>
<div id="case-price" class="fav_font">
<span style="color:#3add08; margin-right:8px;display: inline; float: left; width: 10px;">$</span>
<span style="margin-left: -10px; display: inline; float: right; width: 80px ; text-align:left ;" class="fav_font">'.$q_r["case_price"].'</span>
</div>
<img src="case images/All In One.png" class="allinone_pic">
<svg id="allInOne_svg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="90%" height="87%" viewBox="0 7 500 390" enable-background="new 0 7 500 390" xml:space="preserve" style="fill: '.$q_r["case_color"].'; position: absolute; margin-left: 7%; margin-top:1px; z-index: 120; mix-blend-mode: soft-light;" >
<g id="Layer_2">
<path d="M6,218.667c0,0-4.333-14-0.667-15l-2-10c0,0-2-9.667,2.667-13c0,0,54-92,86.333-134l14.667-20c0,0,7.667-13,25.333-11.167
l4.167,3.333l31.667-2.167l6.167-4.333c0,0,13-1.833,16.833,3.333c0,0,3.667,6.333,10.667,9L236.5,18.5c0,0,10-4.25,14.75,3.25
c0,0,59-14.75,112.5-10c0,0,21.25-14.25,25.5-3l16.5,1l3.25-4l10.75,0.75c0,0,7.75,7.5,10.75,12.25l3.25,0.25l8.75,10.25l5.75,0.5
L456,42l-7.75,12.5c0,0,11,27.25-14,16.25l-9.5,10.5c0,0,0,27.5-14.5,15.75l-11.5,12.25c0,0-0.75,23.5-13.5,13.25l-12,13
c0,0-0.5,15.75-10.75,12l-10.25,12c0,0-5,17-13.75,8.75l-6.25,13.5c0,0-1.75,24.75-13.25,13.5c0,0-13,1.75-2.5,4.25l174.5,23
c0,0,13.5,2,6,15.75l-0.25,14.25l-4,2.25l-2,62.75c0,0-2.25,10.75-17,7.5L454,330c0,0-7.25,6.5-9,5.25l-21.75,11.25l-48-4
l-68.5,17.5l-1,9.5c0,0-1,8.75-15.25,9.75l-45,6c0,0-14.25-1.5-18.25,0.5L199,391.5c0,0-3.5,11.5-25.75,5
c0,0-113-41.75-138.25-54.25c0,0-13.25-4.25-13.5-14l-5.25-58.5L11.5,268L8,242l-3.5-2.25l-0.25-5.5l-2.5-7L6,218.667z"/>
</g>
</svg>
<img src="images/case back.png" class="case_back">
</div>
</div> </li>';
}
elseif(strcmp($q_r["case_type"], 'rifle')==0)
{
echo '<li class="user_profile_cases_list upcl'.$counting.'" id="'.substr($q_r['case_desc_table'],6).'">
<div class="lin-grad id_user_profile_case_default'.$counting.'" id="id_user_profile_case_default'.$counting.'" style="opacity:0;"></div>
<div class="rifle_maincontainer">
<img src="'.$q_r['skinOfCase'].'" class="rifle_container_skinImage">
<div class="case_box" >
<div id="case-name" class="fav_font" >';
if(strlen($q_r['case_name'])>10 )
echo substr($q_r['case_name'],0, 10).'..' ;
else
echo $q_r['case_name'] ;
echo '</div>
<div id="case-price" class="fav_font" >
<span style="color:#3add08; margin-right:8px;display: inline; float: left; width: 10px;">$</span>
<span style="margin-left: -10px; display: inline; float: right; width: 80px ; text-align:left ;" class="fav_font">'.$q_r["case_price"].'</span>
</div>
<img src="case images/Rifle Only.png" class="rifle_pic">
<svg id="rifle_svg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="87%" viewBox="1.5 1.5 497.333 302.167" enable-background="new 1.5 1.5 497.333 302.167" xml:space="preserve" style="fill: '.$q_r['case_color'].'; position: absolute; margin-left: 1%; z-index: 1 ; mix-blend-mode: soft-light;" >
<path d="M496.625,133.876c3.625-7.75,1.375-19.125,1.375-19.125l-22.375-1.75l2.25-27.375l5.625-4.75l1-15.375
L473,52.126c-2.625-6.5-12.875-5.25-12.875-5.25l-5.25-6.125l-2.25,0.25c-1.375-5-6.25-1-6.25-1l-3-0.5l-0.5-21.625
c-14.125-2.375-17.75,0-17.75,0l-1.75,4.25L423,25.751l1.375,0.125l-1.125,15.875l-2-2.75l-7.375-0.25l-2-2.125h-3.5l-7.375,6.5
l-49.5-3.125c-1.75-3.625-8.25-8.5-8.25-8.5l-2.875,2.375l-3-0.125l0.25-21l-16-0.5l-2.875,4l0.125,3.5l1.375,0.125l-0.875,15h-1.25
l-2.625-2.25l-11.25-0.5l-2.875,1.5l-60.125-2.75l-4-2.625l-5.625-0.25L231,7.251l-15.375-0.75l-2.75,3.875l-0.25,4.375L214,14.876
l0.5,14.25l-1.625,0.375l-1.75-2.375l-7.375-0.625l-3.25-2.375l-7.5,6.875l-42.75-2.625l-7.75-7.625l-2.625,2.25l-1.375-0.875
l-1.625-19.5L123,2.001l-3.25,4.25l0.375,3.375l2.125,0.375l0.25,13.75l-1.625,0.625c-0.625-3.25-7.875-3-7.875-3
c-2.75-5.25-4.75-0.625-4.75-0.625l-1.75-0.375l-4.625,5.375l-2.375-0.5c-4.875-0.375-6.375,2-6.375,2L81.25,38.376l-1.125,17.875
L82,59.001l-1.875,22.875L63.5,81.001l-0.625,16.25l15.625,1.5l-1.25,22.125l-3.125,3.875l-1,18l6.75,9
c3.625,6,8.375,5.625,8.375,5.625l8.875,0.75l-0.75,0.875l-6.75,0.5l-0.375,1.75c-8.625-2.625-15-0.625-15-0.625l-5.75,1.75
l-6.25,0.25l-21.375,9.75v1.125l-8.125,4l-2.375-0.75l-13.25,6.125H13.25l-11.125,4.75l0.5,4.625L8,197.501
c4.625,4.375,6.75,46.5,6.75,46.5c1.25,6.375,7,6.25,7,6.25L401,302.834c8.666,1.5,10.666-3.666,10.666-3.666
c5,5.334,12.334,4.166,12.334,4.166c17.834-4.334,6.666-21.499,6.666-21.499L442,269.668c4.5,5,12.332,3.667,12.332,3.667
c14.5-6.833,5.293-19.709,5.293-19.709l2.125-37.125l5-4.125l-0.125-5.375l-10.125-5.375c0.375-3-10.875-3.125-10.875-3.125
l-0.75-2.125l-5.5-1l-0.375-0.75l8.375,0.625C454,197.001,459,193.876,459,193.876l16.125-14.25l0.75-14l-4.25-5.5l2.75-27.25
L496.625,133.876z M187.239,168.745c-0.943-0.384-1.933-0.386-2.928-0.451c-0.063,0.37-0.326,0.699-0.811,0.699
c-0.853,0-1.705-0.013-2.554-0.101c-0.177,0.5-0.616,0.877-1.321,0.826c-7.55-0.544-15.066-1.595-22.597-2.137
c-6.164-0.443-12.363-1.753-18.528-1.738c-1.285,0.004-1.695-1.346-1.236-2.216c-1.285-0.075-2.601-0.694-3.877-0.383
c-0.642,0.157-0.914-0.831-0.271-0.987c1.454-0.355,2.816,0.309,4.261,0.357c0.289,0.009,0.443,0.213,0.479,0.436
c0.184-0.088,0.397-0.142,0.646-0.142c6.697-0.017,13.541,1.261,20.208,1.899c6.985,0.668,13.907,1.471,20.917,1.976
c0.372,0.026,0.667,0.167,0.893,0.368c0.037-0.002,0.07-0.021,0.107-0.017c0.954,0.125,1.915,0.125,2.875,0.125
c0.048,0,0.082,0.021,0.125,0.025c0.068-0.034,0.148-0.056,0.25-0.045c1.229,0.118,2.471,0.045,3.636,0.518
C188.115,168.002,187.851,168.993,187.239,168.745z M291.366,179.943c-1.805-0.887-4.007-0.922-6.002-0.928
c0.254,1.021-0.276,2.213-1.614,2.11c-10.723-0.828-21.424-1.931-32.131-2.933c-4.657-0.437-9.417-1.35-14.084-1.519
c-2.293-0.083-4.974,0.122-6.918-1.289c-0.597-0.433-0.801-1.051-0.747-1.64c-0.237-0.121-0.367-0.352-0.406-0.602
c-1.123,0.023-2.276,0.084-3.352-0.275c-0.622-0.208-0.354-1.197,0.272-0.987c1.115,0.373,2.332,0.239,3.489,0.232
c0.104,0,0.186,0.03,0.256,0.073c0.042-0.004,0.073-0.023,0.119-0.023c0.177,0,0.313,0.057,0.434,0.131
c0.466-0.32,1.075-0.383,1.699,0.07c2.109,1.529,9.254,1.352,11.657,1.598c4.416,0.452,8.837,0.842,13.257,1.251
c8.815,0.817,17.624,1.729,26.453,2.412c0.423,0.033,0.766,0.185,1.028,0.409c0.063-0.029,0.137-0.046,0.222-0.046
c2.277,0.008,4.798,0.045,6.884,1.069C292.476,179.352,291.957,180.232,291.366,179.943z M396.116,190.857
c-2.231-0.654-4.573-0.332-6.869-0.25c0.009,0.959-0.747,1.92-1.915,1.533c-2.818-0.938-5.773-0.826-8.707-0.82
c-0.273,0-0.508-0.06-0.706-0.157c-7.078-1.165-14.021-1.103-21.134-1.912c-3.365-0.383-6.767-1.417-10.16-1.431
c-2.558-0.008-4.866,0.248-7.293-0.68c-0.734-0.281-1.051-0.92-1.055-1.55c-0.314-0.041-0.61-0.131-0.882-0.36
c-0.082-0.068-0.12-0.157-0.136-0.252c-0.521-0.117-0.486-0.977,0.114-0.977h1.375c0.068,0,0.132,0.016,0.188,0.04
c0.104-0.017,0.206-0.034,0.313-0.04c0.063-0.003,0.114,0.008,0.166,0.023c0.226-0.036,0.475-0.018,0.751,0.088
c2.962,1.134,6.641,0.525,9.808,0.935c3.449,0.445,6.854,1.241,10.338,1.408c6.429,0.308,12.419,0.64,18.748,1.724
c3.063-0.011,6.169-0.043,9.106,0.934c0.324,0.107,0.564,0.289,0.739,0.505c2.497-0.058,5.038-0.44,7.477,0.276
C397,190.076,396.737,191.041,396.116,190.857z"/>
</svg>
<img src="images/case back.png" class="case_back">
</div>
</div></li>';
}
elseif(strcmp($q_r["case_type"], 'pistol')==0)
{
echo '<li class="user_profile_cases_list upcl'.$counting.'" id="'.substr($q_r['case_desc_table'],6).'" style="margin-top:40px;">
<div class="lin-grad id_user_profile_case_default'.$counting.'" id="id_user_profile_case_default'.$counting.'" style="opacity:0;"></div>
<div class="pistol_maincontainer">
<img src="'.$q_r['skinOfCase'].'" class="pistol_container_skinImage">
<div class="case_box" >
<div id="case-name" class="fav_font">';
if(strlen($q_r['case_name'])>10 )
echo substr($q_r['case_name'],0, 10).'..' ;
else
echo $q_r['case_name'] ;
echo '</div>
<div id="case-price" class="fav_font">
<span style="color:#3add08; margin-right:8px;display: inline; float: left; width: 10px;">$</span>
<span style="margin-left: -10px; display: inline; float: right; width: 80px ; text-align:left ;" class="fav_font">'.$q_r["case_price"].'</span>
</div>
<img src="case images/Pistol Only.png" class="pistol_pic">
<svg id="pistol_svg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="87%" viewBox="3.334 4.833 449.667 492.667" enable-background="new 3.334 4.833 449.667 492.667" xml:space="preserve" style="fill: '.$q_r['case_color'].'; position: absolute; margin-left: 15%; margin-top:-12px; z-index: 1 ; mix-blend-mode: soft-light;" >
<path d="M450.75,382.25l-4.75-1.5l-38.5-87c8.25-16-27.5-17-27.5-17c-1.5-6-5-7.25-5-7.25l-0.5-2.5l5.75,0.5l3,1.5
c22.5-6.75,20.75-26.75,20.75-26.75l-2.25-2.75l5-174l3.25-3c2.5-13.5-9.75-24.75-9.75-24.75l-3-14.75l-27.75-0.75l-5.25,5l-0.5,7.5
h-2.5v-16.5L362.5,12l-2.5-0.25l0.75-5L358.5,6l-27.75,1l-0.5,6.25l1.5,0.5l-0.25,9l-3.5,1l-0.5,10.75l-188,0.5l-3-1l-1.5-9.5l-2-2
l-0.75-10.25L134,10.5l-1.25-2.75c-14-5.75-27.5,1-27.5,1l-0.5,2.25L102,15.75l2.75,3.5l-1.5,15.25l-2.75,0.25l-0.25-7.25l-4.5-4.75
L73,23.5h-6.25L63.25,38c-10,12.5-9.5,23-9.5,23l3.75,3.5l3.75,174L58.5,241C58.25,263.5,79,268,79,268l3.125-1.875l6,0.5L83,272.25
l-0.375,2.125c-30.25,3-29.375,13.125-29.375,13.125l0.75,4.25L10.75,378c-4-0.25-5.75,4.25-5.75,4.25
c-1.75,12.5,5.5,19.25,5.5,19.25l-0.5,5l2,4.25L24.25,412l9.5,46.75c2.5,14.5,19.75,16,19.75,16c5.25,5.25,8.25,0.25,8.25,0.25H113
l2,1.75l43.25,17.5c18.5,5,141,1.25,141,1.25l42-18.5l53.25,0.25c5.25,6,7.75-0.25,7.75-0.25c16.5,0.25,21-13.25,21-13.25l9-49.75
H442c3.75-0.5,4-8.25,4-8.25C456,392,450.75,382.25,450.75,382.25z M287.433,269.186c0.074,0.362-2.907,3.961-3.07,4.186
c-0.749,1.023-1.553,1.74-2.861,1.843c-0.43,0.033-1.135-0.347-1.25-0.347h-93.956c-2.282,0.566-4.824,1.566-6.787,0.359
c-1.888-1.16-3.496-5.261-3.56-5.5c-1.778-0.49-1.775-3.322,0.303-3.266c1.169,0.031,2.307,0.266,3.442,0.5h2.558
c0.325,0,0.593,0.081,0.818,0.207c0.143-0.014,0.28-0.034,0.432-0.034h96.75c0.12,0,0.223,0.024,0.337,0.033
c0.014-0.001,0.023-0.005,0.038-0.005c2.449-0.057,4.879-0.868,7.321-0.332C289.431,267.154,288.861,269.361,287.433,269.186z"/>
</svg>
<img src="images/case back.png" class="case_back">
</div>
</div></li>';
}
elseif(strcmp($q_r["case_type"],'smg')==0)
{
echo '<li class="user_profile_cases_list upcl'.$counting.'" id="'.substr($q_r['case_desc_table'],6).'" style="margin-top:40px;">
<div class="lin-grad id_user_profile_case_default'.$counting.'" id="id_user_profile_case_default'.$counting.'" style="opacity:0;"></div>
<div class="smg_maincontainer">
<img src="'.$q_r['skinOfCase'].'" class="smg_container_skinImage">
<div class="case_box" >
<div id="case-name" class="fav_font">';
if(strlen($q_r['case_name'])>10 )
echo substr($q_r['case_name'],0, 10).'..' ;