bernd commited on 2009-11-21 10:51:37
              Zeige 1 geänderte Dateien mit 1 Einfügungen und 1 Löschungen.
            
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1508 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... | 
                      @@ -12,7 +12,7 @@ require_once("certs.php");
                     | 
                  
| 12 | 12 | 
                        function list_vhosts()  | 
                    
| 13 | 13 | 
                         {
                       | 
                    
| 14 | 14 | 
                        $uid = (int) $_SESSION['userinfo']['uid'];  | 
                    
| 15 | 
                        -  $result = db_query("SELECT vh.id,fqdn,docroot,docroot_is_default,php,vh.certid AS cert, vh.ssl, vh.options,logtype,errorlog,IF(dav.id IS NULL OR dav.type='svn', 0, 1) AS is_dav,IF(dav.id IS NULL OR dav.type='dav', 0, 1) AS is_svn, IF(webapps.id IS NULL, 0, 1) AS is_webapp FROM vhosts.v_vhost AS vh LEFT JOIN vhosts.dav ON (dav.vhost=vh.id) LEFT JOIN vhosts.webapps ON (webapps.vhost = vh.id) WHERE uid={$uid} ORDER BY domain,hostname");
                       | 
                    |
| 15 | 
                        +  $result = db_query("SELECT vh.id,fqdn,domain,docroot,docroot_is_default,php,vh.certid AS cert, vh.ssl, vh.options,logtype,errorlog,IF(dav.id IS NULL OR dav.type='svn', 0, 1) AS is_dav,IF(dav.id IS NULL OR dav.type='dav', 0, 1) AS is_svn, IF(webapps.id IS NULL, 0, 1) AS is_webapp FROM vhosts.v_vhost AS vh LEFT JOIN vhosts.dav ON (dav.vhost=vh.id) LEFT JOIN vhosts.webapps ON (webapps.vhost = vh.id) WHERE uid={$uid} ORDER BY domain,hostname");
                       | 
                    |
| 16 | 16 | 
                        $ret = array();  | 
                    
| 17 | 17 | 
                        while ($item = mysql_fetch_assoc($result))  | 
                    
| 18 | 18 | 
                        array_push($ret, $item);  | 
                    
| 19 | 19 |