globals.php 857 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. //This file is intentionally left blank so that you can add your own global settings
  3. //and includes which you may need inside your services. This is generally considered bad
  4. //practice, but it may be the only reasonable choice if you want to integrate with
  5. //frameworks that expect to be included as globals, for example TextPattern or WordPress
  6. //Set start time before loading framework
  7. list($usec, $sec) = explode(" ", microtime());
  8. $amfphp['startTime'] = ((float)$usec + (float)$sec);
  9. $servicesPath = "services/";
  10. $voPath = "services/vo/";
  11. //As an example of what you might want to do here, consider:
  12. define("IP_HOST", "37.187.89.74");
  13. /*
  14. if(!PRODUCTION_SERVER)
  15. {
  16. define("DB_HOST", "localhost");
  17. define("DB_USER", "root");
  18. define("DB_PASS", "");
  19. define("DB_NAME", "amfphp");
  20. }
  21. */
  22. ?>