mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Admin/Screenshots
* restrict ability to irrevocably delete files to U_GROUP_ADMIN Pages/Quests * be a tad more lenient when filtering excessive sources
This commit is contained in:
@@ -218,7 +218,7 @@ class AjaxAdmin extends AjaxHandler
|
||||
foreach ($this->_get['id'] as $id)
|
||||
{
|
||||
// irrevocably remove already deleted files
|
||||
if (DB::Aowow()->selectCell('SELECT 1 FROM ?_screenshots WHERE status & ?d AND id = ?d', CC_FLAG_DELETED, $id))
|
||||
if (User::isInGroup(U_GROUP_ADMIN) && DB::Aowow()->selectCell('SELECT 1 FROM ?_screenshots WHERE status & ?d AND id = ?d', CC_FLAG_DELETED, $id))
|
||||
{
|
||||
DB::Aowow()->query('DELETE FROM ?_screenshots WHERE id = ?d', $id);
|
||||
if (file_exists(sprintf($path, 'pending', $id)))
|
||||
|
||||
@@ -551,7 +551,7 @@ class QuestPage extends GenericPage
|
||||
.. filter sources for low drop chance?
|
||||
|
||||
for the moment:
|
||||
if an item has >10 sources, only display sources with >90% chance
|
||||
if an item has >10 sources, only display sources with >80% chance
|
||||
always filter sources with <1% chance
|
||||
*/
|
||||
|
||||
@@ -570,7 +570,7 @@ class QuestPage extends GenericPage
|
||||
if ($data['percent'] < 1.0)
|
||||
continue;
|
||||
|
||||
if ($nSources > 10 && $data['percent'] < 90.0)
|
||||
if ($nSources > 10 && $data['percent'] < 80.0)
|
||||
continue;
|
||||
|
||||
switch ($file)
|
||||
|
||||
Reference in New Issue
Block a user