Tri par order Alphanumerique des Virtual Host sur l'index
This commit is contained in:
parent
0f53680f31
commit
69dd53bc35
2
index.py
2
index.py
@ -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:
|
||||||
|
Reference in New Issue
Block a user