Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Если авторизован
- if ($l==True) {
- if ($_POST[ip1] != '') {
- $ip1=$_POST[ip1];
- $q="UPDATE `user` SET `ip1`='$ip1' where `id`='$id' ";
- mysql_query($q) or die('Error');
- }
- if ($_POST[ip2] != '') {
- $ip2=$_POST[ip2];
- $q="UPDATE `user` SET `ip2`='$ip2' where `id`='$id' ";
- mysql_query($q) or die('Error');
- }
- if ($_POST[ip3] != '') {
- $ip3=$_POST[ip3];
- $q="UPDATE `user` SET `ip3`='$ip3' where `id`='$id' ";
- mysql_query($q) or die('Error');
- }
- $time=time();
- include "geoipcity.inc";
- $nameEdit='';
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://'.$ServerBC1.'/online?user=-1&socks5=get');
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
- $GETon = '';
- $GETon= curl_exec($ch);
- curl_close($ch);
- $GETonlineout.=$GETon."/r/n";
- $ServIP = SubStr($ServerBC1,0,StrPos($ServerBC1,':'));
- $GETon=explode("\r\n",$GETon);
- $a=0;
- while ($a<count($GETon)) {
- if (StrPos($GETon[$a],':')>0) {
- $StrIP = SubStr($GETon[$a],0,StrPos($GETon[$a],':'));
- $GETon[$a]=str_replace($StrIP,$ServIP,$GETon[$a]);
- }
- $a++;
- }
- $GETon = implode("\r\n",$GETon);
- $GETonline.=$GETon."\r\n";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://'.$ServerBC2.'/online?user=-1&socks5=get');
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
- $GETon = '';
- $GETon= curl_exec($ch);
- curl_close($ch);
- $GETonlineout.=$GETon."/r/n";
- $ServIP = SubStr($ServerBC2,0,StrPos($ServerBC2,':'));
- $GETon=explode("\r\n",$GETon);
- $a=0;
- while ($a<count($GETon)) {
- if (StrPos($GETon[$a],':')>0) {
- $StrIP = SubStr($GETon[$a],0,StrPos($GETon[$a],':'));
- $GETon[$a]=str_replace($StrIP,$ServIP,$GETon[$a]);
- }
- $a++;
- }
- $GETon = implode("\r\n",$GETon);
- $GETonline.=$GETon."\r\n";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://'.$ServerBC3.'/online?user=-1&socks5=get');
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
- $GETon = '';
- $GETon= curl_exec($ch);
- curl_close($ch);
- $GETonlineout.=$GETon."/r/n";
- $ServIP = SubStr($ServerBC3,0,StrPos($ServerBC3,':'));
- $GETon=explode("\r\n",$GETon);
- $a=0;
- while ($a<count($GETon)) {
- if (StrPos($GETon[$a],':')>0) {
- $StrIP = SubStr($GETon[$a],0,StrPos($GETon[$a],':'));
- $GETon[$a]=str_replace($StrIP,$ServIP,$GETon[$a]);
- }
- $a++;
- }
- $GETon = implode("\r\n",$GETon);
- $GETonline.=$GETon."\r\n";
- $ArrayIP=explode("\r\n",$GETonline);
- $ArrayIPout=explode("\r\n",$GETonlineout);
- $sql = mysql_query("select * from `user` where `id`='$id' LIMIT 1 ") or die('<meta http-equiv="refresh" content="0; url=index.php">');
- $count=mysql_num_rows($sql);
- $row=mysql_fetch_array($sql);
- $ip1=$row['ip1'];
- $ip2=$row['ip2'];
- $ip3=$row['ip3'];
- $MaxSocks = $row['400'];
- $ME_info1.='<br>
- <table width="20%" cellspacing="0" style="border: 0px #e8f5ff solid; border-collapse: collapse ; " bordercolor="e8f5ff" border="0" id="TableLine" class="ruler">
- <tr><td><b>id</b></td><td><b></b></td><td><b>socks</b></td><td><b>out ip</b></td><td><b>country</b></td><td><b>region</b></td><td><b>city</b></td></tr>';
- $a=0;
- $b=0;
- $d=0;
- while (($a<(count($ArrayIP)))and($b<$MaxSocks)) {
- $Tip=$ArrayIPout[$a];
- //$Tip2=$ArrayIP[$a];
- $Tip=substr($Tip,0,strpos($Tip,':'));
- if ($Tip!='') {
- $Tcountry = user_geo_ip($Tip,3);
- $gi = geoip_open("GeoLiteCity.dat", GEOIP_STANDARD);
- $geo = GeoIP_record_by_addr($gi,$Tip);
- geoip_close($gi);
- $Country = $geo->country_code;
- $Region = $geo->region;
- $City = $geo->city;
- $ME_info1.='<tr><td>'.($b+1).'</td><td>'.$Tcountry.'</td><td>'.$ArrayIP[$a].'</td><td>'.$Tip.'</td><td><center>'.$Country.'</center></td><td>'.$Region.'</td><td>'.$City.'</td></tr>';
- $b=$b+1;
- //} else {
- // $Tcountry = '<center>-</center>';
- }
- $a=$a+1;
- }
- $ME_info.='
- <b>Available socks: '.($b).'</b> <a href="api.php?id='.$id.'&key='.(md5($login.$password)).'" target=_blank>[get text format]</a><br>'.$ME_info1.'</table>';
- $content.='
- <div style="position: relative; top: -35px;"><table border="0" width="100%" >
- <tr><td width="20%" valign="top">
- <div id="hide" style="width:95%;" >
- <b>Access to the Socks</b><br><br>
- <script type="text/javascript">
- function SH2(id) {
- if (document.getElementById(id).style==\'display:none\') { document.getElementById(id).style==\'display:block\'; } else { document.getElementById(id).style==\'display:none\'; }
- }
- </script>
- <script type="text/javascript">
- function SH(id,id2,texts) {
- if (document.getElementById(id).innerHTML==\'\') { document.getElementById(id).innerHTML = texts; } else { document.getElementById(id).innerHTML =\'\'; }
- if (document.getElementById(id2).type==\'text\') { document.getElementById(id2).type=\'hidden\'; } else { document.getElementById(id2).type=\'text\'; }
- }
- </script>
- <table width="100%" border="0" >
- <tr width="100%"><td ondblclick="SH(\'lip1'.$Uid.'\',\'ip1'.$Uid.'\',\''.$ip1.'\'); "><span id="lip1'.$Uid.'">'.$ip1.'</span><form method=post><input type="hidden" name="Uid" value="'.$Uid.'" style="width:100%"><input id="ip1'.$Uid.'" type="hidden" name="ip1" value="'.$ip1.'" style="width:200px"></form></td></tr>
- <tr width="100%"><td ondblclick="SH(\'lip2'.$Uid.'\',\'ip2'.$Uid.'\',\''.$ip2.'\'); "><span id="lip2'.$Uid.'">'.$ip2.'</span><form method=post><input type="hidden" name="Uid" value="'.$Uid.'" style="width:100%"><input id="ip2'.$Uid.'" type="hidden" name="ip2" value="'.$ip2.'" style="width:200px"></form></td></tr>
- <tr width="100%"><td ondblclick="SH(\'lip3'.$Uid.'\',\'ip3'.$Uid.'\',\''.$ip3.'\'); "><span id="lip3'.$Uid.'">'.$ip3.'</span><form method=post><input type="hidden" name="Uid" value="'.$Uid.'" style="width:100%"><input id="ip3'.$Uid.'" type="hidden" name="ip3" value="'.$ip3.'" style="width:200px"></form></td></tr>
- </table>
- </div>
- </td><td width="79%" valign="top">
- <div id="hide" style="width:95%">
- <b>'.$nameEdit.'</b>
- '.$ME_info.'
- </div>
- </td></tr>
- <tr><td width="20%" valign="top">
- </td><td> </td></tr>
- </table></div>
- ';
- } else {
- include"404.php";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement