from .tool.func import * from .edit import edit_editor async def recent_history_add(name = 'Test', do_type = ''): with get_db_connect() as conn: curs = conn.cursor() ip = ip_check() if await acl_check('', 'owner_auth', '', '') == 1: return await re_error(conn, 0) if flask.request.method == 'POST': await acl_check(tool = 'owner_auth', memo = 'history_add (' + name + ')') today = get_time() content = flask.request.form.get('content', '') leng = '+' + str(len(content)) history_plus(conn, name, content, today, 'Add:' + flask.request.form.get('get_ip', ''), flask.request.form.get('send', ''), leng, mode = 'add' ) return redirect(conn, '/history/' + url_pas(name)) else: return easy_minify(flask.render_template(await skin_check(), imp = [await get_lang('history_add'), await wiki_set(), await wiki_custom(), wiki_css(['(' + name + ')', 0])], data = '''


''' + await edit_editor(conn, ip) + '''
''', menu = [['history/' + url_pas(name), await get_lang('return')]] ))