Empty commit

This commit is contained in:
Git 2012-06-03 08:00:14 +00:00
parent e2284cae1c
commit 91e6660e94
3 changed files with 10 additions and 9 deletions

View File

@ -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>
<?

View File

@ -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>

View File

@ -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();
}