include("include_breadcrumb.php"); ?>
// check the db for similar matches
$name_tag = strtolower(str_replace(" ","", $_POST['advertiser']));
$name_superstart = substr($name_tag, 0, 4);
$name_superend = substr($name_tag, -4, 4);
$name_supermid = substr($name_tag, ((strlen($name_tag))/2 - 2), 4);
//echo $name_supermid;
$match_sql = "SELECT * FROM io_account WHERE (account_advertiser LIKE '%".$name_superstart."%' OR account_advertiser LIKE '%".$name_superend."%' OR account_advertiser LIKE '%".$name_supermid."%')";
//echo $match_sql;
$match_fetch = mysql_query($match_sql) OR die(mysql_error());
$i = false;
while ($match_row = mysql_fetch_array($match_fetch)) {
similar_text($match_row['account_name'], $_POST['name'], $percent);
if ($percent >= 50) {
if ($i == false) {
echo ("Duplicate Alert: ");
}
if ($i == true) {echo ("
");} echo ($match_row['account_name']."(Similarity: ".(round($percent, 0))."%)"); $i = true; } } if ($i == true) { echo(" "); }
?>
}
//end confirmation form
?>
include("include_sidebar.php"); ?>
if( $insert_success == true || $_GET[confirmed] == "yes" ) { ?>
Thank you
Thank you. The advertiser account information for echo ("$advertiser"); ?> has been entered. You will now be redirected to the IO Insertion Order Add page.
$jump_sql = "SELECT * FROM io_account WHERE account_id = \"".$advertiser."\" LIMIT 1"; $jump_fetch = mysql_fetch_array(mysql_query($jump_sql)) OR die(mysql_error()); $account_id = $jump_fetch[account_id]; ?> $meta_jump = " } else if( $confirm_account == true ) { ?>Admin: Create Advertiser Account: Step 2 of 2
}else if( ($confirm_account != true) || ($_POST[add_account] != true) ){ ?>Admin: Create Advertiser Account: Step 1 of 2
if (!$errmsg) { ?>In order to make advertisement insertion order requests, you need to create an advertiser account which will be tagged to your forum user profile. 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 information before the information is sent to us.
} else { ?>echo $errmsg; ?>
} ?> } // begin insert form if( (($_POST[add_account] != true) || ($errmsg) || (($confirm_account != true) && ($_POST[insert_account] != true))) && $_GET[confirmed] != "yes") { ?> } // end insert form // begin confirmation form if($confirm_account == true){ ?> Please confirm your information. If everything is correct, click the submit button. Otherwise, you may click the edit button to change your information before submitting.Company/Advertiser Name
echo stripslashes($_POST[advertiser]); ?>
");} echo ($match_row['account_name']."(Similarity: ".(round($percent, 0))."%)"); $i = true; } } if ($i == true) { echo("
Contact Name
echo stripslashes(htmlspecialchars($_POST[contact])); ?>
Forum ID
echo stripslashes(htmlspecialchars($_POST[forumid])); ?>
Address
echo stripslashes(htmlspecialchars($_POST[address])); ?>
Address 2
echo stripslashes(htmlspecialchars($_POST[address_two])); ?>
City
echo stripslashes(htmlspecialchars($_POST[city])); ?>
State
echo stripslashes(htmlspecialchars($_POST[state])); ?>
Zip
echo stripslashes(htmlspecialchars($_POST[zip])); ?>
Phone
echo stripslashes(htmlspecialchars($_POST[phone])); ?>
Email
echo stripslashes(htmlspecialchars($_POST[email])); ?>
Other Contacts
echo $_POST[other]; ?>
Invoice Via
$certification_list = "";
foreach($_POST[invoice] as $value) {
if ($value == "0") $certification_list = $certification_list."Snail, ";
if ($value == "1") $certification_list = $certification_list."Email";
};
$certification_list = rtrim($certification_list, ', ');
echo $certification_list;
?>
General Info
echo strip_tags(stripslashes($_POST[notes])) ?>