Raised This Month: $ Target: $400
 0% 

Retrieve data from log string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 07-07-2010 , 03:51   Re: Retrieve data from log string
Reply With Quote #4

OK, i did it diferently than before and it works, but now i have " character in front of name gotten with parse_loguser and i dont know how to remove it (remove_quotes doesnt work)

PHP Code:
        while (!feof(File))
        {
            
fgets(File,line,sizeof(line)-1);
            
            
split(line,temp,sizeof (temp) -1,useless0": ")
            
split(temp,useless0timersizeof(timer)-1"L ")

            
split(line,useless0admnamesizeof(admname)-1"n: ")
            
split(admname,tempsizeof (temp)-1nameidsizeof(nameid)-1"kick ")
            
            
parse_logusertempnamesizeof(name)-1,userid,useless0)
            
parse_logusernameidname2sizeof(name)-1,userid,authidsizeof(authid)-1)
            
            
split(nameid,useless0tim3sizeof(tim3)-1"minutes")
            
parsetim3minutessizeof(minutes)-1)
                
            
split(tim3,useless0ip1sizeof(ip1)-1"IP")
            
parseip1ipsizeof(ip)-1
__________________


Last edited by Jack86; 07-07-2010 at 04:04.
Jack86 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode