require $_SERVER['DOCUMENT_ROOT'] . '/includes/common.php';
$title = "Clint L. Downing - Front End and Full Stack Web Developer - Web Designer UX UI";
$linkedin_description = "Please click the "View" Button to view the Online Live Version of my resume!";
$admin_code = '6284';
$enter_name_for_basic = FALSE;
$invitation_codes = [
"6284",
"adw",
"beacon-old",
"tentek",
"cfs",
"jbc",
"titus",
"comtech",
"insight",
"greenkey",
"fusion",
"lanebryant",
"medsphere",
"emitti",
"nexient",
"manifest",
"modis-ben",
//"perennial",
"roberthalf",
//"facebook",
"hondros",
"adamh",
"kolbykappes",
"lightwell",
"modis",
"nep",
"talentdash",
"icc",
"state",
"vs",
"jessicahurley",
"improving",
"fahlgrenmortine",
//"matthewsnyder",
"jimmyduffy",
"michaelvessells",
"maggieelinsky",
"brooksource",
//"mattdye",
"tracyrood",
"bobmalik",
"spheiffer@teksystems.com",
//"hilary.mccafferty@rht.com",
//"deepa.naveen@lightwellinc.com",
//"jessica.prince@randstadusa.com",
"onshore",
"comrise",
"gpac",
"embrace",
"h3tech",
"netimpact",
"burtch",
"acrt",
"yellow",
"beacon-pre-230210",
"hays",
"zerosum",
"beacon",
"hnm",
"akkodis",
"experis",
"ranger",
"unitedit",
"sedgwick"
];
function RequestCode ( $link_text ) {
echo AntiBot::runEmailProtector (
'clint',
'downingdev.com',
'Resume Invitation Code Request&body=Hello! I am interested in seeing your resume! Please provide a resume invitation code. Thank you.',
$link_text
);
}
function CreateMessage ( $type ) {
global $invitation_code, $authorized;
if ( $type == 'full' ){
if ( $invitation_code && ! $authorized ) {
echo "The invitation code you entered \"" . $invitation_code . "\" is not (or no longer) valid.";
} elseif ( $invitation_code === '' ) {
RequestCode('Please be sure to enter an invitation code to view the FULL resume.
Otherwise, you may request one now by clicking here!');
}
} else {
if( isset ( $_GET['submit_name'] ) && isset ( $_GET['name'] ) ){
if ( $_GET['submit_name'] == "View BASIC Resume" && strlen ( $_GET['name'] ) < 2 ) {
echo "Please enter your name or company!";
}
}
}
}
function IsMe ( $user_entry , $admin_code ) {
$is_me =
( strpos( $user_entry , $admin_code ) !== FALSE ) ||
( isset($_COOKIE['dev']) && $_COOKIE['dev'] === 'dev' );
return $is_me;
}
if ( $enter_name_for_basic ) {
$submit_name = isset ( $_GET['submit_name'] ) ? $_GET['submit_name'] : NULL ;
$version = $submit_name == "View BASIC Resume" ? 'basic' : NULL ;
} else {
$version = isset ( $_GET['version'] ) ? $_GET['version'] : NULL ;
}
if ( $version == 'basic' ) {
$name = isset ( $_GET['name'] ) ? $_GET['name'] : NULL ;
$is_name_entered = strlen ( $name ) > 1;
if ( $enter_name_for_basic && $is_name_entered || $enter_name_for_basic == FALSE ) {
General::redirect_to( "index.php?version=" . $version . "&name=" . $name );
}
}
$invitation_code = $_SESSION['invitation_code'] = isset ( $_GET['invitation_code'] ) ? str_replace ( " " , "" , strtolower ( $_GET['invitation_code'] ) ) : NULL ;
$is_me = IsMe ( $invitation_code , $admin_code );
$is_me_code_only = $is_me && strlen($admin_code) == strlen($invitation_code);
$cleaned_invitation_code = $is_me ? str_replace ( $admin_code , '' , $invitation_code ) : $invitation_code ;
$path_file = "authorizations/" . $cleaned_invitation_code . "/";
$code_authorized =
in_array ( $cleaned_invitation_code , $invitation_codes ) ||
( is_dir( $path_file ) && !is_null($cleaned_invitation_code) && !empty(trim($cleaned_invitation_code)));
$authorized = $_SESSION['authorized'] = $code_authorized || ( $is_me && $code_authorized ) || $is_me_code_only ? TRUE : FALSE ;
if ( $authorized ) {
General::redirect_to("index.php?version=full&invitation_code=" . $invitation_code);
}
$datetime = new DateTime(NULL, new DateTimeZone('America/New_York'));
$copyyear = $datetime->format('Y');
?>
OR