- Added database users and directive snippets to global search.
| | |
| | | Hint: |
| | | The ID field of the database table is not part of the datafield definition. |
| | | The ID field must be always auto incement (int or bigint). |
| | | |
| | | Search: |
| | | - searchable = 1 or searchable = 2 include the field in the search |
| | | - searchable = 1: this field will be the title of the search result |
| | | - searchable = 2: this field will be included in the description of the search result |
| | | |
| | | |
| | | */ |
| | |
| | | 'default' => '', |
| | | 'value' => '', |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | 'maxlength' => '255', |
| | | 'searchable' => 1 |
| | | ), |
| | | 'type' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | | 'default' => '', |
| | | 'value' => array('apache' => 'Apache','nginx' => 'nginx','php' => 'PHP'), |
| | | 'searchable' => 2 |
| | | ), |
| | | 'snippet' => array ( |
| | | 'datatype' => 'TEXT', |
| | |
| | | 'default' => '', |
| | | 'value' => '', |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | 'maxlength' => '255', |
| | | 'searchable' => 2 |
| | | ), |
| | | 'active' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | */ |
| | | $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); |
| | | } |
| | |
| | | /* |
| | | Copyright (c) 2012, ISPConfig UG |
| | | Copyright (c) 2012, ISPConfig UG (haftungsbeschränkt) |
| | | All rights reserved. |
| | | |
| | | Redistribution and use in source and binary forms, with or without modification, |
| | |
| | | 'value' => '', |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'searchable' => 2 |
| | | 'searchable' => 1 |
| | | ), |
| | | 'database_password' => array ( |
| | | 'datatype' => 'VARCHAR', |