include("include_breadcrumb.php"); ?>
include("include_sidebar.php"); ?>
if( $_GET[confirmed] == "yes" ) { ?>
Thank you
echo "Thank you. Your race should be added within 24 hours. You will now be redirected back to the add page.
"; } else if ($confirm == 1){ ?>Add a Race: Step 2 of 2
}else if( ($confirm !=1) && ($_POST[confirm1] != 1)){ ?>Add a Race: Step 1 of 2
}else if( ($_POST[addrace] == 1) && (!$errmsg) && ($_POST[confirm1] == 1)){ ?>Thank you
} if(($confirm != 1) && ($_POST[confirm1] != 1) && $_GET[confirmed] != "yes"){ ?>If you would like to add your triathlon to our website, simply fill out the form below. Be sure to fill out every field. After filling out each field, click submit. You will then be prompted to confirm your race information before the information is sent to us.
} ?> include("../runshops/include_region_list.php"); ?> if( $_GET[confirmed] != "yes" && (($_POST[addrace] != 1) || ($errmsg) || (($confirm != 1) && ($_POST[confirm1] != 1))) ){ ?> if($_POST[deletepics] == 1){ //delete pictures uploaded $file1 = $_POST[picname1]; $file2 = $_POST[picname2]; $file3 = $_POST[picname3]; $file1 = stripslashes(str_replace("\"", "", $file1)); $file2 = stripslashes(str_replace("\"", "", $file2)); $file3 = stripslashes(str_replace("\"", "", $file3)); $file1 = "/srv/www/htdocs/trifind/racepics/$file1.img"; $file2 = "/srv/www/htdocs/trifind/racepics/$file2.img"; $file3 = "/srv/www/htdocs/trifind/racepics/$file3.img"; if(file_exists($file1)){ unlink($file1); } if(file_exists($file2)){ unlink($file2); } if(file_exists($file3)){ unlink($file3); } }?> } else { if(($_POST[addrace] == 1) && (!$errmsg) && ($_POST[confirm1] == 1)){ echo "Thank you. Your race should be added within 24 hours. You will now be redirected back to the add page.
"; echo ""; } if ($confirm == 1){ $confirm = 0; if($type == 1){ $typename = 'Triathlon'; } if($type == 2){ $typename = 'Duathlon'; } if($type == 3){ $typename = 'Other'; } if($type == 4){ $typename = 'Swim-Run'; } include("include_add_confirm.php"); } } ?>