Jump to content

Coletânea de Scripts para seu site


Recommended Posts

Coletânea de Scripts para seu site

 

Olly

 

<?


$servidor = 'localhost';
$usuario = 'root';
$senha = 'senhadadb';
$db = 'l2jdb';

$con = mysql_connect($servidor, $usuario, $senha) or die(mysql_error());
mysql_select_db($db, $con) or die(mysql_error());
?>
<html>
<head>
<title>Heroes Do mes L2JBr</title>
<style type="text/css">
<!--
.style5 {font-size: 15px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }
.style8 {font-size: 12px; font-family: Arial, Helvetica, sans-serif; }
.style4 {font-size: 17px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }

body {
background-color: #EBEBEB;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>
<body>


<table width="100%" border="0" class="style4">
<tr>
<td align="center">Listando candidatos a heroes do servidor</td>
</tr>
</table>
<br>
<br>
<table width="100%" border="0">
<tr bgcolor="#CCCCCC" class="style5" align="center" height="30">
<td>Char:</td>
<td>Classe:</td>
<td>Vitórias:</td>
<td>Lutas:</td>
<td>Clan:</td>
<td>Ally:</td>

</tr>
<?
$sql = mysql_query("SELECT * FROM olympiad_nobles ORDER BY char_name") or die(mysql_error());
$cor = 0;
while($c = mysql_fetch_array($sql)) {
$cor = $cor + 1;
$bg = $cor % 2 == 0 ? '#F1F1F1' : '#E8E8E8';

$h = mysql_query("SELECT * FROM characters WHERE Obj_Id = '".$c['char_id']."'") or die(mysql_error());
$n = mysql_fetch_array($h);
$l = mysql_query("SELECT * FROM class_list WHERE id = '".$n['base_class']."'") or die(mysql_error());
$g = mysql_fetch_array($l);
$i = mysql_query("SELECT * FROM clan_data WHERE clan_id = '".$n['clanid']."'") or die(mysql_error());
$j = mysql_fetch_array($i);
$k = mysql_query("SELECT * FROM olympiad_nobles ") or die(mysql_error());
$w = mysql_fetch_array($k);
$g['class_name'] = explode("_", $g['class_name']);
$j['clan_name'] = empty($n['clanid']) ? 'Sem Clan.' : $j['clan_name'];
$j['ally_name'] = empty($j['ally_id']) ? 'Sem Alliance.' : $j['ally_name'];

?>

<tr bgcolor="<?php echo $bg; ?>" class="style8" align="center" height="23">
<td><?php echo $n['char_name']; ?></td>
<td><?php echo ucwords($g['class_name'][1]); ?></td>
<td><?php echo $w['olympiad_points']; ?></td>
<td><?php echo $w['competitions_done']; ?></td>
<td><?php echo $j['clan_name']; ?></td>
<td><?php echo $j['ally_name']; ?></td>


</tr>
<?
}
?>
</table>

 

 

 

Players On no Servidor:

 

 

<?php

function connect()
{
include "configs/script_config.php";
}

$sexes = array('M', 'F');
$levels = array('-100' => "Banned", '100' => "GM");

$FORM = "<table border='1' background='imagens/imagens/home_r6_c1.gif'>
<tr>
<th class='Stil5' align=center>Pos.</th>
<th class='Stil5' align=center>Player Online</th>
</tr>";
$query_chars = "select char_name from characters WHERE online=1;";
connect();
$link = mysql_query($query_chars);
$i=1;
$r=255;
while ( $row=mysql_fetch_row($link) )
{

$FORM .= "<tr>
<td class='Stil5' align=center>$i</span></td>
<td class='Stil5' align=center>$row[0]</td>
</tr>";
$i++;
$r -= 0;
}

mysql_close();

echo $FORM;

?>

 

 

 

Lista GM's que tem no Server

 

 

<?php

$servidor = '';
$usuario = 'root';
$senha = '';
$base	 = '';

$con = mysql_connect($servidor, $usuario, $senha) or die(mysql_error());
mysql_select_db($base, $con) or die(mysql_error());


$sql = mysql_query("SELECT char_name, accesslevel, online FROM characters WHERE accesslevel > 50") or die(mysql_error());
while($c = mysql_fetch_array($sql)) {

$cor = $c['online'] == '1' ? 'green' : 'red';
$msg = $c['online'] == '1' ? 'ONLINE' : 'OFFLINE';
echo $c['char_name'] . " - " . "<font color=\"".$cor."\">".$msg."</font><br>";
}
?>

 

 

 

Calculadora Online:

 

 

<h1 align="center">Calculadora Online</h1>
<table width="600" align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td> </td>

<td valign="top" bgcolor="#1e4863"><br><br>
<form name="calc" class="form" onsubmit="calc.input.value=eval(calc.input.value);return(false)">
<table align="center" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><input name="input" class="input" style="text-align: right; padding-right: 3px;" type="text"></td></tr>
<tr>
<td><br>
<table align="center" border="0" cellpadding="3" cellspacing="0">
<tbody><tr>

<td><input value=" 1 " onclick="calc.input.value += '1'" class="calcbut" type="button"></td>
<td><input value=" 2 " onclick="calc.input.value += '2'" class="calcbut" type="button"></td>
<td><input value=" 3 " onclick="calc.input.value += '3'" class="calcbut" type="button"></td>
<td><input value=" + " onclick="calc.input.value += ' + '" class="calcbut" type="button"></td>
</tr>
<tr>
<td><input value=" 4 " onclick="calc.input.value += '4'" class="calcbut" type="button"></td>
<td><input value=" 5 " onclick="calc.input.value += '5'" class="calcbut" type="button"></td>
<td><input value=" 6 " onclick="calc.input.value += '6'" class="calcbut" type="button"></td>

<td><input value=" - " onclick="calc.input.value += ' - '" class="calcbut" type="button"></td>
</tr>
<tr>
<td><input value=" 7 " onclick="calc.input.value += '7'" class="calcbut" type="button"></td>
<td><input value=" 8 " onclick="calc.input.value += '8'" class="calcbut" type="button"></td>
<td><input value=" 9 " onclick="calc.input.value += '9'" class="calcbut" type="button"></td>
<td><input value=" x " onclick="calc.input.value += ' * '" class="calcbut" type="button"></td>
</tr>
<tr>

<td><input value=" c " onclick="calc.input.value = ''" class="calcbut" type="button"></td>
<td><input value=" 0 " onclick="calc.input.value += '0'" class="calcbut" type="button"></td>
<td><input value=" = " onclick="calc.input.value = eval(calc.input.value)" class="calcbut" type="button"></td>
<td><input value=" / " onclick="calc.input.value += ' / '" class="calcbut" type="button"></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>

</form>
</td>

 

 

Game Server ON/OFF

 

 

	<?php
		$fp = @fsockopen("127.0.0.1", 2106, $errno, $errstr, 1);
		if($fp >= 1){
		echo 'ON';}
		else{ echo '<font color=red>OFF</font>'; }
		?>

 

 

Trocar Senha

 

<?php
$L2JBS_config["mysql_host"]="localhost";	// MySQL IP
$L2JBS_config["mysql_port"]=3306;		// MySQP port
$L2JBS_config["mysql_db"]="l2jdb";		// l2jnet_db or your lineage 2 server database name
$L2JBS_config["mysql_login"]="root";		// MySQL Login name	
$L2JBS_config["mysql_password"]="root";		// MySQL Password

error_reporting(0);
?>
<?php
$L2JBS_config["javascript_sort_method"]="bubble";
$link = mysql_connect($L2JBS_config['mysql_host'].":".$L2JBS_config['mysql_port'], $L2JBS_config['mysql_login'], $L2JBS_config['mysql_password']);
if (!$link)
die("Couldn't connect to MySQL");
@mysql_select_db($L2JBS_config['mysql_db'], $link)
or die ('Error '.mysql_errno().': '.mysql_error());

?><style type="text/css">
<!--
body {
background-image: url(imagens/index_r14_c3.gif);
}
a:link {
color: #FF9900;
font-weight: bold;
text-decoration: none;
}
a:visited {
color: #CCCCCC;
text-decoration: none;
}
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
}
a:hover {
color: #FF9933;
text-decoration: none;
}
a:active {
color: #FF6600;
text-decoration: none;
}
.style12 {
color: #FFFFFF;
font-size: 36px;
}
-->
</style>
<script type="text/javascript">//<![CDATA[
function isAlphaNumeric(value)
{
if (value.match(/^[a-zA-Z0-9]+$/))
return true;
else
return false;
}
function checkform(f)
{
if (f.account.value=="")
{
alert("Preencher todos os campos do formularios ");
return false;
}
if (!isAlphaNumeric(f.account.value))
{
alert("Preencher todos os campos do formularios");
return false;
}
if (f.oldpassword.value=="")
{
alert("Você colocou sua senha antiga");
return false;
}
if (f.newpassword.value=="")
{
alert("Nenhuma senha detectada no campo");
return false;
}
if (!isAlphaNumeric(f.newpassword.value))
{
alert("44444");
return false;
}
if (f.newpassword2.value=="")
{
alert("Você não repetiu a senha");
return false;
}
if (f.newpassword.value!=f.newpassword2.value)
{
alert(" Senha não é igual! ");
return false;
}
return true;
}
//]]></script>
<link href="style.css" rel="stylesheet" type="text/css">
<title>Trocar Senha</title></head>
<style type="text/css">
<!--
.Estilo1 {
color: #FFFFFF;
font-family: "Courier New", Courier, monospace;
}
color: #FFFFFF;
font-weight: bold;
}
-->
.Estilo4 {font-size: 10px; font-weight: bold; }
.Estilo6 {color: #FFFFFF}
-->
</style>
<body>
<form method="post" action="?ir=lembrarsenha" onsubmit="return checkform(this)">
<center>
<font face="Verdana, Arial, Helvetica, sans-serif"><strong><span class="Estilo1">Trocar </span><span class="Estilo6">senha<br>
</span><font color="#FF0000" size="4">
</font></strong></font> <br>
<table background="imagens/imagens/home_r6_c1.gif">
<tr>
<td class="Estilo1"><div align="left" class="Estilo4"><font face="Trebuchet MS">Login </font></div></td>
<td>
<font size="1"><b>
<input name="account" type="text" class="camp1" style="font-family: Trebuchet MS; " size="20" maxlength="15" />
</b></font></td>
</tr>
<tr>
<td class="Estilo1"><div align="left" class="Estilo4"><font face="Trebuchet MS">Senha Atual </font></div></td>
<td><font size="1"><b>
<input name="oldpassword" type="password" class="camp1" style="font-family: Trebuchet MS; " size="20" maxlength="15" />
</b></font></td>
</tr>
<tr>
<td class="Estilo1"><div align="left" class="Estilo4"><font face="Trebuchet MS">Nova Senha </font></div></td>
<td><font size="1"><b>
<input name="newpassword" type="password" class="camp1" style="font-family: Trebuchet MS; " size="20" maxlength="15" />
</b></font></td>
</tr>
<tr>
<td class="Estilo1"><div align="left" class="Estilo4"><font face="Trebuchet MS">Repetir Senha </font> </div></td>
<td><font size="1"><b>
<input name="newpassword2" type="password" class="camp1" style="font-family: Trebuchet MS; " size="20" maxlength="15" />
</b></font></td>
</tr>
<tr>
<td colspan="2" style="text-align: center;"><font size="1"><b>
<input name="submit" type="submit" class="camp1" style="font-family: Trebuchet MS" value="Trocar SENHA" />
</b></font></td>
</tr>
</table>
</center>
</form>
<center>
<?php
if(ereg("^([a-zA-Z0-9_-])*$", $_POST['account']) && ereg("^([a-zA-Z0-9_-])*$", $_POST['oldpassword']) && ereg("^([a-zA-Z0-9_-])*$", $_POST['newpassword']) && ereg("^([a-zA-Z0-9_-])*$", $_POST['newpassword2']))
{
if ($page='index.php' && $_POST['account'] && strlen($_POST['account'])<16 && $_POST['oldpassword'] && $_POST['newpassword'] && $_POST['newpassword']==$_POST['newpassword2'])
{
$result=mysql_query("SELECT login,password FROM accounts WHERE login='".@mysql_real_escape_string($_POST['account'])."' AND password='".base64_encode(pack('H*', sha1($_POST['oldpassword'])))."'", $link)
 or die ("Error: ".mysql_error());
if (mysql_num_rows($result))
{
mysql_query("UPDATE accounts SET password='".base64_encode(pack('H*', sha1($_POST['newpassword'])))."' WHERE login='".mysql_real_escape_string($_POST['account'])."'", $link)
or die ("Error: ".mysql_error());
 print "<p style=\"font-weight: bold;\"><font size=1 color=ffffff>Senha modificada. </font> </p>";
}
else
 print "<p class=\"error\"><font size=1 color=ffffff>Ouve algum erro, tente novamente. </font> </p>";
mysql_close($link);
}
}
else
{
echo "<font size=1 color=ffffff>As limitações não foram testadas para a segurança. Se você for confiável que tido a informação correta, consultar por favor à administração.</font>";
}
?>
</center>
</body>
</html>

 

 

Login Server ON/OFF

 

 

<?php
		$fp = @fsockopen("127.0.0.1", 7777, $errno, $errstr, 1);
		if($fp >= 1){
		echo 'ON';}
		else{ echo '<font color=red>OFF</font>';}
		?>

 

 

 

Nomes dos players que estao On No Servidor

 

 

<?php

function connect()
{
include "configs/script_config.php";
}

$sexes = array('M', 'F');
$levels = array('-100' => "Banned", '100' => "GM");

$FORM = "<table border='1' background='imagens/imagens/home_r6_c1.gif'>
<tr>
<th class='Stil5' align=center>Pos.</th>
<th class='Stil5' align=center>Player Online</th>
</tr>";
$query_chars = "select char_name from characters WHERE online=1;";
connect();
$link = mysql_query($query_chars);
$i=1;
$r=255;
while ( $row=mysql_fetch_row($link) )
{

$FORM .= "<tr>
<td class='Stil5' align=center>$i</span></td>
<td class='Stil5' align=center>$row[0]</td>
</tr>";
$i++;
$r -= 0;
}

mysql_close();

echo $FORM;

?>

 

 

Cuantos Personagens existem no srv.

 

 

<?
$servidor = "localhost"; 	//IP do servidor
$usuario = "root"; 		//Usuário do Sql
$senha = "root"; 		//Senha do Banco de Dados
$banco = "l2jdb"; 		// Nome do Banco de Dados

$conexao = mysql_connect($servidor, $usuario, $senha) or die(mysql_error());
mysql_select_db($banco, $conexao) or die(mysql_error());

$sql = mysql_query("SELECT * FROM characters ORDER BY account_name") or die(mysql_error());

$i = 1;
while($a = mysql_fetch_object($sql)) {
$i++;
}
$i= $i-1
?><?php echo $i;
?>

 

 

Numero dos players on no seu server

 

 

<?php
function connect()
{
include "configs/script_config.php";
}

$query_chars = "select char_name from characters WHERE online=1;";
connect();
$link = mysql_query($query_chars);
$a=1;
$r=255;
while ( $row=mysql_fetch_row($link) )
{
$FORM .= $row[0];
$a++;
$r -= 0;
}
if ($a == ""){
$a=0;
}

mysql_close();
echo $a -1;
?>

 

 

Title se mechendo

 

 

<title>L2JBrasil </title>
<script><!--
var tit = document.title;
var c = 0;

function writetitle()
{
document.title = tit.substring(0,c);
if(c==tit.length)
{
c = 0;
setTimeout("writetitle()", 3000)
}
else
{
c++;
setTimeout("writetitle()", 200)
}
}
writetitle()
// --></script>

 

 

Script PHP (Troca imagem ao carrega o site)

 

 

<?php

function connect()
{
include "configs/script_config.php";
}

$sexes = array('M', 'F');
$levels = array('-100' => "Banned", '100' => "GM");

$FORM = "<table border='1' background='imagens/imagens/home_r6_c1.gif'>
<tr>
<th class='Stil5' align=center>Pos.</th>
<th class='Stil5' align=center>Player Online</th>
</tr>";
$query_chars = "select char_name from characters WHERE online=1;";
connect();
$link = mysql_query($query_chars);
$i=1;
$r=255;
while ( $row=mysql_fetch_row($link) )
{

$FORM .= "<tr>
<td class='Stil5' align=center>$i</span></td>
<td class='Stil5' align=center>$row[0]</td>
</tr>";
$i++;
$r -= 0;
}

mysql_close();

echo $FORM;

?>

 

 

 

Desativa o clik dereito do mouse

 

 

function GetClickCountRate(fileName)

curPage=1;
document.oncontextmenu = function() { return false }

if(document.layers)
{
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = function(e)
{
if(e.target==document)
return false;
}
}

 

 

Crie um arkivo .js e coloke iso dentro

cualquer duvida poste-la aki !

 

Confirmar Doaçao

 

 

Index.php

 

 

<html>

<head>

<title>Formulario HTML</title>

<style type="text/css">

@import url("style.css");

</style>

</head>

<body>

<?php

if (isset($_POST["nome"]) || isset($_POST["login"]) || isset($_POST["char"]) ||

isset($_POST["banco"]) || isset($_POST["numero"]) || isset($_POST["modo"]) ||

isset($_POST["valor"]) || isset($_POST["data"]) || isset($_POST["hora"]) ||

isset($_POST["tipo"]) || isset($_POST["email"]) || isset($_POST["comentarios"]))

{

$nome = $_POST["nome"];

$login = $_POST["login"];

$char = $_POST["char"];

$banco = $_POST["banco"];

$numero = $_POST["numero"];

$modo = $_POST["modo"];

$valor = $_POST["valor"];

$data = $_POST["data"];

$hora = $_POST["hora"];

$tipo = $_POST["tipo"];

$email = $_POST["email"];

$comentarios = $_POST["comentarios"];

 

$arq = fopen("data.php", "a");

 

if($arq)

{

fputs($arq, "-----------------------------------------------------------------------------------------------

Nome = $nome

Login = $login

Char = $char

Banco = $banco

Numero do deposito = $numero

Modo de deposito = $modo

Valor da Doação = $valor

Data da Doação = $data

Hora exata da Doação = $hora

Tipo de Doação = $tipo

E-Mail de contato = $email

Comentario = $comentarios

-----------------------------------------------------------------------------------------------\r\n");

 

fclose($arq);

 

echo "<hr></hr><table align='center'>

<tr>

<th>Seu pedido de confirmação de Doação foi enviado com Sucesso!!</th>

</tr>

</table>

<hr></hr>";

}

else

{

echo "ERRO: Falha ao abrir o arquivo!";

}

}

else

{

echo "";

}

?>

<table border="0">

<form action="index.php" method="post">

<tr>

<th>Nome Completo:</th>

<td><input type="text" name="nome" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Login:</th>

<td><input type="text" name="login" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Char:</th>

<td><input type="text" name="char" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Banco:</th>

<td><input type="text" name="banco" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Numero do deposito:</th>

<td><input type="text" name="numero" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Modo de deposito:</th>

<td><input type="text" name="modo" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Valor da Doação:</th>

<td><input type="text" name="valor" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Data da Doação:</th>

<td><input type="text" name="data" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Hora exata da Doação:</th>

<td><input type="text" name="hora" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Tipo de Doação:</th>

<td><input type="text" name="tipo" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Seu E-Mail de Contato:</th>

<td><input type="text" name="email" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Comentarios:</th>

<td><textarea name="comentarios" cols="22" rows="7"></textarea></td>

</tr>

<tr>

<td><center><input type="submit" value="Enviar"></center></td>

<td><center><input type="reset" value="Resetar"></center></td>

</tr>

</form>

</table>

</body>

</html>

 

 

 

style.css

 

 

 

/*********************************

********** CSS DO SCRIPT **********

**********************************/

body {

background-color: #283C3E;

}

th {

color: #FFFFFF;

text-align: left;

font-weigth: bold;

}

 

 

 

Demo:

 

 

fWrPX.png

 

 

 

 

 

Raid Boss ON/OFF (A Pedido do membro ByJrmhp)

 

 

<html>
<head>
<title>
Informações do Raid Boss
</title>
</head>
<body>
<table>
<tr><td>Name</td><td>Status</td><td>Spawn</td></tr>
<?php
$hostname = "localhost"; // tipo de conexao
$database = "l2jdb"; // nome da database
$user = "root"; // login no mysql
$pass = "senhadasuadb"; // senha do mysql

$connect = @mysql_connect($hostname, $user, $pass);
@mysql_select_db($database, $connect);

if(!$connect)
echo 'Can\'t connect to the database';
else
{
$raidspawn = mysql_query("SELECT boss_id,respawn_time FROM raidboss_spawnlist ORDER BY respawn_time DESC");
while(list($boss_id,$respawn_time) = mysql_fetch_row($raidspawn))
{
$raidnames = mysql_query("SELECT name FROM npc WHERE id = $boss_id");
$text = '<font color="00FF00">Ativo</font>';
$respawn = '<font color="0000FF">Spawn</font>';
if($respawn_time > 0)
{
	$respawntime = date('r',($respawn_time / 1000));
	$text = '<font color="FF0000">Morto</font>';
	$respawn = '<font color="FF0000">Tempo de Respawn '.$respawntime.'</font>';
}

while(list($raidname) = mysql_fetch_row($raidnames))
{
	echo '<tr><td>'.$raidname.'</td><td>'.$text.'</td><td>'.$respawn.'</td></tr>';
}
}
}
?>
</table>
</body>
</html>

 

 

 

Castle Siege

 

 

 

 

Imagem.

 

 

castleu.gif

 

 

 

 

Código

 

 

 

 

 

 

Rank Pvp/PK/Online/Rec Etc..

Creditos ao L2Vicio

 

<html>
<style type="text/css">
<!--
body,td,th {
color: #000;
background-color:#FFF
}
.table {
border-color: #000;
border-style: hidden;
}
.pos {
background-color:#CCC;
border-color: #000;
border-style: dashed;
}
.char {
background-color:#CCC;
border-color: #000;
border-style: dashed;
}
.quant {
background-color:#CCC;
border-color: #000;
border-style: dashed;
}
-->
</style>
<body>
<h3>Top PVP</h3>
<table width="300" border="1" class="table">
<tr>
<td class="pos">Posição:</td>
<td class="char">Character:</td>
<td class="quant">Quantidade:</td>
</tr>
<?php
// Script Desenvolvido por L2ViciO, por favor não remova os créditos daqui!
/*_______________________________________________________________________*/
// Configurações do MySQL
$sql['usr'] = "root"; # Usuário, Ex: "root" (Geralmente é root mesmo)
$sql['pass'] = "91f2v9e"; # Senha, caso não tenha definido, deixe em branco, Ex: ""
$sql['db'] = "l2db"; # Database, Ex: "l2jdb"
$sql['host'] = "noxconn.servegame.com"; # Endereço do servidor MySQL, Ex: "localhost"
// Fim das configurações do MySQL

// Não mexer abaixo
$open = mysql_connect($sql['host'], $sql['usr'], $sql['pass']) or die("Não foi possível conectar-se à database.");
$select_db = mysql_select_db($sql['db'], $open) or die("Database não encontrada ou inexistente.");
// Não mexer acima

// Configurações do Script
$accesslevel = accesslevel ; // Nome da coluna de accesslevel do seu server (Nos servers mais novos [Gracia +] é accesslevel mesmo .
$ranking = pvpkills ; // Tipo do Ranking; Pode ser: pvpkills ; pkkills ; onlinetime ; karma ; level ; maxCP ; maxHP ; maxMP ; fame .
$limite = 15 ; // Limite de chars que aparecem no ranking .
// Fim das configurações

// Querys e valores fixos (Não mexer)
$top = mysql_query("SELECT * FROM characters WHERE $accesslevel=0 ORDER BY $ranking DESC LIMIT 0, ".$limite."");
$fixo = 1;
// Fim das querys

// Script em si
while($x = mysql_fetch_array($top)){
echo '<tr>
<td class=pos>'.$fixo.' °</td>
<td class=char>'.$x['char_name'].'</td>
<td class=quant>'.$x[$ranking].'</td>
</tr>';
$fixo++;
}
echo '</table>';


// Script em si
// Script Desenvolvido por L2ViciO, por favor não remova os créditos daqui!
?>
</body>
</html>

 

 

 

Créditos : mend3, gpsites, asR, Rz,Amnesia, Jonatha ferreira.

Créditos Post: Fort♥

wink.gif

 

Cualquer duvida poste-la aki !

Edited by NattanFelipe
  • Like 5
eT6CY.gif
Link to comment
Share on other sites


por acaso não tem ai BOSS ONLINE / OFFLINE?

 

Aquele que aprendeu e reviveu aqui na l2jbrasil

Faço muitos trabalhos para esta comunidade, assim como tambem ajudo aos que precisão.

A VIDA E UMA CAIXINHA DE SUPRESAS, NAO DEIXE PARA DEPOIS O QUE PODES FAZER AGORA!

 

Link to comment
Share on other sites

rank pvp e pk tem ?

 

PvP/PK

Creditos ao L2Vicio

 

<html>
<style type="text/css">
<!--
body,td,th {
       color: #000;
       background-color:#FFF
}
.table {
       border-color: #000;
       border-style: hidden;
}
.pos {
       background-color:#CCC;  
       border-color: #000;
       border-style: dashed;
}
.char {
       background-color:#CCC;  
       border-color: #000;
       border-style: dashed;
}
.quant {
       background-color:#CCC;
       border-color: #000;
       border-style: dashed;   
}
-->
</style>
<body>
<h3>Top PVP</h3>
<table width="300" border="1" class="table">
<tr>
<td class="pos">Posição:</td>
<td class="char">Character:</td>
<td class="quant">Quantidade:</td>
</tr>
<?php
// Script Desenvolvido por L2ViciO, por favor não remova os créditos daqui!
/*_______________________________________________________________________*/
// Configurações do MySQL
$sql['usr'] = "root";     # Usuário, Ex: "root" (Geralmente é root mesmo)
$sql['pass'] = "91f2v9e";           # Senha, caso não tenha definido, deixe em branco, Ex: ""
$sql['db'] = "l2db";       # Database, Ex: "l2jdb"
$sql['host'] = "noxconn.servegame.com";   # Endereço do servidor MySQL, Ex: "localhost"
// Fim das configurações do MySQL

// Não mexer abaixo
$open = mysql_connect($sql['host'], $sql['usr'], $sql['pass']) or die("Não foi possível conectar-se à database.");
$select_db = mysql_select_db($sql['db'], $open) or die("Database não encontrada ou inexistente.");
// Não mexer acima

// Configurações do Script
$accesslevel = accesslevel ; // Nome da coluna de accesslevel do seu server (Nos servers mais novos [Gracia +] é accesslevel mesmo .
$ranking = pvpkills ; // Tipo do Ranking; Pode ser: pvpkills ; pkkills ; onlinetime ; karma ; level ; maxCP ; maxHP ; maxMP ; fame .
$limite = 15 ; // Limite de chars que aparecem no ranking .
// Fim das configurações

// Querys e valores fixos (Não mexer)
$top = mysql_query("SELECT * FROM characters WHERE $accesslevel=0 ORDER BY $ranking DESC LIMIT 0, ".$limite."");
$fixo = 1;
// Fim das querys

// Script em si
       while($x = mysql_fetch_array($top)){
               echo '<tr>
                               <td class=pos>'.$fixo.' °</td>
                       <td class=char>'.$x['char_name'].'</td>
                       <td class=quant>'.$x[$ranking].'</td>
                         </tr>';
               $fixo++;
               }
                               echo '</table>';


// Script em si
// Script Desenvolvido por L2ViciO, por favor não remova os créditos daqui!
?>
</body>
</html>

eT6CY.gif
Link to comment
Share on other sites

leecher. os créditos não são seus.

 

 

créditos : mend3

Créditos:

gpsites

mend3

asR

Rz

Amnesia

 

Olá, Seja bem vindo, deixei de fazer videos faz tempo, mas ainda tenho canal! KKK Eram bons videos, muita coisa bacana, mas cansei! Agora só desenvolvo! KAKAK 
Se tiver dúvidas, mande uma mensagem!

▶️ youtube.com/allaanz1n
🌐 allanalc [Discord]

Link to comment
Share on other sites

leecher. os créditos não são seus.

 

 

créditos : mend3

Créditos:

gpsites

mend3

asR

Rz

Amnesia

 

Disculpe amigo, eu colokei meus creditos la pelo post feito por mim !

Mais os scripts nao sao ningum meu so juntei todos em 1 ...

Colokei todo os creditos que tu me pasou Obrigado ai..

eT6CY.gif
Link to comment
Share on other sites

huh.gif ... kkkkkkkkk', foi é? wink.gif

então relaxa, --'

 

Olá, Seja bem vindo, deixei de fazer videos faz tempo, mas ainda tenho canal! KKK Eram bons videos, muita coisa bacana, mas cansei! Agora só desenvolvo! KAKAK 
Se tiver dúvidas, mande uma mensagem!

▶️ youtube.com/allaanz1n
🌐 allanalc [Discord]

Link to comment
Share on other sites

  • 4 weeks later...

ola vc nao teria 1 registro simples i nao para este sit (http://www.l2jbrasil.com/index.php?/topic/44188-new-site-by-revoltado

 

o registro de la esta assim

 

Login: ....................................................

Exibição:................................................

Senha: .............................................

Confirma Senha: ..................................

Codigo de Acesso:...........................

(Apenas numeros max 5)

 

E-mail:..........................

 

poderia fazer 1 assim

 

log =

senha=

repetir senha=

 

com 1 sql para add no sit ( interlud) :excl:

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 2 weeks later...

Ser o que?

 

 

 

Calculadora Online:

 

<h1 align="center">Calculadora Online</h1>

<table width="600" align="center" border="0" cellpadding="0" cellspacing="0">

<tbody>

<tr>

<td> </td>

 

<td valign="top" bgcolor="#1e4863"><br><br>

<form name="calc" class="form" onsubmit="calc.input.value=eval(calc.input.value);return(false)">

<table align="center" border="0" cellpadding="0" cellspacing="0">

<tbody><tr>

<td><input name="input" class="input" style="text-align: right; padding-right: 3px;" type="text"></td></tr>

<tr>

<td><br>

<table align="center" border="0" cellpadding="3" cellspacing="0">

<tbody><tr>

 

<td><input value=" 1 " onclick="calc.input.value += '1'" class="calcbut" type="button"></td>

<td><input value=" 2 " onclick="calc.input.value += '2'" class="calcbut" type="button"></td>

<td><input value=" 3 " onclick="calc.input.value += '3'" class="calcbut" type="button"></td>

<td><input value=" + " onclick="calc.input.value += ' + '" class="calcbut" type="button"></td>

</tr>

<tr>

<td><input value=" 4 " onclick="calc.input.value += '4'" class="calcbut" type="button"></td>

<td><input value=" 5 " onclick="calc.input.value += '5'" class="calcbut" type="button"></td>

<td><input value=" 6 " onclick="calc.input.value += '6'" class="calcbut" type="button"></td>

 

<td><input value=" - " onclick="calc.input.value += ' - '" class="calcbut" type="button"></td>

</tr>

<tr>

<td><input value=" 7 " onclick="calc.input.value += '7'" class="calcbut" type="button"></td>

<td><input value=" 8 " onclick="calc.input.value += '8'" class="calcbut" type="button"></td>

<td><input value=" 9 " onclick="calc.input.value += '9'" class="calcbut" type="button"></td>

<td><input value=" x " onclick="calc.input.value += ' * '" class="calcbut" type="button"></td>

</tr>

<tr>

 

<td><input value=" c " onclick="calc.input.value = ''" class="calcbut" type="button"></td>

<td><input value=" 0 " onclick="calc.input.value += '0'" class="calcbut" type="button"></td>

<td><input value=" = " onclick="calc.input.value = eval(calc.input.value)" class="calcbut" type="button"></td>

<td><input value=" / " onclick="calc.input.value += ' / '" class="calcbut" type="button"></td>

</tr>

</tbody></table>

</td>

</tr>

</tbody></table>

 

</form>

</td>

 

Instagram | Twitter | YouTube 

bWhRF.png

 

                                                                                  2011 - 2024

 

Link to comment
Share on other sites

Ser o que?

 

 

 

Calculadora Online:

 

<h1 align="center">Calculadora Online</h1>

<table width="600" align="center" border="0" cellpadding="0" cellspacing="0">

<tbody>

<tr>

<td> </td>

 

<td valign="top" bgcolor="#1e4863"><br><br>

<form name="calc" class="form" onsubmit="calc.input.value=eval(calc.input.value);return(false)">

<table align="center" border="0" cellpadding="0" cellspacing="0">

<tbody><tr>

<td><input name="input" class="input" style="text-align: right; padding-right: 3px;" type="text"></td></tr>

<tr>

<td><br>

<table align="center" border="0" cellpadding="3" cellspacing="0">

<tbody><tr>

 

<td><input value=" 1 " onclick="calc.input.value += '1'" class="calcbut" type="button"></td>

<td><input value=" 2 " onclick="calc.input.value += '2'" class="calcbut" type="button"></td>

<td><input value=" 3 " onclick="calc.input.value += '3'" class="calcbut" type="button"></td>

<td><input value=" + " onclick="calc.input.value += ' + '" class="calcbut" type="button"></td>

</tr>

<tr>

<td><input value=" 4 " onclick="calc.input.value += '4'" class="calcbut" type="button"></td>

<td><input value=" 5 " onclick="calc.input.value += '5'" class="calcbut" type="button"></td>

<td><input value=" 6 " onclick="calc.input.value += '6'" class="calcbut" type="button"></td>

 

<td><input value=" - " onclick="calc.input.value += ' - '" class="calcbut" type="button"></td>

</tr>

<tr>

<td><input value=" 7 " onclick="calc.input.value += '7'" class="calcbut" type="button"></td>

<td><input value=" 8 " onclick="calc.input.value += '8'" class="calcbut" type="button"></td>

<td><input value=" 9 " onclick="calc.input.value += '9'" class="calcbut" type="button"></td>

<td><input value=" x " onclick="calc.input.value += ' * '" class="calcbut" type="button"></td>

</tr>

<tr>

 

<td><input value=" c " onclick="calc.input.value = ''" class="calcbut" type="button"></td>

<td><input value=" 0 " onclick="calc.input.value += '0'" class="calcbut" type="button"></td>

<td><input value=" = " onclick="calc.input.value = eval(calc.input.value)" class="calcbut" type="button"></td>

<td><input value=" / " onclick="calc.input.value += ' / '" class="calcbut" type="button"></td>

</tr>

</tbody></table>

</td>

</tr>

</tbody></table>

 

</form>

</td>

 

 

 

GRD_374_web_calculadora_mod_03.jpg

signpt1.jpg

signpt2.jpgsignpt3.jpgsignpt4.jpgsignpt5.jpg

Link to comment
Share on other sites

Alguns links estão off REVISE O TOPICO !

 

Aquele que aprendeu e reviveu aqui na l2jbrasil

Faço muitos trabalhos para esta comunidade, assim como tambem ajudo aos que precisão.

A VIDA E UMA CAIXINHA DE SUPRESAS, NAO DEIXE PARA DEPOIS O QUE PODES FAZER AGORA!

 

Link to comment
Share on other sites




  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Poh passa pra mim, eu não tenho interesse em nada sobre essas coisas, apenas estou rodando o forum que nem louco pra achar uma rev boa pra jogar só eu e minha esposa 😕 Dou minha palavra que não tenho vontade nenhuma de repassar ja que esse tipo de coisa anda rolando na comunidade 😕 Se puder eu agradeço,senao nao tem problema eu entendo completamente ^^ Meu Discord: xii_gaia_iix
    • Olá a todos gostaria de informa que demos um tempo no projeto mais já estamos voltando ativa com uma revisão estável e 100% limpa de mods. Não iremos disponibilizar a soucer do projeto devido a uns caras malandros aqui que já esta vendendo a revisão sem nem esta estável.
    • podes subir denuevo la data por favor 
    • UP!!! Vou Reupar em breve, tive que recriar o app... 
    • Sobre o rate limit. Antes de tudo, é importante entender o seguinte: o SphereAPI é um cluster — não é apenas um único servidor. Existe um servidor público por padrão, mas os outros IPs dos servidores da Sphere são ocultos por questões de segurança e são adicionados manualmente no painel de administração, especificando o IP e a PORTA. Dessa forma, evitamos ataques DDoS. O SphereAPI trabalha de forma paralela, mesmo que os servidores não estejam diretamente conectados entre si. Se alguém tentar fazer um ataque DDoS a um dos servidores da Sphere, isso não afetará os clientes do SphereWeb que estão em outros servidores. O próprio SphereAPI foi escrito na linguagem Golang para distribuir ao máximo a carga, utilizar concorrência e multiprocessamento. Atualmente, no servidor público, tenho dezenas e dezenas de sites conectados, e a cada segundo o Sphere executa requisições e gerencia conexões, enquanto o SphereAPI consome apenas 27MB de RAM. Eu considero isso um bom resultado do meu trabalho. Dos sites SphereWeb, só recebo requisições quando realmente necessário. Se algum site de servidor for alvo de um ataque DDoS, isso não afeta a Sphere de forma alguma.  
    • obg pelas, informações.  desculpe o excesso de perguntas. normalmente as pessoas nao fazem perguntas tao tecnicas, e acabam por desconherem o nivel grande do projeto que estao usando. gosto de fazer essas perguntas, para que fique registrado e as pessoas possam ver depois. sem precisar perguntar novamente : D vc fez algum tipo de ratelimit ?
    • SphereAPI (ela processa todas as conexões) faz consultas ao banco de dados somente quando necessário. Nós armazenamos todos os dados em cache, assim as consultas só são feitas quando o cache está desatualizado. Simplificando: se 100 pessoas acessarem sua página de estatísticas em 1 minuto, a consulta para obter os dados será feita apenas uma vez. E o resultado da consulta é armazenado tanto na memória da SphereAPI quanto da SphereWeb.
    • quais foram as tecnicas que vc usou para evitar excesso de consultas, tais como tops e afins que fazem JOIN nas tabelas, e podem causar lentidão ?
    • Se o servidor da Sphere não conseguir se conectar ou perder a conexão com o banco de dados do servidor de jogo, ou não conseguir executar uma consulta SQL, então o SphereWeb mostrará que o servidor está indisponível no painel de lista de servidores da administração. Na área administrativa será exibida a mensagem de erro, indicando a causa do problema. E se for um erro de consulta SQL, a consulta será pausada para evitar novas tentativas com erro no banco de dados do servidor. A Sphere aguardará até que o problema seja resolvido – ou seja, até que o erro seja corrigido. Depois disso, será possível limpar a lista de erros, e a Sphere tentará se conectar novamente.   Vale destacar que, para otimização, a API da Sphere mantém uma conexão permanente com o banco de dados do servidor de jogo enquanto o site estiver sendo acessado. Se ninguém acessar seu site por mais de 15 minutos, a Sphere se desconectará do banco de dados do jogo e só se reconectará quando alguém acessar novamente.   Provavelmente não expliquei tudo de forma clara, pois há muitos detalhes que não mencionei.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.