Register for your free account! | Forgot your password?

You last visited: Today at 02:37

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

Advertisement



Player Logs

Discussion on Player Logs within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
[GameAdvisor]Finn's Avatar
 
elite*gold: 0
Join Date: Sep 2016
Posts: 171
Received Thanks: 107
Player Logs

Who have Player Logs php scripts? i have PDO but i need ODBC ^^
thanks a lot if someone sharing thanks
[GameAdvisor]Finn is offline  
Old 04/21/2018, 18:37   #2
 
[GM]SkyLine.™'s Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 147
Received Thanks: 174
PHP Code:
<?php
$host 
'127.0.0.1';
$user 'Shaiya';
$pass 'Shaiya123';
$conn = [MENTION=311501]ODB[/MENTION]c_connect("Driver={SQL Server};Server=$host"$user$pass) or die("Database Connection Error!");

$CharName $_POST['CharName'];
if (isset(
$_POST['submit'])) {
    
$res odbc_exec($conn,"
select 
    c.CharName
    ,cl.*
from 
    [PS_GameLog].[dbo].[ActionLog] cl
    inner join PS_GameData.dbo.Chars c
        on cl.CharID = c.CharID
        where 1=1
    and c.CharName = '
$CharName' -- charname here in ''
--    and ChatTime like '%okt 9%'
"
);
    if (
odbc_num_rows($res) == 0) {
        echo 
'DAMN! error!!.';
    }
    echo 
'<form action="' $_SERVER['PHP_SELF'] . '" method="POST">';
    echo 
'<div class="content">
                                <table class="table"><thead><tr>
        <th>Character</th>
        <th>Map</th>
        <th>Level</th>
        <th>Date</th>
        <th>Log1</th>
        <th>Log2</th>
        <th>Log4</th></tr></thead>'
;
    while (
$Row odbc_fetch_array($res)) {
        echo 
'<tbody><tr><td>' $Row['CharName'] . '</td>
        <td>' 
$Row['MapID'] . '</td>
        <td>' 
$Row['CharLevel'] . '</td>
        <td>' 
$Row['ActionTime'] . '</td>
        <td>' 
$Row['Text1'] . '</td>
        <td>' 
$Row['Text2'] . '</td>
        <td>' 
$Row['Text4'] . '</td>
        </tr>'
;
    }
    echo 
' </tbody></table>';
    echo 
'</form></div>';
}
?>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=Windows-1254" />

    </head>
    <font face="Trebuchet MS">
    <center><body><br /><br />
    <b>Character Log</b>
    <form action="<?php
echo $_SERVER['PHP_SELF'];
?>" method="POST">
    <table>
    <tr><td>Char Name:</td><td><input type="text" name="CharName"/></td></tr>
    </table>
    <br></br>
<p><input type="submit" value="Search" name="submit" class="button" /></p>
    </form>
    </body></center>
    </html>
[GM]SkyLine.™ is offline  
Thanks
2 Users
Old 04/22/2018, 03:22   #3
 
[GameAdvisor]Finn's Avatar
 
elite*gold: 0
Join Date: Sep 2016
Posts: 171
Received Thanks: 107
Quote:
Originally Posted by [GM]SkyLine.™ View Post
PHP Code:
<?php
$host 
'127.0.0.1';
$user 'Shaiya';
$pass 'Shaiya123';
$conn = [MENTION=311501]ODB[/MENTION]c_connect("Driver={SQL Server};Server=$host"$user$pass) or die("Database Connection Error!");

$CharName $_POST['CharName'];
if (isset(
$_POST['submit'])) {
    
$res odbc_exec($conn,"
select 
    c.CharName
    ,cl.*
from 
    [PS_GameLog].[dbo].[ActionLog] cl
    inner join PS_GameData.dbo.Chars c
        on cl.CharID = c.CharID
        where 1=1
    and c.CharName = '
$CharName' -- charname here in ''
--    and ChatTime like '%okt 9%'
"
);
    if (
odbc_num_rows($res) == 0) {
        echo 
'DAMN! error!!.';
    }
    echo 
'<form action="' $_SERVER['PHP_SELF'] . '" method="POST">';
    echo 
'<div class="content">
                                <table class="table"><thead><tr>
        <th>Character</th>
        <th>Map</th>
        <th>Level</th>
        <th>Date</th>
        <th>Log1</th>
        <th>Log2</th>
        <th>Log4</th></tr></thead>'
;
    while (
$Row odbc_fetch_array($res)) {
        echo 
'<tbody><tr><td>' $Row['CharName'] . '</td>
        <td>' 
$Row['MapID'] . '</td>
        <td>' 
$Row['CharLevel'] . '</td>
        <td>' 
$Row['ActionTime'] . '</td>
        <td>' 
$Row['Text1'] . '</td>
        <td>' 
$Row['Text2'] . '</td>
        <td>' 
$Row['Text4'] . '</td>
        </tr>'
;
    }
    echo 
' </tbody></table>';
    echo 
'</form></div>';
}
?>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=Windows-1254" />

    </head>
    <font face="Trebuchet MS">
    <center><body><br /><br />
    <b>Character Log</b>
    <form action="<?php
echo $_SERVER['PHP_SELF'];
?>" method="POST">
    <table>
    <tr><td>Char Name:</td><td><input type="text" name="CharName"/></td></tr>
    </table>
    <br></br>
<p><input type="submit" value="Search" name="submit" class="button" /></p>
    </form>
    </body></center>
    </html>
wow thanks master ^.~
[GameAdvisor]Finn is offline  
Thanks
1 User
Reply

Tags
shaiya


Similar Threads Similar Threads
Is there a mining bot that logs back in again -
07/09/2006 - Conquer Online 2 - 5 Replies
The title says it all. Is there a mining bot that logs back in again after logging out for whatever reason? If so, which bot(s) have this feature? I use Conquer Online Toolbox (v0.41 Beta), but it doesn't log back in again... Any advice would be appreciated. Thanks.
Is there a mining bot that logs back in again?
07/08/2006 - Conquer Online 2 - 7 Replies
The title says it all. Is there a mining bot that logs back in again after logging out for whatever reason? If so, which bots have this feature? I use Conquer Online Toolbox (v0.41 Beta), but it doesn't log back in again... Any advice would be appreciated. Thanks.
Question: Logs
06/06/2006 - Conquer Online 2 - 1 Replies
yup i have this shitload of logs in my folders, but i cant read them! any1 kno anything that can read the files?
Meine Logs mit Leuten aus meiner Klasse
05/31/2006 - Quotes - 33 Replies
Die nächste^^ Das wird noch immer so weiter gehen *g*
Blizzard Logs
10/26/2005 - World of Warcraft - 5 Replies
Wollte mal wissen, die Logs welche blizzard haben, sind es einfach "Chat logs" , oder gibt es auch für Position, gegenstände, geschwindigkeit, usw ? weiss das jemand? ^^ thx



All times are GMT +1. The time now is 02:37.


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.