26 print("BilboX:",type) 27 json_obj = {"server_op": type} 28 29 if(type == "shutdown"): 30 os.system("shutdown /s") # Shutdown 31 if(type == "reboot"): 32 os.system("shutdown /r") # Restart 33 if(type == "logout"):
26 print("BilboX:",type) 27 json_obj = {"server_op": type} 28 29 if(type == "shutdown"): 30 os.system("shutdown /s") # Shutdown 31 if(type == "reboot"): 32 os.system("shutdown /r") # Restart 33 if(type == "logout"):
28 29 if(type == "shutdown"): 30 os.system("shutdown /s") # Shutdown 31 if(type == "reboot"): 32 os.system("shutdown /r") # Restart 33 if(type == "logout"): 34 os.system("shutdown /l") # logout 35 if(type == "lock"):
28 29 if(type == "shutdown"): 30 os.system("shutdown /s") # Shutdown 31 if(type == "reboot"): 32 os.system("shutdown /r") # Restart 33 if(type == "logout"): 34 os.system("shutdown /l") # logout 35 if(type == "lock"):
30 os.system("shutdown /s") # Shutdown 31 if(type == "reboot"): 32 os.system("shutdown /r") # Restart 33 if(type == "logout"): 34 os.system("shutdown /l") # logout 35 if(type == "lock"): 36 os.system("rundll32.exe user32.dll,LockWorkStation") # logout 37 return web.json_response(json_obj, content_type='application/json')
30 os.system("shutdown /s") # Shutdown 31 if(type == "reboot"): 32 os.system("shutdown /r") # Restart 33 if(type == "logout"): 34 os.system("shutdown /l") # logout 35 if(type == "lock"): 36 os.system("rundll32.exe user32.dll,LockWorkStation") # logout 37 return web.json_response(json_obj, content_type='application/json')
32 os.system("shutdown /r") # Restart 33 if(type == "logout"): 34 os.system("shutdown /l") # logout 35 if(type == "lock"): 36 os.system("rundll32.exe user32.dll,LockWorkStation") # logout 37 return web.json_response(json_obj, content_type='application/json') 38 39 WEB_DIRECTORY = "./web"
32 os.system("shutdown /r") # Restart 33 if(type == "logout"): 34 os.system("shutdown /l") # logout 35 if(type == "lock"): 36 os.system("rundll32.exe user32.dll,LockWorkStation") # logout 37 return web.json_response(json_obj, content_type='application/json') 38 39 WEB_DIRECTORY = "./web"