MEME
This commit is contained in:
parent
06ad8d3627
commit
2eea8f2e88
@ -183,9 +183,9 @@ function fileExists(int $fileId, bool $onlyMine = true): bool|string
|
|||||||
if (!$onlyMine && !isAdmin()) {
|
if (!$onlyMine && !isAdmin()) {
|
||||||
$onlyMine = true;
|
$onlyMine = true;
|
||||||
}
|
}
|
||||||
echo "whyya";
|
|
||||||
$query = $onlyMine ? 'SELECT Path FROM Files WHERE ID = ? AND UploadedBy = ?' : 'SELECT Path FROM Files WHERE ID = ?';
|
$query = $onlyMine ? 'SELECT Path FROM Files WHERE ID = ? AND UploadedBy = ?' : 'SELECT Path FROM Files WHERE ID = ?';
|
||||||
$stmtfileexists = $mysqli->prepare($query);
|
$stmtfileexists = $mysqli->prepare($query);
|
||||||
|
echo "aaddaad";
|
||||||
if ($onlyMine) {
|
if ($onlyMine) {
|
||||||
$stmtfileexists->bind_param('ii', $fileId, $_SESSION['id']);
|
$stmtfileexists->bind_param('ii', $fileId, $_SESSION['id']);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user