from .tool.func import * async def main_sys_shutdown(): with get_db_connect() as conn: if await acl_check('', 'owner_auth', '', '') == 1: return await re_error(conn, 3) if flask.request.method == 'POST': await acl_check(tool = 'owner_auth', memo = 'shutdown') print('Shutdown') sys.exit() else: return easy_minify(flask.render_template(await skin_check(), imp = [await get_lang('wiki_shutdown'), await wiki_set(), await wiki_custom(conn), wiki_css([0, 0])], data = '''
''', menu = [['manager', await get_lang('return')]] ))