Raised This Month: $ Target: $400
 0% 

Retrieve data from log string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 07-05-2010 , 15:15   Retrieve data from log string
Reply With Quote #1

I need help for a specific one time plugin. A buddy of mine gave me php script that reads bans from database and post them on our forum, and since i have a separate log for bans all i need is plugin that will read that logs once and store them into sql. Im stuck at part where it should read from line and take that info. Log line looks like this

L 05/11/2010 - 22:48:16: Ban: " dzoniJ<4490><STEAM_0:0:17887801><>" ban and kick " Dzivaldo<4587>< STEAM_0:1:23584114><>" (minutes " 90") (reason " Banovan si od dzoniJ") (IP " 109.92.183.155")

Now my idea is to somehow detect these border characters for required string like L data1 : "data2< "data3< etc, and get data between them, but i need a bit (a lot ) of help.
__________________

Jack86 is offline
 


Thread Tools
Display Modes

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