| | |
| | | |
| | | |
| | | if($type == 'globalsearch'){ |
| | | $q = $app->db->quote($_GET["q"]); |
| | | $q = $app->db->quote(trim($_GET["q"])); |
| | | $authsql = " AND ".$app->tform->getAuthSQL('r'); |
| | | $modules = explode(',', $_SESSION['s']['user']['modules']); |
| | | |
| | |
| | | $result[] = _search('client', 'reseller', "AND limit_client != 0"); |
| | | |
| | | // web sites |
| | | $result[] = _search('sites', 'web_domain'); |
| | | $result[] = _search('sites', 'web_domain', "AND type = 'vhost'"); |
| | | |
| | | // subdomains |
| | | $result[] = _search('sites', 'web_subdomain', "AND type = 'subdomain'"); |
| | | |
| | | // web site aliases |
| | | $result[] = _search('sites', 'web_aliasdomain', "AND type = 'alias'"); |
| | | |
| | | // vhostsubdomains |
| | | $result[] = _search('sites', 'web_vhost_subdomain', "AND type = 'vhostsubdomain'"); |
| | | |
| | | // FTP users |
| | | $result[] = _search('sites', 'ftp_user'); |
| | |
| | | } |
| | | */ |
| | | $result[] = _search('sites', 'database'); |
| | | |
| | | // database users |
| | | $result[] = _search('sites', 'database_user'); |
| | | |
| | | // email domains |
| | | $result[] = _search('mail', 'mail_domain'); |
| | |
| | | |
| | | // virtual machines ip addresses |
| | | $result[] = _search('vm', 'openvz_ip'); |
| | | |
| | | // directive snippets |
| | | $result[] = _search('admin', 'directive_snippets'); |
| | | |
| | | $json = $app->functions->json_encode($result); |
| | | } |