66 lines
1.5 KiB
Plaintext
66 lines
1.5 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<link rel="stylesheet" href="/css/styles.css" />
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Admin panel!</title>
|
|
<meta name="description" content="Admin panel of Akf-forum!">
|
|
<meta name="author" content="Akif9748">
|
|
<link rel="icon" type="image/x-icon" href="/images/favicon.jpg">
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
<!-- Navbar: -->
|
|
|
|
|
|
<a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a>
|
|
|
|
|
|
<div class="navbar" id="navbar">
|
|
|
|
<a href="/threads">THREADS</a>
|
|
<a href="/users">USERS</a>
|
|
<a href="/search">SEARCH</a>
|
|
<a href="/threads/open/">OPEN THREAD</a>
|
|
|
|
<div style="float: right;" class="user" id="user">
|
|
<a href=<%=user.getLink() %>>
|
|
<h1>
|
|
<%= user.name %><img class="yuvarlak" src=<%=user.avatar %> alt=<%= user.name %>>
|
|
</h1>
|
|
</a>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<!-- Navbar end -->
|
|
|
|
|
|
|
|
<h1>Welcome to the admin panel of the forum, <%= user.name %>!</h1>
|
|
|
|
<form action="/admin/" method="POST">
|
|
<h2>Write an ID for make admin:</h2>
|
|
<input name="userid"></input>
|
|
<hr>
|
|
<button class="buyuk" type="submit">Make admin!</button>
|
|
</form>
|
|
|
|
<script>
|
|
if (<%= user2.admin %>)
|
|
alert("Making admin of '<%= user2.name %>'' is success");
|
|
</script>
|
|
<!-- This website is powered by AKF-Forum -->
|
|
</body>
|
|
|
|
</html> |