site/index.php
2023-09-02 23:10:21 +02:00

105 lines
3.5 KiB
PHP

<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
/*$status_api = "https://possum.city/api/users/notes";
$limit = 5;
if (!file_exists("posts.json"))
file_put_contents("posts.json", json_encode(array("time" => 0)));
$data = array("userId" => '99nedgtgoz', "includeReplies" => false);
$posts = json_decode(file_get_contents("posts.json"), true);
$time = time() - $posts["time"];
if ($time > 0) {
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_URL => $status_api,
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => json_encode($data),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => array('Content-Type: application/json')
));
$res = curl_exec($ch);
curl_close($ch);
$posts = json_decode($res, true);
$posts["time"] = time();
file_put_contents("posts.json", json_encode($posts));
}*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Yuki</title>
<link rel="shortcut icon" href="img/yuki.png" type="image/jpg">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<?php include("top.php"); ?>
<div class="container">
<?php include("header.php"); ?>
<div class="section">
<h2>Introduction</h2>
<p>hello im yuki and welcome to my super epic webpage</p>
<p>this is basically a shitpost so don't expect it to look good!!!</p>
<br>
<p><a href="0x412E93F5.asc">My PGP key</a></p>
<hr style="border-color:var(--fg-primary);margin: 8px 0">
<div class="center">
<a href="https://archlinux.org/"><img src="img/xenia.gif" alt="Linux NOW!" /></a>
<a href="https://yesterweb.org/no-to-web3/"><img src="img/web3.gif" alt="Keep the web free, say NO to Web3!" /></a>
<a href="https://git.lgbt/root"><img src="img/freeware.gif" alt="Freeware" /></a>
<img src="img/bookmark.gif" alt="Bookmark this page!" />
<img src="img/chrmevil.gif" alt="Google Chrome IS EVIL!" />
<img src="img/antinazi.gif" alt="NO NAZI, NO FASCISM, NO RACISM" />
<img src="img/antinft.gif" alt="THIS IS AN Anti-NFT SITE" />
<img src="img/antifa.gif" alt="AntiFa" />
<img src="img/gay.gif" alt="This website is GAY" />
<a href="ps2"><img src="img/freeps2.gif" alt="CLICK HERE to WIN a PS2!" /></a>
</div>
<ul style="display:none;">
<?php foreach($links as $link) { ?>
<li><a href="<?=$link["link"]?>" rel="me"><?=$link["name"]?></a></li>
<?php } ?>
</ul>
</div>
<?php /*
<div class="section">
<h2>Latest Posts</h2>
<?php $i = 0;
foreach ($posts as $idx => $post) {
if ($idx === "time")
continue;
if ($post["text"] == null)
continue;
if (++$i > $limit)
break;
$files = count($post["fileIds"]); ?>
<p><?= $post["text"] ?></p><?= $files > 0 ? '<small>(' . $files . ' File' . ($files !== 1 ? 's' : '') . ')</small>' . PHP_EOL : '' ?>
<small>@ <?= date('d/n/Y H:i', strtotime($post["createdAt"])) ?> | <a
href="https://possum.city/notes/<?= htmlspecialchars($post["id"]) ?>" target="_blank"
rel="noopener noreferrer">View Original</a></small>
<?php if ($i < min($limit, count($posts) - 1)) { ?><br><br>
<hr><br><?php } ?>
<?php } ?>
</div>
*/ ?>
<div class="section footer">
Copyleft <span class="copyleft">&copy;</span> Yuki <?= date("Y") . PHP_EOL ?>
</div>
</div>
</body>
</html>