// INITIALIZE PAGE include_once($_SERVER["DOCUMENT_ROOT"] . "/phplib/init.php"); include_once(PHPLIB . "mypeek_functions/libraries.php"); // Include Header File include_once(HEADER . "login.php"); // HANDLE FORMS switch( $_POST["action"] ) { case "validate": $errors = check_validate_serial_number(trim($_POST["email"]), str_replace("-","",trim($_POST["serialnumber"]))); if( !$errors ) { $validation = validate_serial_number(trim($_POST["email"]), str_replace("-","",trim($_POST["serialnumber"]))); } break; default: break; } // Set Page Specific Vars $page_title = "Validate Product"; $breadcrumb = "
Use this form to validate contracts in boxed products shipped physically. \n"); print("Enter the email address associated with the purchase and the contract ID of \n"); print("the product purchased.
\n"); print("\n"); } else { print("Use this form to validate serial numbers in boxed products shipped physically. \n"); print("Enter the email address associated with the purchase and the serial number of \n"); print("the product purchased.
\n"); print("\n"); } } else { print("\n"); if( $validation["error"] ) { print($validation["error"]); } elseif( $validation["confirmation"] ) { print($validation["confirmation"]); } print("
\n"); if(!$session_logins["account_id"]) { print("\n"); print("Login to MyPeek >>\n"); print("
\n"); } } ?> // INCLUDE SKIN LAYOUT include(LAYOUT . "end_page_no_nav.php"); ?>