Tri par order Alphanumerique des Virtual Host sur l'index

This commit is contained in:
beu 2017-12-19 23:48:39 +00:00
parent 0f53680f31
commit 69dd53bc35

View File

@ -21,7 +21,7 @@ printheader()
# BODY # BODY
print('<a href="http://', DOMAIN , '/new.py">Nouveau VHOST</a>', "<br>" , sep='' ) print('<a href="http://', DOMAIN , '/new.py">Nouveau VHOST</a>', "<br>" , sep='' )
for i in os.listdir("/etc/apache2/sites-available"): for i in sorted(os.listdir("/etc/apache2/sites-available")):
if os.path.isfile("/etc/apache2/sites-enabled/" + i): if os.path.isfile("/etc/apache2/sites-enabled/" + i):
print('<a href="', PROTO , '://', DOMAIN, '/file.py?file=',i, '">', i ,'</a> is enable!<br>', sep='') print('<a href="', PROTO , '://', DOMAIN, '/file.py?file=',i, '">', i ,'</a> is enable!<br>', sep='')
else: else: