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.

122 lines
5.6 KiB

2 years ago
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = "Access Controls";
  4. $apps[$x]['uuid'] = "1416a250-f6e1-4edc-91a6-5c9b883638fd";
  5. $apps[$x]['category'] = "";
  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 access control lists";
  11. $apps[$x]['description']['en-gb'] = "Manage access control lists";
  12. $apps[$x]['description']['ar-eg'] = "";
  13. $apps[$x]['description']['de-at'] = "Zugriffssteuerungslisten verwalten";
  14. $apps[$x]['description']['de-ch'] = "";
  15. $apps[$x]['description']['de-de'] = "Zugriffssteuerungslisten verwalten";
  16. $apps[$x]['description']['es-cl'] = "";
  17. $apps[$x]['description']['es-mx'] = "";
  18. $apps[$x]['description']['fr-ca'] = "Gérer les listes de contrôle d'accès";
  19. $apps[$x]['description']['fr-fr'] = "Gérer les listes de contrôle d'accès";
  20. $apps[$x]['description']['he-il'] = "";
  21. $apps[$x]['description']['it-it'] = "";
  22. $apps[$x]['description']['nl-nl'] = "Beheer toegangs controle lijsten";
  23. $apps[$x]['description']['pl-pl'] = "";
  24. $apps[$x]['description']['pt-br'] = "";
  25. $apps[$x]['description']['pt-pt'] = "";
  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'] = "access_control_view";
  33. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  34. $y++;
  35. $apps[$x]['permissions'][$y]['name'] = "access_control_add";
  36. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  37. $y++;
  38. $apps[$x]['permissions'][$y]['name'] = "access_control_edit";
  39. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  40. $y++;
  41. $apps[$x]['permissions'][$y]['name'] = "access_control_delete";
  42. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  43. $y++;
  44. $apps[$x]['permissions'][$y]['name'] = "access_control_node_view";
  45. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  46. $y++;
  47. $apps[$x]['permissions'][$y]['name'] = "access_control_node_add";
  48. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  49. $y++;
  50. $apps[$x]['permissions'][$y]['name'] = "access_control_node_edit";
  51. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  52. $y++;
  53. $apps[$x]['permissions'][$y]['name'] = "access_control_node_delete";
  54. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  55. $y++;
  56. //cache details
  57. $apps[$x]['cache']['key'] = "configuration.acl.conf";
  58. //schema details
  59. $y=0;
  60. $apps[$x]['db'][$y]['table']['name'] = "v_access_controls";
  61. $apps[$x]['db'][$y]['table']['parent'] = "";
  62. $z=0;
  63. $apps[$x]['db'][$y]['fields'][$z]['name'] = "access_control_uuid";
  64. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  65. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  66. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  67. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
  68. $z++;
  69. $apps[$x]['db'][$y]['fields'][$z]['name'] = "access_control_name";
  70. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  71. $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
  72. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the name.";
  73. $z++;
  74. $apps[$x]['db'][$y]['fields'][$z]['name'] = "access_control_default";
  75. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  76. $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
  77. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select the default type.";
  78. $z++;
  79. $apps[$x]['db'][$y]['fields'][$z]['name'] = "access_control_description";
  80. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  81. $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
  82. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description";
  83. $y++;
  84. $apps[$x]['db'][$y]['table']['name'] = "v_access_control_nodes";
  85. $apps[$x]['db'][$y]['table']['parent'] = "v_access_controls";
  86. $z=0;
  87. $apps[$x]['db'][$y]['fields'][$z]['name'] = "access_control_node_uuid";
  88. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  89. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  90. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  91. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
  92. $z++;
  93. $apps[$x]['db'][$y]['fields'][$z]['name'] = "access_control_uuid";
  94. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  95. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  96. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  97. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  98. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_access_controls";
  99. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "access_control_uuid";
  100. $z++;
  101. $apps[$x]['db'][$y]['fields'][$z]['name'] = "node_type";
  102. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  103. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select the type.";
  104. $z++;
  105. $apps[$x]['db'][$y]['fields'][$z]['name'] = "node_cidr";
  106. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  107. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the IP CIDR range.";
  108. $z++;
  109. $apps[$x]['db'][$y]['fields'][$z]['name'] = "node_domain";
  110. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  111. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the domain.";
  112. $z++;
  113. $apps[$x]['db'][$y]['fields'][$z]['name'] = "node_description";
  114. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  115. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description.";
  116. ?>