| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/personal_sites/cruzkirchhausen.com/ |
Upload File : |
<?php
include($_SERVER['DOCUMENT_ROOT'].'/mysql.php');
$db = new MySQL('db.syndbs.com', 'lc2user', 'SYN57CRUZ', 'geo');
if(!empty($_POST['your_name'])) {
$state = $_POST['states'];
$country = $_POST['real_country_code'];
if($_POST['location_bigger']!='United States') {
$state = '';
}
$db->query("INSERT INTO geo.cruz_new
(
name
,country
,state
,ts
,shown_big_screen
) VALUES (
'".$db->clean($_POST['your_name'])."'
,'".$db->clean($country)."'
,'".$db->clean($state)."'
,NOW()
,0
)");
$real_country = '';
$real_state = '';
$res = $db->get_results("SELECT short_name FROM geo.country WHERE iso2='".$db->clean($country)."'");
if(!empty($res)) {
$real_country = $res[0]->short_name;
}
if(!empty($state)) {
$res = $db->get_results("SELECT state FROM geo.states WHERE state_short='".$db->clean($state)."'");
if(!empty($res)) {
$real_state = $res[0]->state;
}
}
?>
<center>
<div style="font-size:32px;">
<strong><?= $_POST['your_name'];?></strong><br />
<?= $real_country;?><br />
<?php if(!empty($state)) { ?>
<?= $real_state;?>
<?php } ?>
</div>
<div><img src="country_flag_pics/<?= strtolower($country);?>.png" style="border:1px solid black;" /></div>
<br />
<div style="font-size:20px;">Thanks for your prediction!</div>
<br />
<br />
<button onclick="reset_the_form(); return false;" style="padding:5px 10px;font-size:24px;">Start Over</button>
</center>
<?php
}