Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 08:43

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

Advertisement



[R]GM-log-analysis von musicinstructor für User Logs

Discussion on [R]GM-log-analysis von musicinstructor für User Logs within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 3
Join Date: Jan 2010
Posts: 1,714
Received Thanks: 854
[R]GM-log-analysis von musicinstructor für User Logs

Hey Leute mich haben schon ein Paar Leute Gefragt ob es Möglich ist solch ein Logsystem wie musicinstructor gemacht hat nicht nur für GM´s sonder auch für User machbar ist, ich hab mir dann mal die Log Analysis von musicinstructor an geschaut und sie so ein gestellt damit man die Kompletten Logs an sehen kann von allen usern also der Handel log usw.

Ich empfehle es nicht auf Root zu benutze da es bei 4k user sehr große last sein kann...


Um die Bonis der Items an passen zu Können müsst ihr in der itemmanager.php die Zeile 11 bearbeiten dort steht es dann so:
Code:
if ($_POST['password'] == "You Password Here"){		//<-- nicht vergessen!
Einfach You Password Here auf dein PW ändern

dann in der user.php und itemmanager.php deine Root Daten bzw Hamachi Daten ein geben uns los geht.

PHP Code:
$db_ip "Deine Hamachi/Root IP hier";
$db_login "MySQL User hier";
$db_pw "MySql PW hier"
Alle Credits gehen an
Wen musicinstructor das nicht will das ich es Pup mache PM me ich nehms raus.


Liebe Grüße Sh4rk


€: Anhang vergessen
€²: Virustotal:
Attached Files
File Type: rar userlog.rar (4.8 KB, 234 views)
.Sh4rk is offline  
Thanks
3 Users
Old 11/09/2010, 03:16   #2
 
elite*gold: 540
Join Date: Apr 2009
Posts: 323
Received Thanks: 191
ist machtbar und ist noch leichter :P wenn man etwas PHP erfahrung mitbringt
thesone007 is offline  
Old 11/09/2010, 03:19   #3
 
elite*gold: 3
Join Date: Jan 2010
Posts: 1,714
Received Thanks: 854
Klar ist es einfach ich hab nur vergessen den anhang hinzu zu fügen ^^
.Sh4rk is offline  
Old 11/09/2010, 03:31   #4
 
elite*gold: 540
Join Date: Apr 2009
Posts: 323
Received Thanks: 191
So da ich jetzt langeweile habe vorallem um diese Urzeit nicht ans schlafen zu denken mach ich was Für Henninks Script etwas pup bzw Was der thread hersteller Gemacht hat :P

aber dies ist nicht Der das jeder user seine handel oder was items er rausgeschmissen hat zu sehen. Hab ich noch nicht ganz umgesetzt werde ich laufe der woche noch erledigen.

also geht auf pages -> admin -> char.php bearbeiten

Dann fügt ihr Unter echo'</table>'; Dieses ein.
PHP Code:
        $gm_playerID $_GET['id'];
          
$result_exchange mysql_query("SELECT * FROM log.log WHERE how = 'EXCHANGE_GIVE' AND who = '".$gm_playerID."'",$sqlServ);
$result_drop mysql_query("SELECT * FROM log.log WHERE how = 'DROP' AND who = '".$gm_playerID."'",$sqlServ);


echo 
"
<table width='100%' align='left' border='1' cellspacing='0' cellpadding='0'>
    <tr>
        <th align='left' colspan='7'>HANDEL</th>
    </tr>

    <tr>
        <th>Zeit</th>
        <th>X</th>
        <th>Y</th>
        <th>Item-ID</th>
        <th>Item</th>
        <th>Partner</th>
        <th>Anzahl</th>
    </tr>

"
;
while(
$row mysql_fetch_array($result_exchange))
{
    
$hint $row['hint'];
    
$state "count";
    
$char_count strlen($hint)-1;
    
    
    
$time $row['time'];
    
$x $row['x'];
    
$y $row['y'];
    
$what $row['what'];
    
$count "";
    
$partner_id "";
    
$item_name "";
    
    while(
$char_count != -1)
    {
        
$char $hint[$char_count];
        if (
$char != " ")
        {
            if (
$state == "count")
            {
                
$count $char.$count;
            }
            if (
$state == "partner_id")
            {
                
$partner_id $char.$partner_id;
            }
            if (
$state == "item_name")
            {
                
$item_name $char.$item_name;
            }
        }
        elseif (
$state == "count"){$state "partner_id";}
        elseif (
$state == "partner_id"){$state "item_name";}

        
$char_count $char_count-1;
    }
    
    
$result_partner_name mysql_query("SELECT * FROM player.player WHERE id ='".$partner_id."'");
    while(
$row mysql_fetch_array($result_partner_name))
    {
        
$partner_name $row['name'];
    }
    
    
$item_name htmlentities($item_name);
    
    
    
$red_mark " bgcolor='#F8E0E0'";
    
    
    echo 
"
        <tr"
.$red_mark.">
            <td>"
.$time."</td>
            <td>"
.$x."</td>
            <td>"
.$y."</td>
            <td><a href='item_manager.php?id="
.$what."'>".$what."</a></td>
            <td>"
.$item_name."</td>
            <td>"
.$partner_name."</td>
            <td>"
.$count."</td>
        </tr>
    "
;
}
echo 
"</table>";

//DROP

echo "
<br>
<table width='100%' align='left' border=0>
    <tr>
        <th align='left' height='25px'></th>
    </tr>
</table>
<br>

<table width='100%' align='left' border='1' cellspacing='0' cellpadding='0'>
    <tr>
        <th align='left' colspan='8'>DROP</th>
    </tr>

    <tr>
        <th>Zeit</th>
        <th>X</th>
        <th>Y</th>
        <th>Item-ID</th>
        <th>Item</th>
        <th>Anzahl</th>
        <th>Aufgehoben von</th>
    </tr>

"
;

while(
$row mysql_fetch_array($result_drop))
{
    
$hint $row['hint'];
    
$state "unknown";
    
$char_count strlen($hint)-1;
    
    
    
$time $row['time'];
    
$x $row['x'];
    
$y $row['y'];
    
$what $row['what'];
    
$unknown "";
    
$count "";
    
$item_name "";
    
    while(
$char_count != -1)
    {
        
$char $hint[$char_count];
        if (
$char != " ")
        {
            if (
$state == "unknown")
            {
                
$unknown $char.$unknown;
            }
            if (
$state == "count")
            {
                
$count $char.$count;
            }
            if (
$state == "item_name")
            {
                
$item_name $char.$item_name;
            }
        }
        elseif (
$state == "unknown"){$state "count";}
        elseif (
$state == "count"){$state "item_name";}

        
$char_count $char_count-1;
    }
    
    
$item_name htmlentities($item_name);
    
    
mysql_select_db("log"$con);
    
$result_picked_by mysql_query("SELECT * FROM log.log WHERE what ='".$what."' AND how ='GET'");
    if (!
$result_picked_by) {
        
//die('Ungültige Abfrage: ' . mysql_error());
        
$picker_id "-";
        
$picker_name "-";
    }
    else
    {

        while(
$row mysql_fetch_array($result_picked_by))
        {
            
$picker_id $row['who'];
            
$repick_time $row['time'];
        }
    }
    
    if (
$picker_id != "-")
    {
        
mysql_select_db("player"$con);
        
$result_picker_name mysql_query("SELECT * FROM player.player WHERE id ='".$picker_id."'");
        while(
$row mysql_fetch_array($result_picker_name))
        {
            
$picker_name $row['name']." (".$repick_time.")";
            
$picker_name_gm $row['name'];
        }
    }
    
    
$repick_time_comp str_replace(' ','',$repick_time);
    
$repick_time_comp str_replace('-','',$repick_time_comp);
    
$repick_time_comp str_replace(':','',$repick_time_comp);
    
$repick_time_comp = (int)$repick_time_comp;
    
    
$time_comp str_replace(' ','',$time);
    
$time_comp str_replace('-','',$time_comp);
    
$time_comp str_replace(':','',$time_comp);
    
$time_comp = (int)$time_comp;
    
    if (
$time_comp $repick_time_comp)
    {
        
$picker_name "-------";
    }
    if (
$repick_time_comp $time_comp 300 )
    {
        
$picker_name "-------";
    }
    
    
    
$red_mark " bgcolor='#F8E0E0'";
    if (
$picker_name == ""){$picker_name "-------"$red_mark "";}
    

        
    if (
$picker_name == "-------"){$red_mark "";}

    echo 
"
        <tr"
.$red_mark.">
            <td>"
.$time."</td>
            <td>"
.$x."</td>
            <td>"
.$y."</td>
            <td><a href='item_manager.php?id="
.$what."'>".$what."</a></td>
            <td>"
.$item_name."</td>
            <td>"
.$count."</td>
            <td>"
.$picker_name."</td>
        </tr>
    "
;
}
echo 
"</table>"
wers nicht schaffen sollte lern es ich habs auch geschaft :P

also Script ist nicht von mir also hauptscripter ist musicinstructor gewesen habs nur für hennink´s script ein wenig umschreiben müssen :P

MFG
thesone
thesone007 is offline  
Thanks
1 User
Old 11/09/2010, 03:38   #5
 
elite*gold: 3
Join Date: Jan 2010
Posts: 1,714
Received Thanks: 854
Ich habs bei mir auch schon so ein gebaut ^^
.Sh4rk is offline  
Thanks
1 User
Old 11/09/2010, 04:13   #6
 
cCcVaTaNcCc's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 223
Received Thanks: 50
@.Sh4rk: bei mir kommt da nen fehlermeldung und zwar das hier



zeile 84 und 85

PHP Code:
$result_exchange mysql_query("SELECT * FROM log WHERE how = 'EXCHANGE_GIVE' AND who = '".$gm_playerID."'");
$result_drop mysql_query("SELECT * FROM log WHERE how = 'DROP' AND who = '".$gm_playerID."'"); 
zeile 105

PHP Code:
while($row mysql_fetch_array($result_exchange)) 
cCcVaTaNcCc is offline  
Old 11/09/2010, 06:40   #7
 
elite*gold: 3
Join Date: Jan 2010
Posts: 1,714
Received Thanks: 854
was steht auf Zeile 207

Ich hab das teil extra noch getestet und bei mir gehts ja ^^
.Sh4rk is offline  
Old 11/09/2010, 08:19   #8
 
cCcVaTaNcCc's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 223
Received Thanks: 50
Quote:
Originally Posted by .Sh4rk View Post
was steht auf Zeile 207

Ich hab das teil extra noch getestet und bei mir gehts ja ^^
bei zeile 207 steht das hier

PHP Code:
while($row mysql_fetch_array($result_drop)) 
cCcVaTaNcCc is offline  
Old 11/09/2010, 08:21   #9
 
elite*gold: 3
Join Date: Jan 2010
Posts: 1,714
Received Thanks: 854
Hast du die Mysql daten eingegeben?
Damit mein ich in beiden Php´s
.Sh4rk is offline  
Old 11/09/2010, 08:38   #10
 
cCcVaTaNcCc's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 223
Received Thanks: 50
Quote:
Originally Posted by .Sh4rk View Post
Hast du die Mysql daten eingegeben?
Damit mein ich in beiden Php´s
jap ich hab ich hier

von user.php

PHP Code:
$db_ip "meine ip.100"
$db_login "root"
$db_pw "navicat pw"

und hier ist der von item_manager.php

PHP Code:
$db_ip "meine ip.100"
$db_login "root"
$db_pw "navicat pw"
cCcVaTaNcCc is offline  
Old 11/09/2010, 08:41   #11
 
elite*gold: 3
Join Date: Jan 2010
Posts: 1,714
Received Thanks: 854
Ach ich Depp hier steht der Fehler doch

PHP Code:
$result_exchange mysql_query("SELECT * FROM log WHERE how = 'EXCHANGE_GIVE' AND who = '".$gm_playerID."'"); 
$result_drop mysql_query("SELECT * FROM log WHERE how = 'DROP' AND who = '".$gm_playerID."'"); 
Schau mal bitte in deiner DatenBank unter Log ob dort ne Tabelle namens log ist.
Wen nicht brauchste die Db von Tim [Glaube er hat sie pup gemacht)
.Sh4rk is offline  
Old 11/09/2010, 08:54   #12
 
cCcVaTaNcCc's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 223
Received Thanks: 50
keine ahnung aber irgendwie hat es geklappt



wie du auf den bild da siehst sind da keine kästchen keine ahnung wiesso das so ist ich glaube das ist normal oder


und dan noch das hier

Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\userlog\user.php on line 249

zeile 249

PHP Code:
    $result_picked_by mysql_query("SELECT * FROM log WHERE what ='".$what."' AND how ='GET'"); 
cCcVaTaNcCc is offline  
Old 11/09/2010, 09:04   #13
 
elite*gold: 3
Join Date: Jan 2010
Posts: 1,714
Received Thanks: 854
Das liegt daran das dein Server länger als 60 Sekunden braucht um dir die Daten aus zu geben.
.Sh4rk is offline  
Old 11/09/2010, 09:13   #14
 
cCcVaTaNcCc's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 223
Received Thanks: 50
Quote:
Originally Posted by .Sh4rk View Post
Das liegt daran das dein Server länger als 60 Sekunden braucht um dir die Daten aus zu geben.

aso thx nochmals für deine helfe und so weiter
cCcVaTaNcCc is offline  
Thanks
1 User
Old 11/09/2010, 09:17   #15


 
.Marcel''s Avatar
 
elite*gold: 100
Join Date: Sep 2009
Posts: 8,136
Received Thanks: 2,760
Die max. lade zeit einer Homepage ,kann man in der php.ini ändern.
Aber das script nutzt nicht viel wen du es für User nutzen willst.
Wen du 200 spieler online hast genügt das schon und es tritt ein effekt auf wie bei einer endlosschleife.

Das script ist nur für eine bestime Anzahl gedacht , sprich nur für das Team
.Marcel' is offline  
Reply


Similar Threads Similar Threads
Need Analysis/Help
08/18/2009 - Soldier Front Hacks, Bots, Cheats & Exploits - 4 Replies
sf replay player - it can play rpl file or replay tape of SF also included the replays of elimination in SFWC china 2008 dl: ReplayToolRedist_global.zip mga sir gusto ko sanang mag patulong sanyu....bka pdeng ma play ang replay tape ng PSF d2...
Analysis of images of OSRO
07/02/2008 - SRO Private Server - 27 Replies
I do not know whether it would be a lie, but looking at some pictures, I think some suspicious things: The logo of Silkroad, with a black background. If you look is with photoshop, clearly is not part of Media.pk2: http://img84.imageshack.us/img84/5563/mediatg2.jp g http://img84.imageshack.us/img84/5563/mediatg2.b4 8c6d3dea.jpg The name + "" appear white: http://img136.imageshack.us/img136/5048/letrasbla ncaslc1.jpg
Script Vessel Final Analysis
01/08/2007 - CO2 Bots & Macros - 32 Replies
This is for Mr.Rattlz Cracked Script Vessel Release. File Scan. File: ScriptVessel.zip Status: POSSIBLY INFECTED/MALWARE (Note: this file has been scanned before. Therefore, this file's scan results will not be stored in the database) (Note: this file was only classified as malware by scanners known to generate more false positives than the average scanner. Do not consider these results definately accurate. Also, because of this, results of this scan will not be recorded in the...



All times are GMT +2. The time now is 08:43.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.