Please enter the event information below, it will
be approved and
posted within few hours. |
Unable to connect to the database server at this time.
" ); } else { // Select the jokes database if (! @mysql_select_db("bikerpla_dwh") ) { echo( "Unable to locate the dwh database at this time.
" ); } else { if($submit==1) { if ($_POST["name"] && $_POST["description"] && $_POST["year_from"]!="zzzz" && $_POST["month_from"]!="zzzz" && $_POST["day_from"]!="zzzz" && $_POST["year_to"]!="zzzz" && $_POST["month_to"]!="zzzz" && $_POST["day_to"]!="zzzz" && $_POST["city"] && $_POST["state"]!="zzzz" && $_POST["event_type"]!="zzzz" && $_POST["zip"] && $_POST["time_from"]!="zzzz" && $_POST["time_to"]!="zzzz" && //spam filters //substr_count(strtolower($_POST["description"]),"http")<4 && substr_count(strtolower($_POST["description"]),"index1.findvic.com")<1 && substr_count(strtolower($_POST["description"]),"index1.blinklist.com")<1 && substr_count(strtolower($_POST["description"]),"index1.lookcity.com")<1 && substr_count(strtolower($_POST["description"]),"index1.amyhunt.com")<1 && substr_count(strtolower($_POST["description"]),"index1.nthfind.com")<1 && substr_count(strtolower($_POST["description"]),"index1.alledasar.com")<1 && substr_count(strtolower($_POST["description"]),"index1.allearjah.com")<1 && substr_count(strtolower($_POST["description"]),"index1.meindies.com")<1 && substr_count(strtolower($_POST["description"]),"index1.lm4nmu.com")<1 && substr_count(strtolower($_POST["description"]),"blinklist.com")<1 && substr_count(strtolower($_POST["description"]),"index1.gefaka.com")<1 && substr_count(strtolower($_POST["description"]),"index1.porasa.com")<1 && substr_count(strtolower($_POST["description"]),"index1.noojol.com")<1 && substr_count(strtolower($_POST["description"]),"rollyo.com")<1 && substr_count(strtolower($_POST["description"]),"index1.volasa.com")<1 && substr_count(strtolower($_POST["description"]),"index1.yoptit.com")<1 && substr_count(strtolower($_POST["description"]),"index1.wiffaw.com")<1 && substr_count(strtolower($_POST["description"]),"index1.erinag.com")<1 && substr_count(strtolower($_POST["description"]),"pillstrade.com")<1 && substr_count(strtolower($_POST["description"]),"xtvtdzoahr.com")<1 && substr_count(strtolower($_POST["description"]),"[url")<1 && substr_count(strtolower($_POST["description"]),"$seq) { $v_event_id = $ccount + 1; } else { $v_event_id = $seq + 1; } //$v_event_id = $ccount+$seq; //$v_event_id++; //echo("sequence " . $v_event_id); $v_date_from = $_POST["year_from"] . "-" . $_POST["month_from"] . "-". $_POST["day_from"]; $v_date_to = $_POST["year_to"] . "-" . $_POST["month_to"] . "-". $_POST["day_to"]; $mime = $_FILES['imagefile']["type"]; if($mime=="image/jpeg" || $mime=="image/pjpeg") { clearstatcache; $image_name = "image/banner/" . $v_event_id . ".jpg"; move_uploaded_file($_FILES['imagefile']['tmp_name'], $image_name); clearstatcache; } //if(file_exists($image_name)) // { // echo("exists"); // } // else {echo("do not exists");} //'" . preg_replace('.*?(\d{3}).*?(\d{3}).*?(\d{4}).*?|[^0-9]', '$1-$2-$3', urlencode($_POST["phone"])) . "', $insert = mysql_query("INSERT INTO EVENT_PROC(EVENT_ID, NAME, DESCRIPTION, URL, EMAIL, PHONE, CONTACT, DATE_FROM, DATE_TO, TIME_FROM, TIME_TO, ADDRESS, CITY, STATE, ZIP, EVENT_TYPE, HEAR_ABOUT_US, PAYMENT_EMAIL, IP) VALUES('" . $v_event_id . "', '" . urlencode(ucwords(strtolower(str_replace("''", "~~~" , $_POST["name"])))) . "', '" . urlencode(str_replace("'", "''", str_replace("''", "~~~" , $_POST["description"]))) . "', '" . urlencode($_POST["url"]) . "', '" . urlencode($_POST["email"]) . "', '" . urlencode($_POST["phone"]) . "', '" . urlencode(ucwords(strtolower($_POST["contact"]))) . "', '" . $v_date_from . "', '" . $v_date_to . "', '" . $_POST["time_from"] . "', '" . $_POST["time_to"] . "', '" . urlencode(ucwords(strtolower($_POST["address"]))) . "', '" . urlencode(ucwords(strtolower($_POST["city"]))) . "', '" . $_POST["state"] . "', '" . urlencode($_POST["zip"]) . "', '" . $_POST["event_type"] . "', '" . $_POST["hear_about_us"] . "', '" . urlencode($_POST["payment_email"]) . "', '" . $REMOTE_ADDR . "')"); //echo($insert); } else { $v_refill = 1; $err = 1; } } } } mysql_close($dbcnx); ?>Your submission failed, please check the following:
1. Make sure that all the fields in Red are populated correctly.
2. Make sure that there are no HTML tags in the description.
3. Make sure that the format of the fileds is correct.
4. Remove any none-alphanumeric characters from the event name("&', etc).
5. Remove any & and ' from the event description.
"); $headers = 'From: BikerPlaza.com - Event Submission Failure
Thank you for your event submission
Your event will be approved and listed within 24 hours.
Upgrade your event listing to Premium Listing.
Click here to learn more.
Thank you for your event submission
To see a list of Motorcycle Event Vendors in your area click here
"); echo(""); */ exit; } } ?>
Please enter the event information below, it will
be approved and
posted within few hours. |