Skip to content

Commit bb80a30

Browse files
committed
Complete System, Pre-Testing
1 parent c8e6872 commit bb80a30

File tree

148 files changed

+13935
-573
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+13935
-573
lines changed

admin.php

+637-56
Large diffs are not rendered by default.

css/admin.css

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ a{
3434
color:#ABD17D;
3535
}
3636

37+
#browse input{
38+
background:inherit;
39+
color:#ABD17D;
40+
}
41+
3742
h1{
3843
width:100%;
3944
padding:10px;

css/index.css

+58-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ body{
4747

4848
.index-heading-3 h1{
4949
padding-top:25px;
50-
font-size:xx-large;
50+
font-size:50px;
5151

5252
}
5353

@@ -82,9 +82,66 @@ body{
8282
color:black;
8383
}
8484

85+
#index-option-div-inner-remove{
86+
background:inherit;
87+
cursor:inherit;
88+
}
89+
8590
.timer_words{
8691
font-size:30px;
8792
font-family: 'Iceland', cursive;
8893
}
8994

95+
#index-option-div-inner-remove{
96+
border:inherit;
97+
}
98+
99+
#modal-container{
100+
width:50%;
101+
border:solid 2px #ABD17D;
102+
border-radius:1em;
103+
background:#1a260d;
104+
}
105+
106+
.clearfix{
107+
width:100%;
108+
height:auto;
109+
}
110+
111+
#modal-container a{
112+
font-size: xx-large;
113+
float:right;
114+
margin:15px;
115+
color:#ABD17D;
116+
}
117+
118+
#modal-container a:hover{
119+
color:orange;
120+
}
121+
#modal-container a:focus{
122+
outline: none;
123+
}
124+
125+
.container{
126+
width:80%;
127+
margin:0px auto;
128+
border:solid 1px #ABD17D;
129+
}
130+
131+
.container h1{
132+
text-align:center;
133+
}
134+
135+
.container input{
136+
background:inherit;
137+
color:#ABD17D;
138+
border:1px solid #ABD17D;
139+
font-family: 'Iceland', cursive;
140+
font-size:large;
141+
}
142+
143+
.container input:focus{
144+
outline-width: 0;
145+
}
146+
90147

css/map.css

+98-8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ body{
77
font-family: 'Iceland', cursive;
88
}
99

10+
#dialog_flag_button button{
11+
font-family: 'Iceland', cursive;
12+
font-size:large;
13+
}
14+
1015
.map__image{
1116
width:100%;
1217
height:auto;
@@ -123,15 +128,20 @@ body{
123128
height:100%;
124129
float:right;
125130
}
131+
132+
#div1 th, td{
133+
border:inherit;
134+
}
126135
/* -------------------------- */
127136
.div1_inner_team_content_subs{
128137
width:100%;
129138
height:25%;
130-
line-height:28%;
139+
line-height:25%;
131140
}
132141

133142
.div1_inner_team_content_subs h3{
134143
text-align:center;
144+
font-size:large;
135145
}
136146

137147
.div1_inner_team_content_subs_key{
@@ -153,12 +163,13 @@ body{
153163

154164
.tg{
155165
width:100%;
166+
margin-top:-3%;
156167
}
157168

158169
.tg-yw4l{
159170
width:50%;
160171
text-align:left;
161-
font-size:medium;
172+
font-size:15px;
162173
padding-left:20%;
163174
}
164175
/* -------------------------- */
@@ -281,9 +292,33 @@ body{
281292
#div3_inner_chat_input input:focus{
282293
outline-width: 0;
283294
}
295+
296+
#div3_inner_chat_history table {
297+
border-collapse: collapse;
298+
width: 100%;
299+
}
300+
301+
#div3_inner_chat_history td, th {
302+
border: 1px solid #ABD17D;
303+
text-align: left;
304+
padding: 8px;
305+
}
306+
307+
#div3_inner_chat_history tr:nth-child(even) {
308+
background-color: #354b1b;
309+
}
310+
311+
.cha_user{
312+
width:25%;
313+
}
314+
315+
.cha_val{
316+
width:75%;
317+
text-align:justify;
318+
}
284319
/*---------------------------------- Center Info Panel ----------------------------------*/
285320
#center_panel{
286-
width:auto;
321+
width:25%;
287322
height:5%;
288323
position:absolute;
289324
top:20px;
@@ -323,7 +358,7 @@ body{
323358
position:absolute;
324359
top:20px;
325360
z-index: 1;
326-
margin-left:2%;
361+
margin-left:3%;
327362
}
328363

329364
#left_panel_background{
@@ -343,13 +378,16 @@ body{
343378
height:30%;
344379
border-bottom:solid 1px #abd17d;
345380
padding:0px;
346-
line-height:20%;
347381
text-align:center;
348-
font-size:large;
382+
font-size:medium;
349383
float:left;
350384
color:#abd17d;
351385
}
352386

387+
#left_panel_div_heading #fg_marker{
388+
line-height:30%;
389+
}
390+
353391
#left_panel_div_input{
354392
width:100%;
355393
height:50%;
@@ -387,10 +425,15 @@ body{
387425
width:100%;
388426
height:20%;
389427
line-height:20%;
428+
font-size:medium;
390429
padding:0px;
391430
float:left;
392431
color:#abd17d;
393432
}
433+
434+
#left_panel_div_status #flag-status-p{
435+
line-height:20%;
436+
}
394437
/*---------------------------------- Right Info Panel ----------------------------------*/
395438
#right_panel{
396439
width:20%;
@@ -513,7 +556,7 @@ body{
513556
color: white;
514557
}
515558

516-
.modal-body {padding: 2px 16px 80px 16px;}
559+
.modal-body {padding: 2px 16px 30px 16px;}
517560

518561
.modal-footer {
519562
padding: 2px 16px;
@@ -537,4 +580,51 @@ body{
537580
width:100%;
538581
height:150px;
539582
}
540-
/*-------------------- Scroll Bar --------------------------------- */
583+
/*-------------------- dropdown --------------------------------- */
584+
.dropbtn {
585+
background-color: inherit;
586+
color: white;
587+
padding: 16px;
588+
font-size: 16px;
589+
border: none;
590+
cursor: pointer;
591+
border:solid 1px #ABD17D;
592+
border-radius:1em;
593+
}
594+
595+
.dropdown {
596+
position: absolute;
597+
display: inline-block;
598+
top:20px;
599+
width:10%;
600+
margin-left:45%;
601+
}
602+
603+
.dropdown-content {
604+
display: none;
605+
position: relative;
606+
background-color: #111111;
607+
min-width: 160px;
608+
margin:0px auto;
609+
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
610+
z-index: 1;
611+
}
612+
613+
.dropdown-content a {
614+
color: black;
615+
padding: 12px 16px;
616+
text-decoration: none;
617+
display: block;
618+
color:#ABD17D;
619+
}
620+
621+
.dropdown-content a:hover {background-color: #ABD17D;color:#000000;}
622+
623+
.dropdown:hover .dropdown-content {
624+
display: block;
625+
}
626+
627+
.dropdown:hover .dropbtn {
628+
background-color: #ABD17D;
629+
color:#000000;
630+
}

css/secgen.css

+2-25
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#wrapper{
22
width:90%;
33
height:auto;
4-
margin:11% auto auto auto;
4+
margin:13% auto auto auto;
55
}
66

77
.vm{
@@ -49,7 +49,7 @@
4949
.grouper_map path{
5050
margin-left:100px;
5151
stroke:gray;
52-
stroke-width:0.2px;
52+
stroke-width:0.3px;
5353
transition: fill 0.3s;
5454

5555
}
@@ -63,26 +63,3 @@
6363
margin-left:10px;
6464
}
6565

66-
#div3_inner_chat_history table {
67-
border-collapse: collapse;
68-
width: 100%;
69-
}
70-
71-
#div3_inner_chat_history td, th {
72-
border: 1px solid #ABD17D;
73-
text-align: left;
74-
padding: 8px;
75-
}
76-
77-
#div3_inner_chat_history tr:nth-child(even) {
78-
background-color: #354b1b;
79-
}
80-
81-
.cha_user{
82-
width:25%;
83-
}
84-
85-
.cha_val{
86-
width:75%;
87-
text-align:justify;
88-
}

data_pdf.php

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?php
2+
3+
if(isset($_POST['token_pdf']) && isset($_POST['token_gen_team'])){
4+
5+
require 'fpdf181/fpdf.php';
6+
include 'template/connection.php';
7+
$team = $_POST['token_gen_team'];
8+
$query = "SELECT * FROM users WHERE TEAM='$team'";
9+
$result = mysqli_query($connection, $query);
10+
class PDF extends FPDF{
11+
function Footer()
12+
{
13+
// Position at 1.5 cm from bottom
14+
$this->SetY(-15);
15+
// Arial italic 8
16+
$this->SetFont('Arial','I',8);
17+
// Page number
18+
$this->Cell(0,10,'Page '.$this->PageNo(),0,0,'R');
19+
}
20+
}
21+
22+
$pdf = new PDF();
23+
$pdf->AddPage();
24+
$pdf->SetFont('Arial','',10);
25+
$pdf->SetFillColor(204,255,255);
26+
$pdf->SetFont('Arial','B',9);
27+
$pdf->Cell(180,10,'Capture The Flag Token',1,'','C',true);
28+
$pdf->Ln(23);
29+
30+
$sno = 0;
31+
while($row = mysqli_fetch_assoc($result)){
32+
$pdf->SetFont('Arial','B',9);
33+
$pdf->setFillColor(230,230,230);
34+
$pdf->Cell(10,8,'S.No',1,'','C',true);
35+
$pdf->Cell(80,8,'Team',1,'','C',true);
36+
$pdf->Cell(90,8,'Token',1,'','C',true);
37+
$pdf->Ln(8);
38+
$pdf->SetFont('Arial','',9);
39+
$sno = $sno + 1;
40+
$pdf->Cell(10,8,$sno,1,'','C');
41+
$pdf->Cell(80,8,$row['TEAM'],1,'','C');
42+
$pdf->SetFillColor(204,255,255);
43+
$pdf->Cell(90,8,$row['TOKEN'],1,'','C',true);
44+
$pdf->SetTextColor(0,0,0);
45+
$pdf->Ln(20);
46+
}
47+
ob_start();
48+
$pdf->Output();
49+
ob_flush();
50+
51+
}else{
52+
header('location:index.php');
53+
}
54+
?>

0 commit comments

Comments
 (0)