|
|
@@ -144,7 +144,7 @@ def captcha_post(re_data, num = 1):
|
|
|
else:
|
|
|
pass
|
|
|
|
|
|
-def load_lang(data, num = 1):
|
|
|
+def load_lang(data, num = 2):
|
|
|
if num == 1:
|
|
|
curs.execute("select data from other where name = 'language'")
|
|
|
rep_data = curs.fetchall()
|
|
|
@@ -156,14 +156,6 @@ def load_lang(data, num = 1):
|
|
|
return lang[data]
|
|
|
else:
|
|
|
return data + ' (missing)'
|
|
|
- elif num == 2:
|
|
|
- curs.execute('select data from user_set where name = "lang" and id = ?', [ip_check()])
|
|
|
- rep_data = curs.fetchall()
|
|
|
- if not rep_data:
|
|
|
- curs.execute("select data from other where name = 'language'")
|
|
|
- rep_data = curs.fetchall()
|
|
|
-
|
|
|
- return rep_data[0][0]
|
|
|
else:
|
|
|
curs.execute('select data from user_set where name = "lang" and id = ?', [ip_check()])
|
|
|
rep_data = curs.fetchall()
|