"skús to commitnúť, počkaj toto ../ dám ešte preč aby to nevypadalo tak..."
This commit is contained in:
@@ -1,36 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Welcome Admin</title>
|
||||
<link rel="stylesheet" href="../styles/pages/style.css">
|
||||
<link rel="stylesheet" href="../styles/global.css">
|
||||
</head>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href=""><i class="ri-settings-4-fill"></i></a></li>
|
||||
<div class="links">
|
||||
<li><a href=""></a></li>
|
||||
<li><a href=""></a></li>
|
||||
<li><a href=""></a></li>
|
||||
</div>
|
||||
</ul>
|
||||
</nav>
|
||||
<body>
|
||||
<h2>Welcome</h2>
|
||||
<?php
|
||||
echo "Logged in as Admin: " . $user['username'];
|
||||
?>
|
||||
|
||||
<!-- Display Gravatar image -->
|
||||
<?php
|
||||
$email = $user['email'];
|
||||
$hash = md5(strtolower(trim($email)));
|
||||
$gravatarUrl = "https://www.gravatar.com/avatar/$hash?s=100";
|
||||
echo "<img src='$gravatarUrl' alt='Gravatar Profile Picture'>";
|
||||
?>
|
||||
|
||||
<a href="logout.php">Logout</a>
|
||||
</body>
|
||||
</html>
|
||||
<!--PAGENAME=You have rights-->
|
||||
<h2>Welcome</h2>
|
||||
<p>Logged in as an admin: <template name="username"></p>
|
||||
<template name="gravatar_image">
|
2
pages/global/index.html
Normal file
2
pages/global/index.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<!--PAGENAME=You dont have any rights-->
|
||||
<h1>Watch something</h1>
|
@@ -1,19 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Login</title>
|
||||
<link rel="stylesheet" href="../styles/pages/login.css">
|
||||
<link rel="stylesheet" href="../styles/global.css">
|
||||
</head>
|
||||
<body>
|
||||
<h2>Login</h2>
|
||||
<form action="../login.php" method="post">
|
||||
<input type="email" name="email" id="email-field" placeholder="E-Mail" required>
|
||||
<input type="password" name="password" id="password-field" pattern=".{3,32}" placeholder="Password" required>
|
||||
<input type="submit" name="login" value="Login">
|
||||
<a href="/register.php">Don't have an account?</a>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<h2>Login</h2>
|
||||
<form action="login.php" method="post">
|
||||
<input type="email" name="email" id="email-field" placeholder="E-Mail" required>
|
||||
<input type="password" name="password" id="password-field" pattern=".{3,32}" placeholder="Password" required>
|
||||
<input type="submit" name="login" value="Login">
|
||||
<a href="/register.php">Don't have an account?</a>
|
||||
</form>
|
@@ -1,26 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Register</title>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/remixicon/4.1.0/remixicon.css"
|
||||
integrity="sha512-dUOcWaHA4sUKJgO7lxAQ0ugZiWjiDraYNeNJeRKGOIpEq4vroj1DpKcS3jP0K4Js4v6bXk31AAxAxaYt3Oi9xw=="
|
||||
crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||
<link rel="stylesheet" href="../styles/pages/register.css">
|
||||
<link rel="stylesheet" href="../styles/global.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h2>Register</h2>
|
||||
<form action="../register.php" method="post">
|
||||
<input type="text" name="username" id="username-field" pattern=".{3,32}" placeholder="Username" required>
|
||||
<input type="email" name="email" id="email-field" placeholder="E-Mail" required>
|
||||
<input type="password" name="password" id="password-field" pattern=".{8,128}" placeholder="Password" required>
|
||||
<input type="submit" value="Register">
|
||||
<a href="/">Already have an account?</a>
|
||||
</form>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<h2>Register</h2>
|
||||
<form action="register.php" method="post">
|
||||
<input type="text" name="username" id="username-field" pattern=".{3,32}" placeholder="Username" required>
|
||||
<input type="email" name="email" id="email-field" placeholder="E-Mail" required>
|
||||
<input type="password" name="password" id="password-field" pattern=".{8,128}" placeholder="Password" required>
|
||||
<input type="submit" value="Register">
|
||||
<a href="/">Already have an account?</a>
|
||||
</form>
|
@@ -1,26 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Welcome User</title>
|
||||
<link rel="stylesheet" href="../styles/pages/style.css">
|
||||
<link rel="stylesheet" href="../styles/global.css">
|
||||
</head>
|
||||
<body>
|
||||
<h2>Welcome</h2>
|
||||
<?php
|
||||
echo "Logged in as: " . $user['username'];
|
||||
?>
|
||||
<!--PAGENAME=You do not have all rights-->
|
||||
<h2>Welcome</h2>
|
||||
<p>Logged in as: <template name="username"></p>
|
||||
|
||||
<!-- Display Gravatar image -->
|
||||
<?php
|
||||
$email = $user['email'];
|
||||
$hash = md5(strtolower(trim($email)));
|
||||
$gravatarUrl = "https://www.gravatar.com/avatar/$hash?s=100";
|
||||
echo "<img src='$gravatarUrl' alt='Gravatar Profile Picture'>";
|
||||
?>
|
||||
|
||||
<a href="logout.php">Logout</a>
|
||||
</body>
|
||||
</html>
|
||||
<template name="gravatar image">
|
Reference in New Issue
Block a user