mirror of
https://github.com/saintly2k/FoOlSlideX.git
synced 2025-02-20 11:13:13 +08:00
desperate try to fix errors (not lol)
This commit is contained in:
parent
88345156ed
commit
fe08ceb889
7
README.md
vendored
7
README.md
vendored
@ -1,3 +1,6 @@
|
||||
# Important Notice
|
||||
I am currently very busy with school, so I am not able to work much on this. Also, I need to rework the complete UI since it's not responsive and I want to have it responsive. I'll work on this ASAP, just can't do any promises. To support me to make development faster, consider donating: https://paypal.me/WOLFRAMEdev :)
|
||||
|
||||

|
||||
# FoOlSlideX
|
||||
The new, most powerful Comic Reader ever created by the human race. Reworked by an Otaku.
|
||||
@ -8,10 +11,6 @@ The new, most powerful Comic Reader ever created by the human race. Reworked by
|
||||

|
||||

|
||||
|
||||
# Helping me out
|
||||
Simply post what you want to see here: https://github.com/saintly2k/FoOlSlideX/discussions<br>
|
||||
And consider donating, if you like my Project :P https://paypal.me/WOLFRAMEdev
|
||||
|
||||
# Requirements
|
||||
PHP greater than 7.0 and everything related to MySQL.<br>
|
||||
apache2 as server and htacces enabled. Nginx maybe works too, but I didnt test it.<br>
|
||||
|
@ -3,7 +3,7 @@
|
||||
// Site Configuration
|
||||
$config["name"] = "FoOlSlideX"; // Page Title
|
||||
$config["logo"] = "assets/images/logo.png"; // Logo image, replaces $config["name"] in navbar
|
||||
$config["url"] = "http://localhost/"; // Full URL, WITH TRAILING SLASH OR ELSE YOU WILL BREAK THE SITE!
|
||||
$config["url"] = "http://localhost/FoOlSlideX/"; // Full URL, WITH TRAILING SLASH OR ELSE YOU WILL BREAK THE SITE!
|
||||
$config["desc"] = "FoOlSlideX is the most powerful Manga-reader, ever created by the human race. Reworked by an Otaku for Scanlation-groups."; // Description of your site.
|
||||
$config["home"] = "releases"; // Which page to display if not specifically entered
|
||||
$config["theme"] = "1"; // Default Theme for guests, 1 for light, 2 for dark
|
||||
@ -20,7 +20,7 @@ $banner["images"] = array("1.jpg"); // Which banners should be used? The system
|
||||
// Database Configuration
|
||||
$based["host"] = "localhost"; // Database Host
|
||||
$based["user"] = "root"; // Database Username
|
||||
$based["pass"] = "root"; // Database Password
|
||||
$based["pass"] = ""; // Database Password
|
||||
$based["table"] = "foolslidev2"; // Database Table
|
||||
|
||||
?>
|
||||
|
@ -21,7 +21,7 @@ if($rPage=="logout") {
|
||||
session_destroy();
|
||||
session_unset();
|
||||
setcookie("stayLogged", "", time() - 3600);
|
||||
header("location: ".$config["url"]."home");
|
||||
header("location: ".$config["url"]."");
|
||||
}
|
||||
|
||||
?>
|
||||
@ -59,7 +59,7 @@ if($rPage=="logout") {
|
||||
|
||||
</div>
|
||||
|
||||
<!--<div class="col-sm-2">
|
||||
<!--<div class="col-sm-2"> Don't need a sidebar yet
|
||||
|
||||
<?php include("templates/sidebar.temp.php"); ?>
|
||||
|
||||
|
@ -64,7 +64,7 @@ if ($stmt = $conn->prepare('SELECT * FROM `mangas` ORDER BY `name` LIMIT ?,?'))
|
||||
</tr>
|
||||
<?php }
|
||||
} else {
|
||||
echo "No Mangas found.";
|
||||
echo "<p>No Mangas found.</p>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
|
@ -4,8 +4,9 @@ $projectURL = $_GET["manga"];
|
||||
$projectSQL = $conn->query("SELECT * FROM `mangas` WHERE `url`='$projectURL' LIMIT 1");
|
||||
$manga = mysqli_fetch_assoc($projectSQL);
|
||||
$mangaID = $manga["id"];
|
||||
$chapterSQL = $conn->query("SELECT * FROM `chapters` ORDER BY LENGTH(`episode`), `episode` WHERE `mid`='$mangaID'");
|
||||
|
||||
$chapterSQL = $conn->query("SELECT * FROM `chapters` WHERE `mid`='$mangaID' ORDER BY LENGTH(`number`), `number` DESC");
|
||||
$editChN = $_GET["chapter"];
|
||||
echo $editChN;
|
||||
if($manga["status"]=="1") {
|
||||
$manga["status"] = "Planned";
|
||||
} elseif($manga["status"]=="2") {
|
||||
@ -41,6 +42,14 @@ if($manga["status"]=="1") {
|
||||
<th>Status:</th>
|
||||
<td><?= $manga["status"] ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Author(s):</th>
|
||||
<td><?= $manga["author"] ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Artist(s):</th>
|
||||
<td><?= $manga["artist"] ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
@ -56,7 +65,75 @@ if($manga["status"]=="1") {
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">Chapter List</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
<div class="panel-body" id="chapter-list" style="display:block">
|
||||
<?php
|
||||
if ($chapterSQL->num_rows > 0) { ?>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-condensed table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="10%">Chapter</th>
|
||||
<th width="60%">Title</th>
|
||||
<th width="10%" class="text-right">Uploaded</th>
|
||||
<?php if($uGroup=="2" || $uGroup=="1") { ?><th width="10%" class="text-right">Actions</th> <?php } ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php while($crow = $chapterSQL->fetch_assoc()) { ?>
|
||||
<tr>
|
||||
<td>Chapter <?= $crow["number"] ?></td>
|
||||
<td><a href="<?= $config["url"] ?>chapter/<?= $crow["url"] ?>"><?= $crow["title"] ?></a></td>
|
||||
<td class="text-right"><?= $crow["timestamp"] ?></td>
|
||||
<?php if($uGroup=="2" || $uGroup=="1") { ?><th width="10%" class="text-right"><a onclick="editChapter()" href="#edit?chapter=<?= $crow["number"] ?>">Edit</a></th> <?php } ?>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php } else {
|
||||
echo "No Chapters have been uploaded for this Manga yet...";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="panel-body" id="edit-chapter" style="display:none">
|
||||
<?php if($uGroup=="2" || $uGroup=="1") { ?>
|
||||
<div class="row">
|
||||
<?php
|
||||
$editSQL = $conn->query("SELECT * FROM `chapters` WHERE `mid`='$mangaID' AND `number`='$editChN' LIMIT 1");
|
||||
$edit = mysqli_fetch_assoc($editSQL); ?>
|
||||
<form name="edit-chapter" action="" method="POST">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2">Chapter:</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" value="<?= $edit["number"] ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-12">
|
||||
<input type="submit" class="btn btn-success" style="width:100%" value="Save Chapter">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="col-sm-12">
|
||||
<hr>
|
||||
<button class="btn btn-danger" onclick="breakChapter()" style="width:100%">Cancel Editing</button>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else {
|
||||
echo "Missing Perms";
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function editChapter() {
|
||||
document.getElementById("chapter-list").style.display = "none";
|
||||
document.getElementById("edit-chapter").style.display = "block";
|
||||
}
|
||||
|
||||
function breakChapter() {
|
||||
document.getElementById("chapter-list").style.display = "block";
|
||||
document.getElementById("edit-chapter").style.display = "none";
|
||||
}
|
||||
|
||||
</script>
|
||||
|
@ -3,15 +3,15 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<meta name="author" content="Saintly2k">
|
||||
<meta name="description" content="<?php echo $config["desc"]; ?>">
|
||||
<meta name="keywords" content="scanlation, manga, manga free, <?php echo $config["name"]; ?>, <?php echo $config["url"]; ?>, scans, mangadex">
|
||||
<meta name="description" content="<?= $config["desc"] ?>">
|
||||
<meta name="keywords" content="scanlation, manga, manga free, <?= $config["name"] ?>, <?= $config["url"] ?>, scans, mangadex">
|
||||
|
||||
<meta property="og:site_name" content="<?php echo $config["name"]; ?>">
|
||||
<meta property="og:title" content="<?php echo $config["name"]; ?>">
|
||||
<meta property="og:image" content="<?php echo $config["url"]."favicon.ico"; ?>">
|
||||
<meta property="og:site_name" content="<?= $config["name"] ?>">
|
||||
<meta property="og:title" content="<?= $config["name"] ?>">
|
||||
<meta property="og:image" content="<?= $config["url"]."favicon.ico" ?>">
|
||||
|
||||
<link href="<?php echo $config["url"]; ?>scripts/bootstrap/css/bootstrap.<?php echo $uTheme; ?>.css" rel="stylesheet">
|
||||
<link href="<?php echo $config["url"]; ?>scripts/bootstrap/css/bootstrap-select.min.css?v=1" rel="stylesheet">
|
||||
<link href="<?php echo $config["url"]; ?>scripts/bootstrap/css/bootstrap-checkbox.css" rel="stylesheet">
|
||||
<link href="<?= $config["url"] ?>scripts/bootstrap/css/bootstrap.<?= $uTheme ?>.css" rel="stylesheet">
|
||||
<link href="<?= $config["url"] ?>scripts/bootstrap/css/bootstrap-select.min.css?v=1" rel="stylesheet">
|
||||
<link href="<?= $config["url"] ?>scripts/bootstrap/css/bootstrap-checkbox.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.1/font/bootstrap-icons.css">
|
||||
<link href="<?php echo $config["url"]; ?>scripts/theme.css?v=5" rel="stylesheet">
|
||||
<link href="<?= $config["url"] ?>scripts/<?= $uTheme ?>.css?v=5" rel="stylesheet">
|
||||
|
Loading…
x
Reference in New Issue
Block a user