www/link/index.php

83 lines
2.7 KiB
PHP
Raw 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 © 2023 Aliberk Sandıı-->
<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 . ' ';
}
} ?>
2023-05-11 17:58:03 +03:00
<title>My Links | Aliberk Sandıı</title>
2023-05-11 16:23:14 +03:00
</head>
<body>
2023-05-11 17:58:03 +03:00
<div class="block-out">
2023-05-11 16:23:14 +03:00
2023-06-19 23:48:18 +03:00
<div class="block-in">
2023-05-11 17:58:03 +03:00
<ul class="basic-list">
2023-06-19 23:48:18 +03:00
<li class="block-list-in HID"><a href="https://asandikci.com/about">
2023-05-11 21:13:28 +03:00
<p class="in-p">About me</p>
2023-06-19 23:48:18 +03:00
</a>
</li>
<li class="block-list-in HID"><a href="https://asandikci.com/now">
<p class="in-p">What I am working for now</p>
</a>
</li>
<li class="block-list-in block-hover"><a href="mailto::contact@aliberksandikci.com.tr">
<p class="in-p">Mail: contact@aliberksandikci.com.tr</p>
2023-05-11 21:13:28 +03:00
</a></li>
2023-06-19 23:48:18 +03:00
<li class="block-list-in block-hover"><a href="https://mastodon.social/@asandikci">
2023-05-11 21:13:28 +03:00
<p class="in-p">Fediverse (Mastodon)</p>
</a></li>
2023-06-19 23:48:18 +03:00
<li class="block-list-in block-hover"><a href="https://www.instagram.com/aliberksandikci/">
2023-05-11 21:13:28 +03:00
<p class="in-p">Instagram</p>
</a></li>
2023-06-19 23:48:18 +03:00
<li class="block-list-in block-hover">
2023-05-11 21:13:28 +03:00
<p class="in-p">Discord: kinetokor#7641</p>
</li>
2023-05-11 17:58:03 +03:00
</ul>
</div>
2023-05-11 16:23:14 +03:00
2023-06-19 23:48:18 +03:00
2023-05-11 16:23:14 +03:00
</div>
2023-05-11 21:13:28 +03:00
<p style="text-align:center">This page is still in active development</p>
2023-06-19 23:48:18 +03:00
<p style="text-align:center"><a href="../" >Main Page</a></p>
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>