82 lines
3.9 KiB
PHP
82 lines
3.9 KiB
PHP
|
|
<?php
|
||
|
|
//application details
|
||
|
|
$apps[$x]['name'] = "PHP Service";
|
||
|
|
$apps[$x]['uuid'] = '93f55da0-3b33-da5b-c6db-4cdd6de97fbd';
|
||
|
|
$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'] = 'Manages multiple dynamic and customizable services. There are many possible uses including alerts, ssh access control, scheduling commands to run, and many others uses that are yet to be discovered.';
|
||
|
|
|
||
|
|
//menu details
|
||
|
|
$apps[$x]['menu'][0]['title']['en'] = 'PHP Service';
|
||
|
|
$apps[$x]['menu'][0]['uuid'] = 'a8196e2f-5f60-e723-aa3e-83ed76b2ef09';
|
||
|
|
$apps[$x]['menu'][0]['parent_uuid'] = '594d99c5-6128-9c88-ca35-4b33392cec0f';
|
||
|
|
$apps[$x]['menu'][0]['category'] = 'internal';
|
||
|
|
$apps[$x]['menu'][0]['path'] = '/app/php_service/v_php_service.php';
|
||
|
|
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
||
|
|
|
||
|
|
//permission details
|
||
|
|
$apps[$x]['permissions'][0]['name'] = 'php_service_view';
|
||
|
|
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
||
|
|
|
||
|
|
$apps[$x]['permissions'][1]['name'] = 'php_service_add';
|
||
|
|
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||
|
|
|
||
|
|
$apps[$x]['permissions'][2]['name'] = 'php_service_edit';
|
||
|
|
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
||
|
|
|
||
|
|
$apps[$x]['permissions'][3]['name'] = 'php_service_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_php_services';
|
||
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'id';
|
||
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'php_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'] = 'php_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'] = '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'] = 'service_script';
|
||
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
||
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
||
|
|
$z++;
|
||
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'service_enabled';
|
||
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
||
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
||
|
|
$z++;
|
||
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'service_description';
|
||
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
||
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
||
|
|
|
||
|
|
?>
|