[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
125568e992
commit
0b21152c54
3 changed files with 41 additions and 41 deletions
|
|
@ -20,7 +20,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkAndLogin() {
|
function checkAndLogin() {
|
||||||
$conn = mysqli_connect("localhost", "root", "", "speedtest");
|
$conn = mysqli_connect("localhost", "root", "", "speedtest");
|
||||||
$query = "SELECT `email` FROM `users` WHERE email='".$_POST["email"]."' AND username='".$_POST["username"]."' AND password='".$_POST["password"]."'";
|
$query = "SELECT `email` FROM `users` WHERE email='".$_POST["email"]."' AND username='".$_POST["username"]."' AND password='".$_POST["password"]."'";
|
||||||
$count = mysqli_num_rows(mysqli_query($conn, $query));
|
$count = mysqli_num_rows(mysqli_query($conn, $query));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
$uid = $_GET['uid'];
|
$uid = $_GET['uid'];
|
||||||
$score = $_GET['score'];
|
$score = $_GET['score'];
|
||||||
$query = "SELECT * FROM `bestscores` WHERE `userid`=".$uid;
|
$query = "SELECT * FROM `bestscores` WHERE `userid`=".$uid;
|
||||||
$query = mysqli_query($conn, $query);
|
$query = mysqli_query($conn, $query);
|
||||||
if (mysqli_num_rows($query) > 0) {
|
if (mysqli_num_rows($query) > 0) {
|
||||||
if (mysqli_fetch_array($query)['scores'] < $score ) {
|
if (mysqli_fetch_array($query)['scores'] < $score ) {
|
||||||
$query = "UPDATE `bestscores` SET `scores`=".$score." WHERE `userid`=".$uid;
|
$query = "UPDATE `bestscores` SET `scores`=".$score." WHERE `userid`=".$uid;
|
||||||
|
|
@ -17,4 +17,4 @@
|
||||||
window.location.replace('./main.php?id=".$uid."');
|
window.location.replace('./main.php?id=".$uid."');
|
||||||
</script>";
|
</script>";
|
||||||
mysqli_close($conn);
|
mysqli_close($conn);
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
76
style.css
76
style.css
|
|
@ -108,23 +108,23 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LoginPage */
|
/* LoginPage */
|
||||||
.1_2 {
|
.1_2 {
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
}
|
}
|
||||||
.e1_2 {
|
.e1_2 {
|
||||||
background-color:rgba(33.00000183284283, 72.00000330805779, 192.00000375509262, 1);
|
background-color:rgba(33.00000183284283, 72.00000330805779, 192.00000375509262, 1);
|
||||||
width:1280px;
|
width:1280px;
|
||||||
height:720px;
|
height:720px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
}
|
}
|
||||||
.e1_3 {
|
.e1_3 {
|
||||||
width:1641.5px;
|
width:1641.5px;
|
||||||
height:1083px;
|
height:1083px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:-362px;
|
left:-362px;
|
||||||
top:-1px;
|
top:-1px;
|
||||||
}
|
}
|
||||||
.e1_4 {
|
.e1_4 {
|
||||||
border-radius:500px;
|
border-radius:500px;
|
||||||
background-color:rgba(38.02176296710968, 78.14297407865524, 201.59277141094208, 1);
|
background-color:rgba(38.02176296710968, 78.14297407865524, 201.59277141094208, 1);
|
||||||
width:724px;
|
width:724px;
|
||||||
|
|
@ -133,7 +133,7 @@ body {
|
||||||
left:0px;
|
left:0px;
|
||||||
top:359px;
|
top:359px;
|
||||||
}
|
}
|
||||||
.e1_5 {
|
.e1_5 {
|
||||||
border-radius:500px;
|
border-radius:500px;
|
||||||
background-color:rgba(35.56280851364136, 75.24470239877701, 197.34277546405792, 1);
|
background-color:rgba(35.56280851364136, 75.24470239877701, 197.34277546405792, 1);
|
||||||
width:572px;
|
width:572px;
|
||||||
|
|
@ -142,7 +142,7 @@ body {
|
||||||
left:76px;
|
left:76px;
|
||||||
top:435px;
|
top:435px;
|
||||||
}
|
}
|
||||||
.e1_6 {
|
.e1_6 {
|
||||||
border-radius:500px;
|
border-radius:500px;
|
||||||
background-color:rgba(39.26694095134735, 78.55742543935776, 199.45117592811584, 1);
|
background-color:rgba(39.26694095134735, 78.55742543935776, 199.45117592811584, 1);
|
||||||
width:438px;
|
width:438px;
|
||||||
|
|
@ -151,7 +151,7 @@ body {
|
||||||
left:143px;
|
left:143px;
|
||||||
top:502px;
|
top:502px;
|
||||||
}
|
}
|
||||||
.e1_7 {
|
.e1_7 {
|
||||||
background-color:rgba(38.02176296710968, 78.14297407865524, 201.59277141094208, 1);
|
background-color:rgba(38.02176296710968, 78.14297407865524, 201.59277141094208, 1);
|
||||||
width:864px;
|
width:864px;
|
||||||
height:721.5px;
|
height:721.5px;
|
||||||
|
|
@ -159,24 +159,24 @@ body {
|
||||||
left:777.5px;
|
left:777.5px;
|
||||||
top:0px;
|
top:0px;
|
||||||
}
|
}
|
||||||
.e1_8 {
|
.e1_8 {
|
||||||
width:300px;
|
width:300px;
|
||||||
height:398px;
|
height:398px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:490px;
|
left:490px;
|
||||||
top:161px;
|
top:161px;
|
||||||
}
|
}
|
||||||
.e1_9 {
|
.e1_9 {
|
||||||
width:300px;
|
width:300px;
|
||||||
height:45px;
|
height:45px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:0px;
|
left:0px;
|
||||||
top:169px;
|
top:169px;
|
||||||
}
|
}
|
||||||
.1_10 {
|
.1_10 {
|
||||||
border:1px solid rgba(255, 255, 255, 1);
|
border:1px solid rgba(255, 255, 255, 1);
|
||||||
}
|
}
|
||||||
.e1_10 {
|
.e1_10 {
|
||||||
width:300px;
|
width:300px;
|
||||||
height:45px;
|
height:45px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
|
|
@ -187,7 +187,7 @@ body {
|
||||||
border-bottom-left-radius:4px;
|
border-bottom-left-radius:4px;
|
||||||
border-bottom-right-radius:4px;
|
border-bottom-right-radius:4px;
|
||||||
}
|
}
|
||||||
.e1_11 {
|
.e1_11 {
|
||||||
color:rgba(255, 255, 255, 1);
|
color:rgba(255, 255, 255, 1);
|
||||||
width:84px;
|
width:84px;
|
||||||
height:20px;
|
height:20px;
|
||||||
|
|
@ -200,44 +200,44 @@ body {
|
||||||
letter-spacing:0;
|
letter-spacing:0;
|
||||||
line-height:px;
|
line-height:px;
|
||||||
}
|
}
|
||||||
.e1_12 {
|
.e1_12 {
|
||||||
width:20px;
|
width:20px;
|
||||||
height:20px;
|
height:20px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:12px;
|
left:12px;
|
||||||
top:13px;
|
top:13px;
|
||||||
}
|
}
|
||||||
.1_13 {
|
.1_13 {
|
||||||
border:1px solid rgba(255, 255, 255, 1);
|
border:1px solid rgba(255, 255, 255, 1);
|
||||||
}
|
}
|
||||||
.e1_13 {
|
.e1_13 {
|
||||||
width:13.333332061767578px;
|
width:13.333332061767578px;
|
||||||
height:5px;
|
height:5px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:3.3333334922790527px;
|
left:3.3333334922790527px;
|
||||||
top:12.5px;
|
top:12.5px;
|
||||||
}
|
}
|
||||||
.1_14 {
|
.1_14 {
|
||||||
border:1px solid rgba(255, 255, 255, 1);
|
border:1px solid rgba(255, 255, 255, 1);
|
||||||
}
|
}
|
||||||
.e1_14 {
|
.e1_14 {
|
||||||
width:6.6666669845581055px;
|
width:6.6666669845581055px;
|
||||||
height:6.6666669845581055px;
|
height:6.6666669845581055px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:6.6666669845581055px;
|
left:6.6666669845581055px;
|
||||||
top:2.5px;
|
top:2.5px;
|
||||||
}
|
}
|
||||||
.e1_15 {
|
.e1_15 {
|
||||||
width:300px;
|
width:300px;
|
||||||
height:45px;
|
height:45px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:0px;
|
left:0px;
|
||||||
top:234px;
|
top:234px;
|
||||||
}
|
}
|
||||||
.1_16 {
|
.1_16 {
|
||||||
border:1px solid rgba(255, 255, 255, 1);
|
border:1px solid rgba(255, 255, 255, 1);
|
||||||
}
|
}
|
||||||
.e1_16 {
|
.e1_16 {
|
||||||
width:300px;
|
width:300px;
|
||||||
height:45px;
|
height:45px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
|
|
@ -248,7 +248,7 @@ body {
|
||||||
border-bottom-left-radius:4px;
|
border-bottom-left-radius:4px;
|
||||||
border-bottom-right-radius:4px;
|
border-bottom-right-radius:4px;
|
||||||
}
|
}
|
||||||
.e1_17 {
|
.e1_17 {
|
||||||
color:rgba(255, 255, 255, 1);
|
color:rgba(255, 255, 255, 1);
|
||||||
width:85px;
|
width:85px;
|
||||||
height:20px;
|
height:20px;
|
||||||
|
|
@ -261,41 +261,41 @@ body {
|
||||||
letter-spacing:0;
|
letter-spacing:0;
|
||||||
line-height:px;
|
line-height:px;
|
||||||
}
|
}
|
||||||
.e1_18 {
|
.e1_18 {
|
||||||
width:20px;
|
width:20px;
|
||||||
height:20px;
|
height:20px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:12px;
|
left:12px;
|
||||||
top:13px;
|
top:13px;
|
||||||
}
|
}
|
||||||
.1_19 {
|
.1_19 {
|
||||||
border:1px solid rgba(255, 255, 255, 1);
|
border:1px solid rgba(255, 255, 255, 1);
|
||||||
}
|
}
|
||||||
.e1_19 {
|
.e1_19 {
|
||||||
width:15px;
|
width:15px;
|
||||||
height:9.166666984558105px;
|
height:9.166666984558105px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:2.5px;
|
left:2.5px;
|
||||||
top:9.166666984558105px;
|
top:9.166666984558105px;
|
||||||
}
|
}
|
||||||
.1_20 {
|
.1_20 {
|
||||||
border:1px solid rgba(255, 255, 255, 1);
|
border:1px solid rgba(255, 255, 255, 1);
|
||||||
}
|
}
|
||||||
.e1_20 {
|
.e1_20 {
|
||||||
width:8.333333015441895px;
|
width:8.333333015441895px;
|
||||||
height:7.5px;
|
height:7.5px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:5.8333330154418945px;
|
left:5.8333330154418945px;
|
||||||
top:1.6666667461395264px;
|
top:1.6666667461395264px;
|
||||||
}
|
}
|
||||||
.e1_21 {
|
.e1_21 {
|
||||||
width:300px;
|
width:300px;
|
||||||
height:45px;
|
height:45px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:0px;
|
left:0px;
|
||||||
top:322px;
|
top:322px;
|
||||||
}
|
}
|
||||||
.e1_22 {
|
.e1_22 {
|
||||||
box-shadow:0px 4px 4px rgba(0, 0, 0, 0.30000001192092896);
|
box-shadow:0px 4px 4px rgba(0, 0, 0, 0.30000001192092896);
|
||||||
background-color:rgba(255, 255, 255, 1);
|
background-color:rgba(255, 255, 255, 1);
|
||||||
width:300px;
|
width:300px;
|
||||||
|
|
@ -308,7 +308,7 @@ body {
|
||||||
border-bottom-left-radius:4px;
|
border-bottom-left-radius:4px;
|
||||||
border-bottom-right-radius:4px;
|
border-bottom-right-radius:4px;
|
||||||
}
|
}
|
||||||
.e1_23 {
|
.e1_23 {
|
||||||
color:rgba(33.00000183284283, 72.00000330805779, 192.00000375509262, 1);
|
color:rgba(33.00000183284283, 72.00000330805779, 192.00000375509262, 1);
|
||||||
width:54px;
|
width:54px;
|
||||||
height:20px;
|
height:20px;
|
||||||
|
|
@ -321,7 +321,7 @@ body {
|
||||||
letter-spacing:0;
|
letter-spacing:0;
|
||||||
line-height:px;
|
line-height:px;
|
||||||
}
|
}
|
||||||
.e1_24 {
|
.e1_24 {
|
||||||
color:rgba(255, 255, 255, 1);
|
color:rgba(255, 255, 255, 1);
|
||||||
width:146px;
|
width:146px;
|
||||||
height:20px;
|
height:20px;
|
||||||
|
|
@ -333,24 +333,24 @@ body {
|
||||||
font-size:16px;
|
font-size:16px;
|
||||||
letter-spacing:0;
|
letter-spacing:0;
|
||||||
}
|
}
|
||||||
.e1_26 {
|
.e1_26 {
|
||||||
width:119.38622283935547px;
|
width:119.38622283935547px;
|
||||||
height:97.8512191772461px;
|
height:97.8512191772461px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:90px;
|
left:90px;
|
||||||
top:0px;
|
top:0px;
|
||||||
}
|
}
|
||||||
.1_28 {
|
.1_28 {
|
||||||
border:3.7564799785614014px solid rgba(255, 255, 255, 1);
|
border:3.7564799785614014px solid rgba(255, 255, 255, 1);
|
||||||
}
|
}
|
||||||
.e1_28 {
|
.e1_28 {
|
||||||
width:119.38622283935547px;
|
width:119.38622283935547px;
|
||||||
height:77.4139404296875px;
|
height:77.4139404296875px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:0px;
|
left:0px;
|
||||||
top:0px;
|
top:0px;
|
||||||
}
|
}
|
||||||
.e1_29 {
|
.e1_29 {
|
||||||
background-color:rgba(255, 255, 255, 1);
|
background-color:rgba(255, 255, 255, 1);
|
||||||
width:27.3311767578125px;
|
width:27.3311767578125px;
|
||||||
height:36.53932189941406px;
|
height:36.53932189941406px;
|
||||||
|
|
@ -358,20 +358,20 @@ body {
|
||||||
left:55.61553955078125px;
|
left:55.61553955078125px;
|
||||||
top:19.19873046875px;
|
top:19.19873046875px;
|
||||||
}
|
}
|
||||||
.1_30 {
|
.1_30 {
|
||||||
border:3.0051798820495605px solid rgba(255, 255, 255, 1);
|
border:3.0051798820495605px solid rgba(255, 255, 255, 1);
|
||||||
}
|
}
|
||||||
.e1_30 {
|
.e1_30 {
|
||||||
width:11.13446044921875px;
|
width:11.13446044921875px;
|
||||||
height:11.147605895996094px;
|
height:11.147605895996094px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:50.7236328125px;
|
left:50.7236328125px;
|
||||||
top:86.70361328125px;
|
top:86.70361328125px;
|
||||||
}
|
}
|
||||||
.1_31 {
|
.1_31 {
|
||||||
border:3.0051798820495605px solid rgba(255, 255, 255, 1);
|
border:3.0051798820495605px solid rgba(255, 255, 255, 1);
|
||||||
}
|
}
|
||||||
.e1_31 {
|
.e1_31 {
|
||||||
width:11.134475708007812px;
|
width:11.134475708007812px;
|
||||||
height:11.147605895996094px;
|
height:11.147605895996094px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue