www/now/index.php

71 lines
2.1 KiB
PHP
Raw Permalink Normal View History

2023-05-11 16:23:14 +03:00
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
2023-05-11 17:58:03 +03:00
<?php
### ERROR HANDLING ###
function warnError($errno, $errstr, $errfile, $errline)
{
echo "<br><p style='padding:0px;margin:0px;background-color:white;color:black;'><b style='color:red;'>Error:</b> [$errno] $errstr <br> in file <b style='color:blue'>$errfile</b> line <b style='color:red'>$errline</b></p>";
}
set_error_handler("warnError");
if (!$_SERVER['DOCUMENT_ROOT']) {
$_SERVER['DOCUMENT_ROOT'] = '/weblink';
}
# TODO separate file
?>
2023-05-11 16:23:14 +03:00
<head>
<!--!Copyright © 2024 Aliberk Sandıı-->
2023-05-11 16:23:14 +03:00
<meta charset="UTF-8">
<!-- Meta Content -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2023-06-19 23:48:18 +03:00
<meta name="description" content="My current works">
<meta name="keywords" content="personal,website,now,doing,working,stuff,current">
2023-05-11 16:23:14 +03:00
<meta name="author" content="Aliberk Sandıı">
<!-- CSS Files -->
<?php
2023-05-11 17:58:03 +03:00
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT'] . "/assets/css");
2023-05-11 16:23:14 +03:00
foreach ($dir as $file) {
if ((!$file->isDot()) && str_ends_with($file, ".css")) {
echo '<link rel="stylesheet" href="/assets/css/' . $file . '">' . PHP_EOL . ' ';
}
} ?>
<title>Now | Aliberk Sandıı</title>
2023-05-11 16:23:14 +03:00
</head>
<body>
2023-07-12 22:53:23 +03:00
<header>
<a href="/" id="hlogo"><img src="/assets/images/icons/favicon.png"></a>
2023-11-11 20:03:49 +03:00
<div class="tmpinfo">Aliberk Sandıı</div>
2023-07-12 22:53:23 +03:00
</header>
<article>
<h1 class="title">What I'm Doing Now</h1>
<ul>
2024-01-03 23:28:42 +03:00
<li style="font-size:xx-large;">📚 Focusing YKS 🤓</li>
</ul>
2023-07-12 22:53:23 +03:00
</ul>
<p>Last Update: 1 January 2024</p>
2023-07-12 22:53:23 +03:00
<p style="font-size:small;">Inspired by: <br><a href="https://johanv.net/now/">https://johanv.net/now/</a><br><a href="https://nownownow.com/">https://nownownow.com/</a></p>
</article>
<footer>
<div class="tmpinfo">2024 &#x1f12f; Aliberk Sandıı</div>
2023-07-12 22:53:23 +03:00
</footer>
2023-05-11 17:58:03 +03:00
<?php
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT'] . "/assets/js");
2023-05-11 16:23:14 +03:00
foreach ($dir as $file) {
if ((!$file->isDot()) && str_ends_with($file, ".js") && $file != "jquery.js") {
echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . ' ';
}
} ?>
</body>
</html>