Simple $MyInfo log
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Simple $MyInfo log

Started by Jaakko, 27 June, 2006, 10:11:38

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jaakko

I need to log all entering users $MyInfo for 24h. The script only needs to write them in to a .txt file.
I don't care how large the log will be because the script is for temporary use only.

zero-cool

Hi,

--[[
	$MyINFO log
	Made by zero-cool
	Request by Jaakko
]]--

file = "myinfo_log.txt"
time = 5	-- time to save all $MyINFO in minutes (1440 minutes = 1 day (24 hours))

function Main()
	sTmp = ""
	sec = 1000
	min = sec*60
	SetTimer(time*min)
	StartTimer()
end

function MyINFOArrival(user, data)
	sTmp = sTmp..data.."\n"
end

function OnTimer()
	local handle = io.open(file,"a+")  
    handle:write(sTmp)  
	handle:flush()  
    handle:close()
    sTmp = ""
end


Regards,

Thor

Why don't you use UserBekcisi? This will save all information about users what you need (or more :D)

6Marilyn6Manson6

#3
Quote from: Hungarista on 27 June, 2006, 14:15:12
Why don't you use UserBekcisi? This will save all information about users what you need (or more :D)

Because he want save only $MyINFO and not all information ;)

SMF spam blocked by CleanTalk