apiloader.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php
  2. /*
  3. * Including all needed APIs and Libs
  4. */
  5. require_once('api/libs/api.mysql.php');
  6. require_once('api/libs/api.ubstorage.php');
  7. require_once('api/api.stargazer.php');
  8. require_once('api/libs/api.compat.php');
  9. require_once('api/libs/api.morph.php');
  10. require_once('api/libs/api.ubconfig.php');
  11. require_once('api/libs/api.ubcache.php');
  12. require_once('api/libs/api.astral.php');
  13. require_once('api/libs/api.dbconnect.php');
  14. require_once('api/libs/api.userdata.php');
  15. require_once('api/libs/api.usersearch.php');
  16. require_once('api/libs/api.address.php');
  17. require_once('api/libs/api.telepathy.php');
  18. require_once('api/libs/api.taskman.php');
  19. require_once('api/libs/api.networking.php');
  20. require_once('api/libs/api.dhcp.php');
  21. require_once('api/libs/api.userreg.php');
  22. require_once('api/libs/api.workicons.php');
  23. require_once('api/libs/api.workaround.php');
  24. require_once('api/libs/api.usms.php');
  25. require_once('api/libs/api.payments.php');
  26. require_once('api/libs/api.usertags.php');
  27. require_once('api/libs/api.vservices.php');
  28. require_once('api/libs/api.cess.php');
  29. require_once('api/libs/api.cardpay.php');
  30. require_once('api/libs/api.customfields.php');
  31. require_once('api/libs/api.switches.php');
  32. require_once('api/libs/api.gravatar.php');
  33. require_once('api/libs/api.ticketing.php');
  34. require_once('api/libs/api.corporate.php');
  35. require_once('api/libs/api.lousytariffs.php');
  36. require_once('api/libs/api.templatize.php');
  37. require_once('api/libs/api.custmaps.php');
  38. require_once('api/libs/api.deploy.php');
  39. require_once('api/libs/api.help.php');
  40. require_once('api/libs/api.sqldebug.php');
  41. require_once('api/libs/api.ubmessenger.php');
  42. require_once('api/libs/api.swpoll.php');
  43. require_once('api/libs/api.routeros.php');
  44. require_once('api/libs/api.docx.php');
  45. require_once('api/libs/api.documents.php');
  46. require_once('api/libs/api.dbf.php');
  47. require_once('api/libs/api.idlelogout.php');
  48. require_once('api/libs/api.corps.php');
  49. require_once('api/libs/api.extnets.php');
  50. require_once('api/libs/api.assignreport.php');
  51. require_once('api/libs/api.capabdir.php');
  52. require_once('api/libs/api.sigreq.php');
  53. require_once('api/libs/api.condet.php');
  54. require_once('api/libs/api.userprofile.php');
  55. require_once('api/libs/api.stickynotes.php');
  56. require_once('api/libs/api.fundsflow.php');
  57. require_once('api/libs/api.adcomments.php');
  58. require_once('api/libs/api.vlan.php');
  59. require_once('api/libs/api.globalsearch.php');
  60. require_once('api/libs/api.darkvoid.php');
  61. require_once('api/libs/api.globalmenu.php');
  62. require_once('api/libs/api.loginform.php');
  63. require_once('api/libs/api.photostorage.php');
  64. require_once('api/libs/api.dshaper.php');
  65. require_once('api/libs/api.uhw.php');
  66. require_once('api/libs/api.cudiscounts.php');
  67. require_once('api/libs/api.cap.php');
  68. require_once('api/libs/api.opayz.php');
  69. require_once('api/libs/api.cemetery.php');
  70. require_once('api/libs/api.reminder.php');
  71. require_once('api/libs/api.friendship.php');
  72. require_once('api/libs/api.migration.php');
  73. require_once('api/libs/api.percity.php');
  74. require_once('api/libs/api.dealwithit.php');
  75. require_once('api/libs/api.megogo.php');
  76. require_once('api/libs/api.userside.php');
  77. require_once('api/libs/api.whois.php');
  78. require_once('api/libs/api.exhorse.php');
  79. require_once('api/libs/api.telegram.php');
  80. require_once('api/libs/api.senddog.php');
  81. require_once('api/libs/api.tsupport.php');
  82. require_once('api/libs/api.asterisk.php');
  83. require_once('api/libs/api.policedog.php');
  84. require_once('api/libs/api.branches.php');
  85. require_once('api/libs/api.selling.php');
  86. require_once('api/libs/api.printcard.php');
  87. require_once('api/libs/api.generatecard.php');
  88. require_once('api/vendor/fpdf/fpdf.php');
  89. require_once('api/libs/api.updates.php');
  90. require_once('api/libs/api.wdyc.php');
  91. require_once('api/libs/api.mapscommon.php');
  92. require_once('api/libs/api.mapscompat.php');
  93. require_once('api/libs/api.announcements.php');
  94. require_once('api/libs/api.nasmon.php');
  95. require_once('api/libs/api.ipchange.php');
  96. require_once('api/libs/api.messagesqueue.php');
  97. require_once('api/libs/api.taskbar.php');
  98. require_once('api/libs/api.onubase.php');
  99. require_once('api/libs/api.onudelete.php');
  100. require_once('api/libs/api.onuregister.php');
  101. require_once('api/libs/api.onureboot.php');
  102. require_once('api/libs/api.onudlp.php');
  103. require_once('api/libs/api.onuelp.php');
  104. require_once('api/libs/api.onuderegister.php');
  105. require_once('api/libs/api.onudescribe.php');
  106. require_once('api/libs/api.onumaster.php');
  107. require_once('api/libs/api.ldap.php');
  108. require_once('api/libs/api.districts.php');
  109. require_once('api/libs/api.onepunch.php');
  110. require_once('api/libs/api.fwtbt.php');
  111. require_once('api/libs/api.ddt.php');
  112. require_once('api/libs/api.sphinxsearch.php');
  113. require_once('api/libs/api.switchlogin.php');
  114. require_once('api/libs/api.ubrouting.php');
  115. require_once('api/libs/api.nyanorm.php');
  116. require_once('api/libs/api.zabbix.php');
  117. require_once('api/libs/api.backups.php');
  118. //preventing loading of icecream on PHP < 5.6
  119. if (PHP_VERSION_ID >= 50638) {
  120. require_once('api/libs/api.ic.php');
  121. }
  122. /**
  123. * Initial class creation
  124. */
  125. $billing = new ApiBilling();
  126. $ubillingConfig = new UbillingConfig();
  127. require_once('api/api.autolader.php');
  128. /**
  129. * Branches access control
  130. */
  131. $globalAlter = $ubillingConfig->getAlter();
  132. if (@$globalAlter['BRANCHES_ENABLED']) {
  133. $branchControl = new UbillingBranches();
  134. $branchControl->accessControl();
  135. }