Example #1
0
<?php

/*
 *	Made by Samerton
 *  http://worldscapemc.co.uk
 *
 *  License: MIT
 */
// Set the page name for the active link in navbar
$page = "forum";
$forum = new Forum();
$timeago = new Timeago();
$pagination = new Pagination();
require 'core/includes/paginate.php';
// Get number of topics on a page
if (!isset($_GET['fid']) || !is_numeric($_GET['fid'])) {
    Redirect::to('/forum/error/?error=not_exist');
    die;
}
$fid = (int) $_GET['fid'];
// Does the forum exist, and can the user view it?
$list = $forum->forumExist($fid, $user->data()->group_id);
if (!$list) {
    Redirect::to('/forum/error/?error=not_exist');
    die;
}
// Get page
if (isset($_GET['p'])) {
    if (!is_numeric($_GET['p'])) {
        Redirect::to("/forum");
        die;
Example #2
0
// Infractions addon page
$page = 'Infractions';
// for navbar
// Ensure the addon is enabled
if (!in_array('Infractions', $enabled_addon_pages)) {
    // Not enabled, redirect to homepage
    echo '<script data-cfasync="false">window.location.replace(\'/\');</script>';
    die;
}
require 'core/includes/paginate.php';
require 'addons/Infractions/config.php';
require 'addons/Infractions/Infractions.php';
require 'core/integration/uuid.php';
$infractions = new Infractions($inf_db, $infractions_language);
$pagination = new Pagination();
$timeago = new Timeago();
// Get current plugin in use
$inf_plugin = $queries->getWhere('infractions_settings', array('id', '=', 1));
if (!count($inf_plugin)) {
    // Need to configure addon
    echo 'Please set up the addon in the AdminCP -> Addons tab.';
    die;
}
$inf_plugin = $inf_plugin[0]->value;
// Redirect to fix pagination if URL does not end in /
if (substr($_SERVER['REQUEST_URI'], -1) !== '/' && !strpos($_SERVER['REQUEST_URI'], '?')) {
    echo '<script data-cfasync="false">window.location.replace(\'/infractions/\');</script>';
    die;
}
// Get page number
if (isset($_GET['p'])) {
Example #3
0
<?php

/* 
 *	Made by Samerton
 *  http://worldscapemc.co.uk
 *
 *  License: MIT
 */
// Set the page name for the active link in navbar
$page = "forum";
// Initialise
$forum = new Forum();
$timeago = new Timeago();
?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="<?php 
echo $sitename;
?>
 Forum Index">
    <meta name="author" content="Samerton">
	<?php 
if (isset($custom_meta)) {
    echo $custom_meta;
}
?>
Example #4
0
<?php

/* 
 *	Made by Samerton
 *  http://worldscapemc.co.uk
 *
 *  License: MIT
 */
if (!$user->isLoggedIn()) {
    Redirect::to('/');
    die;
}
// page for UserCP sidebar
$user_page = 'alerts';
$timeago = new Timeago();
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="User panel">
    <meta name="author" content="Samerton">
	<meta name="robots" content="noindex">
	<?php 
if (isset($custom_meta)) {
    echo $custom_meta;
}
?>
Example #5
0
<?php

/*
 *	Made by Samerton
 *  http://worldscapemc.co.uk
 *
 *  License: MIT
 */
// Set the page name for the active link in navbar
$page = "forum";
$forum = new Forum();
$timeago = new Timeago();
$pagination = new Pagination();
$mentionsParser = new MentionsParser();
require 'core/includes/paginate.php';
// Get number of replies on a page
require 'core/includes/htmlpurifier/HTMLPurifier.standalone.php';
// HTML Purifier
if (!isset($_GET['tid']) || !is_numeric($_GET['tid'])) {
    Redirect::to('/forum/error/?error=not_exist');
    die;
}
$tid = (int) $_GET['tid'];
// Does the topic exist, and can the user view it?
$list = $forum->topicExist($tid, $user->data()->group_id);
if (!$list) {
    Redirect::to('/forum/error/?error=not_exist');
    die;
}
// Is the URL pointing to a specific post?
if (isset($_GET['pid'])) {
Example #6
0
<?php

/*
 *	Made by Samerton
 *  http://worldscapemc.co.uk
 *
 *  License: MIT
 */
// Set the page name for the active link in navbar
$page = "forum";
$forum = new Forum();
$timeago = new Timeago();
$paginate = new Pagination();
$mentionsParser = new MentionsParser();
require 'inc/functions/paginate.php';
// Get number of users on a page
require 'inc/includes/html/library/HTMLPurifier.auto.php';
// HTML Purifier
if (!isset($_GET['tid']) || !is_numeric($_GET['tid'])) {
    Redirect::to('/forum/error/?error=not_exist');
    die;
}
$tid = (int) $_GET['tid'];
// Does the topic exist, and can the user view it?
$list = $forum->topicExist($tid, $user->data()->group_id);
if (!$list) {
    Redirect::to('/forum/error/?error=not_exist');
    die;
}
// Is the URL pointing to a specific post?
if (isset($_GET['pid'])) {
Example #7
0
<?php

/* 
 *	Made by Samerton
 *  http://worldscapemc.co.uk
 *
 *  License: MIT
 */
// Set the page name for the active link in navbar
$page = "forum";
// Initialise
$forum = new Forum();
$timeago = new Timeago();
?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="<?php 
echo $sitename;
?>
 Forum Index">
    <meta name="author" content="Samerton">
	<link rel="icon" href="/assets/favicon.ico">

    <title><?php 
echo $sitename;
?>
Example #8
0
<?php

/*
 *	Made by Samerton
 *  http://worldscapemc.co.uk
 *
 *  License: MIT
 */
// Set the page name for the active link in navbar
$page = "forum";
$forum = new Forum();
$timeago = new Timeago();
$paginate = new Pagination();
require 'inc/functions/paginate.php';
// Get number of users on a page
if (!isset($_GET['fid']) || !is_numeric($_GET['fid'])) {
    Redirect::to('/forum/error/?error=not_exist');
    die;
}
$fid = (int) $_GET['fid'];
// Does the forum exist, and can the user view it?
$list = $forum->forumExist($fid, $user->data()->group_id);
if (!$list) {
    Redirect::to('/forum/error/?error=not_exist');
    die;
}
// Get page
if (isset($_GET['p'])) {
    if (!is_numeric($_GET['p'])) {
        Redirect::to("/forum");
        die;