#!/usr/bin/python3.5 # DEBUG import cgitb cgitb.enable() # IMPORT DES MODULES import configparser import os from functions.headfoot import printheader,printfooter # IMPORT DE LA CONFIGURATION config = configparser.ConfigParser() config.read('config.conf') DOMAIN = config.get('general','domain') PROTO = config.get('general','proto') # AFFICHAGE DES ENTETES printheader() # BODY print('Nouveau VHOST', "
" , sep='' ) for i in sorted(os.listdir("/etc/apache2/sites-available")): if os.path.isfile("/etc/apache2/sites-enabled/" + i): print('', i ,' is enable!
', sep='') else: print('', i ,' is disable!
', sep='') # AFFICHAGE DES FOOTERS printfooter()