2
0

app_config.php 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = "PHP Service";
  4. $apps[$x]['uuid'] = '93f55da0-3b33-da5b-c6db-4cdd6de97fbd';
  5. $apps[$x]['category'] = 'System';
  6. $apps[$x]['subcategory'] = '';
  7. $apps[$x]['version'] = '';
  8. $apps[$x]['license'] = 'Mozilla Public License 1.1';
  9. $apps[$x]['url'] = 'http://www.fusionpbx.com';
  10. $apps[$x]['description']['en-us'] = '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.';
  11. $apps[$x]['description']['es-mx'] = '';
  12. $apps[$x]['description']['de-de'] = '';
  13. $apps[$x]['description']['de-ch'] = '';
  14. $apps[$x]['description']['de-at'] = '';
  15. $apps[$x]['description']['fr-fr'] = '';
  16. $apps[$x]['description']['fr-ca'] = '';
  17. $apps[$x]['description']['fr-ch'] = '';
  18. $apps[$x]['description']['pt-pt'] = 'Gerir múltiplos serviços dinâmicos e personalizável. Há muitos usos possíveis, incluindo alertas, controle de acesso ssh, comandos de programação para executar, e muitos usos outros que estão ainda a ser descoberto.';
  19. $apps[$x]['description']['pt-br'] = '';
  20. //permission details
  21. $apps[$x]['permissions'][0]['name'] = 'php_service_view';
  22. $apps[$x]['permissions'][0]['groups'][] = 'superadmin';
  23. $apps[$x]['permissions'][1]['name'] = 'php_service_add';
  24. $apps[$x]['permissions'][1]['groups'][] = 'superadmin';
  25. $apps[$x]['permissions'][2]['name'] = 'php_service_edit';
  26. $apps[$x]['permissions'][2]['groups'][] = 'superadmin';
  27. $apps[$x]['permissions'][3]['name'] = 'php_service_delete';
  28. $apps[$x]['permissions'][3]['groups'][] = 'superadmin';
  29. //schema details
  30. $y = 0; //table array index
  31. $z = 0; //field array index
  32. $apps[$x]['db'][$y]['table'] = 'v_php_services';
  33. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'id';
  34. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'php_service_id';
  35. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'serial';
  36. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'integer';
  37. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'INT NOT NULL AUTO_INCREMENT';
  38. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
  39. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
  40. $z++;
  41. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'php_service_uuid';
  42. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  43. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  44. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  45. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
  46. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
  47. $z++;
  48. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
  49. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  50. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  51. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  52. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
  53. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
  54. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
  55. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
  56. $z++;
  57. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'v_id';
  58. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  59. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
  60. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
  61. $z++;
  62. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'service_name';
  63. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  64. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
  65. $z++;
  66. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'service_script';
  67. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  68. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
  69. $z++;
  70. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'service_enabled';
  71. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  72. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
  73. $z++;
  74. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'service_description';
  75. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  76. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
  77. ?>