Server status

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
Pfann
Posts: 36
Joined: Sun Jul 08, 2007 12:57 am

Server status

Post by Pfann »

hi, i need a plugin for e107 or others for list the server status (online offline ) for my website

maybe anyone know one? the menotrs wont work :(
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Server status

Post by jurchiks »

lol? what plugin?

Code: Select all

$flogin = @fsockopen ($serverLip,$serverLport, $errno, $errstr, 1); if ( $flogin )     $lstat = "<font color=#66BB33>ONLINE</font>"; else     $lstat = "<font color=#FF0000>OFFLINE</font>";
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Pfann
Posts: 36
Joined: Sun Jul 08, 2007 12:57 am

Re: Server status

Post by Pfann »

how do i add this to my website?

http://www.removed.tk
Pfann
Posts: 36
Joined: Sun Jul 08, 2007 12:57 am

Re: Server status

Post by Pfann »

if i add some scripts comes this error

http://pfann.bplaced.net/stattt/


Could not conntect to Database, please , check the server status and/or the DB settings at config.php



i inserted my ip pfann.no-ip.org

i set my database user name from the l2 or what u should use?

i set database l2jdb

and the password


but no chance it dont work :(
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Server status

Post by jurchiks »

First - nobody knows what scripts you tried to add.
Second - I don't know if fsockopen works with no-ip.
Last edited by jurchiks on Wed Sep 29, 2010 5:50 pm, edited 1 time in total.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Pfann
Posts: 36
Joined: Sun Jul 08, 2007 12:57 am

Re: Server status

Post by Pfann »

same on normal ip and localhost
Pfann
Posts: 36
Joined: Sun Jul 08, 2007 12:57 am

Re: Server status

Post by Pfann »

this is my script (all other free script wont work too) maybe u can help me to fix it?



<?php

//Game Database Config
$user1 = "my user"; //GameServer MySQL Database Login
$pass1 = "mypassword"; //GameServer MySQL Database Password
$data1 = "l2jdb"; //GameServer MySQL Database
$host1 = "pfann.no-ip.org"; //GameServer MySQL Host

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

//Login Database Config
$user2 = "dbuser"; //LoginServer MySQL Database Login
$pass2 = "mypass"; //LoginServer MySQL Database Password
$data2 = "l2jdb"; //LoginServer MySQL Database
$host2 = "pfann.no-ip.org"; //LoginServer MySQL Host

//Server IP and Port
$log_ip = "pfann.no-ip.org"; //Set the IP of your Login Server
$log_port = "2106"; //Set the Port of your Login Server
$gam_ip = "pfann.no-ip.org"; //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 = "MyL2Server"; //Set the Servername
$url_to_activ = "http://your-domain.com/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

?>
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Server status

Post by jurchiks »

This isn't the script, it's a config file...
You should ask this in some forum for coders, like http://www.webmaster-talk.com/
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Pfann
Posts: 36
Joined: Sun Jul 08, 2007 12:57 am

Re: Server status

Post by Pfann »

i tryed this plugin http://forum.l2jdp.com.com/f323/php-esse ... ost4524584


and this +much more others but stll don work
http://plugins.e107.org/e107_plugins/ps ... tifact.717






but who is online hero status an all thhre others work funny^^


u can see it on my website ( LS/GS online all the time but status says offline why?
Image
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Server status

Post by jurchiks »

I see you have accounts/characters/GMs counter working all right, what script are you using there?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Pfann
Posts: 36
Joined: Sun Jul 08, 2007 12:57 am

Re: Server status

Post by Pfann »

iam no sure mybe u know madweb6? its a l2 free website its a flash website ther is a status section and there i want make the online offline status but idk it wont work or the others see my other replys there are links too other scripts all work but not the online offline status maybe server configuration to activate itr telnet or other function?
Pfann
Posts: 36
Joined: Sun Jul 08, 2007 12:57 am

Re: Server status

Post by Pfann »

maybe its because fsockopen ? maybe to activate or fix? if yes how to do i use xampp
Pfann
Posts: 36
Joined: Sun Jul 08, 2007 12:57 am

Re: Server status

Post by Pfann »

help me pls ^^
Pfann
Posts: 36
Joined: Sun Jul 08, 2007 12:57 am

Re: Server status

Post by Pfann »

maybe the mysql got more ports? or is there a extra port for the status?
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Re: Server status

Post by denser »

read a bit http://php.net
search functions and try to use them :) experiment with it
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
Post Reply