Empty commit

This commit is contained in:
Git 2013-04-23 08:01:29 +00:00
parent 7c417c6c16
commit d87697541d
5 changed files with 20 additions and 11 deletions

View File

@ -56,7 +56,7 @@ class TEXT {
private $NoImg = 0; // If images should be turned into URLs
private $Levels = 0;
/**
* The maximum amount of nesting allowed (exclusive)
* In reality n-1 nests are shown.
@ -69,12 +69,12 @@ class TEXT {
* @var int $InQuotes
*/
private $InQuotes = 0;
/**
* Used to [hide] quote trains starting with the specified depth (inclusive)
* @var int $NestsBeforeHide
*
* This defaulted to 5 but was raised to 10 to effectively "disable" it until
* This defaulted to 5 but was raised to 10 to effectively "disable" it until
* an optimal number of nested [quote] tags is chosen. The variable $MaximumNests
* effectively overrides this variable, if $MaximumNests is less than the value
* of $NestsBeforeHide.
@ -598,7 +598,7 @@ private function to_html ($Array) {
* tags should always be limiting ahead of this line.
* (Larger than vs. smaller than.)
*/
if ($this->Levels > $this->MaximumNests) {
if ($this->Levels > $this->MaximumNests) {
return $Block['Val']; // Hax prevention, breaks upon exceeding nests.
}
$Str = '';

View File

@ -7,7 +7,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?=display_str($PageTitle)?></title>
<meta http-equiv="X-UA-Compatible" content="chrome=1;IE=edge" />
<meta http-equiv="X-UA-Compatible" content="chrome=1; IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
@ -38,7 +38,7 @@
<div id="logo">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="login.php">Login</a></li>
<li><a href="login.php">Log in</a></li>
<? if (OPEN_REGISTRATION) { ?>
<li><a href="register.php">Register</a></li>
<? } ?>

View File

@ -1,11 +1,20 @@
<?
$FeaturedAlbum = $Cache->get_value('featured_album');
if($FeaturedAlbum === false) {
$DB->query("SELECT fa.GroupID, tg.Name, tg.WikiImage, fa.ThreadID, fa.Title FROM featured_albums AS fa JOIN torrents_group AS tg ON tg.ID=fa.GroupID WHERE Ended = 0");
if ($FeaturedAlbum === false) {
$DB->query('
SELECT
fa.GroupID,
tg.Name,
tg.WikiImage,
fa.ThreadID,
fa.Title
FROM featured_albums AS fa
JOIN torrents_group AS tg ON tg.ID=fa.GroupID
WHERE Ended = 0');
$FeaturedAlbum = $DB->next_record();
$Cache->cache_value('featured_album', $FeaturedAlbum, 0);
}
if(is_number($FeaturedAlbum['GroupID'])) {
if (is_number($FeaturedAlbum['GroupID'])) {
$Artists = Artists::get_artist($FeaturedAlbum['GroupID']);
if (check_perms('site_proxy_images')) {

View File

@ -3,7 +3,7 @@
if (!isset($_REQUEST['action'])) {
include('private.php');
} else {
switch($_REQUEST['action']) {
switch ($_REQUEST['action']) {
case 'poll':
include(SERVER_ROOT.'/sections/forums/poll_vote.php');
break;

View File

@ -13,7 +13,7 @@
<? if (check_perms('admin_manage_permissions')) { ?>
<tr><td><a href="tools.php?action=permissions">Permissions</a></td></tr>
<? } if (check_perms('admin_whitelist')) { ?>
<tr><td><a href="tools.php?action=whitelist">Whitelist</a></td></tr>
<tr><td><a href="tools.php?action=whitelist">Client whitelist</a></td></tr>
<? } if (check_perms('admin_manage_ipbans')) { ?>
<tr><td><a href="tools.php?action=ip_ban">IP address bans</a></td></tr>