flesh out temp.php a bit more
This commit is contained in:
parent
66ea2ff756
commit
5e3aad6e01
4
ring.php
4
ring.php
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
|
||||
function disabled($url, $id) {
|
||||
return "https://tilde.team/~barrow/loop/temp.php?id=$id&url=$url";
|
||||
}
|
||||
|
||||
$web_ring = array();
|
||||
|
||||
// $web_ring["site title"] = "http://url";
|
||||
|
|
|
@ -12,7 +12,7 @@ li { display: block; width: 33.33%; float: left; }
|
|||
li a:active, li a:hover { color: #72D5A3; }
|
||||
li a:link { color: aqua; }
|
||||
li a:visited { color: white; }
|
||||
a.title:link, a.title:visited, a.title:active, a.title:hover { color: #72D5A3; font-size: 28px; }
|
||||
a.title, a.title:link, a.title:visited, a.title:active, a.title:hover { color: #72D5A3; font-size: 28px; }
|
||||
#prev { text-align: left; }
|
||||
#rand { text-align: center; }
|
||||
#next { text-align: right; }
|
||||
|
|
6
temp.php
6
temp.php
|
@ -5,11 +5,13 @@
|
|||
|
||||
$id_key = "id";
|
||||
$id = 0;
|
||||
$url = "";
|
||||
|
||||
if( isset( $_GET ) && !empty( $_GET ) ) {
|
||||
$a_keys = array_keys( $_GET );
|
||||
if( in_array( $id_key, $a_keys ) && isset($_GET[$id_key]) ) {
|
||||
$id = $_GET[$id_key] * 1;
|
||||
$url = $_GET["url"];
|
||||
} else {
|
||||
// ID is not valid
|
||||
print "e02";
|
||||
|
@ -72,8 +74,10 @@ $next_url = $web_ring[$next]
|
|||
</head>
|
||||
<body id="frame">
|
||||
<div id="page">
|
||||
<a class="title" href="<?php print $home_url; ?>" target="_top" title="Webring Home Page">Whoops!</a>
|
||||
<a class="title" title="Webring Home Page">Whoops!</a>
|
||||
<p><a href="<?php print $url;?>"><?php print $url;?></a> is supposed to be here.</p>
|
||||
<p>This page is temporarily offline, disabled, or otherwise removed.</p>
|
||||
<p>You can try the link above for a live version of the page.</p>
|
||||
<p>Feel free to continue along!</p>
|
||||
<ul>
|
||||
<li id="prev"><a href="<?php print $prev_url; ?>" target="_top" title="Previous Website"><< Prev</a></li>
|
||||
|
|
Loading…
Reference in New Issue