Publish source code.
This commit is contained in:
commit
61a4197fcf
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/include.php");
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Platinus - Error</title>
|
||||
<?php echo file_get_contents(dirname($_SERVER["DOCUMENT_ROOT"]) . "/header.php");?>
|
||||
</head>
|
||||
<body>
|
||||
<?php echo file_get_contents(dirname($_SERVER["DOCUMENT_ROOT"]) . "/navbar.php");?>
|
||||
<div class="main">
|
||||
<section class="section">
|
||||
<div class="container" style="max-width:25rem;">
|
||||
<div class="card bg-light mb-3" style="max-width: 25rem;margin-top:10vh;">
|
||||
<div class="card-header">Error</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">404</h5>
|
||||
<p class="card-text">We don't know what you're looking for but it's not here.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php echo file_get_contents(dirname($_SERVER["DOCUMENT_ROOT"]) . "/footer.php");?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/include.php");
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>ip banned</title>
|
||||
<?php echo file_get_contents(dirname($_SERVER["DOCUMENT_ROOT"]) . "/header.php");?>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar sticky-top navbar-expand-lg navbar-dark" style="box-shadow: 0 0px 5px rgb(10,10,50); background: linear-gradient(90deg,rgb(70,140,255),rgb(140,60,200));">
|
||||
<div class="container">
|
||||
<div class="navbar-brand">
|
||||
<img src="/img/nav.png" width="30" height="30" class="d-inline-block align-top" alt="">
|
||||
Platinus
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="main">
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h2 style="margin-top:30px;">you've been ip banned</h2>
|
||||
<h5 style="margin-top:10px;" class="text-muted">If you believe this is a mistake please DM a staff member immediately.</h5>
|
||||
<iframe style="margin-top:20px;" width="1140" height="700" src="https://www.youtube-nocookie.com/embed/ImKL2uwBYWE?controls=0&autoplay=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php echo file_get_contents(dirname($_SERVER["DOCUMENT_ROOT"]) . "/footer.php");?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<footer class="bd-footer p-md-5 mt-5 text-center" style="background-color: #ffffff">
|
||||
<div class="container">
|
||||
<p><b>Platinus</b></p>
|
||||
<p>Copyright © XlXi 2020</p>
|
||||
<p><a href="https://www.youtube.com/channel/UCIXSiSX13i_etDjRJzcKnLQ">YouTube</a> • <a href="https://twitter.com/PlatinusRevival">Twitter</a> • <a href="https://discord.gg/jBRHAyp">Discord</a></p>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="<?php echo "https://" . $_SERVER["HTTP_HOST"] . "/js/jquery-3.4.1.slim.min.js" ?>"></script>
|
||||
<script src="<?php echo "https://" . $_SERVER["HTTP_HOST"] . "/js/popper.min.js" ?>"></script>
|
||||
<script src="<?php echo "https://" . $_SERVER["HTTP_HOST"] . "/js/bootstrap.min.js" ?>"></script>
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
<!--unfinished lol -->
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="<?php echo "https://" . $_SERVER["HTTP_HOST"] . "/css/bootstrap.css" ?>">
|
||||
<script data-ad-client="ca-pub-3667210370239911" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
<meta name="author" content="Platinus">
|
||||
<meta name="description" content="Platinus is an old ROBLOX revival(2009,2011,2013). We are not affiliated with ROBLOX in any shape or form.">
|
||||
<meta name="keywords" content="platinus, old, block, game, engine, nostalgia">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="theme-color" content="#FF0000">
|
||||
<meta name="og:title" content="Platinus">
|
||||
<meta name="og:site_name" content="Platinus">
|
||||
<meta name="og:description" content="Platinus is an old ROBLOX revival(2010,2012,2014). We are not affiliated or endorsed with ROBLOX in any shape or form.">
|
||||
<style>
|
||||
body{
|
||||
background: url("/img/bodybackground1.png");
|
||||
background-size: contain;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.main{
|
||||
-webkit-box-flex: 1;
|
||||
-ms-flex: 1;
|
||||
flex: 1;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Closure</title>
|
||||
<style>
|
||||
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic");
|
||||
|
||||
body, html {
|
||||
height: 100%!important;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Source Sans Pro;
|
||||
display: flex;
|
||||
flex-direction: column!important;
|
||||
margin: 0;
|
||||
background-image: linear-gradient(0deg, rgb(50,50,90), rgb(80,80,120));
|
||||
}
|
||||
|
||||
h1, h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
color: rgb(210,210,215);
|
||||
}
|
||||
|
||||
img {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.closurebutton {
|
||||
margin: auto;
|
||||
color: rgb(250,250,255);
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
background-color: rgb(0, 0, 0, 0.3);
|
||||
padding: 20px;
|
||||
border: 5px rgb(80, 80, 150, 0.3);
|
||||
border-style: solid;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.closurebutton:hover {
|
||||
background-color: rgb(20, 20, 20, 0.5);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a class="closurebutton" href="https://gtoria.net/">
|
||||
<span>
|
||||
<h1>plate nut dead</h1>
|
||||
<h3>click here to join Graphictoria, lol</h3>
|
||||
<img width="80" height="80" src="https://cdn.discordapp.com/emojis/845732271738847253.png?v=1"/>
|
||||
</span>
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
exit;
|
||||
//xlxi 2020
|
||||
try{
|
||||
global $sql;
|
||||
$sql = new PDO("mysql:host=localhost;port=3308;dbname=platinus", "Platinus", "LmnC3T50TvXejKp6");
|
||||
$sql->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
|
||||
$sql->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
|
||||
}catch(exception $e){
|
||||
exit("Uh oh! We ran into an error while connecting to the database. Be sure to check back soon!");
|
||||
}
|
||||
function getUserIpAddr(){ if(!empty($_SERVER['HTTP_CLIENT_IP'])){ $ip = $_SERVER['HTTP_CLIENT_IP']; }elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; }else{ $ip = $_SERVER['REMOTE_ADDR']; } return $ip; }
|
||||
|
||||
$ipbans = $GLOBALS["sql"]->prepare("SELECT * FROM `ipbans`");
|
||||
$ipbans->execute();
|
||||
|
||||
foreach ($ipbans as $ipban){
|
||||
if($ipban["ip"]==getUserIpAddr()){
|
||||
require_once($_SERVER["DOCUMENT_ROOT"] . "/internal/errordocs/begone.php");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
if(file_get_contents(dirname($_SERVER["DOCUMENT_ROOT"]) . "/offline.txt")=="1"&&dirname($_SERVER["REQUEST_URI"])!=="/maintenance/constraint"){
|
||||
header("Location: https://" . $_SERVER['HTTP_HOST'] . "/maintenance/constraint/?return=" . urlencode("https://" . $_SERVER['HTTP_HOST'] . $_SERVER["REQUEST_URI"]));
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
<nav class="navbar sticky-top navbar-expand-lg navbar-dark" style="box-shadow: 0 0px 5px rgb(10,10,50); background: linear-gradient(90deg,rgb(70,140,255),rgb(140,60,200));">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="/home">
|
||||
<img src="/img/nav.png" width="30" height="30" class="d-inline-block align-top" alt="">
|
||||
Platinus
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="/home">Home</a>
|
||||
</li>
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="/games">Games</a>
|
||||
</li>
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="/catalog">Catalog</a>
|
||||
</li>
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="/users">Users</a>
|
||||
</li>
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="/forum">Forum</a>
|
||||
</li>
|
||||
<li class="nav-item active dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
More
|
||||
</a>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item" href="https://blog.platinus.ga">Blog</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="/login">Login</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<text class="nav-link">•</text>
|
||||
</li>
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="/register">Sign Up</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
ErrorDocument 400 /error.php
|
||||
ErrorDocument 401 /error.php
|
||||
ErrorDocument 403 /error.php
|
||||
ErrorDocument 404 /error.php
|
||||
ErrorDocument 405 /error.php
|
||||
ErrorDocument 406 /error.php
|
||||
ErrorDocument 407 /error.php
|
||||
ErrorDocument 408 /error.php
|
||||
ErrorDocument 409 /error.php
|
||||
ErrorDocument 410 /error.php
|
||||
ErrorDocument 411 /error.php
|
||||
ErrorDocument 412 /error.php
|
||||
ErrorDocument 413 /error.php
|
||||
ErrorDocument 414 /error.php
|
||||
ErrorDocument 415 /error.php
|
||||
ErrorDocument 416 /error.php
|
||||
ErrorDocument 417 /error.php
|
||||
ErrorDocument 426 /error.php
|
||||
ErrorDocument 428 /error.php
|
||||
ErrorDocument 429 /error.php
|
||||
ErrorDocument 431 /error.php
|
||||
ErrorDocument 451 /error.php
|
||||
ErrorDocument 500 /error.php
|
||||
ErrorDocument 501 /error.php
|
||||
ErrorDocument 502 /error.php
|
||||
ErrorDocument 503 /error.php
|
||||
ErrorDocument 504 /error.php
|
||||
ErrorDocument 505 /error.php
|
||||
ErrorDocument 506 /error.php
|
||||
ErrorDocument 510 /error.php
|
||||
ErrorDocument 511 /error.php
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/include.php");
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Platinus</title>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/header.php");?>
|
||||
</head>
|
||||
<body>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/navbar.php");?>
|
||||
<div class="main">
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<text>This page was intentionally left blank</text>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/footer.php");?>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/include.php");
|
||||
|
||||
$response = http_response_code();
|
||||
$errorcodes = $GLOBALS["sql"]->prepare("SELECT * FROM `errordocs` WHERE code = :code");
|
||||
$errorcodes->bindParam(':code', $response, PDO::PARAM_INT);
|
||||
$errorcodes->execute();
|
||||
$errorcodes=$errorcodes->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Platinus - Error</title>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/header.php");?>
|
||||
</head>
|
||||
<body>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/navbar.php");?>
|
||||
<div class="main">
|
||||
<section class="section">
|
||||
<div class="container" style="max-width:25rem;">
|
||||
<div class="card bg-light mb-3" style="max-width: 25rem;margin-top:10vh;">
|
||||
<div class="card-header">Error</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><?php echo $errorcodes["code"]; ?></h5>
|
||||
<p class="card-text"><?php echo $errorcodes["body"]; ?></p>
|
||||
<a href="/home" class="btn btn-primary">Home</a>
|
||||
<a href="/forum" class="btn btn-secondary">Forum</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/footer.php");?>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
|
|
@ -0,0 +1,94 @@
|
|||
<?php
|
||||
include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/include.php");
|
||||
if(isset($_GET["topic"])){
|
||||
if(!@(int)$_GET["topic"]){
|
||||
http_response_code(404);
|
||||
include_once($_SERVER["DOCUMENT_ROOT"] . "/error.php");
|
||||
exit();
|
||||
}
|
||||
$section = $GLOBALS["sql"]->prepare("SELECT * FROM `forum-sections` WHERE id = ?");
|
||||
$section->execute([$_GET["topic"]]);
|
||||
$result = $section->fetch(PDO::FETCH_ASSOC);
|
||||
if(!$result){
|
||||
http_response_code(404);
|
||||
include_once($_SERVER["DOCUMENT_ROOT"] . "/error.php");
|
||||
exit();
|
||||
}
|
||||
}else{
|
||||
http_response_code(404);
|
||||
include_once($_SERVER["DOCUMENT_ROOT"] . "/error.php");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Platinus Forum - <?php echo $result["Name"]; ?></title>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/header.php");?>
|
||||
</head>
|
||||
<body>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/navbar.php");?>
|
||||
<div class="main">
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<br>
|
||||
<?php
|
||||
$group = $GLOBALS["sql"]->prepare("SELECT * FROM `forum-topics` WHERE id = ?");
|
||||
$group->execute([$result["TopicId"]]);
|
||||
$groupResult = $group->fetch(PDO::FETCH_ASSOC);
|
||||
?>
|
||||
<h2>Forum - <?php echo $result["Name"]; ?></h2>
|
||||
<h6><a href="/forum">Platinus Forum</a> » <?php echo "<a href=\"/forum/ShowForumGroup/?group=" . $groupResult["id"] . "\">" . $groupResult["Name"] . "</a>";?> » <?php echo "<a href=\"/forum/ShowForum/?topic=" . $result["id"] . "\">" . $result["Name"] . "</a>"; ?></h6>
|
||||
<div class="my-3 p-3 bg-white rounded shadow-sm">
|
||||
<h6 class="border-bottom border-gray pb-2 mb-0">Subject</h6>
|
||||
<?php
|
||||
$posts = $GLOBALS["sql"]->prepare("SELECT * FROM `forum-posts`");
|
||||
$posts->execute();
|
||||
|
||||
$sectionTemplate = <<<'EOT'
|
||||
<a href="{FORUM_SECTION_LINK}" class="media text-muted pt-3">
|
||||
<p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
|
||||
<strong class="d-block text-gray-dark">{FORUM_SECTION_NAME}</strong>
|
||||
{FORUM_SECTION_DESCRIPTION}
|
||||
</p>
|
||||
</a>
|
||||
EOT;
|
||||
|
||||
$isEmpty = true;
|
||||
foreach($posts as $post){
|
||||
if($post["Forum"]==$result["id"] and $post["Hidden"] == false){
|
||||
$isEmpty = false;
|
||||
$text = substr($post["Text"],0,60);
|
||||
if(strlen($text)==60){
|
||||
$text = $text . "...";
|
||||
}
|
||||
$newSection = str_replace("{FORUM_SECTION_NAME}",htmlspecialchars($post["Subject"],ENT_QUOTES,'UTF-8'),$sectionTemplate);
|
||||
$newSection = str_replace("{FORUM_SECTION_DESCRIPTION}",htmlspecialchars($text,ENT_QUOTES,'UTF-8'),$newSection);
|
||||
$newSection = str_replace("{FORUM_SECTION_LINK}","https://" . $_SERVER["HTTP_HOST"] . "/forum/ShowPost?id=" . $post["id"],$newSection);
|
||||
echo $newSection;
|
||||
}
|
||||
}
|
||||
if($isEmpty){
|
||||
echo "<div class=\"media text-muted pt-3\"><p class=\"media-body pb-3 mb-0 small lh-125 border-bottom border-gray\">This topic is empty. Be the first to post!</p></div>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div style="display: table; margin: auto; flex-flow: row wrap; align-items: center;">
|
||||
<ul class="pagination">
|
||||
<li class="page-item disabled">
|
||||
<a class="page-link" href="#">«</a>
|
||||
</li>
|
||||
<li class="page-item disabled">
|
||||
<div class="page-link">1</div>
|
||||
</li>
|
||||
<li class="page-item disabled">
|
||||
<a class="page-link" href="#">»</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php echo file_get_contents(dirname($_SERVER["DOCUMENT_ROOT"]) . "/footer.php");?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
<?php
|
||||
include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/include.php");
|
||||
if(isset($_GET["group"])){
|
||||
if(!@(int)$_GET["group"]){
|
||||
http_response_code(404);
|
||||
include_once($_SERVER["DOCUMENT_ROOT"] . "/error.php");
|
||||
exit();
|
||||
}
|
||||
$topic = $GLOBALS["sql"]->prepare("SELECT * FROM `forum-topics` WHERE id = ?");
|
||||
$topic->execute([$_GET["group"]]);
|
||||
$result = $topic->fetch(PDO::FETCH_ASSOC);
|
||||
if(!$result){
|
||||
http_response_code(404);
|
||||
include_once($_SERVER["DOCUMENT_ROOT"] . "/error.php");
|
||||
exit();
|
||||
}
|
||||
}else{
|
||||
http_response_code(404);
|
||||
include_once($_SERVER["DOCUMENT_ROOT"] . "/error.php");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Platinus Forum - <?php echo $result["Name"]; ?></title>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/header.php");?>
|
||||
</head>
|
||||
<body>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/navbar.php");?>
|
||||
<div class="main">
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<br>
|
||||
<h2>Forum - <?php echo $result["Name"]; ?></h2>
|
||||
<h6><a href="/forum">Platinus Forum</a> » <?php echo "<a href=\"/forum/ShowForumGroup/?group=" . $result["id"] . "\">" . $result["Name"] . "</a>";?></h6>
|
||||
<div class="my-3 p-3 bg-white rounded shadow-sm">
|
||||
<h6 class="border-bottom border-gray pb-2 mb-0"><?php echo $result["Name"]; ?></h6>
|
||||
<?php
|
||||
$sectionTemplate = <<<'EOT'
|
||||
<a href="{FORUM_SECTION_LINK}" class="media text-muted pt-3">
|
||||
<p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
|
||||
<strong class="d-block text-gray-dark">{FORUM_SECTION_NAME}</strong>
|
||||
{FORUM_SECTION_DESCRIPTION}
|
||||
</p>
|
||||
</a>
|
||||
EOT;
|
||||
|
||||
$sections = $GLOBALS["sql"]->prepare("SELECT * FROM `forum-sections`");
|
||||
$sections->execute();
|
||||
|
||||
foreach($sections as $section){
|
||||
if($section["TopicId"] == $_GET["group"]){
|
||||
$newSection = str_replace("{FORUM_SECTION_NAME}",$section["Name"],$sectionTemplate);
|
||||
$newSection = str_replace("{FORUM_SECTION_DESCRIPTION}",$section["Description"],$newSection);
|
||||
$newSection = str_replace("{FORUM_SECTION_LINK}","https://" . $_SERVER["HTTP_HOST"] . "/forum/ShowForum?topic=" . $section["id"],$newSection);
|
||||
echo $newSection;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/footer.php");?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
<?php
|
||||
include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/include.php");
|
||||
if(isset($_GET["id"])){
|
||||
if(!@(int)$_GET["id"]){
|
||||
http_response_code(404);
|
||||
include_once($_SERVER["DOCUMENT_ROOT"] . "/error.php");
|
||||
exit();
|
||||
}
|
||||
$post = $GLOBALS["sql"]->prepare("SELECT * FROM `forum-posts` WHERE id = ?");
|
||||
$post->execute([$_GET["id"]]);
|
||||
$result = $post->fetch(PDO::FETCH_ASSOC);
|
||||
if($result["Hidden"]==true){
|
||||
http_response_code(404);
|
||||
include_once($_SERVER["DOCUMENT_ROOT"] . "/error.php");
|
||||
exit();
|
||||
}
|
||||
if(!$result){
|
||||
http_response_code(404);
|
||||
include_once($_SERVER["DOCUMENT_ROOT"] . "/error.php");
|
||||
exit();
|
||||
}
|
||||
}else{
|
||||
http_response_code(404);
|
||||
include_once($_SERVER["DOCUMENT_ROOT"] . "/error.php");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Platinus Forum - <?php echo htmlspecialchars($result["Subject"],ENT_QUOTES,'UTF-8'); ?></title>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/header.php");?>
|
||||
</head>
|
||||
<body>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/navbar.php");?>
|
||||
<div class="main">
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<br>
|
||||
<?php
|
||||
$section = $GLOBALS["sql"]->prepare("SELECT * FROM `forum-sections` WHERE id = ?");
|
||||
$section->execute([$result["Forum"]]);
|
||||
$sectionResult = $section->fetch(PDO::FETCH_ASSOC);
|
||||
$group = $GLOBALS["sql"]->prepare("SELECT * FROM `forum-topics` WHERE id = ?");
|
||||
$group->execute([$sectionResult["TopicId"]]);
|
||||
$groupResult = $group->fetch(PDO::FETCH_ASSOC);
|
||||
?>
|
||||
<h2>Forum - <?php echo $sectionResult["Name"] ?></h2>
|
||||
<h6><a href="/forum">Platinus Forum</a> » <?php echo "<a href=\"/forum/ShowForumGroup/?group=" . $groupResult["id"] . "\">" . $groupResult["Name"] . "</a>";?> » <?php echo "<a href=\"/forum/ShowForum/?topic=" . $sectionResult["id"] . "\">" . $sectionResult["Name"] . "</a>"; ?></h6>
|
||||
<div class="my-3 p-3 bg-white rounded shadow-sm">
|
||||
<h6 class="border-bottom border-gray pb-2 mb-0"><?php echo htmlspecialchars($result["Subject"],ENT_QUOTES,'UTF-8'); ?></h6>
|
||||
<div class="media text-muted pt-3">
|
||||
<svg class="bd-placeholder-img mr-2 rounded" width="50" height="50" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: 32x32"><title>Placeholder</title><rect width="100%" height="100%" fill="#007bff"></rect></svg>
|
||||
<p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
|
||||
<strong class="d-block mb-1 text-gray-dark">Username <i style="font-size:8px"><?php echo $result["Posted"];?></i></strong>
|
||||
<?php echo htmlspecialchars($result["Text"],ENT_QUOTES,'UTF-8'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/footer.php");?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,175 @@
|
|||
<?php
|
||||
include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/include.php");
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Platinus Forum</title>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/header.php");?>
|
||||
</head>
|
||||
<body>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/navbar.php");?>
|
||||
<div class="main">
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<br>
|
||||
<h2>Forum</h2>
|
||||
<?php
|
||||
$topics = $GLOBALS["sql"]->prepare("SELECT * FROM `forum-topics`");
|
||||
$sections = $GLOBALS["sql"]->prepare("SELECT * FROM `forum-sections`");
|
||||
$topics->execute();
|
||||
|
||||
$topicStart = <<<'EOT'
|
||||
<div class="my-3 p-3 bg-white rounded shadow-sm">
|
||||
<div class="navbar border-bottom border-gray" style="
|
||||
padding: 0;
|
||||
">
|
||||
|
||||
|
||||
<ul class="navbar-nav mr-auto" style="
|
||||
flex-direction: row;
|
||||
">
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="nav-item">
|
||||
<h6 class="pb-1">{FORUM_TOPIC_NAME}</h6>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<ul class="navbar-nav" style="
|
||||
flex-direction: row;
|
||||
">
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="nav-item"><h6 class="pb-1" style="
|
||||
padding-left: 20px;
|
||||
min-width: 100px;
|
||||
text-align: center;
|
||||
">Threads</h6>
|
||||
|
||||
|
||||
</li>
|
||||
<li class="nav-item"><h6 class="pb-1" style="
|
||||
min-width: 100px;
|
||||
padding-left: 20px;
|
||||
text-align: center;
|
||||
">Posts</h6>
|
||||
|
||||
|
||||
</li>
|
||||
<li class="nav-item"><h6 class="pb-1" style="
|
||||
padding-left: 20px;
|
||||
min-width: 100px;
|
||||
text-align: center;
|
||||
">Last Post</h6>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
EOT;
|
||||
|
||||
$sectionTemplate = <<<'EOT'
|
||||
<a href="{FORUM_SECTION_LINK}" class="media text-muted pt-3 border-bottom border-gray">
|
||||
<div class="navbar" style="
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
">
|
||||
|
||||
|
||||
<ul class="navbar-nav mr-auto" style="
|
||||
flex-direction: row;
|
||||
">
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="nav-item">
|
||||
<p class="media-body pb-3 mb-0 small lh-125" style="max-width: 700px;">
|
||||
<strong class="d-block text-gray-dark">{FORUM_SECTION_NAME}</strong>
|
||||
{FORUM_SECTION_DESCRIPTION}
|
||||
</p>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<ul class="navbar-nav" style="
|
||||
flex-direction: row;
|
||||
">
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="nav-item"><p class="pb-1" style="
|
||||
padding-left: 20px;
|
||||
min-width: 100px;
|
||||
text-align: center;
|
||||
">{FORUM_THREAD_COUNT}</p>
|
||||
|
||||
|
||||
</li>
|
||||
<li class="nav-item"><p class="pb-1" style="
|
||||
min-width: 100px;
|
||||
padding-left: 20px;
|
||||
text-align: center;
|
||||
">{FORUM_POST_COUNT}</p>
|
||||
|
||||
|
||||
</li>
|
||||
<li class="nav-item" style="
|
||||
margin-top: -9px;
|
||||
">
|
||||
<p class="pb-1" style="
|
||||
padding-left: 20px;
|
||||
min-width: 100px;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
padding-bottom: 0;
|
||||
"><strong class="d-block text-gray-dark">{FORUM_LAST_POSTTIME}</strong></p><p class="pb-1" style="
|
||||
padding-left: 20px;
|
||||
min-width: 100px;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
margin-top: -5px;
|
||||
">{FORUM_LAST_POST}</p>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</a>
|
||||
EOT;
|
||||
|
||||
foreach ($topics as $topic){
|
||||
$sections->execute();
|
||||
echo str_replace("{FORUM_TOPIC_NAME}",$topic["Name"],$topicStart);
|
||||
foreach($sections as $section){
|
||||
if($section["TopicId"] == $topic["id"]){
|
||||
$newSection = str_replace("{FORUM_SECTION_NAME}",$section["Name"],$sectionTemplate);
|
||||
$newSection = str_replace("{FORUM_SECTION_DESCRIPTION}",$section["Description"],$newSection);
|
||||
$newSection = str_replace("{FORUM_SECTION_LINK}","https://" . $_SERVER["HTTP_HOST"] . "/forum/ShowForum?topic=" . $section["id"],$newSection);
|
||||
$newSection = str_replace("{FORUM_THREAD_COUNT}",$section["Threads"],$newSection);
|
||||
$newSection = str_replace("{FORUM_POST_COUNT}",$section["Posts"],$newSection);
|
||||
$newSection = str_replace("{FORUM_LAST_POST}",$section["LastPost"],$newSection);
|
||||
$newSection = str_replace("{FORUM_LAST_POSTTIME}",$section["LastPostTime"],$newSection);
|
||||
echo $newSection;
|
||||
}
|
||||
}
|
||||
echo "</div>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/footer.php");?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/include.php");
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Platinus</title>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/header.php");?>
|
||||
</head>
|
||||
<body>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/navbar.php");?>
|
||||
<div class="main">
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<text>nothing here yet lol</text>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/footer.php");?>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
|
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/include.php");
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Platinus</title>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/header.php");?>
|
||||
</head>
|
||||
<body>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/navbar.php");?>
|
||||
<div class="main">
|
||||
<section class="jumbotron text-center" style="
|
||||
background-image: url('/img/jumbotron-img1.png');
|
||||
background-position: center;
|
||||
box-shadow: 0px -12px 20px black;
|
||||
border-radius:0;
|
||||
">
|
||||
<div class="container" style="
|
||||
padding-top: 50px;
|
||||
padding-bottom: 50px;
|
||||
">
|
||||
<h1 style="color:rgb(255,255,255); text-shadow: 0px 0px 5px black;">Platinus</h1>
|
||||
<p style="color:rgb(255,255,255); text-shadow: 0px 0px 5px black;" class="lead">ro blox clone?</p>
|
||||
<p>
|
||||
<a href="/register" class="btn btn-primary my-2" style="box-shadow: 0px 0px 5px black;">Register</a>
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<h2>رسالة من الله تعالى</h2>
|
||||
<p>roblox free tostring synapse v3rmillion fe harkinian bypass harked invisible fe elysian jjsploit خداع أي فيروس تحميل مجاني</p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h2>Template</h2>
|
||||
<p>Don't forget to replace this text with your text Template.</p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h2>why is my mouse moving on its own</h2>
|
||||
<p>why da hel my phone say no sim? any help reddit? pleaseeeeeeeeeeeeeeeeeeeeee</p>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/footer.php");?>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/include.php");
|
||||
if(file_get_contents(dirname($_SERVER["DOCUMENT_ROOT"]) . "/offline.txt")=="0"){
|
||||
$loc = "https://" . $_SERVER['HTTP_HOST'];
|
||||
if(isset($_GET["return"])){
|
||||
$loc = urldecode($_GET["return"]);
|
||||
}
|
||||
header("Location: " . $loc);
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Platinus - Maintenance</title>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/header.php");?>
|
||||
<script>
|
||||
setInterval(function(){
|
||||
window.location.reload();
|
||||
},60000);
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar sticky-top navbar-expand-lg navbar-dark" style="box-shadow: 0 0px 5px rgb(10,10,50); background: linear-gradient(90deg,rgb(70,140,255),rgb(140,60,200));">
|
||||
<div class="container">
|
||||
<div class="navbar-brand">
|
||||
<img src="/img/nav.png" width="30" height="30" class="d-inline-block align-top" alt="">
|
||||
Platinus
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="main">
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div style="position:absolute;left:50%;margin-left:-253px;top:50%;margin-top:-120px;">
|
||||
<center><b style="font-size:40px;">Platinus is currently offline</b></center>
|
||||
<center><text style="font-size:40px;">We'll be back soon!</text></center>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php include_once(dirname($_SERVER["DOCUMENT_ROOT"]) . "/footer.php");?>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue