from .tool.func import * def user_info_2(conn): curs = conn.cursor() ip = ip_check() curs.execute(db_change("select count(*) from alarm where name = ?"), [ip]) count = curs.fetchall() if count and count[0][0] != 0: plus2 = '
  • ' + load_lang('alarm') + ' (' + str(count[0][0]) + ')
  • ' else: plus2 = '
  • ' + load_lang('alarm') + ' (0)
  • ' if ip_or_user(ip) == 0: plus = '''
  • ''' + load_lang('logout') + '''
  • ''' + load_lang('user_setting') + '''
  • ''' plus2 += '
  • ' + load_lang('watchlist') + '
  • ' plus2 += '
  • ' + load_lang('star_doc') + '
  • ' plus3 = '
  • ' + load_lang('user_document_acl') + '
  • ' else: plus = '''
  • ''' + load_lang('login') + '''
  • ''' + load_lang('register') + '''
  • ''' plus3 = '' curs.execute(db_change("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_tool'), wiki_set(), custom(), other2([0, 0])], data = '''

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


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


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


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

    ''', menu = 0 ))