#!/usr/bin/env python3 import html import cgi import sys import os import funct import sql funct.head("Admin area: users manage") funct.check_config() funct.check_login() funct.page_for_admin() form = cgi.FieldStorage() USERS = sql.select_users() GROUPS = sql.select_groups() SERVERS = sql.select_servers(full=1) ROLES = sql.select_roles() print('' '
Name | ' 'Desciption | ' '' ' | ' ' |
%s | ' % ( role[1])) print('%s | ' % (role[2])) print('
Upload SSH Key | ' '' 'Key(?)' ' | ' '' ' |
' 'Note: Paste pem file content here' ' | ' ''
' ' 'Upload' ' | '
'' ' |