Update index.php

This commit is contained in:
luqaska 2021-12-01 12:15:49 -03:00 committed by GitHub
parent e3f415c8a5
commit ebe64590c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1,18 +1,18 @@
<?php if(isset($_GET["q"]) and $_GET["q"]!=""){$is="q";}else{$is="h";} ?>
<?php include_once("_config.php");if(isset($_GET["q"]) && $_GET["q"]!=""){$is="q";}else{$is="h";} ?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title><?php if($is=="q"){$safeq=htmlentities($_GET["q"]);echo "'$safeq' - ";} ?>Filde</title>
<title><?php if($is=="q"){$safeq=htmlentities($_GET["q"]);echo "'$safeq' - ";} echo $TITLE; ?></title>
</head>
<body class="<?= $is ?>">
<div id="container">
<div id="content">
<div id="header">
<a href="?"><h1>Filde</h1></a>
<p>~search for things throught <a href="https://tildegit.org/assets/allowed_domains.txt">these webz</a></p>
<a href="?"><h1><?= $TITLE ?></h1></a>
<p>~search for things throught <a href="allowed.json">these webz</a></p>
</div>
<div class="form">