2012-01-29 14:28:19 -05:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
#include "cWebPlugin.h"
|
|
|
|
#include "cWebAdmin.h"
|
|
|
|
#include "cServer.h"
|
|
|
|
#include "cRoot.h"
|
|
|
|
|
2012-01-29 14:28:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
|
|
|
|
cWebPlugin::cWebPlugin( lua_State* L )
|
|
|
|
{
|
|
|
|
LOG("cWebPlugin::cWebPlugin()");
|
|
|
|
m_LuaState = L;
|
|
|
|
cWebAdmin* WebAdmin = cRoot::Get()->GetWebAdmin();
|
|
|
|
if( WebAdmin ) WebAdmin->AddPlugin( this );
|
|
|
|
}
|
|
|
|
|
|
|
|
cWebPlugin::~cWebPlugin()
|
|
|
|
{
|
|
|
|
LOG("~cWebPlugin::cWebPlugin()");
|
|
|
|
cWebAdmin* WebAdmin = cRoot::Get()->GetWebAdmin();
|
|
|
|
if( WebAdmin ) WebAdmin->RemovePlugin( this );
|
|
|
|
}
|