Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 23 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,37 @@ Tópico oficial na L2jBrasil: https://www.l2jbrasil.com/t/138830
Grosseiramente falando, este VoteSystem pelo sistema API checa dentro do site de TOP se o Player votou em seu servidor, caso o player não tenha votado o site de TOP avisa ao VoteSystem que aquele Player ainda não votou, então o VoteSystem não deixa que o Player receba a premiação.
Quando o Player vota no servidor, o site de TOP "envia uma mensagem" dizendo ao VoteSystem que o player votou, então o VoteSystem libera o Player para escolher o char e receber o item de premiação pelo voto.


## Finalidade deste VoteSystem

Este VoteSystem foi desenvolvido com a finalidade de ajudar os SERVIDOSRES de L2, então se o Player dar reboot no modem, vai muda o IP dele, mudando IP o voto é válido nos sites de TOP, se o voto é válido o player merece o item. E isso não é um bug. Pois na verdade quem ganha com isso é o próprio servidor, se você conseguir 20 players que sejam aqueles Players chatos que dão reboot no modem umas 50x por dia, você já tem 1000 votos válidos em 1 dia. A intenção deste VoteSystem é ganhar votos, é fazer com que os players sejam "obrigados" a votar se quiserem receber o premio, pois nos outros VoteSystem que já existem é fácil você burlar os votos, muitos player clicam no botão de voto e não votam no servidor, simplesmente fecham a janela e esperam o próximo link ser liberado para fazer a mesma coisa até receber a premiação. Cabe a cada ADM criar suas dificuldades para o player, você pode por exemplo colocar uma quantidade de itens necessárias maior para a troca dos itens de votação por itens premium do seu servidor.

## Top Sites Suportados:

- http://top.l2jbrasil.com
- http://www.toplineage2.com
- http://www.topservers200.com
- http://www.gamesites200.com
- http://www.topmmo.com.br
- http://www.top200games.com.br
- https://top.4teambr.com/


### VoteSystem developed by:
- Ivan Pires (ICPNetworks)
- http://www.gamingtop100.net
- https://www.gamestop200.com
- http://www.gtop100.com
- https://www.l2topzone.com
- https://www.hopzone.net
- https://xtremetop300.com
- http://www.topgs200.com
- http://www.top100arena.com
- http://www.l2network.eu
- https://l2top.co
- https://topg.org
- https://www.gamebytes.net
- https://www.l2servers.com
- https://www.l2votes.com
- https://top.4teambr.com
- https://l2rankzone.com

### VoteSystem developed by:

- Ivan Pires (ICPNetworks)

### And styled by:

### And styled by:
- Hugo Felipe (ICPNetworks)

Projeto e divulgação https://www.icpfree.com.br
Projeto e divulgação https://www.icpfree.com.br
Repositório mantido pela https://l2jbrasil.com
3 changes: 2 additions & 1 deletion config/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ function instalar($db_ip, $db_user, $db_pass, $db_name, $db_data, $l2jruss, $adm
array(14, 'GameBytes', 'https://www.gamebytes.net', 'gamebytes.png', 'gamebytes.php', 'sem_id', 'sem_token', 0, 0),
array(15, 'L2 Servers', 'https://www.l2servers.com', 'l2servers.png', 'l2servers.php', 'sem_id', 'sem_token', 0, 0),
array(16, 'L2 Votes', 'https://www.l2votes.com', 'l2votes.jpg', 'l2votes.php', 'sem_id', 'sem_token', 0, 0),
array(17, '4TOP Servers', 'https://top.4teambr.com', '4topmmo.png', '4topmmo.php', 'sem_id', 'sem_token', 0, 0)
array(17, '4TOP Servers', 'https://top.4teambr.com', '4topmmo.png', '4topmmo.php', 'sem_id', 'sem_token', 0, 0),
array(18, 'L2Rankzone', 'https://l2rankzone.com', 'l2rankzone.jpg', 'l2rankzone.php', 'sem_id', 'sem_token', 0, 0)
);
if(empty($admins))
return respostaDelay($language_72,4000);
Expand Down
Binary file added images/buttons/l2rankzone.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions painel/tops/l2rankzone.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php
//=======================================================================\\
// ## ####### ####### \\
// ## ## ## ## \\
// ## ## ## #### |\ | |¯¯¯ ¯¯|¯¯ \ / |¯¯¯| |¯¯¯| | / |¯¯¯| \\
// ## ## ## | \ | |-- | \ / | | | | |_| |< ¯\_ \\
// ## ####### ## | \| |___ | \/\/ |___| | |\ | \ |___| \\
// --------------------------------------------------------------------- \\
// Brazillian Developer / WebSite: http://www.icpfree.com.br \\
// Email & Skype: ivan1507@gmail.com.br \\
//=======================================================================\\
if(@fsockopen(str_replace("https://","",str_replace("http://","",$row->top_url)), 80 , $errno , $errstr , 30)){
if(isset($_COOKIE["l2rankzone"])){
$data_modificada = pega_cookie($_COOKIE["l2rankzone"]);
}else{
$data_modificada = '0000-00-00 00:00:00';
}
if(strtotime($data_modificada) >= strtotime(date('Y-m-d H:i:s'))){
$data_voto = explode("-", substr(str_replace(" ", "", $data_modificada), 0, 10));
$hora_voto = explode(":", substr(str_replace(" ", "", $data_modificada), 10, 19));
$tops_voted = array_replace($tops_voted, array($i => array(1, $data_modificada)));
?>
<script language="javascript">
atualizaContador(<?php echo $row->id; ?>,<?php echo $data_voto[0]; ?>,<?php echo $data_voto[1]; ?>,<?php echo $data_voto[2]; ?>,<?php echo $hora_voto[0]; ?>,<?php echo $hora_voto[1]; ?>,<?php echo $hora_voto[2]; ?>);
</script>
<div style='background:url(images/buttons/<?php echo $row->top_img; ?>); background-repeat: no-repeat; background-size: 87px 47px; width:87px; height:47px; border:1px solid #999; margin-top:5px; margin-left:5px; float:left;'>
<div style='width:89px; *width:87px; _width:87px; height:49px; *height:47px; _height:47px; font-size:10px; font-family:Arial; background: rgba(0,0,0,0.8); text-shadow:1px 1px #000; font-weight:bold;'>
<?php echo $language_05; ?><br><font size='3'><span id='contador<?php echo $row->id; ?>'></span></font><br><?php echo $language_06; ?>
</div>
</div>
<?php
}else{
?>
<div style='width:87px; height:47px; border:1px solid #999; margin-top:5px; margin-left:5px; float:left;'><a href='https://l2rankzone.com/lineage2-servers/l2server/<?php echo $row->top_id; ?>/vote' target='_blank'><img src='images/buttons/<?php echo $row->top_img; ?>' title='l2rankzone lineage 2 private l2servers' border='0' width='87' height='47' onClick="javascript:SetCookie('l2rankzone');"></a></div>
<?php
}
}else{
$tops_voted = array_replace($tops_voted, array($i => array(1, '0000-00-00 00:00:00')));
}