From dec0955d57b5f1ffd741d053345c8eca471a7831 Mon Sep 17 00:00:00 2001 From: Harrison Date: Sun, 23 May 2010 03:28:02 +0000 Subject: [PATCH] Oekakis with different dimensions now display their animations correctly git-svn-id: http://kusabax.cultnet.net/svn/repo/stable@244 73d99b7e-4f53-4972-b7b7-2ecd3c4d89ee --- animation.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 - + - - + +