// PROOF if ($_POST['action'] == "Proof") { $aac = new AdminActionClass(); $aac->AdminActionLoop($json_gbook, 'New'); $aac->AdminActionDo($json_file); } // SPAM if ($_POST['action'] == "Mark as Spam") { $aac = new AdminActionClass(); $aac->AdminActionLoop($json_gbook, 'Spam'); $aac->AdminActionDo($json_file); } // DELETE if ($_POST['action'] == "Delete") { $aac = new AdminActionClass(); $aac->AdminActionLoop($json_gbook, 'Delete'); $aac->AdminActionDo($json_file); } // Read Guestbook AGAIN(!) from JSON File require 'json.read.admin.php'; // Create Guestbook output require 'json.output.admin.php'; $template->setTemplate('admin.html'); $template->setX('{gb_info}', $gb_info); $template->setX('{gb_entries}', $gb_entries); } else { $template->setTemplate('login.html'); } $template->getTemplate(); // Template Footer echo $tpl_footer;