From 4bd83bd267b1b8596dc4e75adc310d247b5e5973 Mon Sep 17 00:00:00 2001
From: SiskelDev
Date: Tue, 20 May 2025 12:21:13 +0200
Subject: [PATCH] Initial Commit of v2
---
admin/big-insert.php | 13 +
admin/index.php | 39 +
admin/insert-jinxxy.php | 0
admin/insert-species.php | 215 +++++
admin/insert.php | 401 +++++++++
admin/login.php | 52 ++
admin/logout.php | 6 +
admin/redirectFromJinxxy.php | 142 +++
admin/tampermonkeyImportFromJinxxy.user.js | 66 ++
admin/test.html | 16 +
assets/index.php | 54 ++
avatars/index.php | 54 ++
bases/index.php | 54 ++
cloudflarebypass.php | 11 +
data/furatalog-sitemap.xml | 28 +
data/script/script.js | 55 ++
data/style/colors.css | 29 +
data/style/style.css | 972 +++++++++++++++++++++
favicon.ico | Bin 0 -> 114761 bytes
index.php | 109 +++
submit/index.php | 58 ++
worlds/index.php | 56 ++
22 files changed, 2430 insertions(+)
create mode 100644 admin/big-insert.php
create mode 100644 admin/index.php
create mode 100644 admin/insert-jinxxy.php
create mode 100644 admin/insert-species.php
create mode 100644 admin/insert.php
create mode 100644 admin/login.php
create mode 100644 admin/logout.php
create mode 100644 admin/redirectFromJinxxy.php
create mode 100644 admin/tampermonkeyImportFromJinxxy.user.js
create mode 100644 admin/test.html
create mode 100644 assets/index.php
create mode 100644 avatars/index.php
create mode 100644 bases/index.php
create mode 100644 cloudflarebypass.php
create mode 100644 data/furatalog-sitemap.xml
create mode 100644 data/script/script.js
create mode 100644 data/style/colors.css
create mode 100644 data/style/style.css
create mode 100644 favicon.ico
create mode 100644 index.php
create mode 100644 submit/index.php
create mode 100644 worlds/index.php
diff --git a/admin/big-insert.php b/admin/big-insert.php
new file mode 100644
index 0000000..c577578
--- /dev/null
+++ b/admin/big-insert.php
@@ -0,0 +1,13 @@
+
+
+
+
+
+ Big Insert - Admin Panel - Furatalog.xyz
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/admin/index.php b/admin/index.php
new file mode 100644
index 0000000..e33a401
--- /dev/null
+++ b/admin/index.php
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+ Admin Panel - Furatalog.xyz
+
+
+
+
+
+
+
+
+
Admin Panel
+
Welcome to the admin panel.
+
+
+
+
\ No newline at end of file
diff --git a/admin/insert-jinxxy.php b/admin/insert-jinxxy.php
new file mode 100644
index 0000000..e69de29
diff --git a/admin/insert-species.php b/admin/insert-species.php
new file mode 100644
index 0000000..57e0bff
--- /dev/null
+++ b/admin/insert-species.php
@@ -0,0 +1,215 @@
+Custom error:
[$errno] $errstr
+
+
Insert Data
+
+
+
+ Content already exists in the database.";
+ }
+ ?>
+
+
+
+ New Species Inserted
+
+
+ ID
+
+
+
+ Name
+
+
+
+ Tag
+
+
+
+ URL
+
+
+
+ Creator ID
+
+
+
+
+
+ Creator
+
+
+ ID
+
+
+
+ Name
+
+
+
+ Creator PB
+
+
+
+ Booth URL
+
+
+
+ Gumroad URL
+
+
+
+ Payhip URL
+
+
+
+ Jinxxy URL
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/admin/insert.php b/admin/insert.php
new file mode 100644
index 0000000..1d3eced
--- /dev/null
+++ b/admin/insert.php
@@ -0,0 +1,401 @@
+Custom error: [$errno] $errstr
";
+ echo "Error on line $errline in $errfile
";
+}
+
+// Set user-defined error handler function
+//set_error_handler("myErrorHandler");
+
+$furatalog = new mysqli("localhost", "furatalog_admin_usr", "NR6tLk7c56bPT5[]", "furatalog");
+
+if (isset($_POST["url"])) {
+
+ $givenURL = $_POST["url"];
+
+ $isExisting = $furatalog->query("SELECT * FROM content WHERE url='" . $givenURL . "'");
+ if ($isExisting->num_rows > 0) {
+ $isExistent = true;
+
+ $new_id = "";
+ $new_name = "";
+ $new_price = "";
+ $new_rating = "";
+ $new_creatorid = "";
+ $new_currencyid = "";
+ $new_url = "";
+ $new_image = "https://public-files.gumroad.com/nx5vne5h5y4bktwzh0gcfev59taj";
+ $new_nsfw = "";
+ $new_section = "";
+
+ } else {
+ if (str_contains($givenURL, "gumroad")) {
+ $creatorURL = implode('/', array_slice(explode('/', $givenURL), 0, 3));
+ $creatorRequestResult = $furatalog->query("SELECT * FROM creator WHERE `gumroad_url`='" . $creatorURL . "'");
+
+ if ($creatorRequestResult->num_rows > 0) {
+ $creatorID = $creatorRequestResult->fetch_assoc()["id"];
+ } else {
+ $scrapingUrl = $creatorURL;
+
+ $string = file_get_contents($scrapingUrl);
+
+ $dom = new DomDocument();
+ $dom->loadHTML($string);
+ $finder = new DomXPath($dom);
+
+ $creatorName = $finder->query("//*[contains(concat(' ', normalize-space(@class), ' '), ' profile ')]")[0]->childNodes[0]->childNodes[0]->textContent;
+ $creatorUrl = $scrapingUrl;
+ $creatorpicture = $finder->query("//*[contains(concat(' ', normalize-space(@class), ' '), ' profile ')]")[0]->childNodes[0]->childNodes[0]->childNodes[0]->attributes[1]->textContent;
+
+ $creatorCreateResult = $furatalog->query("INSERT INTO `creator` (`id`, `name`, `pb_url`, `booth_url`, `gumroad_url`, `payhip_url`, `jinxxy_url`) VALUES (NULL, '" . str_replace("'", "\'", $creatorName) . "', '" . $creatorpicture . "', '', '" . $creatorURL . "', '', '')");
+
+ $creatorResult = $furatalog->query("SELECT id FROM `creator` WHERE gumroad_url='" . $creatorURL . "'");
+
+ $creatorID = $creatorResult->fetch_assoc()["id"];
+ }
+
+ $newCreatorResult = $furatalog->query("SELECT * FROM creator WHERE id=" . $creatorID . "");
+ $newCreatorResultResult = $newCreatorResult->fetch_assoc();
+
+ $new_creatorid = $newCreatorResultResult["id"];
+ $new_creatorName = $newCreatorResultResult["name"];
+ $new_creatorPb = $newCreatorResultResult["pb_url"];
+ $new_boothURL = $newCreatorResultResult["booth_url"];
+ $new_gumroadURL = $newCreatorResultResult["gumroad_url"];
+ $new_payhipURL = $newCreatorResultResult["payhip_url"];
+ $new_jinxxyURL = $newCreatorResultResult["jinxxy_url"];
+
+
+
+
+
+
+
+ $tempURL = file_get_contents($givenURL);
+
+ $dom = new DomDocument();
+ $dom->loadHTML($tempURL);
+ $finder = new DomXPath($dom);
+
+ $content = $finder->query("//*[contains(concat(' ', normalize-space(@data-component-name), ' '), ' ProductPage ')]")[0]->textContent;
+ if ($content == "" || $content == null) {
+ $content = $finder->query("//*[contains(concat(' ', normalize-space(@data-component-name), ' '), ' ProfileProductPage ')]")[0]->textContent;
+ }
+ $content = json_decode($content);
+ $contentItem = $content->product;
+
+
+
+ $currentCurrency = $contentItem->currency_code;
+
+ $newCurrencyResult = $furatalog->query("SELECT * FROM currency WHERE currency='" . $currentCurrency . "'");
+ $newCurrencyResultResult = $newCurrencyResult->fetch_assoc();
+
+ $new_currencyid = $newCurrencyResultResult["id"];
+ $new_currencyshort = $newCurrencyResultResult["currency"];
+ $new_currencysymbol = $newCurrencyResultResult["symbol"];
+ $new_currencyfontawesome = $newCurrencyResultResult["font-awesome"];
+
+
+
+
+
+ if ($contentItem->thumbnail_url == "" || $contentItem->thumbnail_url == null) {
+ $newThumbnail = $contentItem->covers[0]->url;
+ } else {
+ $newThumbnail = $contentItem->thumbnail_url;
+ }
+
+ $newPrice = $contentItem->price_cents;
+
+ if (isset($contentItem->options[0]->price_difference_cents)) {
+ $newPrice = (int)$newPrice + (int)$contentItem->options[0]->price_difference_cents;
+ }
+
+
+ $furatalog->query("INSERT INTO `content` (`id`, `name`, `price`, `rating`, `creator_id`, `currency_id`, `url`, `image`, `nsfw`, `section`) VALUES (NULL, '" .
+ str_replace("'", "\'", $contentItem->name) . "', '" .
+ $newPrice . "', '" .
+ $contentItem->ratings->average . "', '" .
+ $new_creatorid . "', '" .
+ $new_currencyid . "', '" .
+ $givenURL . "', '" .
+ $newThumbnail . "', '" .
+ $nsfw . "', '" .
+ $_POST["section"] . "')");
+
+
+
+
+ $parsed_url = parse_url($givenURL);
+ $clean_url = $parsed_url['scheme'] . '://' . $parsed_url['host'] . $parsed_url['path'];
+
+ $contentResult = $furatalog->query("SELECT * FROM content WHERE url LIKE '%" . $clean_url . "%'");
+ $contentResultResult = $contentResult->fetch_assoc();
+
+ $new_id = $contentResultResult["id"];
+ $new_name = $contentResultResult["name"];
+ $new_price = $contentResultResult["price"];
+ $new_rating = $contentResultResult["rating"];
+ $new_creatorid = $contentResultResult["creator_id"];
+ $new_currencyid = $contentResultResult["currency_id"];
+ $new_url = $contentResultResult["url"];
+ $new_image = $contentResultResult["image"];
+ $new_nsfw = $contentResultResult["nsfw"];
+ $new_section = $contentResultResult["section"];
+
+
+
+ $species = explode(" ", $_POST["species"]);
+
+ foreach ($species as $key => $value) {
+ $speciesResult = $furatalog->query("SELECT * FROM species WHERE tag='" . $value . "'");
+ $speciesResultResult = $speciesResult->fetch_assoc();
+
+ $speciesID = $speciesResultResult["id"];
+
+ $furatalog->query("INSERT INTO `content_species` (`content_id`, `species_id`) VALUES ('" . $new_id . "', '" . $speciesID . "')");
+ }
+ }
+
+ }
+} else {
+ $new_id = "";
+ $new_name = "";
+ $new_price = "";
+ $new_rating = "";
+ $new_creatorid = "";
+ $new_currencyid = "";
+ $new_url = "";
+ $new_image = "https://public-files.gumroad.com/nx5vne5h5y4bktwzh0gcfev59taj";
+ $new_nsfw = "";
+ $new_section = "";
+}
+?>
+
+
+
+
+
+
+
+
Insert Data - Admin Panel - Furatalog.xyz
+
+
+
+
+
+
+
+ Content already exists in the database.";
+ }
+ ?>
+
+
+
+ New Content Inserted
+
+
+ ID
+
+
+
+ Name
+
+
+
+ Price
+
+
+
+ Rating
+
+
+
+ Creator ID
+
+
+
+ Currency ID
+
+
+
+ URL
+
+
+
+ Image
+
+
+
+ NSFW
+
+
+
+ Section
+
+
+
+
+
+ Creator
+
+
+ ID
+
+
+
+ Name
+
+
+
+ Creator PB
+
+
+
+ Booth URL
+
+
+
+ Gumroad URL
+
+
+
+ Payhip URL
+
+
+
+ Jinxxy URL
+
+
+
+
+
+ Currency
+
+
+ ID
+
+
+
+ Currency
+
+
+
+ Symbol
+
+
+
+ Font-Awesome
+
+
+
+
+
+
+
+
+
+
+
";
+ }
+ ?>
+
+
+
+
+
+
\ No newline at end of file
diff --git a/admin/login.php b/admin/login.php
new file mode 100644
index 0000000..bf24056
--- /dev/null
+++ b/admin/login.php
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+