mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-07 20:18:49 +00:00
Fixed nochan independence, chan suggestions go down, cleanup
This commit is contained in:
13
index.php
13
index.php
@@ -1,3 +1,10 @@
|
||||
<?php
|
||||
if(isset($_GET['chan'])) header('Location: '.$_GET['chan']);
|
||||
$list = explode("/", htmlspecialchars(strtolower($_SERVER["REQUEST_URI"])));
|
||||
if($list[1]==""||!isset($list[1])||count($list)<=1){$list="";include('php/nochan.php');die();}
|
||||
else $list=$list[1];
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<?php include("php/header.php"); ?>
|
||||
@@ -6,12 +13,6 @@
|
||||
<div class="bgimage" id="bgimage"></div>
|
||||
<div class="top vcent centered">
|
||||
<div id="change" class="small">
|
||||
<?php
|
||||
if(isset($_GET['chan'])) header('Location: '.$_GET['chan']);
|
||||
$list = explode("/", htmlspecialchars(strtolower($_SERVER["REQUEST_URI"])));
|
||||
if($list[1]==""||!isset($list[1])||count($list)<=1){$list="";include('php/nochan.php');die();}
|
||||
else $list=$list[1];
|
||||
?>
|
||||
<a id="toptitle" href="/">Zöff</a>
|
||||
<div id="chan" class="chan" title="Show big URL" onclick="show()"><?php echo(ucfirst($list));?></div>
|
||||
<input id="search" name="v" type="text" class="search_input innbox" spellcheck="false" placeholder="Search" onsubmit="null;" autocomplete="off"/>
|
||||
|
||||
Reference in New Issue
Block a user