Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 10.70 KB | None | 0 0
  1. <meta http-equiv='refresh' content='1'>
  2. <!-- xml version="1.0" encoding="utf-8" -->
  3. <?php
  4.     //set_time_limit(0);
  5.     echo "<center><font color=red size=4><b>Please don't close this page!</b></font></center>";
  6.    
  7.     //Include acc
  8.     include_once('config.php');    
  9.         include_once('segundos.php');  
  10.     include_once('functions.php');                         
  11.     $cboxurl = $cbox_url."&sec=main";
  12.     echo $cboxurl;
  13.     $a = file_get_contents($cboxurl);
  14.     $matches = explode('<tr id=', $a); 
  15.     for($i=2; $i<15; $i++) {       
  16.         $mess = $matches[$i];
  17.  
  18.         //Get ID User
  19.         preg_match('%"(.*)">%U', $mess, $id);
  20.         $id_user = $id[1];
  21.  
  22.         //Get User Name
  23.         preg_match('%<b class="(.*)">(.*)</b>%U', $mess, $mem);
  24.         $name = $mem[2];
  25.  
  26.         //Get Chat
  27.         preg_match('%</b>:(.*)</td></tr>%U', $mess, $chat);
  28.         $chat = $chat[1];
  29.         preg_match('%<span style="(.*)"><b>(.*)</b></span></b>:%U', $mess, $mem) || preg_match('%<b class="(.*)">(.*)</b>%U', $mess, $mem) ;
  30.         $name = $mem[2];
  31.  
  32.         $name = str_replace('Vip ', "", $name);
  33.         $name = str_replace('<img src="http://imageshack.us/a/img819/7052/ariel03.jpg" border="0">', "", $name);
  34.         $name = str_replace('<img src="http://img831.imageshack.us/img831/8503/ghostrider8miniatura.gif">', "", $name);
  35.         $name = str_replace('<img src="http://2aek.com/inventory/emoticons2/108.gif" border="0">', "", $name);
  36.  
  37.         //Get Chat
  38.         preg_match('%</b>:(.*)</td></tr>%U', $mess, $chat);
  39.         $chat = $chat[1];
  40.         //Replace Filtred users v.1
  41.         $chat = str_replace("<span style=\"text-shadow: 0 0 0.5em #000000, 0 0 0.5em #000000, 0 0 0.5em #000000, 0 0 0.5em #000000, 0 0 0.5em #000000; color:#00FF00; background-image: url(http://i39.tinypic.com/2zqx5jd.jpg)\"><b>", "", $chat);
  42.                                           $chat = str_replace("<SPAN STYLE=\"text-shadow: 0 0 0.5em blue, 0 0 0.5em blue, 0 0 0.5em blue, 0 0 0.5em blue, 0 0 0.5em blue; color:#00FF00; background-image: url(http://i39.tinypic.com/2zqx5jd.jpg)\"><b>", "", $chat);
  43.        
  44.  
  45.         //Get Date
  46.         preg_match('%<div class="(.*)">%U', $mess, $dc);
  47.         preg_match('%<div class="'.$dc[1].'">(.*)</div>%U', $mess, $date);
  48.         $date = $date[1];
  49.         $user_file = "user/".$name.".txt"; 
  50.    
  51.         //Check BlackList
  52.         if (Check_BlackList($blacklist, $name)==true || strcmp($name, $Bot_Name)==0);   //Neu la Bot, Black list   
  53.         else {  //Neu khong phai la Bot                
  54.             //Kiem tra post cua user co chua link down hay ko?
  55.             $link = explode('<a href="', $chat);
  56.             $link = explode('"', $link[1]);
  57.             $link = $link[0];
  58.             if ($link!='') {    //Neu co chua' link down   
  59.                     $link_data = str_replace('|',"_", $link);
  60.                     $link = str_replace('%7C','|', $link);
  61.                     if (Check_Support($bot_support, $link)==true) {
  62.                         if (file_exists($user_file)) {
  63.                             //Check link da duoc get chua
  64.                             $check = Check_Link($link_data, $user_file, $date);                
  65.                             if ($check==true);
  66.                             else {
  67.                                 // Check good_link
  68.                                 if (count(explode($good_link, $chat))==1 && Check_Manager($manager, $name)==false && Check_Admin($adminlist, $name)==false || strcmp($min, $name)==0  || strcmp($mod, $name)==0) {
  69.                                     if ($bot_start==true) post_cbox("@".$name." ".$check_mess);
  70.                                     //Luu link xuong
  71.                                     $log = fopen($user_file,"a",1);
  72.  
  73.                                     $data = $date.'-'.$link_data.'|';
  74.                                     fwrite($log, $data);   
  75.                                     fclose($log);
  76.                                     return;
  77.                                 }
  78.                                
  79.                                 if (Check_Post($user_file, $date)==true  && Check_Manager($manager, $name)==false && Check_Admin($adminlist, $name)==false || strcmp($min, $name)==0  || strcmp($mod, $name)==0) {  //Neu post chua du X phut
  80.                                
  81.                                     $mess = '@'.$name.' ==>[center][color=green][b] Seu download é limitado por[/b][/color][color=red][b] '.$limit_link.' MIN[/b][/color] :pf [color=green][b] Your download is limited by [/b][/color][color=red][b] '.$limit_link.' MIN [/b][/color][/center] ';
  82.                                     if ($bot_start==true) post_cbox($mess);
  83.                                     //Luu link xuong
  84.                                     $log = fopen($user_file,"a",1);
  85.  
  86.                                     $data = $date.'-'.$link_data.'|';
  87.                                     fwrite($log, $data);   
  88.                                     fclose($log);
  89.                                     return;                            
  90.                                 } else {
  91.                                     if ($bot_start==true) {
  92.                                         if (count(explode('turbobit', $link))>1)
  93.                                             $entry1 = Get_Link_Host($link, $turbo[0], $turbo[1]);
  94.                                         elseif (count(explode('rapidshare', $link))>1)
  95.                                             $entry1 = Get_Link_Host($link, $rs[0], $rs[1]);
  96.                                         elseif (count(explode('hotfile', $link))>1)
  97.                                             $entry1 = Get_Link_Host($link, $hf[0], $hf[1]);
  98.                                         elseif (count(explode('oboom', $link))>1)
  99.                                             $entry1 = Get_Link_Host($link, $boom[0], $boom[1]);
  100.                                         elseif (count(explode('filefactory', $link))>1)                            
  101.                                             $entry1 = Get_Link_Host($link, $ff[0], $ff[1]);
  102.                                         elseif (count(explode('depositfiles', $link))>1)                               
  103.                                             $entry1 = Get_Link_Host($link, $df[0], $df[1]);
  104.                                         elseif (count(explode('netload', $link))>1)                            
  105.                                             $entry1 = Get_Link_Host($link, $nl[0], $nl[1]);
  106.                                         elseif (count(explode('rapidgator', $link))>1)                                 
  107.                                             $entry1 = Get_Link_Host($link, $rpg[0], $rpg[1]);
  108.                                         elseif (count(explode('uploading', $link))>1)                              
  109.                                             $entry1 = Get_Link_Host($link, $uld[0], $uld[1]);
  110.                                         elseif (count(explode('uploaded', $link))>1)                               
  111.                                             $entry1 = Get_Link_Host($link, $ult[0], $ult[1]);
  112.                                         elseif (count(explode('megashares', $link))>1)                                                                     
  113.                                             $entry1 = Get_Link_Host($link, $mgs[0], $mgs[1]);
  114.                                         elseif (count(explode('bitshare', $link))>1)                               
  115.                                             $entry1 = Get_Link_Host($link, $bs[0], $bs[1]);                                    
  116.                                         elseif (count(explode('gigasize', $link))>1)                               
  117.                                             $entry1 = Get_Link_Host($link, $ggs[0], $ggs[1]);
  118.                                         elseif (count(explode('enterupload', $link))>1)
  119.                                             $entry1 = Get_Link_Host($link, $eul[0], $eul[1]);
  120.                                         elseif (count(explode('ryushare', $link))>1)                               
  121.                                             $entry1 = Get_Link_Host($link, $ryu[0], $ryu[1]);
  122.                                         elseif (count(explode('duckload', $link))>1)                                   
  123.                                             $entry1 = Get_Link_Host($link, $dkl[0], $dkl[1]);
  124.                                         elseif (count(explode('mediafire', $link))>1)                                  
  125.                                             //$entry1 = Get_Link_Host($link, $mf[0], $mf[1]);
  126.                                             $entry1 = Get_MF($link);
  127.                                         elseif (count(explode('extabit', $link))>1)
  128.                                             $entry1 = Get_Link_Host($link, $ex[0], $ex[1]);
  129.                                         elseif (count(explode('filepost', $link))>1)
  130.                                             $entry1 = Get_Link_Host($link, $fp[0], $fp[1]);
  131.                                         elseif (count(explode('freakshare', $link))>1)
  132.                                             $entry1 = Get_Link_Host($link, $frs[0], $frs[1]);
  133.                                         elseif (count(explode('jumbofiles', $link))>1)
  134.                                         $svq='jumbofiles';
  135.                                             //$entry1 = Get_Link_Host($link, $jb[0], $jb[1]);
  136.                                             $entry1 = Get_JUM($link);
  137.                                
  138.                                         if (strcmp($entry1,"")!=0) {
  139.                                             $mess='@'.$name.' [b][color=orange]==►[/color][/b] '.$entry1.' '.$svq;                                   
  140.                                             post_cbox($mess);
  141.                                         }
  142.                                     }
  143.                                     //Luu link xuong
  144.                                     $log = fopen($user_file, "a", 1);      
  145.                                     $data = $date.'-'.$link_data.'|';
  146.                                     fwrite($log, $data);   
  147.                                     fclose($log);
  148.                                 }
  149.                                
  150.                             }
  151.                         }                      
  152.                         else {                             
  153.                             {
  154.                                 if (count(explode($good_link, $chat))==1 && Check_Manager($manager, $name)==false && Check_Admin($adminlist, $name)==false || strcmp($min, $name)==0  || strcmp($mod, $name)==0) {
  155.                                     if ($bot_start==true) post_cbox("@".$name." ".$check_mess);
  156.                                     //Luu link xuong
  157.                                     $log = fopen($user_file,"a",1);
  158.  
  159.                                     $data = $date.'-'.$link_data.'|';
  160.                                     fwrite($log, $data);   
  161.                                     fclose($log);
  162.                                     return;
  163.                                 }
  164.                                 if ($bot_start==true) {
  165.                                     if (count(explode('turbobit', $link))>1 )
  166.                                         $entry1 = Get_Link_Host($link, $turbo[0], $turbo[1]);
  167.                                     elseif (count(explode('rapidshare', $link))>1)
  168.                                         $entry1 = Get_Link_Host($link, $rs[0], $rs[1]);
  169.                                     elseif (count(explode('hotfile', $link))>1)
  170.                                         $entry1 = Get_Link_Host($link, $hf[0], $hf[1]);
  171.                                     elseif (count(explode('oboom', $link))>1)                                  
  172.                                         $entry1 = Get_Link_Host($link, $boom[0], $boom[1]);
  173.                                     elseif (count(explode('filefactory', $link))>1)                            
  174.                                         $entry1 = Get_Link_Host($link, $ff[0], $ff[1]);
  175.                                     elseif (count(explode('depositfiles', $link))>1)                               
  176.                                         $entry1 = Get_Link_Host($link, $df[0], $df[1]);
  177.                                     elseif (count(explode('netload', $link))>1)                            
  178.                                         $entry1 = Get_Link_Host($link, $nl[0], $nl[1]);
  179.                                     elseif (count(explode('rapidgator', $link))>1)                                 
  180.                                         $entry1 = Get_Link_Host($link, $rpg[0], $rpg[1]);
  181.                                     elseif (count(explode('uploading', $link))>1)                              
  182.                                         $entry1 = Get_Link_Host($link, $uld[0], $uld[1]);
  183.                                     elseif (count(explode('uploaded', $link))>1)                               
  184.                                         $entry1 = Get_Link_Host($link, $ult[0], $ult[1]);
  185.                                     elseif (count(explode('megashares', $link))>1)                                                                     
  186.                                         $entry1 = Get_Link_Host($link, $mgs[0], $mgs[1]);
  187.                                     elseif (count(explode('bitshare', $link))>1)                               
  188.                                         $entry1 = Get_Link_Host($link, $bs[0], $bs[1]);                                    
  189.                                     elseif (count(explode('gigasize', $link))>1)                               
  190.                                         $entry1 = Get_Link_Host($link, $ggs[0], $ggs[1]);
  191.                                     elseif (count(explode('enterupload', $link))>1)
  192.                                         $entry1 = Get_Link_Host($link, $eul[0], $eul[1]);
  193.                                     elseif (count(explode('ryushare', $link))>1)                               
  194.                                         $entry1 = Get_Link_Host($link, $ryu[0], $ryu[1]);
  195.                                     elseif (count(explode('duckload', $link))>1)                                   
  196.                                         $entry1 = Get_Link_Host($link, $dkl[0], $dkl[1]);
  197.                                     elseif (count(explode('mediafire', $link))>1)                                  
  198.                                         //$entry1 = Get_Link_Host($link, $mf[0], $mf[1]);
  199.                                         $entry1 = Get_MF($link);
  200.                                     elseif (count(explode('extabit', $link))>1)
  201.                                         $entry1 = Get_Link_Host($link, $ex[0], $ex[1]);
  202.                                     elseif (count(explode('filepost', $link))>1)
  203.                                         $entry1 = Get_Link_Host($link, $fp[0], $fp[1]);
  204.                                     elseif (count(explode('freakshare', $link))>1)
  205.                                         $entry1 = Get_Link_Host($link, $frs[0], $frs[1]);
  206.                                     elseif (count(explode('jumbofiles', $link))>1)
  207.                                     $svq='jumbofiles';
  208.                                         //$entry1 = Get_Link_Host($link, $jb[0], $jb[1]);
  209.                                         $entry1 = Get_JUM($link);
  210.                                        
  211.                                     if (strcmp($entry1,"")!=0) {
  212.                                         $mess='@'.$name.' [b][color=orange]==►[/color][/b] '.$entry1.' '.$svq;                                   
  213.                                         post_cbox($mess);
  214.                                     }
  215.                                 }
  216.                                 //Luu file + time
  217.                                 $log = fopen($user_file,"w");          
  218.                                 $data = $date.'-'.$link_data.'|';
  219.                                 fwrite($log, $data);       
  220.                                 fclose($log);
  221.                             }                                              
  222.                         }  
  223.                     }  
  224.             }
  225.             else {  //Chat chit ^^, commmand   
  226.                 include_once('chat.php');
  227.             }
  228.         }
  229.     }  
  230.    
  231. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement