from .tool.func import * def give_history_add_2(conn, name): curs = conn.cursor() ip = ip_check() if admin_check() != 1: return re_error('/ban') if flask.request.method == 'POST': admin_check(None, 'history_add (' + name + ')') today = get_time() content = flask.request.form.get('content', '') leng = '+' + str(len(content)) history_plus( name, content, today, 'Add:' + flask.request.form.get('get_ip', ''), flask.request.form.get('send', ''), leng, mode = 'add' ) conn.commit() return redirect('/history/' + url_pas(name)) else: curs.execute(db_change('select data from other where name = "edit_bottom_text"')) sql_d = curs.fetchall() if sql_d and sql_d[0][0] != '': b_text = '