示例#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
文件: pages.py 项目: thooge/Wolfpack
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)