gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
76793 Posts in 13502 Topics by 1651 Members - Latest Member: Arnold99 November 23, 2024, 02:02:41 pm
*
gfx*gfx
gfx
WinMX World :: Forum  |  Metis Scripts and Help  |  Other Metis scripts  |  Find Users Entry by IP, Hostname, or User name
gfx
gfxgfx
 

Author Topic: Find Users Entry by IP, Hostname, or User name  (Read 1655 times)

0 Members and 1 Guest are viewing this topic.

Offline Me Here

  • Ret. WinMX Special Forces
  • WMW Team
  • *****
  • We came, We Saw, We definitely Kicked Ass!
Find Users Entry by IP, Hostname, or User name
« on: December 02, 2006, 06:56:25 pm »
Okay I didnt know what to call this, and I dont know who originally authored it, It was a gift to me from King Nut ..

What this does is make a record of folks entering of thier user name, hostname, and IP then from a log file you can do a serach for matches, for example if someone keeps changing names then re-entering then you can locate the info on them being in before.. i will include a screen shot incase I have been terrible at explaining this.. lol
 

There are two versions.. the first is the one he sent me.. Word of warning if you use this first one then please remember to use the clear log command regularly or you will wind up with a huge file and tons of entries for the bot to display.

The second one has been modifed by our own Bearded Blunder for it to keep a seprate log.txt file for each day so that i dont have to remember to clear it, and well folks that know me know i log and keep everything.. :P

One file version:

Code: [Select]
//This script will creat its own log.txt files in the Plugins directory.
//May need to modify the directories if yours are not Default ones.
<config>

<OnEnter>
<out type="file" mode="a" extdata="C:\Program Files\RoboMX\Plugins\Logs.txt">Name:-%RAWNAME% IP:-%IP% Hostname:-%HOSTNAME% visited on %DATE% at %LOCALTIME%  \n </out>
</OnEnter>

<OnOpMessage type="script">
<in>clear logs</in>
<out type="file" mode="t" extdata="D:\0 - WinMx Stuff\KingNut\Logs.txt"></out>
<out delay="500">/opmsg Entry logs cleared</out>
</OnOpMessage>

<OnOpMessage type="script">
<in>details %PARAM%</in>
<out type="push" extdata="directory">C:\Program Files\RoboMX\Plugins</out>
<out type="push" extdata="searchlinkline">1</out>
<out type="push" extdata="displayline">0</out>
<out>/opmsg Your matches for %PARAM%:-</out>
<out type="push" extdata="searchline"><operator type="readfile" nvalue="$directory$\Logs.txt" lvalue="l" rvalue="$searchlinkline$"/></out>
<out type="push" extdata="displayline" condition="?" lvalue="$searchline$" rvalue="%PARAM%"><operator type="+" lvalue="$displayline$" rvalue="1"/></out>
<out delay="800" condition="?" lvalue="$searchline$" rvalue="%PARAM%">/opmsg ($displayline$) $searchline$</out>
<out type="push" extdata="searchlinkline"><operator type="+" lvalue="$searchlinkline$" rvalue="1"/></out>
<out type="goto" extdata="-4" condition="!=" lvalue="$searchline$" rvalue=""></out>
<out delay="1500" condition="!=" lvalue="$displayline$" rvalue="0">/opmsg End of list</out>
<out delay="1500" condition="==" lvalue="$displayline$" rvalue="0">/opmsg Sorry %NAME% no matches for your search</out>
</OnOpMessage>

</config>

File logs to daily log.txt files

Code: [Select]
//Please note i have created a directory in the Plugins folder
//named Details logs you will need to make one or remove that entry here
<config>

<OnEnter type="script">
<out type="push" extdata="filedate"><operator type="strrep" nvalue=%DATE% lvalue="/" rvalue="-"/></out>
<out type="file" mode="a" extdata="C:\Program Files\RoboMX\Plugins\Details logs\logs$filedate$.txt">Name:-%RAWNAME% IP:-%IP% Hostname:-%HOSTNAME% visited on %DATE% at %LOCALTIME%  \n </out>
</OnEnter>

<OnOpMessage type="script">
<in>!clear logs</in>
<out type="push" extdata="filedate"><operator type="strrep" nvalue=%DATE% lvalue="/" rvalue="-"/></out>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX\Plugins\Details logs\logs$filedate$.txt"></out>
<out delay="500">/opmsg Entry logs cleared</out>
</OnOpMessage>

<OnOpMessage type="script">
<in>!detailsuser %PARAM%</in>
<out type="push" extdata="filedate"><operator type="strrep" nvalue=%DATE% lvalue="/" rvalue="-"/></out>
<out type="push" extdata="directory">C:\Program Files\RoboMX\Plugins\Details logs</out>
<out type="push" extdata="searchlinkline">1</out>
<out type="push" extdata="displayline">0</out>
<out>/opmsg Your matches for %PARAM%:-</out>
<out type="push" extdata="searchline"><operator type="readfile" nvalue="$directory$\logs$filedate$.txt" lvalue="l" rvalue="$searchlinkline$"/></out>
<out type="push" extdata="displayline" condition="?" lvalue="$searchline$" rvalue="%PARAM%"><operator type="+" lvalue="$displayline$" rvalue="1"/></out>
<out delay="800" condition="?" lvalue="$searchline$" rvalue="%PARAM%">/opmsg ($displayline$) $searchline$</out>
<out type="push" extdata="searchlinkline"><operator type="+" lvalue="$searchlinkline$" rvalue="1"/></out>
<out type="goto" extdata="-4" condition="!=" lvalue="$searchline$" rvalue=""></out>
<out delay="1500" condition="!=" lvalue="$displayline$" rvalue="0">/opmsg End of list</out>
<out delay="1500" condition="==" lvalue="$displayline$" rvalue="0">/opmsg Sorry %NAME% no matches for your search</out>
</OnOpMessage>

</config>

WinMX World :: Forum  |  Metis Scripts and Help  |  Other Metis scripts  |  Find Users Entry by IP, Hostname, or User name
 

gfxgfx
gfx
©2005-2024 WinMXWorld.com. All Rights Reserved.
SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
Page created in 0.008 seconds with 21 queries.
Helios Multi © Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!