drydock imageboard script (http://code.573chan.org/) File: drydock.php Description: This is used to access the site. Unless otherwise stated, this code is copyright 2008 by the drydock developers and is released under the Artistic License 2.0: http://www.opensource.org/licenses/artistic-license-2.0.php */ //Configure script still here? Crap, this isn't good, let's deny access, just in case someone didn't read the directions if (file_exists("install.php") && DDDEBUG != 1) { if (file_exists("config.php")) { die("This script cannot be run with the configuration utility still sitting here! Please delete the configuration scripts (install.php and upgrade_install.php)!"); } else { header("Location: install.php"); } } //Like above, but with the upgrade script if (file_exists("upgrade_install.php") && DDDEBUG != 1) { die("This script cannot be run with the upgrade utility still sitting here! Please delete the upgrade script!"); } require_once "common.php"; $db = new ThornDBI(); //Drop them out right now if they are banned! - tyam if ($db->checkban()) { THdie("PObanned"); } else { //whole file if (isset($_GET['b']) == true) { $boardid = $db->getboardnumber($_GET['b']); //Does the board even exist? if ($boardid == null || $boardid < 0) {