mirror of
https://github.com/kvazar-network/webapp.git
synced 2025-01-31 09:14:26 +00:00
commit
ee8836ab95
@ -6,7 +6,7 @@ ini_set('display_startup_errors', '1');
|
||||
error_reporting(E_ALL);
|
||||
|
||||
// Application
|
||||
define('BASE_URL', 'https://kvazar.today/');
|
||||
define('BASE_URL', '');
|
||||
define('PAGE_LIMIT', 10);
|
||||
define('CACHE_ENABLED', false);
|
||||
|
||||
|
@ -1,13 +1,14 @@
|
||||
<?php
|
||||
|
||||
require_once('../config.php');
|
||||
require_once('../library/icon.php');
|
||||
require_once('../library/sqlite.php');
|
||||
require_once(__DIR__ . '/../config.php');
|
||||
require_once(__DIR__ . '/../library/icon.php');
|
||||
require_once(__DIR__ . '/../library/sqlite.php');
|
||||
|
||||
$query = isset($_GET['q']) ? preg_replace('/[^\w\s]+/u', '', urldecode($_GET['q'])) : '';
|
||||
$ns = '';
|
||||
$tx = '';
|
||||
$page = 0;
|
||||
$rss = false;
|
||||
|
||||
if (isset($_SERVER['REQUEST_URI'])) {
|
||||
|
||||
|
@ -4,26 +4,25 @@
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo BASE_URL; ?>css/app.css?v=9" />
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="description" content="Open Source Content Exploring Platform for Kevacoin Blockchain" />
|
||||
<?php if ($namespaceHash) { ?>
|
||||
<link rel="icon" type="image/png" href="<?php echo BASE_URL; ?>image.php?hash=<?php echo $namespaceHash; ?>&radius=30" />
|
||||
<?php if (!$tx) { ?>
|
||||
<meta name="robots" content="noindex,follow" />
|
||||
<?php } ?>
|
||||
<link rel="icon" type="image/png" href="<?php echo BASE_URL; ?>image.php?hash=<?php echo $namespaceHash; ?>&radius=30" />
|
||||
<?php if ($ns) { ?>
|
||||
<?php if ($page) { ?>
|
||||
<title><?php echo $namespaceValue ? $namespaceValue : $ns; ?> | PART <?php echo $page; ?> | KVAZAR</title>
|
||||
<meta name="robots" content="noindex,follow" />
|
||||
<?php } else { ?>
|
||||
<title><?php echo $namespaceValue ? $namespaceValue : $ns; ?> | KVAZAR</title>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php if ($page) { ?>
|
||||
<title>KVAZAR | PART <?php echo $page; ?></title>
|
||||
<meta name="robots" content="noindex,follow" />
|
||||
<?php } else if ($tx) { ?>
|
||||
<title><?php echo $tx && isset($data[0]['key']) ? $data[0]['key'] : $tx; ?> | <?php echo ($namespaceValue ? $namespaceValue : ($namespaceHash ? $namespaceHash : false)); ?> | KVAZAR</title>
|
||||
<?php } else if ($query) { ?>
|
||||
<title>KVAZAR | SEARCH | <?php echo $query; ?></title>
|
||||
<?php } else { ?>
|
||||
<title>KVAZAR | TODAY</title>
|
||||
<title>KVAZAR</title>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</head>
|
||||
|
@ -1,2 +1,2 @@
|
||||
User-Agent: *
|
||||
Sitemap: https://kvazar.today/sitemap.xml
|
||||
Sitemap: /sitemap.xml
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<channel>
|
||||
<atom:link href="<?php echo BASE_URL; ?><?php echo ($ns ? $ns . '/rss' :
|
||||
($query ? '?q=' . $query . '&rss' : 'rss')); ?>" rel="self" type="application/rss+xml"></atom:link>
|
||||
<title>KVAZAR - <?php echo ($namespaceValue ? $namespaceValue :
|
||||
($namespaceHash ? $namespaceHash :
|
||||
($query ? 'SEARCH - ' . $query : 'TODAY'))); ?></title>
|
||||
($query ? 'SEARCH - ' . $query : false))); ?></title>
|
||||
<description>Observe Kevacoin Universe</description>
|
||||
<link><?php echo BASE_URL; ?><?php echo ($ns ? $ns : ($query ? '?q=' . $query : false)); ?></link>
|
||||
<?php foreach ($data as $item) { ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user