Removed all Test data and Error Handler
This commit is contained in:
+2
-25
@@ -5,31 +5,6 @@ if (!isset($_SESSION["login"]) && $_SESSION["login"] != "true-as-hell") {
|
||||
die();
|
||||
}
|
||||
|
||||
function myErrorHandler($errno, $errstr, $errfile, $errline) {
|
||||
echo "<p>Custom error:</p> [$errno] $errstr<br>";
|
||||
echo "Error on line $errline in $errfile<br>";
|
||||
}
|
||||
|
||||
$_POST["creator_name"] = "Tarina";
|
||||
$_POST["creator_pb"] = "https://jinxxy-cdn.com/351b203e-b752-533f-af74-ad2e452c4160/818108199844017152.png?width=512";
|
||||
$_POST["creator_jinxxyURL"] = "https://jinxxy.com/Tarinatar";
|
||||
|
||||
$_POST["content_name"] = "Party Pajama Somna Outfit for Novabeast [VRChat]";
|
||||
$_POST["content_price"] = "2400";
|
||||
$_POST["content_rating"] = "null";
|
||||
$_POST["content_creator_id"] = "";
|
||||
$_POST["content_currency_id"] = "1";
|
||||
$_POST["content_url"] = "https://jinxxy.com/Tarinatar/vvKkh";
|
||||
$_POST["content_image"] = "https://jinxxy-cdn.com/d06463a5-709d-5f10-84ec-9eeb6ba408c0/3641398329524356645/847282216521027584.png";
|
||||
|
||||
$_POST["currency_currency"] = "usd";
|
||||
|
||||
$_POST["species"] = "novabeast";
|
||||
|
||||
|
||||
// Set user-defined error handler function
|
||||
set_error_handler("myErrorHandler");
|
||||
|
||||
$furatalog = new mysqli("localhost", "furatalog_admin_usr", "NR6tLk7c56bPT5[]", "furatalog");
|
||||
|
||||
$creator_name = $_POST["creator_name"];
|
||||
@@ -54,6 +29,8 @@ $creatorResult = $furatalog->query("SELECT * FROM `creator` WHERE `jinxxy_url`=\
|
||||
if ($creatorResult->num_rows == 0) {
|
||||
$furatalog->query("INSERT INTO `creator`(`name`, `pb_url`, `jinxxy_url`) VALUES ('" . $creator_name . "','" . $creator_pb . "','" . $creator_jinxxyURL . "')");
|
||||
|
||||
$creatorResult = $furatalog->query("SELECT * FROM `creator` WHERE `jinxxy_url`=\"" . $creator_jinxxyURL . "\";");
|
||||
|
||||
$creator = $creatorResult->fetch_assoc();
|
||||
} else {
|
||||
$creator = $creatorResult->fetch_assoc();
|
||||
|
||||
Reference in New Issue
Block a user