16. Philemon pet shop is one of the best pet shop in the area. A
variety of animal supplies and pet accessories are also sold The
products sold include: food, treats, toys, collars, leashes, cat
litter, cages and aquariums.
Back to Top
Name:
Enter Name
Email:
Enter Email
Submitting Form...
The server encountered an error.
Form received.
Submit
Message:
Enter Your Message
17. copyright @philemonashop
Philemona pet shop
We value your feedback
Visit us lilplaza
site/muse_manifest.xml
site/scripts/form-u829.php
<?php
/*
If you see this text in your browser, PHP is not configured
correctly on this hosting provider.
Contact your hosting provider regarding PHP configuration for
your site.
PHP file generated by Adobe Muse CC 2017.0.2.363
*/
require_once('form_process.php');
18. $form = array(
'subject' => 'Home Form Submission',
'heading' => 'New Form Submission',
'success_redirect' => '',
'resources' => array(
'checkbox_checked' => 'Checked',
'checkbox_unchecked' => 'Unchecked',
'submitted_from' => 'Form submitted from website:
%s',
'submitted_by' => 'Visitor IP address: %s',
'too_many_submissions' => 'Too many recent
submissions from this IP',
'failed_to_send_email' => 'Failed to send email',
'invalid_reCAPTCHA_private_key' => 'Invalid
reCAPTCHA private key.',
'invalid_reCAPTCHA2_private_key' => 'Invalid
reCAPTCHA 2.0 private key.',
'invalid_reCAPTCHA2_server_response' => 'Invalid
reCAPTCHA 2.0 server response.',
20. 'format' => 'Field 'Email' has an invalid
email.'
)
),
'custom_U840' => array(
'order' => 3,
'type' => 'string',
'label' => 'Message',
'required' => false,
'errors' => array(
)
)
)
);
process_form($form);
?>
site/scripts/form_check.php
<?php
/*
If you see this text in your browser, PHP is not configured
correctly on this hosting provider.
Contact your hosting provider regarding PHP configuration for
your site.
21. PHP file generated by Adobe Muse CC 2017.0.2.363
*/
require_once('form_throttle.php');
if ($_SERVER['REQUEST_METHOD'] == 'GET')
{
$supportResponse = checkSupport();
if (!empty($_GET['mode']) and $_GET['mode'] == 'verify')
{
echo $supportResponse;
exit;
}
echo('<!DOCTYPE html><html><head><title>Muse PHP
Diagnostics</title>');
echo('<style type="text/css">body { font: 14pt Myriad Pro,
Arial, Helvetica;}ul { list-style-type: none; }');
22. echo(' h1 { background-color: #CCCCCC; padding: 2px;}
label {display: inline-block; width: 100px; vertical-align:
top;}');
echo('.good:before { color: green; content:'27130020';}
.bad:before {color: red; content: 'X0020';}');
echo('</style></head><body>');
echo('<h1>Diagnostics</h1><ul>');
if (strrpos($supportResponse,'PHP:0;') === false)
{
echo('<li class="bad">PHP version too low');
}
else
{
echo('<li class="good">PHP version ok');
}
if (strrpos($supportResponse,'Mail:0;') === false)
{
echo('<li class="bad">Mail configuration: PHP mail()
configured incorrectly on server. Form will not be able to send
email.');
23. }
else
{
echo('<li class="good">Mail configuration: No
known problems detected with php mail configuration.');
}
if (strrpos($supportResponse,'SQL:1;') !== false)
{
echo('<li class="bad">Spam control: SQLite not
found. Form may send email successfully, but limiting spam
submissions by IP address will not work.');
}
else if (strrpos($supportResponse,'SQL:8;') !== false)
{
echo('<li class="bad">Spam control: Cannot write to
scripts directory. Form may send email successfully, but
limiting spam submissions by IP address will not work.');
}
else if (strrpos($supportResponse,'SQL:0;') === false)
24. {
echo('<li class="bad">Spam control: SQL
configuration problem. Form may send email successfully, but
limiting spam submissions by IP address will not work.');
}
else
{
echo('<li class="good">Spam control: Emails will be
limited to 25 in 2 hours from the same IP address.');
}
echo('</ul><br/><br/>');
echo('</body></html>');
}
$phpError = '';
function phpErrorHandler($errno, $errstr, $errfile, $errline)
{
global $phpError;
if (!(error_reporting() & $errno))
29. /*
If you see this text in your browser, PHP is not configured
correctly on this hosting provider.
Contact your hosting provider regarding PHP configuration for
your site.
PHP file generated by Adobe Muse CC 2017.0.2.363
*/
require_once('form_throttle.php');
function process_form($form) {
if ($_SERVER['REQUEST_METHOD'] != 'POST')
die(get_form_error_response($form['resources']['unknown
_method']));
if
(formthrottle_too_many_submissions($_SERVER['REMOTE_A
DDR']))
die(get_form_error_response($form['resources']['too_many
30. _submissions']));
// will die() if there are any errors
check_required_fields($form);
// will die() if there is a send email problem
email_form_submission($form);
}
function get_form_error_response($error) {
return get_form_response(false, array('error' => $error));
}
function get_form_response($success, $data) {
if (!is_array($data))
die('data must be array');
$status = array();
32. array_push($errors, array('field' => $field,
'message' => $properties['errors']['format']));
}
if (!empty($errors))
die(get_form_error_response(array('fields' =>
$errors)));
}
function check_field_value_format($form, $field, $properties) {
$value = get_form_field_value($field, $properties,
$form['resources'], false);
switch($properties['type']) {
case 'checkbox':
case 'string':
case 'captcha':
// no format to validate for those fields
return true;
33. case 'checkboxgroup':
if (!array_key_exists('optionItems', $properties))
die(get_form_error_response(sprintf($form['resources']['in
valid_form_config'], $properties['label'])));
// If the value received is not an array, treat it as
invalid format
if (!isset($value))
return false;
// Check each option to see if it is a valid value
foreach($value as $checkboxValue) {
if (!in_array($checkboxValue,
$properties['optionItems']))
return false;
}
return true;
34. case 'radiogroup':
if (!array_key_exists('optionItems', $properties))
die(get_form_error_response(sprintf($form['resources']['in
valid_form_config'], $properties['label'])));
//check list of real radio values
return in_array($value,
$properties['optionItems']);
case 'recaptcha':
if (!array_key_exists('recaptcha', $form) ||
!array_key_exists('private_key', $form['recaptcha']) ||
empty($form['recaptcha']['private_key']))
die(get_form_error_response($form['resources']['invalid_re
CAPTCHA_private_key']));
$resp =
recaptcha_check_answer($form['recaptcha']['private_key'],
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
return $resp->is_valid;
35. case 'recaptcha2':
if (!array_key_exists('recaptcha2', $form) ||
!array_key_exists('private_key', $form['recaptcha2']) ||
empty($form['recaptcha2']['private_key']))
die(get_form_error_response($form['resources']['invalid_re
CAPTCHA2_private_key']));
$resp =
recaptcha2_check_answer($form['recaptcha2']['private_key'],
$_POST["g-recaptcha-response"],
$_SERVER["REMOTE_ADDR"]);
return $resp["success"];
case 'email':
return 1 == preg_match('/^[a-z0-
9!#$%&'*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&'*+/=?^_`{|}~-
]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-
]*[a-z0-9])?$/i', $value);
case 'radio': // never validate the format of a single
radio element; only the group gets validated
default:
36. die(get_form_error_response(sprintf($form['resources']['in
valid_field_type'], $properties['type'])));
}
}
/**
* Returns an object with following properties:
* "success": true|false,
* "challenge_ts": timestamp, // timestamp of the challenge
load (ISO format yyyy-MM-dd'T'HH:mm:ssZZ)
* "hostname": string, // the hostname of the site where
the reCAPTCHA was solved
* "error-codes": [...] // optional; possibe values:
* missing-input-
secret - The secret parameter is missing
* invalid-input-
secret - The secret parameter is invalid or malformed
* missing-input-
response - The response parameter is missing
* invalid-input-
response - The response parameter is invalid or malformed
46. function encode_for_form($text) {
$text = stripslashes($text);
return htmlentities($text, ENT_QUOTES, 'UTF-8');// need
ENT_QUOTES or webpro.js jQuery.parseJSON fails
}
function get_form_field_value($field, $properties, $resources,
$forOutput) {
$value = $_REQUEST[$field];
switch($properties['type']) {
case 'checkbox':
return (($value == '1' || $value == 'true') ?
$resources['checkbox_checked'] :
$resources['checkbox_unchecked']);
case 'checkboxgroup':
if (!is_array($value))
return NULL;
47. $outputValue = array();
foreach ($value as $checkboxValue)
array_push($outputValue, $forOutput ?
encode_for_form($checkboxValue) :
stripslashes($checkboxValue));
if ($forOutput)
$outputValue = implode(', ', $outputValue);
return $outputValue;
case 'radiogroup':
return ($forOutput ? encode_for_form($value) :
stripslashes($value));
case 'string':
case 'captcha':
case 'recaptcha':
48. case 'recaptcha2':
case 'email':
return encode_for_form($value);
case 'radio': // never validate the format of a single
radio element; only the group gets validated
default:
die(get_form_error_response(sprintf($resources['invalid_fi
eld_type'], $properties['type'])));
}
}
function cleanup_email($email) {
$email = encode_for_form($email);
$email =
preg_replace('=((<CR>|<LF>|0x0A/%0A|0x0D/%0D|n|r)S).*
=i', null, $email);
return $email;
}
49. function cleanup_message($message) {
$message = wordwrap($message, 70, "rn");
return $message;
}
?>
site/scripts/form_throttle.php
<?php
/*
If you see this text in your browser, PHP is not configured
correctly on this hosting provider.
Contact your hosting provider regarding PHP configuration for
your site.
PHP file generated by Adobe Muse CC 2017.0.2.363
*/
function formthrottle_check()
{
61. "+(typeof i=="object"?t:"")+"]",i,n,r)});else
if(!n&&v.type(t)==="object")for(i in
t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return
function(t,n){typeof t!="string"&&(n=t,t="*");var
r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(
n))for(;u<a;u++)r=o[u],s=/^+/.test(r),s&&(r=r.substr(1)||"*"),i=
e[r]=e[r]||[],i[s?"unshift":"push"](n)}}function
kn(e,n,r,i,s,o){s=s||n.dataTypes[0],o=o||{},o[s]=!0;var
u,a=e[s],f=0,l=a?a.length:0,c=e===Sn;for(;f<l&&(c||!u);f++)u=
a[f](n,r,i),typeof
u=="string"&&(!c||o[u]?u=t:(n.dataTypes.unshift(u),u=kn(e,n,r,i
,u,o)));return(c||!u)&&!o["*"]&&(u=kn(e,n,r,i,"*",o)),u}functio
n Ln(e,n){var r,i,s=v.ajaxSettings.flatOptions||{};for(r in
n)n[r]!==t&&((s[r]?e:i||(i={}))[r]=n[r]);i&&v.extend(!0,e,i)}fun
ction An(e,n,r){var
i,s,o,u,a=e.contents,f=e.dataTypes,l=e.responseFields;for(s in
l)s in
r&&(n[l[s]]=r[s]);while(f[0]==="*")f.shift(),i===t&&(i=e.mime
Type||n.getResponseHeader("content-type"));if(i)for(s in
a)if(a[s]&&a[s].test(i)){f.unshift(s);break}if(f[0]in
r)o=f[0];else{for(s in r){if(!f[0]||e.converters[s+"
"+f[0]]){o=s;break}u||(u=s)}o=o||u}if(o)return
o!==f[0]&&f.unshift(o),r[o]}function On(e,t){var
n,r,i,s,o=e.dataTypes.slice(),u=o[0],a={},f=0;e.dataFilter&&(t=
e.dataFilter(t,e.dataType));if(o[1])for(n in
e.converters)a[n.toLowerCase()]=e.converters[n];for(;i=o[++f];)
if(i!=="*"){if(u!=="*"&&u!==i){n=a[u+" "+i]||a["*
"+i];if(!n)for(r in a){s=r.split(" ");if(s[1]===i){n=a[u+"
"+s[0]]||a["*
"+s[0]];if(n){n===!0?n=a[r]:a[r]!==!0&&(i=s[0],o.splice(f--
,0,i));break}}}if(n!==!0)if(n&&e["throws"])t=n(t);else
try{t=n(t)}catch(l){return{state:"parsererror",error:n?l:"No
conversion from "+u+" to
"+i}}}u=i}return{state:"success",data:t}}function
Fn(){try{return new e.XMLHttpRequest}catch(t){}}function
In(){try{return new