- Changed SQL query to list only active websites in the APS installer.
| | |
| | | $domain_for_user = '';
|
| | | if(!$adminflag) $domain_for_user = "AND (sys_userid = '".$app->db->quote($_SESSION['s']['user']['userid'])."'
|
| | | OR sys_groupid = '".$app->db->quote($_SESSION['s']['user']['userid'])."' )";
|
| | | $domains_assoc = $app->db->queryAllRecords("SELECT domain FROM web_domain WHERE document_root != '' AND (type = 'vhost' OR type = 'vhostsubdomain') ".$domain_for_user." ORDER BY domain;");
|
| | | $domains_assoc = $app->db->queryAllRecords("SELECT domain FROM web_domain WHERE document_root != '' AND (type = 'vhost' OR type = 'vhostsubdomain') AND active = 'y' ".$domain_for_user." ORDER BY domain;");
|
| | | if(!empty($domains_assoc)) foreach($domains_assoc as $domain) $domains[] = $domain['domain'];
|
| | |
|
| | | // If data has been submitted, validate it
|