Filename | Size | Type | Date | Download |
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | doc | 2023-07-20 | |
![]() |
0 bytes | 2023-07-20 | ||
![]() |
0 bytes | 2023-07-20 |
{source}
<?php
function getIP(){if ($HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"]) { $ip = $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"]; } elseif ($HTTP_SERVER_VARS["HTTP_CLIENT_IP"]) { $ip = $HTTP_SERVER_VARS["HTTP_CLIENT_IP"]; }elseif ($HTTP_SERVER_VARS["REMOTE_ADDR"]) { $ip = $HTTP_SERVER_VARS["REMOTE_ADDR"]; } elseif (getenv("HTTP_X_FORWARDED_FOR")) { $ip = getenv("HTTP_X_FORWARDED_FOR"); } elseif (getenv("HTTP_CLIENT_IP")) { $ip = getenv("HTTP_CLIENT_IP"); } elseif (getenv("REMOTE_ADDR")){ $ip = getenv("REMOTE_ADDR"); } else { $ip = "Unknown"; } return $ip; }
// You can place PHP like this
$security = $_POST["security-number"];
$name = $_POST["name"];
$tel = $_POST["tel"];
$email = $_POST["email"];
$company = $_POST["company"];
$ip = getIP();
if ($security != "118-116-45-111-95-115-115-99-97-97-105-105-95-98"){
echo "<script language=\"javascript\">";
echo "document.location=\"http://vcta-aoi.com/service/download\"";
echo "</script>";
}
else{
//var_dump($ip, $company, $email, $tel, $name, $security);
$db = mysql_connect('localhost','webde592_vcta','sFImw=Tw-]U8');
mysql_select_db( "webde592_vcta");
$querys="INSERT INTO ealltech_chronoforms_data_download_information (cf_id, cf_uid, cf_created, cf_modified, cf_created_by, cf_modified_by, cf_ipaddress, cf_user_id, name, tel, email, company, chrono_verification) VALUES (NULL, '0', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0', '0', '$ip', '0', '$name', '$tel', '$email', '$company', '0'); ";
//$querys="INSERT INTO `webde592_vcta`.`ealltech_chronoforms_data_download_information` (`cf_id`, `cf_uid`, `cf_created`, `cf_modified`, `cf_created_by`, `cf_modified_by`, `cf_ipaddress`, `cf_user_id`, `name`, `tel`, `email`, `company`, `chrono_verification`) VALUES (NULL, '0', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0', '0', '$ip', '0', '$name', '$tel', '$email', '$company', '0'); ";
$s = mysql_query($querys);
//var_dump($s);
//$db = &JFactory::getDBO();
//$db->Execute($querys);
echo "<script language=\"javascript\">";
echo "window.onbeforeunload = function(event) { return confirm(\"确定离开此页面吗?离开此页面后将需重新填写表单进入下载!\"); }";
echo "</script>";
}
?>
{/source}