def menu(self): while True: logo() Tool = input( " \033[0;33m\033[4;mInfinitiServer\033[00m\033[01;31m > \033[1;36m" ) if Tool == "1": default_s() elif Tool == "2": default_h() elif Tool == "3": Mys() elif Tool == "4": s_menu() elif Tool == "5": h_menu() elif Tool == "6": update() elif Tool == "7": setting() elif Tool == "8": self.about() elif Tool == "Uninstall InfinitiServer" or Tool == "uninstall infinitiserver" or Tool == "rm -T": self.uninstall() elif Tool == "exit": exit() elif Tool == "x": Toolo = input( "\n\033[1;32m Do you want to Exit ? [\033[01;33mY/n\033[01;32m] >> \033[01;36m" ) if Toolo == "N" or Toolo == "n": pass elif Toolo == "Y" or Toolo == "y": exit() else: print( "\n \033[01;31m\007Command not found :\033[01;32m \'" + Toolo + "\'") sleep(1) else: print("\n \033[01;31m\007Command not found :\033[01;32m \'" + Tool + "\'") sleep(1)
def MS(self): while True: mslogo() Tool = input( " \033[0;33m\033[4;mMyServer\033[00m\033[01;31m > \033[1;36m") if Tool == "1": default_s() elif Tool == "2": php() elif Tool == "3": pyweb() elif Tool == "4": apache() elif Tool == "5": nginx() elif Tool == "0" or Tool == "back": break else: print("\n \033[01;31m\007Command not found :\033[01;32m \'" + Tool + "\'") sleep(0.7)