diff options
Diffstat (limited to 'system/emotes/verdict.php')
| -rw-r--r-- | system/emotes/verdict.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/emotes/verdict.php b/system/emotes/verdict.php index 07e1300..2c53fd0 100644 --- a/system/emotes/verdict.php +++ b/system/emotes/verdict.php @@ -4,7 +4,7 @@ include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; -if (!MOD_EMOTES_APPROVE) { +if (!CONFIG['mod']['approve']) { generate_alert("/404.php", "Manual emote approval is disabled", 405); exit; } @@ -22,7 +22,7 @@ if (!isset($_POST["id"], $_POST["action"])) { $id = str_safe($_POST["id"], 32); $action = $_POST["action"]; -$db = new PDO(DB_URL, DB_USER, DB_PASS); +$db = new PDO(CONFIG['database']['url'], CONFIG['database']['user'], CONFIG['database']['pass']); $stmt = $db->prepare("SELECT id, code, uploaded_by FROM emotes WHERE id = ? AND visibility = 2 LIMIT 1"); $stmt->execute([$id]); |
