". stripslashes($HTTP_POST_VARS['title']) . ". Your request was submitted successfully for administrator approval. Make another change, add a new venue, or click here to return to the main page.

"; } } elseif(!$aErrors) { $oEnt = new Entity(); $oEnt->entity_title = $HTTP_POST_VARS['title']; $oEnt->cat_id = $HTTP_POST_VARS['catid']; $oEnt->entity_order = 100; $oEnt->address = $HTTP_POST_VARS['address']; $oEnt->city = $HTTP_POST_VARS['city']; $oEnt->state = $HTTP_POST_VARS['state']; $oEnt->phone = $HTTP_POST_VARS['phone']; $oEnt->zip = $HTTP_POST_VARS['zip']; $oEnt->phone = $HTTP_POST_VARS['phone']; $oEnt->website = ''; $oEnt->choice = 0; $oEnt->partner = 0; $oEnt->views = 0; $oEnt->status = 3; $oEnt->kind = 1; $oEnt->detail = $HTTP_POST_VARS['detail']; $oEnt->html = ''; if($oEnt->create()) { $msg = "". stripslashes($HTTP_POST_VARS['title']) . " was submitted successfully for inclusion in Branson Ratings pending administrator approval (usually takes several hours). Add another below if you wish, or click here to return to the main page.

"; } else { $aErrors = $oEnt->aErrors; } } } if($msg) { //prepare email to send to admin $subject = "VENUE SUBMISSION"; if($HTTP_POST_VARS['update']) { $text .= "UPDATE ID: ".$HTTP_POST_VARS['venueID']."\n\n"; $subject .= " UPDATE"; } $text .= "SUBMITTED BY: ".$HTTP_POST_VARS['user']."\n"; $text .= "EMAIL: ".$HTTP_POST_VARS['email']."\n\n"; $text .= "TITLE: ".stripslashes($HTTP_POST_VARS['title'])."\n"; $text .= "CATID: ".$HTTP_POST_VARS['catid']."\n"; $text .= "ADDRESS: ".$HTTP_POST_VARS['address']."\n"; $text .= "CITY: ".$HTTP_POST_VARS['city']."\n"; $text .= "STATE: ".$HTTP_POST_VARS['state']."\n"; $text .= "ZIP: ".$HTTP_POST_VARS['zip']."\n"; $text .= "PHONE: ".$HTTP_POST_VARS['phone']."\n\n"; $text .= "DETAIL: ".stripslashes($HTTP_POST_VARS['detail'])."\n\n"; $header = "From: Branson Ratings \n"; $header .= "Reply-To: Branson Ratings \n\n"; mail("admin@bransonforum.com",$subject,$text,$header); $HTTP_POST_VARS['title'] = ''; $HTTP_POST_VARS['address'] = ''; $HTTP_POST_VARS['phone'] = ''; $HTTP_POST_VARS['detail'] = ''; $HTTP_POST_VARS['update'] = ''; $HTTP_POST_VARS['venueID'] = ''; } // // Lets build a page ... // $page_title = "Add a Branson Venue"; include($phpbb_root_path . 'includes/page_header.'.$phpEx); $template->set_filenames(array( 'body' => 'addvenue_body.tpl') ); $template->pparse('body'); if($aErrors || $msg) { $text = $msg; if($aErrors) $text = $aErrors; printMsg($text); } ?>
Add Branson Venue
Instructions:

If you are submitting a new Branson venue, please fill out as much of the information below as possible. If you would like to update an existing Branson venue, please select which venue you are updating from the list below:

> Yes, I would like to update the following:

Your Name :
Your Email: (Your name and email are needed only if clarification is needed)
Category:
Venue Name :
Address:
City:
State:
Zip:
Phone:
Description: