| 1234567891011121314151617181920212223242526 |
- from .tool.func import *
- def admin_log_2(conn):
- curs = conn.cursor()
-
- num = int(number_check(flask.request.args.get('num', '1')))
- if num * 50 > 0:
- sql_num = num * 50 - 50
- else:
- sql_num = 0
- list_data = '<ul>'
- curs.execute("select who, what, time from re_admin order by time desc limit ?, '50'", [str(sql_num)])
- get_list = curs.fetchall()
- for data in get_list:
- list_data += '<li>' + ip_pas(data[0]) + ' / ' + data[1] + ' / ' + data[2] + '</li>'
- list_data += '</ul>'
- list_data += next_fix('/admin_log?num=', num, get_list)
- return easy_minify(flask.render_template(skin_check(),
- imp = [load_lang('authority_use_list'), wiki_set(), custom(), other2([0, 0])],
- data = list_data,
- menu = [['other', load_lang('return')]]
- ))
|