order SSL certs and CSR alphabetically
Bernd Wurst

Bernd Wurst commited on 2012-03-22 15:24:07
Zeige 1 geänderte Dateien mit 2 Einfügungen und 2 Löschungen.

... ...
@@ -24,7 +24,7 @@ define("CERT_NOCHAIN", 2);
24 24
 function user_certs()
25 25
 {
26 26
   $uid = (int) $_SESSION['userinfo']['uid'];
27
-  $result = db_query("SELECT id, valid_from, valid_until, subject, cn FROM vhosts.certs WHERE uid=${uid}");
27
+  $result = db_query("SELECT id, valid_from, valid_until, subject, cn FROM vhosts.certs WHERE uid=${uid} ORDER BY cn");
28 28
   $ret = array();
29 29
   while ($i = mysql_fetch_assoc($result))
30 30
     $ret[] = $i;
... ...
@@ -35,7 +35,7 @@ function user_certs()
35 35
 function user_csr()
36 36
 {
37 37
   $uid = (int) $_SESSION['userinfo']['uid'];
38
-  $result = db_query("SELECT id, created, hostname, bits FROM vhosts.csr WHERE uid=${uid}");
38
+  $result = db_query("SELECT id, created, hostname, bits FROM vhosts.csr WHERE uid=${uid} ORDER BY hostname");
39 39
   $ret = array();
40 40
   while ($i = mysql_fetch_assoc($result))
41 41
     $ret[] = $i;
42 42