101 lines
4.9 KiB
PHP
101 lines
4.9 KiB
PHP
<?php
|
|
//application details
|
|
$apps[$x]['name'] = "Services";
|
|
$apps[$x]['uuid'] = '35ff1f56-513a-1f6c-a393-955838ff12ee';
|
|
$apps[$x]['category'] = 'System';
|
|
$apps[$x]['subcategory'] = '';
|
|
$apps[$x]['version'] = '';
|
|
$apps[$x]['license'] = 'Mozilla Public License 1.1';
|
|
$apps[$x]['url'] = 'http://www.fusionpbx.com';
|
|
$apps[$x]['description']['en'] = 'Monitor System Services.';
|
|
|
|
//menu details
|
|
$apps[$x]['menu'][0]['title']['en'] = 'Services';
|
|
$apps[$x]['menu'][0]['uuid'] = 'c28f14e9-e5ad-e992-0931-d5f5f0db6a79';
|
|
$apps[$x]['menu'][0]['parent_uuid'] = '0438b504-8613-7887-c420-c837ffb20cb1';
|
|
$apps[$x]['menu'][0]['category'] = 'internal';
|
|
$apps[$x]['menu'][0]['path'] = '/app/services/v_services.php';
|
|
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
|
|
|
//permission details
|
|
$apps[$x]['permissions'][0]['name'] = 'services_view';
|
|
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
|
|
|
$apps[$x]['permissions'][1]['name'] = 'services_add';
|
|
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
|
|
|
$apps[$x]['permissions'][2]['name'] = 'services_edit';
|
|
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
|
|
|
$apps[$x]['permissions'][3]['name'] = 'services_delete';
|
|
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
|
|
|
|
//schema details
|
|
$y = 0; //table array index
|
|
$z = 0; //field array index
|
|
$apps[$x]['db'][$y]['table'] = 'v_services';
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'id';
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'service_id';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'serial';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'integer';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'INT NOT NULL AUTO_INCREMENT';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
|
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'service_uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'v_id';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
|
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'service_name';
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'v_service_name';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'service_type';
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'v_service_type';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'service_data';
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'v_service_data';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'service_cmd_start';
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'v_service_cmd_start';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'service_cmd_stop';
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'v_service_cmd_stop';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'service_cmd_restart';
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'v_service_cmd_restart';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'service_description';
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'v_service_description';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
|
|
|
?>
|