mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-02-22 13:19:04 +00:00
Empty commit
This commit is contained in:
parent
42206f96ce
commit
4a9e5ff945
@ -40,9 +40,8 @@
|
|||||||
$Blog = $DB->to_array();
|
$Blog = $DB->to_array();
|
||||||
$Cache->cache_value('blog',$Blog,1209600);
|
$Cache->cache_value('blog',$Blog,1209600);
|
||||||
}
|
}
|
||||||
|
|
||||||
$JsonBlog = array();
|
$JsonBlog = array();
|
||||||
for ($i = 0; $i < $Limit; $i++) {
|
for ($i = 0; $i < 5; $i++) {
|
||||||
list($BlogID, $Author, $Title, $Body, $BlogTime, $ThreadID) = $Blog[$i];
|
list($BlogID, $Author, $Title, $Body, $BlogTime, $ThreadID) = $Blog[$i];
|
||||||
$JsonBlog[] = array(
|
$JsonBlog[] = array(
|
||||||
'blogId' => (int) $BlogID,
|
'blogId' => (int) $BlogID,
|
||||||
|
@ -93,6 +93,7 @@
|
|||||||
send_irc("PRIVMSG ".$Channel." :".$ReportID." - ".$LoggedUser['Username']." just reported a ".$Short.": https://".SSL_SITE_URL."/".$Link." : ".strtr($Reason, "\n", " "));
|
send_irc("PRIVMSG ".$Channel." :".$ReportID." - ".$LoggedUser['Username']." just reported a ".$Short.": https://".SSL_SITE_URL."/".$Link." : ".strtr($Reason, "\n", " "));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$Cache->delete_value('num_other_reports');
|
$Cache->delete_value('num_other_reports');
|
||||||
|
|
||||||
header('Location: '.$Link);
|
header('Location: '.$Link);
|
||||||
|
@ -8,11 +8,19 @@
|
|||||||
$Limit = 10;
|
$Limit = 10;
|
||||||
|
|
||||||
if ($_GET['tags']) {
|
if ($_GET['tags']) {
|
||||||
|
$TagWhere = array();
|
||||||
$Tags = explode(',', str_replace(".","_",trim($_GET['tags'])));
|
$Tags = explode(',', str_replace(".","_",trim($_GET['tags'])));
|
||||||
foreach ($Tags as $Tag) {
|
foreach ($Tags as $Tag) {
|
||||||
$Tag = preg_replace('/[^a-z0-9_]/', '', $Tag);
|
$Tag = preg_replace('/[^a-z0-9_]/', '', $Tag);
|
||||||
if ($Tag != '') {
|
if ($Tag != '') {
|
||||||
$Where[]="g.TagList REGEXP '[[:<:]]".db_string($Tag)."[[:>:]]'";
|
$TagWhere[] = "g.TagList REGEXP '[[:<:]]".db_string($Tag)."[[:>:]]'";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!empty($TagWhere)) {
|
||||||
|
if ($_GET['anyall'] == 'any') {
|
||||||
|
$Where[] = '('.implode(' OR ', $TagWhere).')';
|
||||||
|
} else {
|
||||||
|
$Where[] = '('.implode(' AND ', $TagWhere).')';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -121,13 +129,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<?
|
<?
|
||||||
|
|
||||||
if ($_GET['anyall'] == 'any' && !empty($Where)) {
|
if (!empty($Where)) {
|
||||||
$Where = '('.implode(' OR ', $Where).')';
|
$Where = '('.implode(' AND ', $Where).')';
|
||||||
|
$WhereSum = md5($Where);
|
||||||
} else {
|
} else {
|
||||||
$Where = implode(' AND ', $Where);
|
$WhereSum = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$WhereSum = (empty($Where)) ? '' : md5($Where);
|
|
||||||
$BaseQuery = "SELECT
|
$BaseQuery = "SELECT
|
||||||
t.ID,
|
t.ID,
|
||||||
g.ID,
|
g.ID,
|
||||||
|
@ -263,51 +263,8 @@ function checked($Checked) {
|
|||||||
<br />
|
<br />
|
||||||
<input type="checkbox" name="pushfilters[]" value="News" <? if(isset($PushOptions['PushFilters']['News'])) { ?> checked="checked" <? } ?>/>Announcements<br />
|
<input type="checkbox" name="pushfilters[]" value="News" <? if(isset($PushOptions['PushFilters']['News'])) { ?> checked="checked" <? } ?>/>Announcements<br />
|
||||||
<input type="checkbox" name="pushfilters[]" value="PM" <? if(isset($PushOptions['PushFilters']['PM'])) { ?> checked="checked" <? } ?>/>Private Messages<br />
|
<input type="checkbox" name="pushfilters[]" value="PM" <? if(isset($PushOptions['PushFilters']['PM'])) { ?> checked="checked" <? } ?>/>Private Messages<br />
|
||||||
<? /* <input type="checkbox" name="pushfilters[]" value="Rippy" <? if(isset($PushOptions['PushFilters']['Rippy'])) { ?> checked="checked" <? } ?>/>Rippys<br /> */ ?>
|
<!--
|
||||||
|
?>
|
||||||
[<a href="user.php?action=take_push&push=1&userid=<?=$UserID?>&auth=<?=$LoggedUser['AuthKey']?>">Test Push</a>]
|
|
||||||
[<a href="wiki.php?action=article&id=1017">Wiki Guide</a>]
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="label"><strong>Rippy!</strong></td>
|
|
||||||
<td>
|
|
||||||
<select name="rippy">
|
|
||||||
<option value="On" <? if($SiteOptions['Rippy'] == 'On') { ?> selected="selected" <? } ?> >On</option>
|
|
||||||
<option value="Off" <? if($SiteOptions['Rippy'] == 'Off') { ?> selected="selected" <? } ?> >Off</option>
|
|
||||||
<option value="PM" <? if($SiteOptions['Rippy'] == 'PM' || empty($SiteOptions['Rippy'])) { ?> selected="selected" <? } ?> >Personal rippies only</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="label"><strong>Auto-save Text</strong></td>
|
|
||||||
<td>
|
|
||||||
<input type="checkbox" name="disableautosave" id="disableautosave" <? if (!empty($SiteOptions['DisableAutoSave'])) { ?>checked="checked"<? } ?> />
|
|
||||||
<label for="disableautosave">Disable reply text from being saved automatically when changing pages in a thread</label>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="label"><strong>Voting links</strong></td>
|
|
||||||
<td>
|
|
||||||
<input type="checkbox" name="novotelinks" id="novotelinks" <? if (!empty($SiteOptions['NoVoteLinks'])) { ?>checked="checked"<? } ?> />
|
|
||||||
<label for="novotelinks">Disable voting links on artist pages, collages, and snatched lists</label>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="label"><strong>Download torrents as text files</strong></td>
|
|
||||||
<td>
|
|
||||||
<input type="checkbox" name="downloadalt" id="downloadalt" <? if ($DownloadAlt) { ?>checked="checked"<? } ?> />
|
|
||||||
<label for="downloadalt">For users whose ISP block the downloading of torrent files</label>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="label"><strong>Unseeded torrent alerts</strong></td>
|
|
||||||
<td>
|
|
||||||
<input type="checkbox" name="unseededalerts" id="unseededalerts" <?=checked($UnseededAlerts)?> />
|
|
||||||
<label for="unseededalerts">Receive a PM alert before your uploads are deleted for being unseeded</label>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="colhead_dark">
|
<tr class="colhead_dark">
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<strong>User info</strong>
|
<strong>User info</strong>
|
||||||
|
Loading…
Reference in New Issue
Block a user