app_config.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = 'Servers';
  4. $apps[$x]['guid'] = '0f390134-071e-83d7-a79a-ebb7ae139d71';
  5. $apps[$x]['category'] = 'Core';
  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'] = '';
  11. //permission details
  12. $y = 0;
  13. $apps[$x]['permissions'][$y]['name'] = 'server_view';
  14. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  15. $y++;
  16. $apps[$x]['permissions'][$y]['name'] = 'server_add';
  17. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  18. $y++;
  19. $apps[$x]['permissions'][$y]['name'] = 'server_edit';
  20. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  21. $y++;
  22. $apps[$x]['permissions'][$y]['name'] = 'server_delete';
  23. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  24. $y++;
  25. $apps[$x]['permissions'][$y]['name'] = 'server_setting_view';
  26. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  27. $y++;
  28. $apps[$x]['permissions'][$y]['name'] = 'server_setting_add';
  29. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  30. $y++;
  31. $apps[$x]['permissions'][$y]['name'] = 'server_setting_edit';
  32. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  33. $y++;
  34. $apps[$x]['permissions'][$y]['name'] = 'server_setting_delete';
  35. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  36. //schema details
  37. $y = 0; //table array index
  38. $z = 0; //field array index
  39. $apps[$x]['db'][$y]['table'] = 'v_servers';
  40. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'server_uuid';
  41. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  42. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  43. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  44. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
  45. $z++;
  46. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'server_name';
  47. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  48. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the name.';
  49. $z++;
  50. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'server_description';
  51. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  52. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the description.';
  53. $z++;
  54. $y = 1; //table array index
  55. $z = 0; //field array index
  56. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'server_setting_uuid';
  57. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  58. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  59. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  60. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
  61. $z++;
  62. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'server_uuid';
  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'] = 'server_setting_category';
  67. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  68. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the category.';
  69. $z++;
  70. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'server_setting_name';
  71. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  72. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the name.';
  73. $z++;
  74. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'server_setting_value';
  75. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  76. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the value.';
  77. $z++;
  78. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'server_setting_enabled';
  79. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  80. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
  81. $z++;
  82. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'server_setting_description';
  83. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  84. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
  85. ?>