diff --git a/animation.php b/animation.php index 372d2b9..51884fb 100644 --- a/animation.php +++ b/animation.php @@ -27,11 +27,18 @@ if (!isset($_GET['board']) || !isset($_GET['id'])) { die(); } + + /** * Require the configuration file */ require 'config.php'; +$imagesize = $tc_db->GetAll("SELECT `image_w`, `image_h` FROM `posts` WHERE `file` = " . $tc_db->qstr($_GET['id']) . " LIMIT 1"); + +$width = $imagesize[0]['image_w']; +$height = $imagesize[0]['image_h']; + ?> @@ -39,10 +46,10 @@ require 'config.php'; View Animation - + - - + +