mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-15 19:07:01 +00:00
61 lines
2.7 KiB
PHP
61 lines
2.7 KiB
PHP
<?php
|
|
|
|
$profile = getTwtsFromTwtxtString($config['public_txt_url']);
|
|
|
|
?>
|
|
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="webmention" href="<?= $baseURL ?>/webmention" />
|
|
<link rel="stylesheet" type="text/css" href="<?= $baseURL ?>/libs/simple.css">
|
|
<link rel="stylesheet" type="text/css" href="<?= $baseURL ?>/libs/timeline.css">
|
|
<link rel="stylesheet" type="text/css" href="<?= $baseURL ?>/custom.css">
|
|
<link rel="icon" type="image/x-icon" href="<?= $baseURL ?>/media/logo.png">
|
|
<title><?= $title ?></title>
|
|
</head>
|
|
<body>
|
|
|
|
<header>
|
|
<p>
|
|
<a href="/">
|
|
<img class="logo" src="<?= $baseURL ?>/media/logo.png">
|
|
<?= $config['site_title']; ?>
|
|
</a>
|
|
<!-- <a href="/">
|
|
<img class="logo" src="<?= $profile->avatar ?>" alt="" loading="lazy">
|
|
<?= parse_url($profile->mainURL, PHP_URL_HOST); ?>
|
|
</a>
|
|
<a href="/">
|
|
<img class="logo" src="<?= $profile->avatar ?>" alt="" loading="lazy">
|
|
<?= $profile->nick ?>@<?= parse_url($profile->mainURL, PHP_URL_HOST); ?>
|
|
</a> -->
|
|
</p>
|
|
<nav>
|
|
|
|
<ul class="secondary">
|
|
<?php //if ($validSession) { // TODO: Make login seqcure ?>
|
|
<?php if( isset($_SESSION['password'])) { /*
|
|
if($_SESSION['password']=="$password") {*/ // Hacky login ?>
|
|
<li><a href="<?= $baseURL ?>/refresh?url=<?= $url ?>">Refresh</a></li>
|
|
<li><a href="<?= $baseURL ?>">Timeline</a></li>
|
|
<li><a href="<?= $baseURL ?>?profile=<?=$url ?>">Profile</a></li>
|
|
<li><a href="<?= $baseURL ?>/gallery?profile=<?= $profile->mainURL ?>">Gallery</a></li>
|
|
<li><a href="<?= $baseURL ?>/following">Following <?php // echo count($twtFollowingList); ?></a></li>
|
|
<li><a href="<?= $baseURL ?>/add">Add feed</a></li>
|
|
<li><a href="<?= $baseURL ?>/logout">Log Out</a></li>
|
|
<li><?php // include 'partials/lists.php'; ?></li>
|
|
<?php /*}*/ } else { ?>
|
|
<li><a href="<?= $baseURL ?>?profile=<?= $url ?>">Profile</a></li>
|
|
<li><a href="<?= $baseURL ?>/gallery?profile=<?= $profile->mainURL ?>">Gallery</a></li>
|
|
<li><a href="<?= $baseURL ?>/following">Following <?php // echo count($twtFollowingList); ?></a></li>
|
|
<li><a href="<?= $baseURL ?>">Timeline</a></li>
|
|
<li><a href="<?= $baseURL ?>/login" class="secondary">Log in</a></li>
|
|
<?php } ?>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
|
|
<main>
|