Mercurial > hg > fapweb
diff msite.inc.php @ 1120:b2bca5f6d0ff default tip
Cosmetic cleanup: remove trailing whitespace.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 13 Dec 2020 13:47:13 +0200 |
parents | 29206517d32e |
children |
line wrap: on
line diff
--- a/msite.inc.php Mon Oct 14 10:54:32 2019 +0300 +++ b/msite.inc.php Sun Dec 13 13:47:13 2020 +0200 @@ -419,7 +419,7 @@ else echo "<td></td>"; } - + if ($tr) echo "</tr>\n"; } @@ -536,7 +536,7 @@ if (($tmp = stGetSetting("userKeyCase", NULL)) !== NULL) $keyChars = strtoupper($keyChars); - + while (TRUE) { // Generate one randomized keycode @@ -706,7 +706,7 @@ break; } - $extra = + $extra = "GROUP BY entries.id ". "ORDER BY votesum DESC"; break; @@ -775,7 +775,7 @@ } } } - + return $out; } @@ -976,7 +976,7 @@ stGetSetting("previewThumbType"), stGetSetting("thumbnailSubDir")); break; - + case EFILE_AUDIO: foreach (stGetSetting("sampleTypes") as $type => $fdata) { @@ -1185,13 +1185,13 @@ return stFileError($userID, "Path '".$dstPath."' for compo ID #".$entry["compo_id"]." does not exist.", "The directory for entry's compo does not exist!"); - + $dstPerms = fileperms($dstPath); if (($dstPerms & 0x4000) === 0) return stFileError($userID, "Path for entry's compo '".$dstPath."' is not a directory.", "Path for entry's compo is not a directory?"); - + $needPerms = 0x0100 | 0x0080 | 0x0040; if (($dstPerms & $needPerms) !== $needPerms) return stFileError($userID, @@ -1267,7 +1267,7 @@ if ($uploadType == "preview" && !isset($fileInfo["type"])) return stError("Preview file upload is not one of the supported preview file types."); - + // Get original extension if (($fileExt = $fileInfo["fext"]) === FALSE) { @@ -1311,7 +1311,7 @@ "INSERT INTO entries (name,author,compo_id,info,notes,preview_type,utime,owner_id) VALUES (%S,%S,%d,%Q,%Q,%D,%d,%d)", "name", "author", $compo["id"], "info", "notes", "preview_type", time(), $uid); break; - + case COMPO_POINTS: case COMPO_ASSIGN: $sql = stPrepareSQL( @@ -1333,7 +1333,7 @@ // Delete votes for the entry $sql = stPrepareSQL("DELETE FROM votes WHERE entry_id=%d", $id); stExecSQLCond($sql, "OK, entry ".$id." votes deleted."); - + // Mark related files to be deleted $sql = stPrepareSQL("UPDATE files SET deleted=%d WHERE entry_id=%d", 1, $id); stExecSQLCond($sql, "OK, entry ".$id." files marked.");