mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 10:56:26 +00:00
Empty commit
This commit is contained in:
parent
e2284cae1c
commit
91e6660e94
@ -222,7 +222,9 @@
|
||||
}
|
||||
if (check_perms('site_collages_subscribe')) { ?>
|
||||
<a href="userhistory.php?action=subscribed_collages">[My Subscribed Collages]</a>
|
||||
<? }
|
||||
<? } ?>
|
||||
<a href="bookmarks.php?type=collages">[Bookmarked Collages]</a>
|
||||
<?
|
||||
if (check_perms('site_collages_recover')) { ?>
|
||||
<a href="collages.php?action=recover">[Recover collage]</a>
|
||||
<?
|
||||
|
@ -29,9 +29,9 @@
|
||||
<td>
|
||||
<select name="category">
|
||||
<?
|
||||
if (!check_perms('site_collages_delete')) { array_shift($CollageCats); }
|
||||
foreach($CollageCats as $CatID=>$CatName) { ?>
|
||||
<option value="<?=$CatID?>" <? if($CatID == $CategoryID) { echo ' selected="selected"'; }?>><?=$CatName?></option>
|
||||
foreach($CollageCats as $CatID=>$CatName) {
|
||||
if (!check_perms('site_collages_delete') && $CatID == 0) { continue; } // Only mod-type get to make things personal ?>
|
||||
<option value="<?=$CatID?>" <? if($CatID == $CategoryID) { echo ' selected="selected"'; }?>><?=$CatName?></option>
|
||||
<? } ?>
|
||||
</select>
|
||||
</td>
|
||||
|
@ -83,6 +83,9 @@
|
||||
//--------------- Validate data in edit form -----------------------------------//
|
||||
|
||||
$DB->query('SELECT UserID, Remastered, RemasterYear, FreeTorrent FROM torrents WHERE ID='.$TorrentID);
|
||||
if($DB->record_count() == 0) {
|
||||
error(404);
|
||||
}
|
||||
list($UserID, $Remastered, $RemasterYear, $CurFreeLeech) = $DB->next_record(MYSQLI_BOTH, false);
|
||||
|
||||
if($LoggedUser['ID']!=$UserID && !check_perms('torrents_edit')) {
|
||||
@ -93,13 +96,9 @@
|
||||
error(403);
|
||||
}
|
||||
|
||||
$DB->query("SELECT UserID FROM torrents WHERE ID = ".$TorrentID);
|
||||
list($UploaderID) = $DB->next_record();
|
||||
|
||||
|
||||
if($Properties['UnknownRelease'] && !($Remastered == '1' && !$RemasterYear) && !check_perms('edit_unknowns')) {
|
||||
//It's Unknown now, and it wasn't before
|
||||
if($LoggedUser['ID'] != $UploaderID) {
|
||||
if($LoggedUser['ID'] != $UserID) {
|
||||
//Hax
|
||||
die();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user