{"id":"dmdbql","deleted":false,"future_paste":false,"expired":false,"language":"php","created_at":"2018-07-06 16:07:00","expires_at":null,"content":"<?php\r\n\terror_reporting(-1);\r\n\r\n\t$postNo = $_GET['post'];\r\n\t$boardI = $_GET['board'];\r\n\r\n\trequire(\"..\/settings.php\");\r\n\trequire('html.php');\r\n\r\n\t$db = new mysqli(TINYIB_DBHOST, TINYIB_DBUSERNAME, TINYIB_DBPASSWORD, TINYIB_DBNAME, TINYIB_DBPORT);\r\n\t$db->set_charset('utf-8');\r\n\r\n\tif (!$db) {\r\n\t\techo \"Error ({$db->connect_errno}): {$db->connect_error}\";\r\n\t\texit(1);\r\n\t}\r\n\r\n\t$qryStr = \"select * from {$boardI}_posts where id = {$postNo}\";\r\n\r\n\t$res = $db->query($qryStr);\r\n\twhile ($row = $res->fetch_assoc()) {\r\n\t\techo buildPost($row, $row['parent']);\r\n\t}\r\n?>\r\n"}