+
+connect_errno){
+ die ('Unable to connect to database [' . $db->connect_errno . ']');
+}
+if (is_null($newuser)){
+ // this block contains the code to fill out the form
+ echo '
Back to home page ';
+include_once ('footer.php');
+?>
\ No newline at end of file
diff --git a/titlemanager.php b/titlemanager.php
new file mode 100644
index 0000000..90d8919
--- /dev/null
+++ b/titlemanager.php
@@ -0,0 +1,70 @@
+connect_errno){
+ die ('Unable to connect to database [' . $db->connect_errno . ']');
+}
+if ($_SESSION['title'] == "repeat") {
+ $_POST['title'] = "addsubtitle";
+ unset($_SESSION['title']);
+}
+if ($_SESSION['admin'] == 1) {
+ echo ' ';
+ if ($_POST['title'] == "addtitle") {
+ // included file contains all the code to add a new title
+ include_once ('includes/title-add.php');
+ } else if ($_POST['title'] == "titlesubmit") {
+ // included file contains all the code to submit a new title
+ include_once ('includes/title-submit.php');
+ } else if ($_POST['title'] == "modtitle") {
+ // included file contains all the code to edit a title
+ include_once ('includes/title-editor.php');
+ } else if ($_POST['title'] == "updatetitle") {
+ // this section doesn't require human interaction
+ include_once ('includes/title-update.php');
+ } else if ($_POST['title'] == "addsubtitle") {
+ // included file contains all code to add the title ranks and points required
+ include_once ('includes/titleranks-add.php');
+ } else if ($_POST['title'] == "titleranksubmit") {
+ // this section doesn't require human interaction
+ include_once ('includes/titleranks-submit.php');
+ } else {
+ unset($_SESSION['tid']);
+ echo 'Add titles ';
+ echo 'Modify titles
';
+ echo 'Add title ranks and points to ';
+ echo 'Edit / Delete subtitle & points (code goes here)
';
+ // now to view the last 5 title entries in the database
+ echo 'Here is the last 5 titles entered into the database, newest entry is on top: ';
+ echo '