Adapting to new Library
This commit is contained in:
+1
-2
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
ob_start();
|
||||
|
||||
require_once("/var/www/local/admin/script/furatalog.lib.php");
|
||||
$lib = new furatalogLib();
|
||||
@@ -13,8 +14,6 @@
|
||||
$data["NSFWCheck"] = $lib->printNsfwCheck();
|
||||
$data["PageNumbers"] = $lib->printPagerNumbers();
|
||||
$data["ScriptSec"] = $lib->printScriptSec();
|
||||
|
||||
ob_start();
|
||||
|
||||
echo '
|
||||
<!DOCTYPE html>
|
||||
|
||||
+26
-16
@@ -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();
|
||||
|
||||
+26
-16
@@ -1,48 +1,56 @@
|
||||
<?php
|
||||
ob_start();
|
||||
|
||||
require_once("/var/www/local/admin/script/furatalog.lib.php");
|
||||
$lib = new furatalogLib();
|
||||
$lib->init();
|
||||
|
||||
$section = 3;
|
||||
?>
|
||||
|
||||
$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>Avatar-Bases - 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="/bases/" class="navitem active">Avatar-Bases</a>
|
||||
<a href="/assets/" class="navitem active">Assets</a>
|
||||
<a href="/bases/" class="navitem">Avatar-Bases</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();
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
if (isset($_GET["s"]) && $_GET["s"] != "") {
|
||||
echo "<div class=\"main\">";
|
||||
|
||||
$lib->printItemLists("");
|
||||
echo $lib->printItemLists("");
|
||||
|
||||
echo "</div>";
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
echo $lib->printPagerNumbers();
|
||||
echo "</div>";
|
||||
|
||||
$lib->printScriptSec();
|
||||
echo $lib->printScriptSec();
|
||||
} else {
|
||||
echo "<div class=\"main\">
|
||||
<div class=\"home\">
|
||||
@@ -100,7 +100,7 @@
|
||||
|
||||
?>
|
||||
|
||||
<?php $lib->printNsfwCheck(); ?>
|
||||
<?php echo $lib->printNsfwCheck(); ?>
|
||||
|
||||
<footer>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user