Jump to content
  • 0

Question

Posted

ebasla afto poune pedia to kalitero kai exo to eksis problima pou leo parakakato kai thelo na balo afto http://maxcheaters.com/forum/index.php?topic=206902.0

kai kanan vote kai elege 0. to ebgala ebala afto http://maxcheaters.com/forum/index.php?topic=206902.0 kai paali lei 0 vote pos ftiaxnetere pedia

Recommended Posts

  • 0
Posted

bump pitemou ti ginete lathos mipos ta site topzone hopzone stamatisan blokaran to autovote pernao to code xoris error kai kanoune vote kai den tis metrai exo kai to sql file vote table stin navikat

  • 0
Posted

antikatesthse auto ...

+   private int getVotes()
+   {
+       URL url = null;
+       InputStreamReader isr = null;
+       BufferedReader in = null;
+       try
+       {
+           url = new URL(http);
+           isr = new InputStreamReader(url.openStream());
+           in = new BufferedReader(isr);
+           String inputLine;
+           while ((inputLine = in.readLine()) != null)
+           {
+               // for top-zone
+               //if (inputLine.contains("<tr><td><div align=\"center\"><b><font style=\"font-size:14px;color:#018BC1;\""))
+               //{
+                 //return Integer.valueOf(inputLine.split(">")[5].replace("</font", ""));
+               //}
+              
+               //for hopzone
+               if (inputLine.contains("moreinfo_total_rank_text"))
+                  return Integer.valueOf(inputLine.split(">")[2].replace("</div", ""));
+           }
+       }
+       catch (IOException e)
+       {
+           _log.warning("AutoVoteRewardHandler: "+e);
+       }
+       finally
+       {
+           try
+           {
+               in.close();
+           }
+           catch (IOException e)
+           {}
+           try
+           {
+               isr.close();
+           }
+           catch (IOException e)
+           {}
+       }
+       return 0;
+   }

me auto

 

+   private int getVotes()
+   {
+       URL url = null;
+       InputStreamReader isr = null;
+       BufferedReader in = null;
+       try
+       {
+           url = new URL(Config.VOTE_SYSTEM_PAGE);
+           URLConnection con = url.openConnection();
+           con.addRequestProperty("User-Agent", "Mozilla/4.76"); 
+           isr = new InputStreamReader(con.getInputStream());
+           in = new BufferedReader(isr);
+           String inputLine;
+           while ((inputLine = in.readLine()) != null)
+           {
+        	   if(Config.VOTE_SYSTEM_HOPZONE == false){
+        	   //TopZone
+        	   if(inputLine.contains("<tr><td><div align=\"center\"><b><font style=\"font-size:14px;color:#018BC1;\">")){
+        	   String i = inputLine.replace("<tr><td><div align=\"center\"><b><font style=\"font-size:14px;color:#018BC1;\">", "");
+        	   i = i.replace("</font></b></div></td></tr>", "");
+        	   i = i.trim();
+        	   int o = Integer.parseInt(i);
+        	   return Integer.valueOf(o);
+        	   }
+        	   } else {
+        	                 //for hopzone
+               if (inputLine.contains("Anonymous User Votes"))
+                   return Integer.valueOf(inputLine.split(">")[2].replace("</span", ""));
+
+               }
+           }
+       }
+       catch (IOException e)
+       {
+           _log.warning("AutoVoteRewardHandler: "+e);
+       }
+       finally
+       {
+           try
+           {
+               in.close();
+           }
+           catch (IOException e)
+           {}
+           try
+           {
+               isr.close();
+           }
+           catch (IOException e)
+           {}
+       }
+       return 0;
+   }

 

 

 

 

me tis analoges allages vevea ...

 

i perna apo tin arxh auto to Vote reward , 100 % working

 

http://www.4shared.com/get/zXPtR7QT/votes.html ( From Legent )

Guest
This topic is now closed to further replies.


×
×
  • Create New...