|
@@ -197,22 +197,17 @@ def ip_warring():
|
|
|
return text_data
|
|
return text_data
|
|
|
|
|
|
|
|
def skin_check():
|
|
def skin_check():
|
|
|
- skin = './views/acme/'
|
|
|
|
|
|
|
+ curs.execute('select data from other where name = "skin"')
|
|
|
|
|
+ skin_exist = curs.fetchall()
|
|
|
|
|
+ if skin_exist and skin_exist[0][0] != '':
|
|
|
|
|
+ if os.path.exists(os.path.abspath('./views/' + skin_exist[0][0] + '/index.html')) == 1:
|
|
|
|
|
+ skin = './views/' + skin_exist[0][0] + '/'
|
|
|
|
|
|
|
|
- try:
|
|
|
|
|
- curs.execute('select data from user_set where name = "skin" and id = ?', [ip_check()])
|
|
|
|
|
- skin_exist = curs.fetchall()
|
|
|
|
|
- if skin_exist and skin_exist[0][0] != '':
|
|
|
|
|
- if os.path.exists(os.path.abspath('./views/' + skin_exist[0][0] + '/index.html')) == 1:
|
|
|
|
|
- skin = './views/' + skin_exist[0][0] + '/'
|
|
|
|
|
- else:
|
|
|
|
|
- curs.execute('select data from other where name = "skin"')
|
|
|
|
|
- skin_exist = curs.fetchall()
|
|
|
|
|
- if skin_exist:
|
|
|
|
|
- if os.path.exists(os.path.abspath('./views/' + skin_exist[0][0] + '/index.html')) == 1:
|
|
|
|
|
- skin = './views/' + skin_exist[0][0] + '/'
|
|
|
|
|
- except:
|
|
|
|
|
- pass
|
|
|
|
|
|
|
+ curs.execute('select data from user_set where name = "skin" and id = ?', [ip_check()])
|
|
|
|
|
+ skin_exist = curs.fetchall()
|
|
|
|
|
+ if skin_exist and skin_exist[0][0] != '':
|
|
|
|
|
+ if os.path.exists(os.path.abspath('./views/' + skin_exist[0][0] + '/index.html')) == 1:
|
|
|
|
|
+ skin = './views/' + skin_exist[0][0] + '/'
|
|
|
|
|
|
|
|
return skin + 'index.html'
|
|
return skin + 'index.html'
|
|
|
|
|
|