from .tool.func import * def user_info_2(conn): curs = conn.cursor() ip = ip_check() curs.execute("select acl from user where id = ?", [ip]) data = curs.fetchall() if ban_check() == 0: if data: if data[0][0] != 'user': acl = data[0][0] else: acl = load_lang('member') else: acl = load_lang('normal') else: acl = load_lang('blocked') match = re.search("^([0-9]{1,3}\.[0-9]{1,3})", ip) if match: match = match.groups()[0] else: match = '-' curs.execute("select end, login, band from ban where block = ? or block = ?", [ip, match]) block_data = curs.fetchall() if block_data: if block_data[0][0] != '': acl += ' (' + load_lang('period') + ' : ' + block_data[0][0] + ')' else: acl += ' (' + load_lang('limitless') + ')' if block_data[0][1] != '': acl += ' (' + load_lang('login_able') + ')' if block_data[0][2] == 'O': acl += ' (' + load_lang('band_blocked') + ')' curs.execute('select name from alarm where name = ? limit 1', [ip_check()]) if curs.fetchall(): plus2 = '
  • ' + load_lang('alarm') + ' (O)
  • ' else: plus2 = '
  • ' + load_lang('alarm') + '
  • ' if custom()[2] != 0: ip_user = '' + ip + '' plus = '''
  • ''' + load_lang('logout') + '''
  • ''' + load_lang('user_setting') + '''
  • ''' plus2 += '
  • ' + load_lang('watchlist') + '
  • ' plus3 = '
  • ' + load_lang('user_document_acl') + '
  • ' else: ip_user = ip plus = '''
  • ''' + load_lang('login') + '''
  • ''' + load_lang('register') + '''
  • ''' plus3 = '' curs.execute("select data from other where name = 'email_have'") test = curs.fetchall() if test and test[0][0] != '': plus += '
  • ' + load_lang('password_search') + '
  • ' return easy_minify(flask.render_template(skin_check(), imp = [load_lang('user') + ' ' + load_lang('tool'), wiki_set(), custom(), other2([0, 0])], data = '''

    ''' + load_lang('state') + '''


    ''' + load_lang('login') + '''


    ''' + load_lang('tool') + '''


    ''' + load_lang('other') + '''

    ''', menu = 0 ))