Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 07:53

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE]Previous connections info php script (2 designs)

Discussion on [RELEASE]Previous connections info php script (2 designs) within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
Zombe's Avatar
 
elite*gold: 20
Join Date: Dec 2007
Posts: 1,451
Received Thanks: 840
[RELEASE]Previous connections info php script (2 designs)

I made 2 designs because I was bored.


The 1st one just spits out the array using print_r(), making it a lot faster to display all info then the 2nd, if you have a big server.

Design 1: ()
PHP Code:
<?php
/* ----------{Zombe's connection info retrieval page}---------- */
/* -----------------------{Design nr.1}------------------------ */

$MSSQLserverIP 'localhost'// IP goes here
$MSSQLusername 'sa'// MSSQL username goes here
$MSSQLpassword 'password'// MSSQL password goes here

//        Don't edit below if you don't know what you are doing.
ob_start();
echo(
'<title>Previous Connections Info</title>');
$link mssql_connect ("$MSSQLserverIP""$MSSQLusername""$MSSQLpassword") or die('<hr><b>Failed to connect to the database.</b>');

$a=mssql_query("SELECT * FROM character.dbo.CHAR_CONNLOG_KEY",$link);
echo
'<pre><hr>';
while(
$b=mssql_fetch_array($a))
{
    foreach(
array_keys($b) as $c)
    {
        if (
is_int($c))
        {
            unset(
$b[$c]);
        }
    }
    if(isset(
$b[conn_ip])) $b[conn_ip] = long2ip(hexdec(bin2hex($b[conn_ip])));
    
print_r($b);
    echo
'<hr>';
}
echo
'</pre>';
ob_end_flush();
?>

And the second one is my classic layout using a table, like my old designs.

Design 2: ()
PHP Code:
<?php
/* ----------{Zombe's connection info retrieval page}---------- */
/* -----------------------{Design nr.2}------------------------ */

$MSSQLserverIP 'localhost'// IP goes here
$MSSQLusername 'sa'// MSSQL username goes here
$MSSQLpassword 'password'// MSSQL password goes here

//        Don't edit below if you don't know what you are doing.
ob_start();
echo(
'<title>Previous Connections Info</title>');
$link mssql_connect ("$MSSQLserverIP""$MSSQLusername""$MSSQLpassword") or die('<hr><b>Failed to connect to the database.</b>');

$a=mssql_query("SELECT * FROM character.dbo.CHAR_CONNLOG_KEY",$link);

echo(
"
    <center>
    <b><font size = 5>Previous Connections Info:</font></b>
    <br><table border='1'><p>&nbsp
    <tr>
    <td align='center'><b>Nr.</b></td>
    <td align='center'><b>Connection no</b></td>
    <td align='center'><b>Character no</b></td>
    <td align='center'><b>User no</b></td>
    <td align='center'><b>Login time</b></td>
    <td align='center'><b>Logout time</b></td>
    <td align='center'><b>Connected from</b></td>
    </tr>
"
);
while(
$b=mssql_fetch_array($a))
{
    
$nr++;
    
$ip long2ip(hexdec(bin2hex($b[conn_ip])));
    echo(
"
        <tr>
        <td align='center'>
$nr</td>
        <td align='center'>
$b[conn_no]</td>
        <td align='center'>
$b[character_no]</td>
        <td align='center'>
$b[user_no]</td>
        <td align='center'>
$b[login_time]</td>
        <td align='center'>
$b[logout_time]</td>
        <td align='center'>
$ip</td>
        </tr>
    "
);
}
echo
'</table></center>';
ob_end_flush();
?>
Don't forget to change the database info according to your server.

Enjoy.
Attached Files
File Type: rar Design 1.rar (631 Bytes, 18 views)
File Type: rar Design 2.rar (741 Bytes, 13 views)
Zombe is offline  
Thanks
8 Users
Old 12/10/2009, 16:28   #2
 
Nosferatu.'s Avatar
 
elite*gold: 22
Join Date: Jan 2008
Posts: 743
Received Thanks: 450
nice work
Nosferatu. is offline  
Old 01/13/2010, 23:16   #3
 
l2zeo's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 267
Received Thanks: 39
thx.!
good job :-)
l2zeo is offline  
Reply


Similar Threads Similar Threads
[Release]Pserver Homepage mit mehreren Designs
02/01/2013 - Metin2 PServer Guides & Strategies - 40 Replies
Hallo Com, Ich hab mich mal drangesetzt und eine HP gebastelt die auch Optisch was hermacht. Leider erfüllt diese derzeit nur die wichtigsten Funktionen, sprich die Registrierung und eine Rangliste. Desweiteren steht derzeit nur ein Design zu verfügung. Werde aber noch heute 2 oder 3 Designs mehr hinzufügen. Design 1 Vorschau: http://i48.tinypic.com/2j4vnfr.jpg
[Release] Ping Spiker (for faster connections..)
01/29/2011 - Soldier Front Hacks, Bots, Cheats & Exploits - 72 Replies
I'm googling about 'Ping-Spiker' (because .Walker's spiker can't affect our fast connection.) then i found this little useful program.. Download Ping Spiker (uploaded at mediafire so you'll be sure that the file is clean.) INSTRUCTIONS: -Open Sf Lagger V1.2 -Play SoldierFront or SpecialForce -Choose a Server / Channel -At the lobby, choose the load you like..
[Request] Script or info on auto restoring UM's
10/14/2010 - Shaiya Private Server - 8 Replies
I am trying to see if there is a way to automate the process of restoring dead UM's after maintenance. It gets confusing trying to sort through wich ones were dead because of no res rune and wich ones were deleted on purpose. Also is there a way to remove all the previously deleted toons from the database automatically to clean up database and save space?:rolleyes:
segnale script info
09/09/2010 - Dekaron PServer Hacks, Bots, Cheats & Exploits - 3 Replies
i need help with this: i cant find a damn way for curse field and curseblizzard to work as a skill hack.. if you can help me send me an email. or help me here.. i tried everything and all i could do i make the character do the skill quick but the damage is still the same .. plz .anyone give me some tips or something.. mine is data.pak i unpacked it and now i can do it with notepad so plz anyone to help me.. this is how cursefield looks. skill, Index,864 MaxLevel,10 MaxStyleCode,1...
i need previous client 1.151
05/27/2008 - Silkroad Online - 0 Replies
someone can give a link for client 1.151 ? ty



All times are GMT +1. The time now is 07:53.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.