Fork of FusionPBX but with LDAP kinda working
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.7 KiB

2 years ago
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = 'sofia_global_settings';
  4. $apps[$x]['uuid'] = '240c25a3-a2cf-44ea-a300-0626eca5b945';
  5. $apps[$x]['category'] = '';
  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'] = 'sofia_global_setting_view';
  14. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  15. $y++;
  16. $apps[$x]['permissions'][$y]['name'] = 'sofia_global_setting_add';
  17. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  18. $y++;
  19. $apps[$x]['permissions'][$y]['name'] = 'sofia_global_setting_edit';
  20. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  21. $y++;
  22. $apps[$x]['permissions'][$y]['name'] = 'sofia_global_setting_delete';
  23. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  24. $y++;
  25. $apps[$x]['permissions'][$y]['name'] = 'sofia_global_setting_all';
  26. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  27. $y++;
  28. //sofia_global_settings
  29. $y = 0;
  30. $apps[$x]['db'][$y]['table']['name'] = 'v_sofia_global_settings';
  31. $apps[$x]['db'][$y]['table']['parent'] = '';
  32. $z = 0;
  33. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'sofia_global_setting_uuid';
  34. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  35. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  36. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  37. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
  38. $z++;
  39. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'global_setting_name';
  40. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  41. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  42. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the global setting name.';
  43. $z++;
  44. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'global_setting_value';
  45. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  46. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  47. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the global setting value.';
  48. $z++;
  49. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'global_setting_enabled';
  50. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'boolean';
  51. $apps[$x]['db'][$y]['fields'][$z]['toggle'] = ['true','false'];
  52. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the global setting enabled.';
  53. $z++;
  54. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'global_setting_description';
  55. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  56. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  57. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the global setting description.';
  58. $z++;
  59. ?>