Copy link to clipboard
Copied
I'm not sure if this situation started with the last update to Dreamweaver 19.2.1 or Mac 1OS Cantina 10.15.1 (both were upated around the same time).
When I display a webpage in in Dreamweaver (Version 19.2.1)Chrome (Version 78.0.3904.70), Firefox (Version 70.0.1) or Safari (Version 13.0.3), I receive a message success == true && $return->score > 0.5){ echo "success"; } else{ echo "Your are a Robot"; } } ?> , on the top left above the banner (see attached).
I believe it is part of the getCaptcha verification (source code included
<?php
define('SITE_KEY', '6LcabKIUAAAAAF9kieS_R7x106-65N3zdQ5Lfvcz');
define('SECRET_KEY', '6LcabKIUAAAAABwUdGJKpVdZ3vSVyloLtefgfKTd');
if($_POST){
function getCaptcha($SecretKey){
$Response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".SECRET_KEY."&response={$SecretKey}");
$Return = json_decode($Response);
return $Return;
}
$Return = getCaptcha($_POST['recaptcha_response']);
if($Return->success == true && $return->score > 0.5){
echo "success";
} else{
echo "Your are a Robot";
}
}
?>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!DOCTYPE html>
<html lang="en">
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<head>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="CAC Job Services - Find your next career opportunity today!" />
<meta name="keywords" content="jobs, career, employment, unemployed, find a job, job opportunity, accounting, accounting jobs, banking, banking jobs, construction, construction jobs, engineering, engineering jobs, environmental, environmental jobs, information technology, information technology jobs, IT, IT jobs, maintenance, maintenance jobs, manufacturing, manufacturing jobs, technicians, technician jobs">
<meta name="author" content="jacsdad" />
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<title>xxx</title>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" />
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<script src="https://code.jquery.com/jquery-3.4.0.min.js"
integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg=" crossorigin="anonymous"></script>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<link href="css/styles.css" rel="stylesheet" type="text/css">
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<script src="https://www.google.com/recaptcha/api.js?render=<?php echo SITE_KEY; ?>"></script>
<script>
grecaptcha.ready(function () {
grecaptcha.execute('6LcabKIUAAAAAF9kieS_R7x106-65N3zdQ5Lfvcz', {
action: 'homepage'
}).then(function (token) {
var recaptchaResponse = document.getElementById('recaptchaResponse');
recaptchaResponse.value = token;
});
});
</script>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
</head>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<body>
<header>
<div class="container-fluid p-0 m-0">
<img src="images/banner.png" alt="CAC Job Services Logo" id="logo" class="d-none d-md-block" />
<h1 class="h4 d-block d-md-none text-center">CAC Job Services</h1>
</div>
</header>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<nav class="navbar navbar-expand-lg bg-cac navbar-light">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mx-auto">
<li class="nav-item active">
<a class="n av-link" href="/index.php">Current Vacancies</a>
</li>
<li class="nav-item">
<a class="nav-link" id="nav-color" href="../new jobs.php">New Jobs</a>
</li>
</ul>
</div>
</nav>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<div id="container" class="container shadow mb-4 mt-4">
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<div id="job">
<section class="intro">
<h6 class="section-header">Details</h6>
<div class="data"><span class="title"><b>Job Number</b>: </span> <span class="specifics">xxx</span></div>
<div class="data"><span class="title"><b>Job Title</b>: </span><span class="specifics">xxx</span></div>
<div class="data"><span class="title"><b>Location</b>: </span><span class="specifics">xxx</span></div>
<div class="data"><span class="title"><b>Relocation Available</b>: </span><span class="specifics">Yes</span></div>
<div class="data"><span class="title"><b>Relocation Available</b>: </span><span class="specifics">No, the candidate must be local</span></div>
<div class="data"><span class="title"><b>Relocation Available</b>: </span><span class="specifics">No, the candidate must be local or close enough for a short easy move</span></div>
<div class="data"> <span class="title"><b>Relocation Available</b>: </span><span class="specifics">No, the candidate must be local or able to self-relocate</span></div>
<div class="data"><span class="title"><b>Relocation Available:</b> </span><span class="specifics">No, the candidate will work from home office and will travel to client's location</span></div>
<div class="data"><span class="title"><b>Job Type</b>: </span><span class="specifics">Permanent/Full-Time</span></div>
</section> <br>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<section class="intro">
<h6 class="section-header">Introduction</h6>
<div class="data"><p>Our client, located in xxx, is currently seeking to fill the position of xxx. If you are motivated and professional individual, who will improve the efficiency of their team, we encourage you to apply today!</p> </div>
</section>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<section class="intro">
<h6 class="section-header">Introduction</h6>
<div class="data"><span class="title"><b>Job Description</b></span>
<p class="job-description">xxx</p>
</div>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<div class="data"><span class="title"><b>Requirements</b></span>
<ul class="bullet">
<li class="bullet-disc">xxx</li>
</ul>
</div>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<div class="data"> <span class="title"><b>Responsibilities</b></span>
<ul class="bullet">
<li class="bullet-disc">xxx</li>
</ul>
</div>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<div class="data"><span class="title"><b>Competencies</b></span>
<div class="data"><p>xxx</p></div>
<ul class="bullet">
<li class="bullet-disc">xxx</li>
</ul>
</div>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
</section>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<hr class="break-90">
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<div class="actions">
<button onclick="window.history.go(-1)" style="margin-right: 12px;">Back to the previous page</button>
<button onclick="window.location = '../index.php';" class="mb-4 mr-4">
<i class="fas fa-edit"></i> Back to the job list
</button>
<button onclick="openApplication(this)" data-toggle="modal" data-target="#applicationModal">
<i class="fas fa-edit"></i> Apply
</button>
</div>
</div>
</div>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<footer class="footer font-small bg-cac">
<!-- start copyright -->
<div class="footer-copyright text-center p-3 ">
© © 2019 Copyright CAC Job Services
</div>
<!-- end copyright -->
</footer>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- ALERT: ANYTHING BEYOND THIS POINT IS IMPLEMENTING FUNCTIONALITY. DO NOT VENTURE BEYOND THIS POINT UNLESS YOU ARE AN ASSIGNED WEB DEVELOPER TASKED TO DO SO -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- start job application modal -->
<div class="modal fade" id="applicationModal" tabindex="-1" role="dialog" aria-labelledby="applicationModalLabel"
aria-hidden="true">
<!-- start modal dialog -->
<!-- note: launches a large modal as a dialog box -->
<div class="modal-dialog modal-lg" role="document">
<!-- start modal content -->
<div class="modal-content">
<!-- start modal header -->
<div class="modal-header">
<!-- start modal title -->
<h5 class="modal-title" id="applicationModalLabel"></h5>
<!-- end modal title -->
<!-- start close button -->
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
<!-- end close button -->
</div>
<!-- end modal header -->
<!-- start modal body -->
<div class="modal-body">
<!-- start form -->
<form action="../mailer.php" method="POST" enctype="multipart/form-data" autocomplete="off"
id="applicationForm">
<!-- start warning title -->
<!-- note: alerts user an asterik means the field is mandatory -->
<h5 class="text-danger">* = mandatory fields</h5>
<!-- end warning title -->
<!-- start form group -->
<!-- note: declares job number. gets value from table on homepage -->
<div class="form-group">
<label for="job-number" class="mr-4 col-form-label">Job Number:</label>
<input readonly type="text" class="form-control mr-4" id="job-number" name="job-number" />
</div>
<!-- end form group -->
<!-- start form group -->
<!-- note: declares job title. gets value from table on homepage -->
<div class="form-group">
<label for="job-title" class="mr-4 col-form-label">Job Title:</label>
<input readonly type="text" class="form-control mr-5" id="job-title" name="job-title" size="35" />
</div>
<!-- end form group -->
<!-- start form group -->
<!-- note: user input for first name -->
<div class="form-group">
<label for="fName" class="mr-4 col-form-label"><span class="text-danger">*</span>First Name:</label>
<input type="text" class="form-control mr-5" id="fName" name="fName" required />
</div>
<!-- end form group -->
<!-- start form group -->
<!-- note: user input for last name -->
<div class="form-group">
<label for="lName" class="mr-4 col-form-label"><span class="text-danger">*</span>Last Name:</label>
<input type="text" class="form-control mr-5" id="lName" name="lName" required />
</div>
<!-- end form group -->
<!-- start form group -->
<!-- note: user input for email -->
<div class="form-group">
<label for="email" class="mr-4 col-form-label"><span class="text-danger">*</span>Email:</label>
<input type="email" class="form-control mr-5" id="email" name="email" required />
</div>
<!-- end form group -->
<!-- start form group -->
<!-- note: user input for phone number -->
<div class="form-group">
<label for="phone" class="mr-4 col-form-label"><span class="text-danger">*</span>Phone:</label>
<input type="tel" class="form-control mr-5" id="phone" name="phone" pattern="^[0-9+s()]*$"
required /><span class="note">Format: +12345678910</span>
</div>
<!-- end form group -->
<!-- start form group -->
<!-- note: user input for current city residing in-->
<div class="form-group">
<label for="city" class="mr-4 col-form-label"><span class="text-danger">*</span>City of current
residence:</label>
<input type="text" class="form-control mr-5" id="city" name="city" required />
</div>
<!-- end form group -->
<!-- start form group -->
<!-- note: user input for current state/providence residing in -->
<div class="form-group">
<label for="state" class="mr-4 col-form-label"><span class="text-danger">*</span>State/Province of current
residence:</label>
<input type="text" class="form-control mr-5" id="state" name="state" required />
</div>
<!-- end form group -->
<!-- start form group -->
<!-- note: user file upload for resume -->
<div class="form-group">
<label for="resume" class="mr-4 col-form-label"><span class="text-danger">*</span>Upload Resume:</label>
<input type="file" class="form-control mr-5" id="resume" name="resume" accept=".doc, .docx, .pdf"
required />
<span class="note">Format: .doc, .docx, .pdf</span>
<input type="hidden" name="recaptcha_response" id="recaptchaResponse">
</div>
<!-- end form group -->
<!-- start close button -->
<button type="button" class="btn btn-secondary" data-dismiss="modal">
Close
</button>
<!-- end close button -->
<!-- start submit button -->
<button type="submit" id="submitApplication" class="btn btn-primary" onclick="change(this)">
Submit Application
</button>
<!-- end submit button -->
</form>
<!-- end form -->
</div>
<!-- end modal body -->
<!-- start modal footer -->
<div class="modal-footer"></div>
<!-- end modal footer -->
</div>
<!-- end modal content -->
</div>
<!-- end modal dialog -->
</div>
<!-- end modal -->
<!-- start popper scripts -->
<!-- note: popper is used for modal animations -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous">
</script>
<!-- end popper scripts -->
<!-- start bootstrap scripts -->
<!-- note: bootstrap scripts are used for theme coherence -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous">
</script>
<!-- end bootstrap scripts -->
<!-- start open modal script -->
<script>
// a function initiated when the apply button is clicked
function openApplication(button) {
// find the job div.
var jobBlock = $(button).parent().parent();
// isolate the job data
var jobData = $(jobBlock).children();
// isolate overview section
var jobOverviewSection = $(jobData[0]).children();
// isolate the job number block
var jNumBlock = $(jobOverviewSection[1]).children();
// isolate the job title block
var jTitleBlock = $(jobOverviewSection[2]).children();
// isolate the job location block
var jLocBlock = $(jobOverviewSection[3]).children();
// job number from listing overview turned into html string for submission
var jNum = $(jNumBlock[1]).text();
console.log(jNum);
// job title from listing overview turned into html string for submission
var jTitle = $(jTitleBlock[1]).html();
console.log(jTitle);
// job location from listing overview turned into html string for submission
var jLoc = $(jLocBlock[1]).html();
console.log(jLoc);
// declare the modal above as the target
var modal = $("#applicationModal");
// make modal title
modal.find(".modal-title").text("Application for Job # " + jNum);
// fill job number into form
modal.find("#job-number").val(jNum);
// fill job title into form
modal.find("#job-title").val(jTitle);
// fill job location into form
modal.find("#job-location").val(jLoc);
}
</script>
<!-- start successful submision script -->
<script>
// checks the url for an appened string r=1 if it's there, we have successfully submitted.
var result = "<?php echo $_GET['r']; ?>";
if (parseInt(result)) {
var successMessage =
'You have successfully submitted your application. We will contact you upon further review. Thank you for choosing CAC Job Services.';
// provides an alter in the browser
alert(successMessage);
}
</script>
<!-- end successful submission script -->
<!-- start single submit script -->
<script>
// a function that changes the Submit Application button to a loading spinner to ensure the button is click only once.
// note: this defends against spam and acceidental double submissions
function change(button) {
$(button).parent().append('<span id="loading-btn">Submitting application. Please wait...</span>');
$(button).hide();
setTimeout(() => {
$(button).show();
$('#loading-btn').remove();
}, 1000);
};
</script>
<!-- end single submit script -->
<!-- recaptcha script -->
<script>
grecaptcha.ready(function () {
grecaptcha.execute('<?php echo SITE_KEY; ?>', {
action: 'homepage'
}).then(function (token) {
var recaptchaResponse = document.getElementById('recaptchaResponse');
recaptchaResponse.value = token;
});
});
</script>
</body>
<!-- end body -->
</html>
<!-- end file -->
also attached). This is not causing any problems... it does not show when published to my website or when checked using MAMP.
Any thoughts?
Have something to add?