Hello,
If you want to change your DB server info, use this python script:
Change SERVER_IP, USERNAME, PASSWORD, DATABASE to you new server and run script "python changeDB.py"
* Don't try using MariaDB. XtreamUI don't work with MariaDB, only with MySQL DB
If you want to change your DB server info, use this python script:
PHP:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os,sys
from itertools import cycle, izip
def encrypt(rHost="127.0.0.1", rUsername="user_iptvpro", rPassword="", rDatabase="xtream_iptvpro", rServerID=1, rPort=7999):
print ("Encrypting...")
try: os.remove("/home/xtreamcodes/iptv_xtream_codes/config")
except: pass
rf = open('/home/xtreamcodes/iptv_xtream_codes/config', 'wb')
rf.write(''.join(chr(ord(c)^ord(k)) for c,k in izip('{\"host\":\"%s\",\"db_user\":\"%s\",\"db_pass\":\"%s\",\"db_name\":\"%s\",\"server_id\":\"%d\", \"db_port\":\"%d\"}' % (rHost, rUsername, rPassword, rDatabase, rServerID, rPort), cycle('5709650b0d7806074842c6de575025b1'))).encode('base64').replace('\n', ''))
rf.close()
print ("Done...")
encrypt("SERVER_IP", "USERNAME", "PASSWORD", "DATABASE")
Change SERVER_IP, USERNAME, PASSWORD, DATABASE to you new server and run script "python changeDB.py"
* Don't try using MariaDB. XtreamUI don't work with MariaDB, only with MySQL DB