Secret Experience

Secret Experience (https://secretexperience.net/)
-   [L2J] Dúvidas (https://secretexperience.net/l2j-duvidas/)
-   -   [Web Site] Loguin On (https://secretexperience.net/l2j-duvidas/12982-loguin.html)

Domal 12-09-2009 12:53 AM

Loguin On
 
Olah gostaria ki alguem desse a luz de como configura certo o site pra dizer quando o serve ta on ou off

No meu configurei conforme um tuto ki axei na net e nao muda em nada o loguin sempre off

Vlws

Giga-Byte 12-09-2009 09:10 AM

Poste Aqui Como Esta o Arquivo Config.php Que Ajudaremos :D

lSantana 12-09-2009 09:11 AM

Seria bom você postar o seu arquivo de config do site aqui para resolver o seu problema. Porque na maioria das vezes nao é config diretamente por o arquivo de config ai tu tem q localiza-lo na index.

Domal 12-09-2009 05:11 PM

Citação:

<?php

//Game Database Config
$user1 = "root"; //GameServer MySQL Database Login
$pass1 = ""; //GameServer MySQL Database Password
$data1 = "l2jdb"; //GameServer MySQL Database
$host1 = "localhost"; //GameServer MySQL Host

//Website Title Config
$site['site-title'] = 'L2 SkyNet';

//Login Database Config
$user2 = "root"; //LoginServer MySQL Database Login
$pass2 = ""; //LoginServer MySQL Database Password
$data2 = "l2jdb"; //LoginServer MySQL Database
$host2 = "localhost"; //LoginServer MySQL Host

//Server IP and Port
$log_ip = "10.1.1.55"; //Set the IP of your Login Server
$log_port = "2106"; //Set the Port of your Login Server
$gam_ip = "10.1.1.55"; //Set the IP of your Game Server
$gam_port = "7777"; //Set the Port of your Game Server

//mail config ( for register is mail_activ 1 )
$smtphost = "smtp.yourdomain.com"; //Set the SMTP host
$smtplogin = "noreply@yourdomain.com"; //Set the SMTP Login
$smtppwd = "YourPassword"; //Set the SMTP Login Password
$smtpmail = "noreply@yourdomain.com"; //Set the E-Mail Adress who from the e-mails
$smtpfrom = "ServerNameOrYourName"; //Set your/or the Server name insert

//General
$error_in_script = "0"; //Set to E_ALL when you search an error in script , Set 0 when its all Ok with the script

//level.php Config
$offline_color = "#FF0000"; //Color for Offline Status (NO)
$online_color = "#00FF00"; //Color for Online Status (YES)

//clan Script Config
$leader_color = "#00FF00"; //Color who have the Clan Leader
$member_color = "#000000"; //Color who have the Clan Members

//Limits
$wedding_limit = "25"; //List max xxx Weddings ( wedding.php )
$level_limit = "100"; //List max xxx in Top Level ( level.php )
$pvp_limit = "100"; //List max xxx in PvP Top ( pvp.php )
$p_on_limit = "100"; //List max xxx in Player Online ( player_online.php )
$pk_limit = "10"; //List max xxx in Player Kill Top ( pk.php )
$most_on_limit = "10"; //List max xxx in Most Online Time ( most_online.php )
$karma_limit = "10"; //List max xxx in Karma Top ( karma.php )
$jail_limit = "10"; //List max xxx in who is in Jail ( jail.php )
$clan_limit = "10"; //List max xxx in Clan List ( clan_index.php )
$rich_limit = "10"; //List max xxx in Rich Top ( rich.php )

//Register Mail Config
$days = "30"; //Delete Inactiv Accounts after x Days
$max_accounts = "1000"; //Maximum of Accounts
$servername = "L2 SkyNet"; //Set the Servername
$url_to_activ = "http://10.1.1.55/register";//Set the URL to activ.php , without / at the end
$mail_activ = "0"; //Use 1 for use with e-mail activation, Use 0 for without e-mail activation
$self_mail = "0"; //Use 1 for activ check e-mail in db , use 0 for withot ckeck e-mail in db
$mail_limit = "0"; //How often allow the self e-mail for registartion, only works is mail_activ 1 and self_mail 1

?>
Ta assim na config.php
OBS: O template e do madweb v.6 em flash

HugoAlcovias 12-09-2009 05:14 PM

Código:

<?php

//Game Database Config
$user1 = "root"; //GameServer MySQL Database Login
$pass1 = ""; //GameServer MySQL Database Password
$data1 = "l2jdb"; //GameServer MySQL Database
$host1 = "localhost"; //GameServer MySQL Host

//Website Title Config
$site['site-title'] = 'L2 SkyNet';

//Login Database Config
$user2 = "root"; //LoginServer MySQL Database Login
$pass2 = ""; //LoginServer MySQL Database Password
$data2 = "l2jdb"; //LoginServer MySQL Database
$host2 = "localhost"; //LoginServer MySQL Host

//Server IP and Port
$log_ip = "10.1.1.55"; //Set the IP of your Login Server
$log_port = "2106"; //Set the Port of your Login Server
$gam_ip = "10.1.1.55"; //Set the IP of your Game Server
$gam_port = "7777"; //Set the Port of your Game Server

//mail config ( for register is mail_activ 1 )
$smtphost = "smtp.yourdomain.com"; //Set the SMTP host
$smtplogin = "noreply@yourdomain.com"; //Set the SMTP Login
$smtppwd = "YourPassword"; //Set the SMTP Login Password
$smtpmail = "noreply@yourdomain.com"; //Set the E-Mail Adress who from the e-mails
$smtpfrom = "ServerNameOrYourName"; //Set your/or the Server name insert

//General
$error_in_script = "0"; //Set to E_ALL when you search an error in script , Set 0 when its all Ok with the script

//level.php Config
$offline_color = "#FF0000"; //Color for Offline Status (NO)
$online_color = "#00FF00"; //Color for Online Status (YES)

//clan Script Config
$leader_color = "#00FF00"; //Color who have the Clan Leader
$member_color = "#000000"; //Color who have the Clan Members

//Limits
$wedding_limit = "25"; //List max xxx Weddings ( wedding.php )
$level_limit = "100"; //List max xxx in Top Level ( level.php )
$pvp_limit = "100"; //List max xxx in PvP Top ( pvp.php )
$p_on_limit = "100"; //List max xxx in Player Online ( player_online.php )
$pk_limit = "10"; //List max xxx in Player Kill Top ( pk.php )
$most_on_limit = "10"; //List max xxx in Most Online Time ( most_online.php )
$karma_limit = "10"; //List max xxx in Karma Top ( karma.php )
$jail_limit = "10"; //List max xxx in who is in Jail ( jail.php )
$clan_limit = "10"; //List max xxx in Clan List ( clan_index.php )
$rich_limit = "10"; //List max xxx in Rich Top ( rich.php )

//Register Mail Config
$days = "30"; //Delete Inactiv Accounts after x Days
$max_accounts = "1000"; //Maximum of Accounts
$servername = "L2 SkyNet"; //Set the Servername
$url_to_activ = "http://10.1.1.55/register";//Set the URL to activ.php , without / at the end
$mail_activ = "0"; //Use 1 for use with e-mail activation, Use 0 for without e-mail activation
$self_mail = "0"; //Use 1 for activ check e-mail in db , use 0 for withot ckeck e-mail in db
$mail_limit = "0"; //How often allow the self e-mail for registartion, only works is mail_activ 1 and self_mail 1

?>

Coloque o IP do servidor onde esta de vermelho.

Domal 12-09-2009 05:18 PM

Citação:

# ================================================== ==============
# General server setting !!! REQUIRED to configure to everyone !!!
# ================================================== ==============

# Bind ip of the gameserver, use * to bind on all available IPs
GameserverHostname = 10.1.1.55
GameserverPort = 7777

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
# If this ip is resolvable by Login just leave *
ExternalHostname = 10.1.1.55

# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
# If this ip is resolvable by Login just leave *
InternalHostname = 127.0.0.1

# The Loginserver host and port
LoginPort = 9014
LoginHost = 127.0.0.1
MAs ja estah com o devido ip

Giga-Byte 12-09-2009 05:36 PM

Tente Mudar Aki.
# The Loginserver host and port
LoginPort = 9014
LoginHost = 127.0.0.1 Coloca Teu IP.
E Manda o Index.php Para Nos Vermos, Pos Pode Esta Com Algum IP Modificado

Domal 12-09-2009 06:08 PM

Citação:

<?
/////////////////////////////////////////////////
// Secret Experience - Seja Bem-Vindo(a) //
// ..:: Line][age Noblesse PvP Server ::.. //
// Script feito por _Dudu_1533 //
/////////////////////////////////////////////////

$servidor = 'localhost';
$usuario = 'root';
$senha = '';
$banco = "l2jdb";

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


function total($tab, $cond = NULL) {
$sql = mysql_query("SELECT COUNT(*) AS total FROM ".$tab." ".$cond."") or die(mysql_error());
$c = mysql_fetch_array($sql);
return $c['total'];
}


$loginserver = @fsockopen($servidor, 2106, $errno, $errstr, 2);
$gameserver = @fsockopen($servidor, 7777, $errno2, $errstr2, 2);
?>
Loginserver: <?php echo $loginserver ? 'Online' : 'Offline'; ?>
<br>
Gameserver: <?php echo $gameserver ? 'Online' : 'Offline'; ?>
<br>
Players Online: <?php echo total('characters', 'WHERE online = 1'); ?>
<br>
Contas Criadas: <?php echo total('accounts'); ?>
<br>
Clans Criados: <?php echo total('clan_data'); ?>
Olha soh no index nao tinha nenhum ip dai coloquei esse aki status.php

Mas de qualquer forma tai a index

Spoiler
Citação:



<body bgcolor="#FFFFFF" ondragstart="return false" onselectstart="return false"><script language=JavaScript>
<!--

//Disable right mouse click Script

var message="This is Madweb Property!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!docume nt.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<META HTTP-EQUIV="" CONTENT="">
<LINK REL="StyleSheet" HREF="skins/matrix/style.css">
<title>L][United</title>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculousb395.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript" src="js/rollover.js"></script>
<script type="text/javascript" src="js/display.js"></script>
<link href="layout.css" rel="stylesheet" type="text/css" />
<link href="cursor.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<LINK REL="SHORTCUT ICON" HREF="favicon.ico">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Madweb v.6</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
color: #dfd6b9;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
a, a:active, a:visited {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
text-decoration: none;
color: #000000;
}
a:hover {
color: #000000;

}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;

background-color: #000000;
}

-->
</style>

<head>


<DIV class="reminder" id="reminderDiv">
<TABLE cellpadding="0" cellspacing="0" border="0" width="100%"><TBODY>
<TR>
<TD valign="top" STYLE='padding-left: 7px' nowrap="true" width="15%"></TD>

</TABLE>
</DIV>


</head>
<body>
<div align="center">

<?php $var=rand(1,17); ?>
<table width="935" cellpadding="0" cellspacing="0" border="0">
<tr>
<td background="bg_<?php echo "$var"; ?>.jpg" height="248" colspan="2">
<table width="100%" cellpadding="0" cellspacing="0" border="0" background="clouds_bg.png">
<tr>
<td width="835" height="200" valign="top" align="left"><img src="l2logo.png"><br><?php
$config_game["loc"]="localhost"; //Ñåðâåð ÁÄ
$config_game["user"]="root"; //Èìÿ ïîëüçîâàòåëÿ
$config_game["pass"]=""; //Ïàðîëü
$config_game["base"]="l2jdb"; //Èìÿ Áàçû Äàííûõ
//Ïîäêëþ÷àìñî
$myc_game=@mysql_connect($config_game["loc"],$config_game["user"],$config_game["pass"]);
if(!$myc_game)
{
echo "Îøèáêà ïîäêëþ÷åíèÿ ê áàçå äàííûõ $name";
echo "<br><font color='red'>".mysql_error()."</font>";
exit();
}
//Áàçà
if (!@mysql_select_db($config_game["base"],$myc_game))
{
echo ("Áàçà äàííûõ $name íå äîñòóïíà.");
echo "<br><font color='red'>".mysql_error."</font>";
exit();
}
//Êîäèðîâêà
mysql_query("SET NAMES cp1251",$myc_game);
//Çàïðîñû
$nobless=mysql_fetch_assoc(mysql_query("SELECT COUNT(*) AS count FROM characters WHERE nobless='1'"));
$heroes=mysql_fetch_assoc(mysql_query("SELECT COUNT(*) AS count FROM heroes"));
//Âûâîäèì ðåçóëüòàò
echo "Noblesse: ".$nobless["count"]."<br>";
echo "Heroes: ".$heroes["count"]."";
?>

</td>
<td width="200" height="200" valign="bottom" align="right">
















<table border="0" cellpadding="0" cellspacing="0" width="150">
<tr>



Login Server : <img src="http://status.blackout-gaming.net/status.php?dns=10.1.1.55&port=2106&style=7" alt="" border="0" /></a><br />
<br />
Game Server : <img src="http://status.blackout-gaming.net/status.php?dns=10.1.1.55&port=7777&style=7" alt="" border="0" />





</td>
</tr>
</table>




















</td>
</tr>
<tr>
<td width="935" height="164" valign="middle" colspan="2" align="center">
<div class="chromestyle" id="chromemenu">


<?php include("menu.php");?>


</div>







<script type="text/javascript">

cssdropdown.startchrome("chromemenu")

</script>
</td>
</tr>
</table>
</tr>
<tr>
<td width="300" valign="top">
<table width="300" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center">
<table width="200" cellpadding="0" cellspacing="0">
<tr>

<td width="136" height="48" style="font-size:20px;" align="left">












</td>
</tr>
<tr>
<td width="200" colspan="2" align="center">
<!-- Ñèñòåìà ãîëîñîâàíèé -->
</td>
</tr>
<tr>
<td align="center">
<table width="200" cellpadding="0" cellspacing="0">
<tr>
<td width="54" height="40">
</tr>
<tr>

</table>
</td>
</tr>
</table>
</td>
<td width="635" valign="top" align="center">
<table width="650" cellpadding="0" cellspacing="0">
<tr>
<iframe src="news.php" name="_iframe" width="660" height="2050" scrolling="true" frameborder="0"></iframe></td>
</tr>
</table>
</td>
</tr>
<tr>



</div>
</body>
</html>

Domal 13-09-2009 11:23 AM

Eu mudei mais nada altero continua loguin off :/


Horários baseados na GMT -3. Agora são 06:28 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0