mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Empty commit
This commit is contained in:
parent
032089d64c
commit
73d999bc77
@ -22,6 +22,8 @@ abstract protected function listener_events();
|
||||
protected $LastChan = false;
|
||||
protected $ListenSocket =false;
|
||||
protected $Listened = false;
|
||||
protected $Connecting = false;
|
||||
protected $Bound = false; //Did we successfully bind to the socket?
|
||||
protected $State = 1; //Drones live
|
||||
public $Restart = 0; //Die by default
|
||||
|
||||
@ -32,19 +34,35 @@ public function __construct() {
|
||||
}
|
||||
|
||||
public function connect() {
|
||||
//Open a socket to the IRC server
|
||||
$this->Socket = fsockopen('tls://'.BOT_SERVER, BOT_PORT_SSL);
|
||||
stream_set_blocking($this->Socket, 0);
|
||||
$this->connect_irc();
|
||||
$this->connect_listener();
|
||||
$this->post_connect();
|
||||
}
|
||||
|
||||
public function connect_irc($Reconnect = false) {
|
||||
$this->Connecting = true;
|
||||
//Open a socket to the IRC server
|
||||
while (!$this->Socket = fsockopen('tls://'.BOT_SERVER, BOT_PORT_SSL)) {
|
||||
sleep(15);
|
||||
}
|
||||
stream_set_blocking($this->Socket, 0);
|
||||
$this->Connecting = false;
|
||||
if ($Reconnect) {
|
||||
$this->post_connect();
|
||||
}
|
||||
}
|
||||
|
||||
public function connect_listener() {
|
||||
//create a socket to listen on
|
||||
$this->ListenSocket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
|
||||
//socket_set_option($this->ListenSocket, SOL_TCP, SO_REUSEADDR, 1);
|
||||
socket_set_option($this->ListenSocket, SOL_SOCKET, SO_REUSEADDR, 1);
|
||||
socket_bind($this->ListenSocket, SOCKET_LISTEN_ADDRESS, SOCKET_LISTEN_PORT);
|
||||
$this->Bound = socket_bind($this->ListenSocket, SOCKET_LISTEN_ADDRESS, SOCKET_LISTEN_PORT);
|
||||
socket_listen($this->ListenSocket);
|
||||
socket_set_nonblock($this->ListenSocket);
|
||||
}
|
||||
|
||||
$this->Debug = $Debug;
|
||||
public function post_connect() {
|
||||
fwrite($this->Socket, "NICK ".BOT_NICK."Init\n");
|
||||
fwrite($this->Socket, "USER ".BOT_NICK." * * :IRC Bot\n");
|
||||
$this->listen();
|
||||
@ -91,11 +109,17 @@ protected function get_action() {
|
||||
}
|
||||
|
||||
protected function send_raw($Text) {
|
||||
fwrite($this->Socket, $Text."\n");
|
||||
if (!feof($this->Socket)) {
|
||||
fwrite($this->Socket, $Text."\n");
|
||||
} elseif (!$this->Connecting) {
|
||||
$this->Connecting = true;
|
||||
sleep(120);
|
||||
$this->connect_irc(true);
|
||||
}
|
||||
}
|
||||
|
||||
public function send_to($Channel, $Text) {
|
||||
fwrite($this->Socket, "PRIVMSG $Channel :$Text\n");
|
||||
$this->send_raw("PRIVMSG $Channel :$Text");
|
||||
}
|
||||
|
||||
protected function whois($Nick) {
|
||||
|
@ -112,7 +112,7 @@
|
||||
?>
|
||||
<li id="nav_invite" class="brackets"><a href="user.php?action=invite">Invite<?=$Invites?></a></li>
|
||||
<li id="nav_donate" class="brackets"><a href="donate.php">Donate</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
<ul id="userinfo_stats">
|
||||
<li id="stats_seeding"><a href="torrents.php?type=seeding&userid=<?=$LoggedUser['ID']?>">Up</a>: <span class="stat"><?=get_size($LoggedUser['BytesUploaded'])?></span></li>
|
||||
|
@ -325,7 +325,7 @@ function compare($X, $Y){
|
||||
|
||||
$DisplayName ='<a href="torrents.php?id='.$GroupID.'" title="View Torrent">'.$GroupName.'</a>';
|
||||
if(check_perms('users_mod') || check_perms('torrents_fix_ghosts')) {
|
||||
$DisplayName .= ' [<a href="torrents.php?action=fix_group&groupid='.$GroupID.'&artistid='.$ArtistID.'&auth='.$LoggedUser['AuthKey'].'">Fix</a>]';
|
||||
$DisplayName .= ' [<a href="torrents.php?action=fix_group&groupid='.$GroupID.'&artistid='.$ArtistID.'&auth='.$LoggedUser['AuthKey'].'" title="Fix ghost DB entry">Fix</a>]';
|
||||
}
|
||||
|
||||
|
||||
@ -366,7 +366,7 @@ function compare($X, $Y){
|
||||
<tr class="releases_<?=$ReleaseType?> group discog<?=$HideDiscog?>">
|
||||
<td class="center">
|
||||
<div title="View" id="showimg_<?=$GroupID?>" class="<?=($ShowGroups ? 'hide' : 'show')?>_torrents">
|
||||
<a href="#" class="show_torrents_link" onclick="toggle_group(<?=$GroupID?>, this, event)" title="Collapse this group"></a>
|
||||
<a href="#" class="show_torrents_link" onclick="toggle_group(<?=$GroupID?>, this, event)" title="Collapse this group. Hold "Ctrl" while clicking to collapse all groups in this release type."></a>
|
||||
</div>
|
||||
</td>
|
||||
<td colspan="5">
|
||||
@ -408,7 +408,7 @@ function compare($X, $Y){
|
||||
|
||||
?>
|
||||
<tr class="releases_<?=$ReleaseType?> groupid_<?=$GroupID?> edition group_torrent discog<?=$HideDiscog.$HideTorrents?>">
|
||||
<td colspan="6" class="edition_info"><strong><a href="#" onclick="toggle_edition(<?=$GroupID?>, <?=$EditionID?>, this, event)" title="Collapse this edition">−</a> <?=$RemasterName?></strong></a></td>
|
||||
<td colspan="6" class="edition_info"><strong><a href="#" onclick="toggle_edition(<?=$GroupID?>, <?=$EditionID?>, this, event)" title="Collapse this edition. Hold "Ctrl" while clicking to collapse all editions in this torrent group.">−</a> <?=$RemasterName?></strong></a></td>
|
||||
</tr>
|
||||
<?
|
||||
} else {
|
||||
@ -423,7 +423,7 @@ function compare($X, $Y){
|
||||
$MasterName .= $AddExtra.display_str($Torrent['Media']);
|
||||
?>
|
||||
<tr class="releases_<?=$ReleaseType?> groupid_<?=$GroupID?> edition group_torrent<?=$HideDiscog.$HideTorrents?>">
|
||||
<td colspan="6" class="edition_info"><strong><a href="#" onclick="toggle_edition(<?=$GroupID?>, <?=$EditionID?>, this, event)" title="Collapse this edition">−</a> <?=$MasterName?></strong></a></td>
|
||||
<td colspan="6" class="edition_info"><strong><a href="#" onclick="toggle_edition(<?=$GroupID?>, <?=$EditionID?>, this, event)" title="Collapse this edition. Hold "Ctrl" while clicking to collapse all editions in this torrent group.">−</a> <?=$MasterName?></strong></a></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
@ -563,7 +563,7 @@ function compare($X, $Y){
|
||||
<li id="list<?=$ListItem?>">
|
||||
<input type="hidden" name="list[]" value="<?=$ListItem?>" />
|
||||
<span style="float:left;"><?=$ZIPOptions[$ListItem]['2']?></span>
|
||||
<a href="#" onclick="remove_selection('<?=$ListItem?>');return false;" style="float:right;">[X]</a>
|
||||
<a href="#" onclick="remove_selection('<?=$ListItem?>');return false;" style="float:right;" title="Remove format from the Collector">[X]</a>
|
||||
<br style="clear:all;" />
|
||||
</li>
|
||||
<? } ?>
|
||||
|
@ -25,8 +25,7 @@
|
||||
"guidelines" => array(
|
||||
"This option is for asking the moderators to update your request to the new system.",
|
||||
"If your request has no other votes, you can just edit it yourself!",
|
||||
"Please do not report every single request on the old system, but only those that you really want updated. That way we can move them over in an order that benefits you most.",
|
||||
"If possible, please include a discogs link in the comments field."
|
||||
"If possible, please include a <a href=\"http://www.discogs.com\">Discogs</a> or <a href=\"http://musicbrainz.org\">MusicBrainz</a> link in the comments field."
|
||||
)
|
||||
),
|
||||
"request" => array(
|
||||
@ -34,7 +33,7 @@
|
||||
"guidelines" => array(
|
||||
"The report request option is for reporting a request which breaks any of the rules found <a href=\"rules.php?p=requests\">here</a>.",
|
||||
"We encourage all users to use this feature whenever possible. This will get quicker action than PMing a staff member will.",
|
||||
"In your report description below, please be specific and include as much information as possible that will help our staff resolve the issue. Links to reliable, external sources of information are extremely useful when resolving reports. Examples of such sources include the artist's official web site, Discogs, and MusicBrainz.",
|
||||
"In your report description below, please be specific and include as much information as possible that will help our staff resolve the issue. Links to reliable, external sources of information are extremely useful when resolving reports. Examples of such sources include the artist's official web site, <a href=\"http://www.discogs.com\">Discogs</a>, and <a href=\"http://musicbrainz.org\">MusicBrainz</a>.",
|
||||
"<strong>Do not report requests simply because they are unfillable.</strong> Requests for currently unfillable releases are allowed because the request may become fillable in the future. An example of such a scenario would be an iTunes-only release of a given album \"X\" that could have a physical CD, vinyl, etc. release at some future date. The probability of such a physical release is not relevant.",
|
||||
"<strong>If you are reporting this request to get it updated to the new requests system, please go back and click '[Request Update]'</strong>."
|
||||
)
|
||||
@ -42,36 +41,42 @@
|
||||
"requests_comment" => array(
|
||||
"title" => "Request Comment",
|
||||
"guidelines" => array(
|
||||
"The Report comment option is specifically for reporting when the Chat Rules have been broken.",
|
||||
"The report comment option is specifically for reporting when the <a href=\"rules.php?p=chat\">chat rules</a> have been broken.",
|
||||
"Such as posts containing racism, offensive language, flaming, pornography, and other rules violations.",
|
||||
"We encourage all users to use this feature when they see a rules violation of any form.",
|
||||
"This will get quicker action than PMing a staff member will.",
|
||||
"Please restrict the use of this feature to reporting Rules violations, and remember, this is for reporting comments, not replying to them."
|
||||
"Please restrict the use of this feature to reporting rules violations, and remember, this is for reporting comments, not replying to them."
|
||||
)
|
||||
),
|
||||
"thread" => array(
|
||||
"title" => "Forum Thread",
|
||||
"guidelines" => array(
|
||||
"The Report Thread option is specifically for reporting when the Chat Rules have been broken. Such as posts containing racism, offensive language, flaming, pornography, and other rules violations. We encourage all users to use this feature when they see a rules violation of any form.",
|
||||
"Please use the Report Thread option in the following situations:
|
||||
<ul>
|
||||
<li>Reporting when <a href=\"rules.php?p=chat\">chat rules</a> have been broken, such as posts containing racism, offensive language, flaming, pornography, and other rules violations. We encourage all users to use this feature when they see a rules violation of any form.
|
||||
<li>Requesting that a thread be unlocked.
|
||||
<li>Reporting threads that are in the wrong forum.
|
||||
<li>Reporting answered questions in the Help forum.
|
||||
</ul>",
|
||||
"This will get quicker action than PMing a staff member will.",
|
||||
"Please restrict the use of this feature to reporting Rules violations, and remember, this is for reporting threads, not replying to them."
|
||||
"Please restrict the use of this feature to reporting rules violations, and remember, this is for reporting threads, not replying to them."
|
||||
)
|
||||
),
|
||||
"post" => array(
|
||||
"title" => "Forum Post",
|
||||
"guidelines" => array(
|
||||
"The Report comment option is specifically for reporting when the Chat Rules have been broken.",
|
||||
"The report comment option is specifically for reporting when the <a href=\"rules.php?p=chat\">chat rules</a> have been broken.",
|
||||
"Such as posts containing racism, offensive language, flaming, pornography, and other rules violations.",
|
||||
"We encourage all users to use this feature when they see a rules violation of any form.",
|
||||
"This will get quicker action than PMing a staff member will.",
|
||||
"Please restrict the use of this feature to reporting Rules violations, and remember, this is for reporting comments, not replying to them."
|
||||
"Please restrict the use of this feature to reporting rules violations, and remember, this is for reporting comments, not replying to them."
|
||||
)
|
||||
),
|
||||
"collage" => array(
|
||||
"title" => "Collage",
|
||||
"guidelines" => array(
|
||||
"The report collage option is for reporting a collage which breaks one of the collage guidelines found on the <a href=\"rules.php?p=collages\">collage rules page</a>.",
|
||||
"Collage rules are an interpreted concept, and it is up to staff to interpret these rules. If you feel like this collage might be a borderline case between allowed and not allowed, feel free to report it and we will look into it.",
|
||||
"Collage rules are an interpreted concept, and it is up to staff to interpret these rules. If you feel like this collage might be a borderline case between allowed and not allowed, feel free to report it, and we will look into it.",
|
||||
"We encourage all users to use this feature whenever possible. This will get quicker action than PMing a staff member will.",
|
||||
"In your report description below, please be specific and include as much information as possible that will help our staff resolve the issue."
|
||||
)
|
||||
@ -79,21 +84,21 @@
|
||||
"collages_comment" => array(
|
||||
"title" => "Collage Comment",
|
||||
"guidelines" => array(
|
||||
"The Report comment option is specifically for reporting when the Chat Rules have been broken.",
|
||||
"The report comment option is specifically for reporting when the <a href=\"rules.php?p=chat\">chat rules</a> have been broken.",
|
||||
"Such as posts containing racism, offensive language, flaming, pornography, and other rules violations.",
|
||||
"We encourage all users to use this feature when they see a rules violation of any form.",
|
||||
"This will get quicker action than PMing a staff member will.",
|
||||
"Please restrict the use of this feature to reporting Rules violations, and remember, this is for reporting comments, not replying to them."
|
||||
"Please restrict the use of this feature to reporting rules violations, and remember, this is for reporting comments, not replying to them."
|
||||
)
|
||||
),
|
||||
"torrents_comment" => array(
|
||||
"title" => "Torrent Comment",
|
||||
"guidelines" => array(
|
||||
"The Report comment option is specifically for reporting when the Chat Rules have been broken.",
|
||||
"The report comment option is specifically for reporting when the <a href=\"rules.php?p=chat\">chat rules</a> have been broken.",
|
||||
"Such as posts containing racism, offensive language, flaming, pornography, and other rules violations.",
|
||||
"We encourage all users to use this feature when they see a rules violation of any form.",
|
||||
"This will get quicker action than PMing a staff member will.",
|
||||
"Please restrict the use of this feature to reporting Rules violations, and remember, this is for reporting comments, not replying to them."
|
||||
"Please restrict the use of this feature to reporting rules violations, and remember, this is for reporting comments, not replying to them."
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -782,7 +782,7 @@ function header_link($SortKey,$DefaultWay="desc") {
|
||||
?>
|
||||
<td class="center">
|
||||
<div title="View" id="showimg_<?=$GroupID?>" class="<?=($ShowGroups ? 'hide' : 'show')?>_torrents">
|
||||
<a href="#" class="show_torrents_link" onclick="toggle_group(<?=$GroupID?>, this, event)" title="Collapse this group"></a>
|
||||
<a href="#" class="show_torrents_link" onclick="toggle_group(<?=$GroupID?>, this, event)" title="Collapse this group. Hold "Ctrl" while clicking to collapse all groups on this page."></a>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center cats_col">
|
||||
@ -933,7 +933,7 @@ function header_link($SortKey,$DefaultWay="desc") {
|
||||
|
||||
?>
|
||||
<tr class="group_torrent groupid_<?=$GroupID?> edition<? if (!empty($LoggedUser['TorrentGrouping']) && $LoggedUser['TorrentGrouping']==1) { echo ' hidden'; }?>">
|
||||
<td colspan="9" class="edition_info"><strong><a href="#" onclick="toggle_edition(<?=$GroupID?>, <?=$EditionID?>, this, event)" title="Collapse this edition">−</a> <?=$RemasterName?></strong></td>
|
||||
<td colspan="9" class="edition_info"><strong><a href="#" onclick="toggle_edition(<?=$GroupID?>, <?=$EditionID?>, this, event)" title="Collapse this edition. Hold "Ctrl" while clicking to collapse all editions in this torrent group.">−</a> <?=$RemasterName?></strong></td>
|
||||
</tr>
|
||||
<?
|
||||
} else {
|
||||
@ -948,7 +948,7 @@ function header_link($SortKey,$DefaultWay="desc") {
|
||||
$MasterName .= $AddExtra.display_str($Data['Media']);
|
||||
?>
|
||||
<tr class="group_torrent groupid_<?=$GroupID?> edition<? if (!empty($LoggedUser['TorrentGrouping']) && $LoggedUser['TorrentGrouping']==1) { echo ' hidden'; }?>">
|
||||
<td colspan="9" class="edition_info"><strong><a href="#" onclick="toggle_edition(<?=$GroupID?>, <?=$EditionID?>, this, event)" title="Collapse this edition">−</a> <?=$MasterName?></strong></td>
|
||||
<td colspan="9" class="edition_info"><strong><a href="#" onclick="toggle_edition(<?=$GroupID?>, <?=$EditionID?>, this, event)" title="Collapse this edition. Hold "Ctrl" while clicking to collapse all editions in this torrent group.">−</a> <?=$MasterName?></strong></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ function compare($X, $Y){
|
||||
}
|
||||
?>
|
||||
(<?=$AliasID?>)
|
||||
<span class="remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?=$GroupID?>&artistid=<?=$Artist['id']?>&importance=4');this.parentNode.parentNode.style.display = 'none';">[X]</a></span>
|
||||
<span class="remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?=$GroupID?>&artistid=<?=$Artist['id']?>&importance=4');this.parentNode.parentNode.style.display = 'none';" title="Remove artist">[X]</a></span>
|
||||
<? } ?>
|
||||
</li>
|
||||
<? }
|
||||
@ -175,7 +175,7 @@ function compare($X, $Y){
|
||||
}
|
||||
?>
|
||||
(<?=$AliasID?>)
|
||||
<span class="remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?=$GroupID?>&artistid=<?=$Artist['id']?>&importance=6');this.parentNode.parentNode.style.display = 'none';">[X]</a></span>
|
||||
<span class="remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?=$GroupID?>&artistid=<?=$Artist['id']?>&importance=6');this.parentNode.parentNode.style.display = 'none';" title="Remove artist">[X]</a></span>
|
||||
<? } ?>
|
||||
</li>
|
||||
<?
|
||||
@ -197,7 +197,7 @@ function compare($X, $Y){
|
||||
}
|
||||
?>
|
||||
(<?=$AliasID?>)
|
||||
<span class="remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?=$GroupID?>&artistid=<?=$Artist['id']?>&importance=1');this.parentNode.parentNode.style.display = 'none';">[X]</a></span>
|
||||
<span class="remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?=$GroupID?>&artistid=<?=$Artist['id']?>&importance=1');this.parentNode.parentNode.style.display = 'none';" title="Remove artist">[X]</a></span>
|
||||
<? } ?>
|
||||
</li>
|
||||
<?
|
||||
@ -216,7 +216,7 @@ function compare($X, $Y){
|
||||
}
|
||||
?>
|
||||
(<?=$AliasID?>)
|
||||
<span class="remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?=$GroupID?>&artistid=<?=$Artist['id']?>&importance=2');this.parentNode.parentNode.style.display = 'none';">[X]</a></span>
|
||||
<span class="remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?=$GroupID?>&artistid=<?=$Artist['id']?>&importance=2');this.parentNode.parentNode.style.display = 'none';" title="Remove artist">[X]</a></span>
|
||||
<? } ?>
|
||||
</li>
|
||||
<?
|
||||
@ -236,7 +236,7 @@ function compare($X, $Y){
|
||||
}
|
||||
?>
|
||||
(<?=$AliasID?>)
|
||||
<span class="remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?=$GroupID?>&artistid=<?=$Artist['id']?>&importance=5');this.parentNode.parentNode.style.display = 'none';">[X]</a></span>
|
||||
<span class="remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?=$GroupID?>&artistid=<?=$Artist['id']?>&importance=5');this.parentNode.parentNode.style.display = 'none';" title="Remove conductor">[X]</a></span>
|
||||
<? } ?>
|
||||
</li>
|
||||
<?
|
||||
@ -256,7 +256,7 @@ function compare($X, $Y){
|
||||
}
|
||||
?>
|
||||
(<?=$AliasID?>)
|
||||
<span class="remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?=$GroupID?>&artistid=<?=$Artist['id']?>&importance=3');this.parentNode.parentNode.style.display = 'none';">[X]</a></span>
|
||||
<span class="remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?=$GroupID?>&artistid=<?=$Artist['id']?>&importance=3');this.parentNode.parentNode.style.display = 'none';" title="Remove artist">[X]</a></span>
|
||||
<? } ?>
|
||||
</li>
|
||||
<?
|
||||
@ -276,7 +276,7 @@ function compare($X, $Y){
|
||||
}
|
||||
?>
|
||||
(<?=$AliasID?>)
|
||||
<span class="remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?=$GroupID?>&artistid=<?=$Artist['id']?>&importance=7');this.parentNode.parentNode.style.display = 'none';">[X]</a></span>
|
||||
<span class="remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&auth=' + authkey + '&groupid=<?=$GroupID?>&artistid=<?=$Artist['id']?>&importance=7');this.parentNode.parentNode.style.display = 'none';" title="Remove producer">[X]</a></span>
|
||||
<? } ?>
|
||||
</li>
|
||||
<?
|
||||
@ -325,14 +325,14 @@ function compare($X, $Y){
|
||||
<li>
|
||||
<a href="torrents.php?taglist=<?=$Tag['name']?>" style="float:left; display:block;"><?=display_str($Tag['name'])?></a>
|
||||
<div style="float:right; display:block; letter-spacing: -1px;">
|
||||
<a href="torrents.php?action=vote_tag&way=down&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" style="font-family: monospace;" >[-]</a>
|
||||
<a href="torrents.php?action=vote_tag&way=down&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" style="font-family: monospace;" title="Vote this tag down">[-]</a>
|
||||
<?=$Tag['score']?>
|
||||
<a href="torrents.php?action=vote_tag&way=up&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" style="font-family: monospace;">[+]</a>
|
||||
<a href="torrents.php?action=vote_tag&way=up&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" style="font-family: monospace;" title="Vote this tag up">[+]</a>
|
||||
<? if(check_perms('users_warn')){ ?>
|
||||
<a href="user.php?id=<?=$Tag['userid']?>" >[U]</a>
|
||||
<a href="user.php?id=<?=$Tag['userid']?>" title="View the profile of the user that added this tag">[U]</a>
|
||||
<? } ?>
|
||||
<? if(check_perms('site_delete_tag')){ ?>
|
||||
<a href="torrents.php?action=delete_tag&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" >[X]</a>
|
||||
<a href="torrents.php?action=delete_tag&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" title="Remove tag">[X]</a>
|
||||
<? } ?>
|
||||
</div>
|
||||
<br style="clear:both" />
|
||||
@ -342,9 +342,9 @@ function compare($X, $Y){
|
||||
?>
|
||||
</ul>
|
||||
<?
|
||||
} else {
|
||||
} else { // The "no tags to display" message was wrapped in <ul> tags to pad the text.
|
||||
?>
|
||||
There are no tags to display.
|
||||
<ul><li>There are no tags to display.</li></ul>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
|
@ -59,7 +59,7 @@
|
||||
$User = format_username($SnatcherID, true, true, true, true);
|
||||
|
||||
if(!array_key_exists($SnatcherID, $Snatched) && $SnatcherID!=$UserID) {
|
||||
$User = '<em>'.$User.'</em>';
|
||||
$User = '<span style="font-style: italic;">'.$User.'</span>';
|
||||
if(array_key_exists($SnatcherID, $Seeding)) {
|
||||
$User = '<strong>'.$User.'</strong>';
|
||||
}
|
||||
@ -80,4 +80,4 @@
|
||||
</table>
|
||||
<? if($NumResults>100) { ?>
|
||||
<div class="linkbox"><?=js_pages('show_downloads', $_GET['torrentid'], $NumResults, $Page)?></div>
|
||||
<? } ?>
|
||||
<? } ?>
|
||||
|
@ -436,7 +436,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
<td width="24%">
|
||||
<input type="text" name="username" size="20" value="<?=display_str($_GET['username'])?>" />
|
||||
</td>
|
||||
<td class="label nobr">Joined:</td>
|
||||
<td class="label nobr"><span title="Date format is YYYY-MM-DD">Joined:</span></td>
|
||||
<td width="24%">
|
||||
<select name="joined">
|
||||
<option value="on"<? if($_GET['joined']==='on'){echo ' selected="selected"';}?>>On</option>
|
||||
@ -462,7 +462,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
<td>
|
||||
<input type="text" name="email" size="20" value="<?=display_str($_GET['email'])?>" />
|
||||
</td>
|
||||
<td class="label nobr">Last active:</td>
|
||||
<td class="label nobr"><span title="Date format is YYYY-MM-DD">Last active:</span></td>
|
||||
<td width="30%">
|
||||
<select name="lastactive">
|
||||
<option value="on"<? if($_GET['lastactive']==='on'){echo ' selected="selected"';}?>>On</option>
|
||||
@ -473,7 +473,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
<input type="text" name="lastactive1" size="6" value="<?=display_str($_GET['lastactive1'])?>" />
|
||||
<input type="text" name="lastactive2" size="6" value="<?=display_str($_GET['lastactive2'])?>" />
|
||||
</td>
|
||||
<td class="label nobr">Class:</td>
|
||||
<td class="label nobr">Primary Class:</td>
|
||||
<td>
|
||||
<select name="class">
|
||||
<option value="" <? if($_GET['class']==='') {echo ' selected="selected"';}?>>Any</option>
|
||||
@ -486,7 +486,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label nobr">IP:</td>
|
||||
<td class="label nobr"><span title="To fuzzy search (default) for a block of addresses (e.g. 55.66.77.*), enter "55.66.77." without the quotes">IP address:</span></td>
|
||||
<td>
|
||||
<input type="text" name="ip" size="20" value="<?=display_str($_GET['ip'])?>" />
|
||||
</td>
|
||||
@ -497,7 +497,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
<select name="secclass">
|
||||
<option value="" <? if($_GET['secclass']==='') {echo ' selected="selected"';}?>>Any</option>
|
||||
<? $Secondaries = array();
|
||||
// Neither level nor ID is particularly useful when search secondary classes, so let's do some
|
||||
// Neither level nor ID is particularly useful when searching secondary classes, so let's do some
|
||||
// kung-fu to sort them alphabetically.
|
||||
$fnc = function($Class1, $Class2) { return strcmp($Class1['Name'], $Class2['Name']);};
|
||||
foreach($ClassLevels as $Class) {
|
||||
@ -511,6 +511,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
<? } ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label nobr">Extra:</td>
|
||||
<td>
|
||||
@ -539,14 +540,13 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
<option value="no" <? if($_GET['donor']==='no') {echo ' selected="selected"';}?>>No</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label nobr">Comment:</td>
|
||||
<td>
|
||||
<input type="text" name="comment" size="20" value="<?=display_str($_GET['comment'])?>" />
|
||||
</td>
|
||||
<td class="label nobr">Uploaded:</td>
|
||||
<td class="label nobr"><span title="Units are in bytes">Uploaded:</span></td>
|
||||
<td width="30%">
|
||||
<select name="uploaded">
|
||||
<option value="equal"<? if($_GET['uploaded']==='equal'){echo ' selected="selected"';}?>>Equal</option>
|
||||
@ -566,10 +566,10 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
<option value="no" <? if($_GET['warned']==='no') {echo ' selected="selected"';}?>>No</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="label nobr">Invites:</td>
|
||||
<td class="label nobr"># of Invites:</td>
|
||||
<td>
|
||||
<select name="invites">
|
||||
<option value="equal"<? if($_GET['invites']==='equal'){echo ' selected="selected"';}?>>Equal</option>
|
||||
@ -579,9 +579,8 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
</select>
|
||||
<input type="text" name="invites1" size="6" value="<?=display_str($_GET['invites1'])?>" />
|
||||
<input type="text" name="invites2" size="6" value="<?=display_str($_GET['invites2'])?>" />
|
||||
|
||||
</td>
|
||||
<td class="label nobr">Downloaded:</td>
|
||||
<td class="label nobr"><span title="Units are in bytes">Downloaded:</span></td>
|
||||
<td width="30%">
|
||||
<select name="downloaded">
|
||||
<option value="equal"<? if($_GET['downloaded']==='equal'){echo ' selected="selected"';}?>>Equal</option>
|
||||
@ -596,8 +595,8 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
<td>
|
||||
<input type="checkbox" name="disabled_ip" <? if($_GET['disabled_ip']){ echo ' checked="checked"'; }?> />
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="label nobr">Disabled invites</td>
|
||||
<td>
|
||||
@ -641,12 +640,9 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="label nobr">Avatar:</td>
|
||||
<td class="label nobr"><span title="Supports partial URL matching, e.g. entering "|https://whatimg.com" will search for avatars hosted on https://whatimg.com">Avatar URL:</span></td>
|
||||
<td>
|
||||
<input type="text" name="avatar" size="20" value="<?=display_str($_GET['avatar'])?>" />
|
||||
</td>
|
||||
@ -659,7 +655,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
<? } ?>
|
||||
</select>
|
||||
</td>
|
||||
<td class="label nobr">Country Code:</td>
|
||||
<td class="label nobr"><span title="Two-letter codes as defined in ISO 3166-1 alpha-2">Country Code:</span></td>
|
||||
<td width="30%">
|
||||
<select name="cc_op">
|
||||
<option value="equal"<? if ($_GET['cc_op']==='equal'){ echo ' selected="selected"';}?>>Equals</option>
|
||||
@ -668,13 +664,13 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
<input type="text" name="cc" size="2" value="<?=display_str($_GET['cc'])?>" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="label nobr">Type</td>
|
||||
<td>
|
||||
Strict <input type="radio" name="matchtype" value="strict"<? if($_GET['matchtype'] == 'strict' || !$_GET['matchtype']){ echo ' checked="checked"'; } ?> /> |
|
||||
Fuzzy <input type="radio" name="matchtype" value="fuzzy"<? if($_GET['matchtype'] == 'fuzzy' || !$_GET['matchtype']){ echo ' checked="checked"'; } ?> /> |
|
||||
Regex <input type="radio" name="matchtype" value="regex"<? if($_GET['matchtype'] == 'regex'){ echo ' checked="checked"'; } ?> />
|
||||
<label title="A "strict" search uses no wildcards in search fields, and it is analogous to `grep -E "ˆSEARCHTERM$"`">Strict <input type="radio" name="matchtype" value="strict"<? if($_GET['matchtype'] == 'strict' || !$_GET['matchtype']){ echo ' checked="checked"'; } ?> /></label> |
|
||||
<label title="A "fuzzy" search automatically prepends and appends wildcards to search strings, except for IP address searches, unless the search string begins or ends with a "|" (pipe). It is analogous to a vanilla grep search (except for the pipe stuff).">Fuzzy <input type="radio" name="matchtype" value="fuzzy"<? if($_GET['matchtype'] == 'fuzzy' || !$_GET['matchtype']){ echo ' checked="checked"'; } ?> /></label> |
|
||||
<label title="A "regex" search uses MySQL's regular expression syntax.">Regex <input type="radio" name="matchtype" value="regex"<? if($_GET['matchtype'] == 'regex'){ echo ' checked="checked"'; } ?> /></label>
|
||||
</td>
|
||||
<td class="label nobr">Order:</td>
|
||||
<td class="nobr">
|
||||
@ -690,7 +686,7 @@ function num_compare($Field, $Operand, $Num1, $Num2 = ''){
|
||||
<? }?>
|
||||
</select>
|
||||
</td>
|
||||
<td class="label nobr"># Of Emails:</td>
|
||||
<td class="label nobr"># of Emails:</td>
|
||||
<td>
|
||||
<select name="emails_opt">
|
||||
<option value="equal"<? if($_GET['emails_opt']==='equal'){echo ' selected="selected"';}?>>Equal</option>
|
||||
|
@ -646,6 +646,7 @@ function check_paranoia_here($Setting) {
|
||||
<br />
|
||||
<?
|
||||
|
||||
// Displays a table of forum warnings viewable only to Forum Moderators
|
||||
if($LoggedUser['Class'] == 650 && check_perms('users_warn', $Class)) {
|
||||
$DB->query("SELECT Comment FROM users_warnings_forums WHERE UserID = '$UserID'");
|
||||
list($ForumWarnings) = $DB->next_record();
|
||||
@ -703,7 +704,7 @@ function check_paranoia_here($Setting) {
|
||||
if (check_perms('users_promote_below', $Class) || check_perms('users_promote_to', $Class-1)) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="label">Class:</td>
|
||||
<td class="label">Primary Class:</td>
|
||||
<td>
|
||||
<select name="Class">
|
||||
<?
|
||||
@ -752,7 +753,7 @@ function check_paranoia_here($Setting) {
|
||||
if (check_perms('users_make_invisible')) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="label">Visible:</td>
|
||||
<td class="label"><span title="Visible in Peer Lists">Visible in Peer Lists:</span></td>
|
||||
<td><input type="checkbox" name="Visible" <? if ($Visible == 1) { ?>checked="checked" <? } ?> /></td>
|
||||
</tr>
|
||||
<?
|
||||
@ -761,14 +762,14 @@ function check_paranoia_here($Setting) {
|
||||
if (check_perms('users_edit_ratio',$Class) || (check_perms('users_edit_own_ratio') && $UserID == $LoggedUser['ID'])) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="label"><span title="Upload amount in bytes. Also accepts e.g. +20GB or -35.6364MB on the end">Uploaded:</span></td>
|
||||
<td class="label"><span title="Upload amount in bytes. Also accepts e.g. +20GB or -35.6364MB on the end">Uploaded:</span></td>
|
||||
<td>
|
||||
<input type="hidden" name="OldUploaded" value="<?=$Uploaded?>" />
|
||||
<input type="text" size="20" name="Uploaded" value="<?=$Uploaded?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"><span title="Download amount in bytes. Also accepts e.g. +20GB or -35.6364MB on the end">Downloaded:</span></td>
|
||||
<td class="label"><span title="Download amount in bytes. Also accepts e.g. +20GB or -35.6364MB on the end">Downloaded:</span></td>
|
||||
<td>
|
||||
<input type="hidden" name="OldDownloaded" value="<?=$Downloaded?>" />
|
||||
<input type="text" size="20" name="Downloaded" value="<?=$Downloaded?>" />
|
||||
@ -792,7 +793,7 @@ function check_paranoia_here($Setting) {
|
||||
if (check_perms('users_edit_invites')) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="label">Invites:</td>
|
||||
<td class="label"><span title="Number of Invites">Invites:</span></td>
|
||||
<td><input type="text" size="5" name="Invites" value="<?=$Invites?>" /></td>
|
||||
</tr>
|
||||
<?
|
||||
@ -801,7 +802,7 @@ function check_paranoia_here($Setting) {
|
||||
if (check_perms('admin_manage_fls') || (check_perms('users_mod') && $OwnProfile)) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="label">First Line Support:</td>
|
||||
<td class="label"><span title="This is the message shown in the right-hand column on /staff.php">FLS/Staff Remark:</span></td>
|
||||
<td><input type="text" size="50" name="SupportFor" value="<?=display_str($SupportFor)?>" /></td>
|
||||
</tr>
|
||||
<?
|
||||
@ -901,7 +902,7 @@ function check_paranoia_here($Setting) {
|
||||
</tr>
|
||||
<? } ?>
|
||||
<tr>
|
||||
<td class="label">Reason:</td>
|
||||
<td class="label"><span title="This message *will* be sent to the user in the warning PM!">Warning Reason:</span></td>
|
||||
<td>
|
||||
<input type="text" size="60" name="WarnReason" />
|
||||
</td>
|
||||
@ -921,12 +922,11 @@ function check_paranoia_here($Setting) {
|
||||
<? if (check_perms('users_disable_any')) { ?> |
|
||||
<input type="checkbox" name="DisableAvatar" id="DisableAvatar"<? if ($DisableAvatar==1) { ?>checked="checked"<? } ?> /> <label for="DisableAvatar">Avatar</label> |
|
||||
<input type="checkbox" name="DisableInvites" id="DisableInvites"<? if ($DisableInvites==1) { ?>checked="checked"<? } ?> /> <label for="DisableInvites">Invites</label> |
|
||||
|
||||
<input type="checkbox" name="DisableForums" id="DisableForums"<? if ($DisableForums==1) { ?>checked="checked"<? } ?> /> <label for="DisableForums">Forums</label> |
|
||||
<input type="checkbox" name="DisableTagging" id="DisableTagging"<? if ($DisableTagging==1) { ?>checked="checked"<? } ?> /> <label for="DisableTagging">Tagging</label> |
|
||||
<input type="checkbox" name="DisableRequests" id="DisableRequests"<? if ($DisableRequests==1) { ?>checked="checked"<? } ?> /> <label for="DisableRequests">Requests</label>
|
||||
<br />
|
||||
<input type="checkbox" name="DisableUpload" id="DisableUpload"<? if ($DisableUpload==1) { ?>checked="checked"<? } ?> /> <label for="DisableUpload">Upload</label> |
|
||||
<input type="checkbox" name="DisableUpload" id="DisableUpload"<? if ($DisableUpload==1) { ?>checked="checked"<? } ?> /> <label for="DisableUpload">Upload</label> |
|
||||
<input type="checkbox" name="DisableWiki" id="DisableWiki"<? if ($DisableWiki==1) { ?>checked="checked"<? } ?> /> <label for="DisableWiki">Wiki</label> |
|
||||
<input type="checkbox" name="DisableLeech" id="DisableLeech"<? if ($DisableLeech==0) { ?>checked="checked"<? } ?> /> <label for="DisableLeech">Leech</label> |
|
||||
<input type="checkbox" name="DisablePM" id="DisablePM"<? if ($DisablePM==1) { ?>checked="checked"<? } ?> /> <label for="DisablePM">PM</label> |
|
||||
@ -975,13 +975,13 @@ function check_paranoia_here($Setting) {
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Restricted Forums (comma-delimited):</td>
|
||||
<td class="label"><span title="Enter a comma-delimited list of forum IDs">Restricted Forums:</span></td>
|
||||
<td>
|
||||
<input type="text" size="60" name="RestrictedForums" value="<?=display_str($RestrictedForums)?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Extra Forums (comma-delimited):</td>
|
||||
<td class="label"><span title="Enter a comma-delimited list of forum IDs">Extra Forums:</span></td>
|
||||
<td>
|
||||
<input type="text" size="60" name="PermittedForums" value="<?=display_str($PermittedForums)?>" />
|
||||
</td>
|
||||
@ -1006,7 +1006,7 @@ function check_paranoia_here($Setting) {
|
||||
<table class="layout">
|
||||
<tr class="colhead"><td colspan="2">Submit</td></tr>
|
||||
<tr>
|
||||
<td class="label">Reason:</td>
|
||||
<td class="label"><span title="This message will be entered into staff notes only.">Reason:</span></td>
|
||||
<td>
|
||||
<textarea rows="1" cols="50" name="Reason" id="Reason" onkeyup="resize('Reason');"></textarea>
|
||||
</td>
|
||||
|
@ -101,7 +101,7 @@ function toggle_group(groupid, link, event) {
|
||||
if (allGroups || relevantRow.has_class('groupid_' + groupid)) {
|
||||
row = $(group_rows[i]); // idk why we need this :S
|
||||
if (row.has_class('group')) {
|
||||
$('a.show_torrents_link', row.raw()).raw().title = (showing) ? 'Collapse this group' : 'Expand this group';
|
||||
$('a.show_torrents_link', row.raw()).raw().title = (showing) ? 'Collapse this group. Hold "Ctrl" while clicking to collapse all groups/editions in this section.' : 'Expand this group. Hold "Ctrl" while clicking to expand all groups/editions in this section.';
|
||||
$('a.show_torrents_link', row.raw()).raw().parentNode.className = (showing) ? 'hide_torrents' : 'show_torrents';
|
||||
} else {
|
||||
if (showing) {
|
||||
@ -192,4 +192,4 @@ function check_private(TorrentID) {
|
||||
ajax.get('ajax.php?action=checkprivate&torrentid=' + TorrentID,function(response){
|
||||
$('#checkprivate-'+TorrentID).raw().innerHTML = response;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -452,13 +452,13 @@ ul.thin li { margin:0px 0px; padding:0px; }
|
||||
}
|
||||
|
||||
/* Strip the category column */
|
||||
td.cats_col, td.center.cats_col{ border-right: none; display: none; }
|
||||
td.cats_col, td.center.cats_col{ border-right: none; }
|
||||
table.grouping>tbody>tr.torrent>td:first-child+td+td,
|
||||
table.no_grouping>tbody>tr.torrent>td:first-child+td,
|
||||
table.grouping>tbody>tr.group>td:first-child+td+td,
|
||||
table.grouping>tbody>tr.colhead>td:first-child+td+td,
|
||||
table.no_grouping>tbody>tr.group>td:first-child+td,
|
||||
table.no_grouping>tbody>tr.colhead>td:first-child+td { border-left: none;}
|
||||
table.no_grouping>tbody>tr.colhead>td:first-child+td { text-indent:-20px; border-left: none;}
|
||||
|
||||
.last_read {width: 15px; height: 15px; background: url('images/go_last_read.png') no-repeat center center; margin-left: 5px;}
|
||||
.last_read a { border: none; width: 100%; height: 100%; display: block; }
|
||||
|
Loading…
Reference in New Issue
Block a user