feat: iqon.com full backup and design audit
- Server backup: PHP source files, theme assets, fonts, images, wp-config.php (masked), .htaccess, sitemaps, manifest - Design audit: comparison with Open Design systems (Corporate, Clean, Modern, Bold), critical issues, SEO problems, 3-phase change plan, new_redesign analysis - All files downloaded from production server via Code Snippets Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
/**
|
||||
* Template Name: CONTACTKZ
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
function rpHash($value) {
|
||||
$hash = 5381;
|
||||
$value = strtoupper($value);
|
||||
for($i = 0; $i < strlen($value); $i++) {
|
||||
$hash = (leftShift32($hash, 5) + $hash) + ord(substr($value, $i));
|
||||
}
|
||||
return $hash;
|
||||
}
|
||||
|
||||
// Perform a 32bit left shift
|
||||
function leftShift32($number, $steps) {
|
||||
// convert to binary (string)
|
||||
$binary = decbin($number);
|
||||
// left-pad with 0's if necessary
|
||||
$binary = str_pad($binary, 32, "0", STR_PAD_LEFT);
|
||||
// left shift manually
|
||||
$binary = $binary.str_repeat("0", $steps);
|
||||
// get the last 32 bits
|
||||
$binary = substr($binary, strlen($binary) - 32);
|
||||
// if it's a positive number return it
|
||||
// otherwise return the 2's complement
|
||||
return ($binary[0] == "0" ? bindec($binary) :
|
||||
-(pow(2, 31) - bindec(substr($binary, 1))));
|
||||
}
|
||||
if (!empty($_POST)) {
|
||||
$nume = $_POST['nume'];
|
||||
$email = $_POST['email'];
|
||||
$message = $_POST['mesaj'];
|
||||
$subject = $_POST['subject'];
|
||||
$validation_code = $_POST['validation'];
|
||||
$hash = $_POST['hash'];
|
||||
$hash_not_valid = false;
|
||||
if ($hash != rpHash($validation_code)) {
|
||||
$hash_not_valid = true;
|
||||
}
|
||||
else {
|
||||
require_once 'class.phpmailer.php';
|
||||
$new_mail = new PHPMailer(true);
|
||||
try {
|
||||
$new_mail->AddReplyTo($email, $nume);
|
||||
$admin_email = get_option('admin_email');
|
||||
//dv($admin_email);die();
|
||||
$new_mail->AddAddress($admin_email);
|
||||
//$new_mail->AddAddress('gabriel.ilie@gmail.com', 'Gabriel Ilie');
|
||||
$new_mail->SetFrom('contact@iqon.com', 'CONTACT FORM');
|
||||
$new_mail->Subject = '[IQON CONTACT FORM] '.$nume.' has sent you a message. Subject: '.$subject;
|
||||
$new_mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically
|
||||
//$new_mail->MsgHTML(file_get_contents('contents.html'));
|
||||
$html = $nume.' has sent you an message.<br /><b>E-mail:</b> '.$email.'<br /><b>Subject:</b> '.$subject.'<br /><b>Message:</b> '.$message;
|
||||
$new_mail->MsgHTML($html);
|
||||
$new_mail->Send();
|
||||
} catch (phpmailerException $e) {
|
||||
echo $e->errorMessage(); //Pretty error messages from PHPMailer
|
||||
} catch (Exception $e) {
|
||||
echo $e->getMessage(); //Boring error messages from anything else!
|
||||
}
|
||||
|
||||
echo '<script>top.location = "'.get_permalink(12).'?sent=ok";</script>';
|
||||
die();
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php $ascunde_services = true; ?>
|
||||
<?php get_header(); ?>
|
||||
<div class="contentleft">
|
||||
<p><h1 class="fontsize20 marginbottom20">Bucharest Office:</h1>
|
||||
10th Montreal Square, 2nd Floor <br />
|
||||
Office 2.10, 011469 <br />
|
||||
Bucharest - 1, Romania <br />
|
||||
<div id="linie-punctata"></div>
|
||||
T: +4 037 239 0880<br />
|
||||
F: +4 037 261 2608<br />
|
||||
<div id="linie-punctata"></div>
|
||||
<a href="mailto:office@iqon.com">office@iqon.com</a></p>
|
||||
<p><h1 class="fontsize20 marginbottom20">Moscow Office:</h1>
|
||||
ул. Большая Полянка, дом 7/10, стр. 3<br />
|
||||
119180, РФ, г. Москва<br />
|
||||
<div id="linie-punctata"></div>
|
||||
T: +7 965 195 85 26<br />
|
||||
<div id="linie-punctata"></div>
|
||||
<a href="mailto:office@iqon.kz">office@iqon.kz</a></p>
|
||||
<p><h1 class="fontsize20 marginbottom20">Almaty Office:</h1>
|
||||
улица Богенбай батыра 117, кв. 25 <br />
|
||||
05000, Казахстан, г. Алматы<br />
|
||||
<div id="linie-punctata"></div>
|
||||
T: +7 727 267 02 55<br />
|
||||
F: +7 727 267 02 55<br />
|
||||
<div id="linie-punctata"></div>
|
||||
<a href="mailto:office@iqon.kz">office@iqon.kz</a></p>
|
||||
</div>
|
||||
<div class="contentright">
|
||||
<iframe width="700" height="250" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=str+montreal+bucuresti+iqon&aq=&sll=44.475036,26.07116&sspn=0.006546,0.016512&t=m&g=str+montreal+bucuresti+nr+10&ie=UTF8&hq=iqon&hnear=Pia%C5%A3a+Montreal,+Sector+1,+Bucure%C8%99ti,+Romania&ll=44.475732,26.069977&spn=0.003828,0.014999&z=16&output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=str+montreal+bucuresti+iqon&aq=&sll=44.475036,26.07116&sspn=0.006546,0.016512&t=m&g=str+montreal+bucuresti+nr+10&ie=UTF8&hq=iqon&hnear=Pia%C5%A3a+Montreal,+Sector+1,+Bucure%C8%99ti,+Romania&ll=44.475732,26.069977&spn=0.003828,0.014999&z=16" target="_blank" style="color:#0000FF;text-align:left">View Larger Map</a></small>
|
||||
<h2 class="margintop40">Please fill in the form below <?php if ($_GET['sent'] ?? '' ?? '' ?? '' ?? '' ?? '' ?? ''=='ok') { ?>[Your message has been send.]<?php } ?></h2>
|
||||
<form action="" method="POST" id="formular_contact">
|
||||
<div class="rowInput">
|
||||
<label id="label_name">Your name (required):</label>
|
||||
<input type="text" name="nume" id="name" />
|
||||
</div>
|
||||
<div class="rowInput">
|
||||
<label id="label_email">Your email (required):</label>
|
||||
<input type="text" name="email" id="email" />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<!--<div class="rowInput">
|
||||
<label>Category:</label>
|
||||
<input type="text" name="name" id="name" />
|
||||
</div>-->
|
||||
<div class="rowInput">
|
||||
<label id="label_subject">Subject:</label>
|
||||
<input type="text" name="subject" id="subject" />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="rowTextarea">
|
||||
<label id="label_mesaj">Message:</label>
|
||||
<textarea name="mesaj" id="mesaj"></textarea>
|
||||
</div>
|
||||
<div class="rowInput" style="width: 600px!important;">
|
||||
<label id="label_validation">Validation code(required):</label>
|
||||
<input type="text" name="validation" id="validation" value="" data-default="validation code" class="text validation" style="width: 100px!important; text-transform: uppercase;" />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<input type="submit" class="submitMessage" value="" />
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#validation').realperson({length: 5, includeNumbers: false, hashName: 'hash'});
|
||||
$('#formular_contact').submit(function(event) {
|
||||
if (!$('#name').val()) {
|
||||
$('#label_name').addClass('notCompleted');
|
||||
event.preventDefault();
|
||||
}
|
||||
else $('#label_name').removeClass('notCompleted');
|
||||
if (!$('#email').val()) {
|
||||
$('#label_email').addClass('notCompleted');
|
||||
event.preventDefault();
|
||||
}
|
||||
else $('#label_email').removeClass('notCompleted');
|
||||
if (!$('#validation').val()) {
|
||||
$('#label_validation').addClass('notCompleted');
|
||||
event.preventDefault();
|
||||
}
|
||||
else $('#label_validation').removeClass('notCompleted');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div class="disclaimer">
|
||||
<strong>Disclaimer:</strong> IQON Romania takes all necessary measures to keep your personal information private and secure. Only authorized IQON Romania staff, Third Party companies (i.e. service providers) staff or our business partners' authorized staff (who have contractually agreed to keep all information secure) have access to your personal information.
|
||||
</div>
|
||||
</div>
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user