Пример #1
0
def onLoad():
	global pages
	pages = Pages()	
	wolfpack.registerglobal(EVENT_HELP, "system.pages")
	wolfpack.registercommand("page", page)
	
	if not wolfpack.isstarting():
		pages.load()
Пример #2
0
def onLoad():
	# Not on ServerStart
	if not wolfpack.isstarting():
		web.sessions.clear_sessions()
		# Start the Thread
		global thread
		thread = WebserverThread( REMOTEADMIN_PORT )
		thread.start()
Пример #3
0
def onLoad():
    global pages
    global page
    pages = Pages()
    wolfpack.registerglobal(EVENT_HELP, "system.pages")
    wolfpack.registercommand("page", page)

    if not wolfpack.isstarting():
        pages.load()
Пример #4
0
def onLoad():
	# Not on ServerStart
	if not wolfpack.isstarting():
		web.sessions.clear_sessions()
		
		# Get the remote admin port
		port = settings.getnumber('Network', 'Remoteadmin Port', 2594, True)
		
		# Start the Thread
		global thread
		thread = WebserverThread( port )
		thread.start()
Пример #5
0
def onAttach(object):
	if wolfpack.isstarting():
		object.deltag('nextspawn')

	spawns.register(object)
Пример #6
0
def onAttach(object):
    if wolfpack.isstarting():
        object.deltag('nextspawn')

    spawns.register(object)