mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-23 12:10:40 +03:00
64 lines
No EOL
1.9 KiB
Text
64 lines
No EOL
1.9 KiB
Text
<!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>Main page!</title>
|
|
<meta name="description" content="Main page of Akf-forum!">
|
|
<meta name="author" content="Akif9748">
|
|
<link rel="icon" type="image/x-icon" href="/images/favicon.jpg">
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
<%if(user.admin){%>
|
|
<button onclick="window.location.href = '/admin'">ADMIN PANEL</button> <hr>
|
|
|
|
<%};%>
|
|
<!-- Navbar: -->
|
|
<a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a>
|
|
<br> <button class="buyuk" onclick="window.location.href = '/threads'">THREADS</button>
|
|
|
|
<button class="buyuk" onclick="window.location.href = '/search'">SEARCH</button>
|
|
<button class="buyuk" onclick="window.location.href = '/users'">USERS</button>
|
|
<button class="buyuk" onclick="window.location.href = '/createThread/'">OPEN THREAD</button>
|
|
<h1 style="display:inline; float:right;"><a href=<%=user.getLink() %>> <%= user.name %></a>
|
|
<img class="yuvarlak" src=<%=user.avatar %> alt=<%= user.name %>>
|
|
</h1>
|
|
<hr>
|
|
|
|
<!-- Navbar end -->
|
|
<h1>Welcome, <a href=<%=user.getLink() %>> <%= user.name %></a>
|
|
<img class="yuvarlak" src=<%=user.avatar %> alt=<%= user.name %>>
|
|
<br>
|
|
You can press logout here:
|
|
<button onclick="window.location.href = '/login/'">LOGOUT</button>
|
|
|
|
</h1>
|
|
|
|
<br>
|
|
<h1>Statistics:</h1>
|
|
<ul>
|
|
<li>
|
|
<h3>Message count: <b> <%= messages %> </b></h3>
|
|
</li>
|
|
<li>
|
|
<h3>User count: <b> <%= users %> </b></h3>
|
|
</li>
|
|
<li>
|
|
<h3>Thread count: <b> <%= threads %></b></h3>
|
|
</li>
|
|
<li>
|
|
<h3>Memory usage: <b> <%= mem.toFixed(2); %> MB </b></h3>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<!-- This website is powered by AKF-Forum -->
|
|
</body>
|
|
|
|
</html> |