app_config.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = 'User Logs';
  4. $apps[$x]['uuid'] = '582a13cf-7d75-4ea3-b2d9-60914352d76e';
  5. $apps[$x]['category'] = 'system';
  6. $apps[$x]['subcategory'] = 'users';
  7. $apps[$x]['version'] = '1.1';
  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'] = 'user_log_view';
  14. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  15. $y++;
  16. $apps[$x]['permissions'][$y]['name'] = 'user_log_all';
  17. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  18. $y++;
  19. $apps[$x]['permissions'][$y]['name'] = 'user_log_delete';
  20. $y++;
  21. //User Logs
  22. $y = 0;
  23. $apps[$x]['db'][$y]['table']['name'] = 'v_user_logs';
  24. $apps[$x]['db'][$y]['table']['parent'] = '';
  25. $z = 0;
  26. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_log_uuid';
  27. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  28. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  29. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  30. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
  31. $z++;
  32. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
  33. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  34. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  35. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  36. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
  37. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
  38. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
  39. $z++;
  40. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'hostname';
  41. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  42. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  43. $z++;
  44. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'timestamp';
  45. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  46. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  47. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  48. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  49. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Set the datetime.';
  50. $z++;
  51. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_uuid';
  52. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  53. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  54. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  55. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  56. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select the user.';
  57. $z++;
  58. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'username';
  59. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  60. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  61. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the Username.';
  62. $z++;
  63. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'type';
  64. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  65. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  66. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the type.';
  67. $z++;
  68. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'result';
  69. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  70. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  71. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the result.';
  72. $z++;
  73. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'remote_address';
  74. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  75. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  76. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the IP address.';
  77. $z++;
  78. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_agent';
  79. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  80. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  81. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the user agent.';
  82. $z++;
  83. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'session_id';
  84. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  85. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  86. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
  87. $z++;
  88. $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
  89. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  90. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  91. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  92. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  93. $z++;
  94. $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
  95. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  96. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  97. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  98. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  99. $z++;
  100. $apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
  101. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  102. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  103. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  104. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  105. $z++;
  106. $apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
  107. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  108. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  109. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  110. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  111. ?>