mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 10:31:37 +00:00
Empty commit
This commit is contained in:
parent
e0b231fc39
commit
f7b97ddfa1
@ -1,7 +1,7 @@
|
|||||||
<?
|
<?
|
||||||
class TEXT {
|
class TEXT {
|
||||||
// tag=>max number of attributes
|
// tag=>max number of attributes
|
||||||
private $ValidTags = array('b'=>0, 'u'=>0, 'i'=>0, 's'=>0, '*'=>0, '#'=>0, 'artist'=>0, 'user'=>0, 'n'=>0, 'inlineurl'=>0, 'inlinesize'=>1, 'align'=>1, 'color'=>1, 'colour'=>1, 'size'=>1, 'url'=>1, 'img'=>1, 'quote'=>1, 'pre'=>1, 'code'=>1, 'tex'=>0, 'hide'=>1, 'plain'=>0, 'important'=>0, 'torrent'=>0
|
private $ValidTags = array('b'=>0, 'u'=>0, 'i'=>0, 's'=>0, '*'=>0, '#'=>0, 'artist'=>0, 'user'=>0, 'n'=>0, 'inlineurl'=>0, 'inlinesize'=>1, 'headline'=>1, 'align'=>1, 'color'=>1, 'colour'=>1, 'size'=>1, 'url'=>1, 'img'=>1, 'quote'=>1, 'pre'=>1, 'code'=>1, 'tex'=>0, 'hide'=>1, 'plain'=>0, 'important'=>0, 'torrent'=>0, 'rule'=>0,
|
||||||
);
|
);
|
||||||
private $Smileys = array(
|
private $Smileys = array(
|
||||||
':angry:' => 'angry.gif',
|
':angry:' => 'angry.gif',
|
||||||
@ -377,6 +377,9 @@ function parse($Str) {
|
|||||||
case 'tex':
|
case 'tex':
|
||||||
$Array[$ArrayPos] = array('Type'=>'tex', 'Val'=>$Block);
|
$Array[$ArrayPos] = array('Type'=>'tex', 'Val'=>$Block);
|
||||||
break;
|
break;
|
||||||
|
case 'rule':
|
||||||
|
$Array[$ArrayPos] = array('Type'=>'rule', 'Val'=>$Block);
|
||||||
|
break;
|
||||||
case 'pre':
|
case 'pre':
|
||||||
case 'code':
|
case 'code':
|
||||||
case 'plain':
|
case 'plain':
|
||||||
@ -454,6 +457,13 @@ function to_html($Array) {
|
|||||||
case 'artist':
|
case 'artist':
|
||||||
$Str.='<a href="artist.php?artistname='.urlencode(undisplay_str($Block['Val'])).'">'.$Block['Val'].'</a>';
|
$Str.='<a href="artist.php?artistname='.urlencode(undisplay_str($Block['Val'])).'">'.$Block['Val'].'</a>';
|
||||||
break;
|
break;
|
||||||
|
case 'rule':
|
||||||
|
$Rule = trim(strtolower($Block['Val']));
|
||||||
|
if($Rule[0] != 'r' && $Rule[0] != 'h') {
|
||||||
|
$Rule = 'r'.$Rule;
|
||||||
|
}
|
||||||
|
$Str.='<a href="rules.php?p=upload#'.urlencode(undisplay_str($Rule)).'">'.preg_replace('/[aA-zZ]/', '', $Block['Val']).'</a>';
|
||||||
|
break;
|
||||||
case 'torrent':
|
case 'torrent':
|
||||||
$Pattern = '/('.NONSSL_SITE_URL.'\/torrents\.php.*[\?&]id=)?(\d+)($|&|\#).*/i';
|
$Pattern = '/('.NONSSL_SITE_URL.'\/torrents\.php.*[\?&]id=)?(\d+)($|&|\#).*/i';
|
||||||
$Matches = array();
|
$Matches = array();
|
||||||
|
@ -2214,7 +2214,7 @@ function selected($Name, $Value, $Attribute='selected', $Array = array()) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function error($Error, $Ajax=false) {
|
function error($Error, $Ajax=false, $Log=false) {
|
||||||
global $Debug;
|
global $Debug;
|
||||||
require(SERVER_ROOT.'/sections/error/index.php');
|
require(SERVER_ROOT.'/sections/error/index.php');
|
||||||
$Debug->profile();
|
$Debug->profile();
|
||||||
|
@ -69,14 +69,12 @@
|
|||||||
<strong>Read the topic before asking questions.</strong>
|
<strong>Read the topic before asking questions.</strong>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
<form method="post" action="chat.php" class="center">
|
||||||
</div>
|
|
||||||
<form method="post" action="chat.php">
|
|
||||||
<center>
|
|
||||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||||
<input type="submit" name="accept" value="I agree to these rules" />
|
<input type="submit" name="accept" value="I agree to these rules" />
|
||||||
</center>
|
</form>
|
||||||
</form>
|
</div>
|
||||||
|
</div>
|
||||||
<?
|
<?
|
||||||
} else {
|
} else {
|
||||||
$nick = $LoggedUser["Username"];
|
$nick = $LoggedUser["Username"];
|
||||||
@ -104,6 +102,7 @@
|
|||||||
<param name="multiserver" value="true">
|
<param name="multiserver" value="true">
|
||||||
<param name="autorejoin" value="false">
|
<param name="autorejoin" value="false">
|
||||||
|
|
||||||
|
|
||||||
<param name="gui" value="sbox">
|
<param name="gui" value="sbox">
|
||||||
<param name="pixx:highlight" value="true">
|
<param name="pixx:highlight" value="true">
|
||||||
<param name="pixx:highlightnick" value="true">
|
<param name="pixx:highlightnick" value="true">
|
||||||
|
@ -21,10 +21,7 @@ function notify ($Channel, $Message) {
|
|||||||
break;
|
break;
|
||||||
case '404':
|
case '404':
|
||||||
$Title = "Error 404";
|
$Title = "Error 404";
|
||||||
if(check_perms('users_mod')) {
|
$Description = "You just tried to go to a page that doesn't really exist.";
|
||||||
$LogLink = "<a href='log.php'> View Log</a>";
|
|
||||||
}
|
|
||||||
$Description = "You just tried to go to a page that doesn't really exist.".$LogLink;
|
|
||||||
break;
|
break;
|
||||||
case '0':
|
case '0':
|
||||||
$Title = "Invalid Input";
|
$Title = "Invalid Input";
|
||||||
@ -45,6 +42,10 @@ function notify ($Channel, $Message) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($Log) {
|
||||||
|
$Description .= ' <a href="log.php?search='.$Log.'">Search Log</a>';
|
||||||
|
}
|
||||||
|
|
||||||
if(empty($Ajax)) {
|
if(empty($Ajax)) {
|
||||||
show_header($Title);
|
show_header($Title);
|
||||||
?>
|
?>
|
||||||
|
@ -78,7 +78,7 @@
|
|||||||
$Channels[] = "#requestedits";
|
$Channels[] = "#requestedits";
|
||||||
$Cache->increment('num_update_reports');
|
$Cache->increment('num_update_reports');
|
||||||
}
|
}
|
||||||
if(in_array($Short, array('collages_comment', 'Post', 'requests_comment', 'thread', 'torrents_comment'))) {
|
if(in_array($Short, array('collages_comment', 'post', 'requests_comment', 'thread', 'torrents_comment'))) {
|
||||||
$Channels[] = "#forumreports";
|
$Channels[] = "#forumreports";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,6 +44,7 @@ function compare($X, $Y){
|
|||||||
if($GroupYear>0) {
|
if($GroupYear>0) {
|
||||||
$DisplayName.=' ['.$GroupYear.']';
|
$DisplayName.=' ['.$GroupYear.']';
|
||||||
$AltName.=' ['.$GroupYear.']';
|
$AltName.=' ['.$GroupYear.']';
|
||||||
|
$Title.= ' ['.$GroupYear.']';
|
||||||
}
|
}
|
||||||
if($GroupVanityHouse){
|
if($GroupVanityHouse){
|
||||||
$DisplayName.=' [Vanity House]';
|
$DisplayName.=' [Vanity House]';
|
||||||
|
@ -106,7 +106,7 @@ function get_group_info($GroupID, $Return = true, $RevisionID = 0) {
|
|||||||
|
|
||||||
$TorrentList = $DB->to_array();
|
$TorrentList = $DB->to_array();
|
||||||
if(count($TorrentList) == 0) {
|
if(count($TorrentList) == 0) {
|
||||||
error(404);
|
error(404, false, 'torrent+'.$GroupID);
|
||||||
}
|
}
|
||||||
if(in_array(0, $DB->collect('Seeders'))) {
|
if(in_array(0, $DB->collect('Seeders'))) {
|
||||||
$CacheTime = 600;
|
$CacheTime = 600;
|
||||||
|
@ -408,9 +408,13 @@ function js_pages($Action, $TorrentID, $NumResults, $CurrentPage) {
|
|||||||
list($GroupID) = $DB->next_record();
|
list($GroupID) = $DB->next_record();
|
||||||
if($GroupID) {
|
if($GroupID) {
|
||||||
header("Location: torrents.php?id=".$GroupID."&torrentid=".$_GET['torrentid']."#torrent".$_GET['torrentid']);
|
header("Location: torrents.php?id=".$GroupID."&torrentid=".$_GET['torrentid']."#torrent".$_GET['torrentid']);
|
||||||
|
} else {
|
||||||
|
if(check_perms('users_mod')) {
|
||||||
|
error(404, false, 'torrent+'.$_GET['torrentid']);
|
||||||
} else {
|
} else {
|
||||||
error(404);
|
error(404);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} elseif(!empty($_GET['type'])) {
|
} elseif(!empty($_GET['type'])) {
|
||||||
include(SERVER_ROOT.'/sections/torrents/user.php');
|
include(SERVER_ROOT.'/sections/torrents/user.php');
|
||||||
} elseif(!empty($_GET['groupname']) && !empty($_GET['forward'])) {
|
} elseif(!empty($_GET['groupname']) && !empty($_GET['forward'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user