constant-sample.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. define('SLASH',DIRECTORY_SEPARATOR);
  3. define('__ROOT__',dirname(__FILE__).SLASH);
  4. define('TIME_ZONE','Europe/Paris');
  5. define('ENTITY_PREFIX', '');
  6. define('LOG_PATH',__ROOT__.'log');
  7. define('FILE_PATH','file'.SLASH);
  8. define('PLUGIN_PATH','plugin'.SLASH);
  9. define('LIB_PATH',__ROOT__.'lib'.SLASH);
  10. define('AVATAR_PATH','avatar'.SLASH);
  11. global $databases_credentials;
  12. $databases_credentials = array(
  13. 'local' => array(
  14. 'connector' => '{{connector}}',
  15. 'host' => '{{host}}',
  16. 'name' => '{{name}}',
  17. 'login' => '{{login}}',
  18. 'password' => '{{password}}',
  19. ),
  20. // 'db2' => array(
  21. // 'connector' => 'Oracle',
  22. // 'name' => 'my ODBC name',
  23. // 'login' => 'login',
  24. // 'password' => 'password',
  25. // )
  26. );
  27. define('ROOT_URL','{{root}}');
  28. define('CRYPTKEY','{{cryptKey}}');
  29. //logs toutes les requetes sans formattage
  30. define('BASE_DEBUG',false);
  31. define('COOKIE_NAME','erp-core-cookie');
  32. define('PROGRAM_NAME','Hackpoint');
  33. define('PROGRAM_UID','idleman/hackpoint');
  34. define('PROGRAM_AUTHOR','SYS1');
  35. define('PROGRAM_TECHNICIAN','valentin.carruesco');
  36. //Windows
  37. define('REFERENCE_URL','https://idleman/action.php?action=reference_save_project');
  38. //Linux
  39. // define('REFERENCE_URL',''https://idleman/action.php/action.php?action=reference_save_project');
  40. define('SOURCE_VERSION','1.0');
  41. define('BASE_VERSION','1.0');
  42. //define('CACHE_API',true); //permet une simulation de l'utilisation de l'api hors ligne
  43. ?>