www/link/index.php

98 lines
2.9 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">
<meta name="description" content="My Social Media Links">
<meta name="keywords" content="personal,website,links,social,media,contact,communication">
<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>My Links | Aliberk Sandıı</title>
2023-05-11 16:23:14 +03:00
</head>
<body>
2023-07-12 23:00:36 +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 23:00:36 +03:00
</header>
2023-05-11 17:58:03 +03:00
<div class="block-out">
2023-05-11 16:23:14 +03:00
2023-11-11 20:03:49 +03:00
<!-- ALL -->
2023-06-19 23:48:18 +03:00
<div class="block-in">
2023-11-11 20:03:49 +03:00
<h1 style="margin:0; text-align:center;">My Links</h1>
<ul class="basic-list">
<li class="block-list-in"><a href="https://blog.asandikci.com/">
<p class="in-p" style="font-weight:800;">Personal Blog</p>
2023-06-19 23:48:18 +03:00
</a>
</li>
2023-08-31 17:59:44 +03:00
2023-11-11 20:03:49 +03:00
<li class="block-list-in"><a href="mailto::contact@aliberksandikci.com.tr">
<p class="in-p" style="padding-bottom:1px; font-weight:800;">Send Mail</p>
2023-08-31 17:59:44 +03:00
</a>
2023-11-11 20:03:49 +03:00
<sup>contact@aliberksandikci.com.tr</sup>
2023-08-31 17:59:44 +03:00
</li>
2023-11-11 20:03:49 +03:00
<li class="block-list-in">
<p class="in-p" style="padding-bottom:1px;">XMPP</p>
2023-08-31 17:59:44 +03:00
</a>
2023-11-11 20:03:49 +03:00
<sup style="font-weight:800;">asandikci@aliberksandikci.com.tr</sup>
2023-08-31 17:59:44 +03:00
</li>
2023-11-11 20:03:49 +03:00
2023-07-15 16:44:18 +03:00
<li class="block-list-in">
2023-11-11 20:03:49 +03:00
<p class="in-p" style="padding-bottom:1px;">Discord</p>
</a>
<sup style="font-weight:800;">asandikci</sup>
2023-05-11 21:13:28 +03:00
</li>
2023-08-31 17:59:44 +03:00
2023-11-11 20:03:49 +03:00
<li class="block-list-in"><a href="https://linkedin.com/in/asandikci/">
<p class="in-p" style="font-weight:800;">LinkedIn</p>
2023-08-31 17:59:44 +03:00
</a>
</li>
2023-11-11 20:03:49 +03:00
2023-05-11 17:58:03 +03:00
</ul>
</div>
2023-05-11 16:23:14 +03:00
</div>
2023-07-12 23:00:36 +03:00
<footer>
<div class="tmpinfo">2024 &#x1f12f; Aliberk Sandıı</div>
2023-07-12 23:00:36 +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>