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.

106 lines
5.4 KiB

2 years ago
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = "Domains";
  4. $apps[$x]['uuid'] = "8b91605b-f6d2-42e6-a56d-5d1ded01bb44";
  5. $apps[$x]['category'] = "Core";
  6. $apps[$x]['subcategory'] = "";
  7. $apps[$x]['version'] = "1.0";
  8. $apps[$x]['license'] = "Mozilla Public License 1.1";
  9. $apps[$x]['url'] = "http://www.fusionpbx.com";
  10. $apps[$x]['description']['en-us'] = "Manage a single domain or multiple domains for multi-tenant.";
  11. $apps[$x]['description']['en-gb'] = "Manage a single domain or multiple domains for multi-tenant.";
  12. $apps[$x]['description']['ar-eg'] = "";
  13. $apps[$x]['description']['de-at'] = "Verwalte eine einzelne Domäne oder mehrere Domänen für Multi-Mandanten.";
  14. $apps[$x]['description']['de-ch'] = "";
  15. $apps[$x]['description']['de-de'] = "Verwalte eine einzelne Domäne oder mehrere Domänen für Multi-Mandanten.";
  16. $apps[$x]['description']['es-cl'] = "Administre un único dominio o múltiples dominios";
  17. $apps[$x]['description']['es-mx'] = "";
  18. $apps[$x]['description']['fr-ca'] = "";
  19. $apps[$x]['description']['fr-fr'] = "Gestion d'un domaine ou plusieurs dans le cas d'un système multi-parties.";
  20. $apps[$x]['description']['he-il'] = "";
  21. $apps[$x]['description']['it-it'] = "";
  22. $apps[$x]['description']['nl-nl'] = "";
  23. $apps[$x]['description']['pl-pl'] = "";
  24. $apps[$x]['description']['pt-br'] = "Gerencie um único ou múltiplos domínios para multi-locatários";
  25. $apps[$x]['description']['pt-pt'] = "Gerir um único domínio ou vários domínios para multi-tenant.";
  26. $apps[$x]['description']['ro-ro'] = "";
  27. $apps[$x]['description']['ru-ru'] = "Управление одним доменом или несколькими доменами для нескольких пользователей";
  28. $apps[$x]['description']['sv-se'] = "";
  29. $apps[$x]['description']['uk-ua'] = "";
  30. //permission details
  31. $y=0;
  32. $apps[$x]['permissions'][$y]['name'] = "domain_view";
  33. $apps[$x]['permissions'][$y]['menu']['uuid'] = "4fa7e90b-6d6c-12d4-712f-62857402b801";
  34. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  35. $y++;
  36. $apps[$x]['permissions'][$y]['name'] = "domain_add";
  37. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  38. $y++;
  39. $apps[$x]['permissions'][$y]['name'] = "domain_edit";
  40. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  41. $y++;
  42. $apps[$x]['permissions'][$y]['name'] = "domain_delete";
  43. //$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  44. $y++;
  45. $apps[$x]['permissions'][$y]['name'] = 'domain_all';
  46. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  47. $y++;
  48. $apps[$x]['permissions'][$y]['name'] = "domain_select";
  49. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  50. $y++;
  51. //default settings
  52. $y=0;
  53. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "0bc44a93-b87c-414f-8584-f890dd06d28c";
  54. $apps[$x]['default_settings'][$y]['default_setting_category'] = "domain";
  55. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "country_code";
  56. $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
  57. $apps[$x]['default_settings'][$y]['default_setting_value'] = "";
  58. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  59. $apps[$x]['default_settings'][$y]['default_setting_description'] = "";
  60. //schema details
  61. $y=0;
  62. $apps[$x]['db'][$y]['table']['name'] = "v_domains";
  63. $apps[$x]['db'][$y]['table']['parent'] = "";
  64. $z=0;
  65. $apps[$x]['db'][$y]['fields'][$z]['name'] = "id";
  66. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
  67. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "integer";
  68. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "INT NOT NULL AUTO_INCREMENT";
  69. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
  70. $z++;
  71. $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
  72. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  73. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  74. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  75. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
  76. $z++;
  77. $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_parent_uuid";
  78. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  79. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  80. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  81. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  82. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
  83. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
  84. $z++;
  85. $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_name";
  86. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  87. $apps[$x]['db'][$y]['fields'][$z]['search'] = "true";
  88. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the domain name.";
  89. $z++;
  90. $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_enabled";
  91. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "boolean";
  92. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  93. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "text";
  94. $apps[$x]['db'][$y]['fields'][$z]['toggle'] = ['true','false'];
  95. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Set the status of the domain.";
  96. $z++;
  97. $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_description";
  98. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  99. $apps[$x]['db'][$y]['fields'][$z]['search'] = "true";
  100. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description.";
  101. ?>