Adapting to new Library

This commit is contained in:
2026-06-09 23:43:25 +02:00
parent 2be6598b5a
commit 95734bd6cc
4 changed files with 56 additions and 37 deletions
+26 -16
View File
@@ -1,48 +1,56 @@
<?php
ob_start();
require_once("/var/www/local/admin/script/furatalog.lib.php");
$lib = new furatalogLib();
$lib->init();
$section = 2;
?>
$data = [];
$data["header"] = file_get_contents("/var/www/furatalog-cdn/mainHead.html");
$data["CurrentItemList"] = $lib->printItemLists($section);
$data["NSFWCheck"] = $lib->printNsfwCheck();
$data["PageNumbers"] = $lib->printPagerNumbers();
$data["ScriptSec"] = $lib->printScriptSec();
echo '
<!DOCTYPE html>
<html lang="en">
<head>
<?php echo file_get_contents("/var/www/furatalog-cdn/mainHead.html"); ?>
<head>' . $data["header"] . '
<title>Avatars - Furatalog.xyz</title>
</head>
<body>
<div class="navigation">
<a href="/">Home</a>
<a href="/">Home </a>
<a class="nocursor nohover">|</a>
<a href="/assets/" class="navitem">Assets</a>
<a href="/assets/" class="navitem active">Assets</a>
<a href="/bases/" class="navitem">Avatar-Bases</a>
<a href="/avatars/" class="navitem active">Avatars</a>
<a href="/avatars/" class="navitem">Avatars</a>
<a href="/worlds/" class="navitem">Worlds</a>
<div class="dropdown">
<a class="dropbtn">▼</a>
<div class="dropdown-content">
<a href="/assets/">Assets</a>
<a href="/assets/" class="active">Assets</a>
<a href="/bases/">Avatar-Bases</a>
<a href="/avatars/" class="active">Avatars</a>
<a href="/avatars/">Avatars</a>
<a href="/worlds/">Worlds</a>
</div>
</div>
<div class="right">
<form action="./">
<input name="s" type="text" placeholder="Search 🔍" autoComplete='off' value="<?php echo $_GET["s"]; ?>">
<input name="s" type="text" placeholder="Search 🔍" autoComplete="off" value="' . $_GET["s"] . '">
</form>
</div>
</div>
<div class="main">
<?php $lib->printItemLists($section); ?>
' . $data["CurrentItemList"] . '
</div>
<?php $lib->printNsfwCheck(); ?>
<div class="pager">
<?php $lib->printPagerNumbers(); ?>
' . $data["NSFWCheck"] . '
<div class="pager">' . $data["PageNumbers"] . '
</div>
<footer>
@@ -53,6 +61,8 @@
</p>
</footer>
<?php $lib->printScriptSec(); ?>
' . $data["ScriptSec"] . '
</body>
</html>
</html>';
ob_end_flush();