fixing everything for local use
This commit is contained in:
@@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
|
require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
|
||||||
$fs = new furatalogSessions();
|
$fs = new furatalogSessions();
|
||||||
|
|
||||||
if (!$fs->issetSessionData("login") && ($fs->getSessionData("login") != "true-as-hell")) {
|
|
||||||
header("Location: login.php");
|
|
||||||
die();
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|||||||
@@ -3,12 +3,7 @@
|
|||||||
require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
|
require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
|
||||||
$fs = new furatalogSessions();
|
$fs = new furatalogSessions();
|
||||||
|
|
||||||
if (!$fs->issetSessionData("login") && ($fs->getSessionData("login") != "true-as-hell")) {
|
$furatalog = new mysqli("10.0.0.100", "furatalog_admin_usr", "NR6tLk7c56bPT5[]", "furatalog");
|
||||||
header("Location: login.php");
|
|
||||||
die();
|
|
||||||
}
|
|
||||||
|
|
||||||
$furatalog = new mysqli("localhost", "furatalog_admin_usr", "NR6tLk7c56bPT5[]", "furatalog");
|
|
||||||
|
|
||||||
$creator_name = $_POST["creator_name"];
|
$creator_name = $_POST["creator_name"];
|
||||||
$creator_pb = $_POST["creator_pb"];
|
$creator_pb = $_POST["creator_pb"];
|
||||||
|
|||||||
@@ -3,11 +3,6 @@
|
|||||||
require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
|
require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
|
||||||
$fs = new furatalogSessions();
|
$fs = new furatalogSessions();
|
||||||
|
|
||||||
if (!$fs->issetSessionData("login") && ($fs->getSessionData("login") != "true-as-hell")) {
|
|
||||||
header("Location: login.php");
|
|
||||||
die();
|
|
||||||
}
|
|
||||||
|
|
||||||
$_POST["nsfw"] = isset($_POST["nsfw"]) ? "1" : "0";
|
$_POST["nsfw"] = isset($_POST["nsfw"]) ? "1" : "0";
|
||||||
|
|
||||||
function myErrorHandler($errno, $errstr, $errfile, $errline) {
|
function myErrorHandler($errno, $errstr, $errfile, $errline) {
|
||||||
@@ -18,7 +13,7 @@ function myErrorHandler($errno, $errstr, $errfile, $errline) {
|
|||||||
// Set user-defined error handler function
|
// Set user-defined error handler function
|
||||||
//set_error_handler("myErrorHandler");
|
//set_error_handler("myErrorHandler");
|
||||||
|
|
||||||
$furatalog = new mysqli("localhost", "furatalog_admin_usr", "NR6tLk7c56bPT5[]", "furatalog");
|
$furatalog = new mysqli("10.0.0.100", "furatalog_admin_usr", "NR6tLk7c56bPT5[]", "furatalog");
|
||||||
|
|
||||||
if (isset($_POST["url"])) {
|
if (isset($_POST["url"])) {
|
||||||
|
|
||||||
|
|||||||
+1
-16
@@ -3,21 +3,6 @@
|
|||||||
require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
|
require_once("/var/www/furatalog/data/script/furatalog.sessions.php");
|
||||||
$fs = new furatalogSessions();
|
$fs = new furatalogSessions();
|
||||||
|
|
||||||
if (isset($_POST["urltransmit"])) {
|
|
||||||
$fs->setSessionData("gumroadData", $_POST["urltransmit"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$fs->issetSessionData("login") && ($fs->getSessionData("login") != "true-as-hell")) {
|
|
||||||
header("Location: login.php?ref=insert");
|
|
||||||
$fs->setSessionData("ref", "insert");
|
|
||||||
die();
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($fs->issetSessionData("gumroadData")) {
|
|
||||||
$_POST["urltransmit"] = $fs->getSessionData("gumroadData");
|
|
||||||
$fs->unsetSessionData("gumroadData");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($_GET["url"])) {
|
if (isset($_GET["url"])) {
|
||||||
$presetedURL = $_GET["url"];
|
$presetedURL = $_GET["url"];
|
||||||
} elseif (isset($_POST["urltransmit"])) {
|
} elseif (isset($_POST["urltransmit"])) {
|
||||||
@@ -36,7 +21,7 @@ function myErrorHandler($errno, $errstr, $errfile, $errline) {
|
|||||||
// Set user-defined error handler function
|
// Set user-defined error handler function
|
||||||
//set_error_handler("myErrorHandler");
|
//set_error_handler("myErrorHandler");
|
||||||
|
|
||||||
$furatalog = new mysqli("localhost", "furatalog_admin_usr", "NR6tLk7c56bPT5[]", "furatalog");
|
$furatalog = new mysqli("10.0.0.100", "furatalog_admin_usr", "NR6tLk7c56bPT5[]", "furatalog");
|
||||||
|
|
||||||
if (isset($_POST["url"])) {
|
if (isset($_POST["url"])) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user