prepare("DELETE FROM emotes WHERE id = ?"); $stmt->execute([$id]); $db = null; array_map("unlink", glob("$path/*.*")); rmdir($path); } include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/images.php"; $max_width = CONFIG['emote']['maxsizex']; $max_height = CONFIG['emote']['maxsizey']; if ($_SERVER['REQUEST_METHOD'] != "POST") { include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; echo '' ?>
You can just upload, btw. Anything you want.