Пример #1
0
def addadmin():
  username  = request.forms.username
  password  = request.forms.password
  root_path = request.forms.root_path
  isadmin   = request.forms.isadmin
  if(isadmin == 'true'):
    isadmin = True
  else:
    isadmin = False
  params = {
    'username': username,
    'password': password,
    'root_path': root_path,
    'isadmin': isadmin
  }
  data = addAdmin(params)
  return return_Json(data)
Пример #2
0
def gethtop():
  top = getHtop()
  return return_Json(top)
Пример #3
0
def getsync():
  mem = getMem()
  return return_Json(mem)
Пример #4
0
def getsystem():
  system = getSys()
  return return_Json(system)
Пример #5
0
def deladmin():
  username  = request.forms.username
  data = delAdmin(username)
  return return_Json(data)
Пример #6
0
def getAdminlist():
  data = getAdminList()
  return return_Json(data)
Пример #7
0
def logout():
  data = Logout()
  return return_Json(data)
Пример #8
0
def login():
  username = request.forms.username
  password = request.forms.password
  data = Login(username, password)
  return return_Json(data)