writelog($actionstring, "admin"); } else { $blotter_entry = array('id' => (int) $_POST['id' . $blot['id']], 'text' => $db->escape_string($_POST['post' . $blot['id']]), 'board' => $db->escape_string($_POST['postto' . $blot['id']])); $db->updateBCW(THbcw_blotter, $blotter_entry['id'], $blotter_entry['text'], $blotter_entry['board']); } } header("Location: " . THurl . "admin.php?a=bl"); } elseif ($_GET['t'] == "b") { //echo '<pre>' . var_export($_POST,true).'</code></pre>'; if (isset($_POST['boardselect'])) { $boardnumber = $db->getboardnumber($_POST['boardselect']); if (isset($_POST['delete' . $boardnumber]) && $_POST['delete' . $boardnumber] == TRUE) { // Remove associated images delimgs($db->fragboard($boardnumber)); // Remove the DB board entry $db->removeboard($boardnumber); $actionstring = "Board delete\tid:" . $boardnumber; writelog($actionstring, "admin"); $location = THurl . "admin.php?a=b"; } else { // We're going to make an array of boards to update (with size 1) containing // assoc-arrays with board information $boards_to_update = array(); $updated_board = array(); // Get ID stuff set up $updated_board['oldid'] = $boardnumber; $updated_board['id'] = $updated_board['oldid']; $oldid = $updated_board['oldid']; //$updated_board['globalid'] = $_POST['globalid'.$oldid]; // Now that the ID stuff is set up, we can do some verification. // Make sure we don't have a folder name conflict.