Fast fertig!
This commit is contained in:
parent
e4f89e7c89
commit
8a445e0c00
4 changed files with 28 additions and 18 deletions
24
index.php
24
index.php
|
@ -3,6 +3,11 @@
|
|||
<link href="style.css?v=<?php date("YmdHis");?>" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="bild">
|
||||
<img src="schrift.png">
|
||||
</div>
|
||||
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
|
@ -72,7 +77,6 @@ $number++;
|
|||
|
||||
<?php
|
||||
if (!isset ($_SESSION['id'])){
|
||||
// echo '<h1>Nicht eingeloggt!</h1>';
|
||||
echo '<div class="loginform">' .
|
||||
'<form action="/login.php" method="post">' .
|
||||
'<input type="text" placeholder="Username" name="user">' .
|
||||
|
@ -90,19 +94,13 @@ if (!isset ($_SESSION['id'])){
|
|||
<?php
|
||||
echo '<div class="loginform">' .
|
||||
'<form action="/insert.php" method="post">' .
|
||||
'<input type="text" placeholder="Link" name="url"><br>' .
|
||||
'<input type="submit" value="Hinzufügen">' .
|
||||
'<input type="url" pattern="https?://.+" required placeholder="Link" name="url"><br>' .
|
||||
'<input type="submit" value="Hinzufügen">' .
|
||||
'</form>' .
|
||||
'</div>';
|
||||
?>
|
||||
|
||||
<?php
|
||||
if (isset($_SESSION['id'])){
|
||||
// echo '<h1>Hier klicken zum Ausloggen!</h1>';
|
||||
echo '<div class="loginform">' .
|
||||
'<form action="/logout.php" method="post">' .
|
||||
'<input type="submit" value="Logout">' .
|
||||
'<form action="/logout.php" method="post">' .
|
||||
'<input type="submit" value="Logout">' .
|
||||
'</form>' .
|
||||
'</div>';
|
||||
}
|
||||
?>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
session_start();
|
||||
$cockDatabase = "dulow";
|
||||
$host = "localhost";
|
||||
$user = "root";
|
||||
|
@ -21,3 +22,4 @@ $author = $_SESSION['user'];
|
|||
$sql = "INSERT INTO cheaterliste (url, author) VALUES('".$url."', '".$author."')";
|
||||
$conn->query($sql);
|
||||
?>
|
||||
<meta http-equiv="refresh" content="0; url=/index.php" />
|
||||
|
|
BIN
schrift.png
Normal file
BIN
schrift.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 172 KiB |
20
style.css
20
style.css
|
@ -15,9 +15,6 @@ table {
|
|||
border-collapse: collapse;
|
||||
width: 100%
|
||||
}
|
||||
tr:last-child {
|
||||
border-bottom: 2px solid rgba(255,255,255, 1) !important;
|
||||
}
|
||||
th {
|
||||
color: #DDDDDD;
|
||||
background: rgba(18,18,18, 0.3) !important;
|
||||
|
@ -33,6 +30,9 @@ td {
|
|||
tr {
|
||||
background: rgba(18,18,18, 0.6) !important;
|
||||
}
|
||||
tr:last-child {
|
||||
border-bottom: 2px solid rgba(255,255,255, 1) !important;
|
||||
}
|
||||
.profil {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
@ -47,16 +47,18 @@ a:visited{
|
|||
table.center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 200px;
|
||||
}
|
||||
|
||||
.loginform {
|
||||
max-width: 340px;
|
||||
margin-left: auto;
|
||||
padding: 30px;
|
||||
padding-bottom: 0px;
|
||||
background: rgba(18,18,18, 0.3);
|
||||
border: 2px solid #DDDDDD;
|
||||
position: fixed;
|
||||
margin-left: 1600px;
|
||||
bottom: 10px;
|
||||
|
||||
}
|
||||
.loginform input {
|
||||
width: 100%;
|
||||
|
@ -71,3 +73,11 @@ table.center {
|
|||
.loginform button:hover,.loginform button:active,.loginform button:focus {
|
||||
background: #43A047;
|
||||
}
|
||||
|
||||
.bild {
|
||||
transform: scale(0.3,0.3);
|
||||
/*background: rgba(18,18,18, 0.3);*/
|
||||
/*border-top: 2px solid #DDDDDD;
|
||||
border-bottom: 2px solid #DDDDDD;*/
|
||||
text-align: center;
|
||||
}
|
||||
|
|
Reference in a new issue