1 #include "../../include/freenet/introductionpuzzleremover.h"
\r
7 IntroductionPuzzleRemover::IntroductionPuzzleRemover()
\r
9 m_lastchecked.SetToGMTime();
\r
12 void IntroductionPuzzleRemover::Process()
\r
20 if(m_lastchecked<(now-1.0))
\r
25 // delete all puzzles 2 or more days old
\r
26 m_db->Execute("DELETE FROM tblIntroductionPuzzleInserts WHERE Day<='"+date.Format("%Y-%m-%d")+"';");
\r
27 m_db->Execute("DELETE FROM tblIntroductionPuzzleRequests WHERE Day<='"+date.Format("%Y-%m-%d")+"';");
\r
33 void IntroductionPuzzleRemover::RegisterWithThread(FreenetMasterThread *thread)
\r
35 thread->RegisterPeriodicProcessor(this);
\r