www/index.php

85 lines
2.8 KiB
PHP
Raw Normal View History

2023-07-15 17:08:39 +03:00
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<?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
?>
<head>
<!--!Copyright © 2023 Aliberk Sandıı-->
<meta charset="UTF-8">
<!-- Meta Content -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Main Page">
<meta name="keywords" content="personal,website,mainpage,main">
<meta name="author" content="Aliberk Sandıı">
<!-- CSS Files -->
<?php
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT'] . "/assets/css");
foreach ($dir as $file) {
if ((!$file->isDot()) && str_ends_with($file, ".css")) {
echo '<link rel="stylesheet" href="/assets/css/' . $file . '">' . PHP_EOL . ' ';
}
} ?>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.aliberksandikci.com.tr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '3']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
<title>Aliberk Sandıı</title>
2023-07-15 17:08:39 +03:00
</head>
<body>
<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-15 17:08:39 +03:00
</header>
<article style="text-align:center;align-items:center;">
2023-08-13 18:56:36 +03:00
<h1>Hello 👋</h1>
<p>You can learn more about me in <a href="about/">about me</a> page</p>
<p>You can find my all links in the internet with this <a href="link/">link</a></p>
2023-11-25 01:39:22 +03:00
<p>You can see my current works in <a href="now/">now</a> page</p>
2023-11-26 20:46:01 +03:00
<p>Also you can support my works/projects or help me cover my server costs in <a href="bagis/">donations</a> page</p>
2023-07-15 17:08:39 +03:00
</article>
2023-11-11 20:03:49 +03:00
<sup style="text-align:center; color:grey;">WIP for website UI/content</sup>
2023-07-15 17:08:39 +03:00
<footer>
2023-11-22 17:29:47 +03:00
<div class="tmpinfo">2023 &#x1f12f; Aliberk Sandıı</div>
2023-07-15 17:08:39 +03:00
</footer>
<?php
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT'] . "/assets/js");
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>
2023-08-13 18:56:36 +03:00
2023-11-11 23:57:55 +03:00
</html>