/
home
/
mantaraham
/
www
/
File Upload :
llllll
Current File: /home/mantaraham/www/signup.php
<?php session_start(); require("funcs.php"); // CLIENT INFORMATION $fullname = makesafe(trim($_POST['fullname'])); $yourmail = makesafe(trim($_POST['yourmail'])); $job = makesafe(trim($_POST['job'])); $email = makesafe(trim($_POST['email'])); $captcha = (int)(trim($_POST['captcha'])); $ip = getRealIpAddr(); $key = $_SESSION['key']; if (($key==$captcha) AND ($email=='')) { if (($fullname!='') AND ($yourmail!='') AND ($job!='')) { $date = date('Y-m-d'); $time = gmdate('H:i', (4.5*3600)+time()); $ok = mysql_query("INSERT INTO `signup` (`fullname`, `yourmail`, `job`, `date`,`time`,`ip`) VALUES ('$fullname','$yourmail', '$job', '$date','$time','$ip')"); if ($ok) $response_array['status'] = 'success'; else $response_array['status'] = 'error'; } else $response_array['status'] = 'empty'; // $response_array['response'] = $alter; } else $response_array['status'] = 'captcha'; header('Content-type: application/json'); echo json_encode($response_array); ?>
Copyright ©2k19 -
Hexid
|
Tex7ure