constants.php 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?php
  2. defined('BASEPATH') or exit('No direct script access allowed');
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Display Debug backtrace
  6. |--------------------------------------------------------------------------
  7. |
  8. | If set to TRUE, a backtrace will be displayed along with php errors. If
  9. | error_reporting is disabled, the backtrace will not display, regardless
  10. | of this setting
  11. |
  12. */
  13. defined('SHOW_DEBUG_BACKTRACE') or define('SHOW_DEBUG_BACKTRACE', true);
  14. /*
  15. |--------------------------------------------------------------------------
  16. | File and Directory Modes
  17. |--------------------------------------------------------------------------
  18. |
  19. | These prefs are used when checking and setting modes when working
  20. | with the file system. The defaults are fine on servers with proper
  21. | security, but you may wish (or even need) to change the values in
  22. | certain environments (Apache running a separate process for each
  23. | user, PHP under CGI with Apache suEXEC, etc.). Octal values should
  24. | always be used to set the mode correctly.
  25. |
  26. */
  27. defined('FILE_READ_MODE') or define('FILE_READ_MODE', 0644);
  28. defined('FILE_WRITE_MODE') or define('FILE_WRITE_MODE', 0666);
  29. defined('DIR_READ_MODE') or define('DIR_READ_MODE', 0755);
  30. defined('DIR_WRITE_MODE') or define('DIR_WRITE_MODE', 0755);
  31. /*
  32. |--------------------------------------------------------------------------
  33. | File Stream Modes
  34. |--------------------------------------------------------------------------
  35. |
  36. | These modes are used when working with fopen()/popen()
  37. |
  38. */
  39. defined('FOPEN_READ') or define('FOPEN_READ', 'rb');
  40. defined('FOPEN_READ_WRITE') or define('FOPEN_READ_WRITE', 'r+b');
  41. defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') or define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
  42. defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') or define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
  43. defined('FOPEN_WRITE_CREATE') or define('FOPEN_WRITE_CREATE', 'ab');
  44. defined('FOPEN_READ_WRITE_CREATE') or define('FOPEN_READ_WRITE_CREATE', 'a+b');
  45. defined('FOPEN_WRITE_CREATE_STRICT') or define('FOPEN_WRITE_CREATE_STRICT', 'xb');
  46. defined('FOPEN_READ_WRITE_CREATE_STRICT') or define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
  47. /*
  48. |--------------------------------------------------------------------------
  49. | Exit Status Codes
  50. |--------------------------------------------------------------------------
  51. |
  52. | Used to indicate the conditions under which the script is exit()ing.
  53. | While there is no universal standard for error codes, there are some
  54. | broad conventions. Three such conventions are mentioned below, for
  55. | those who wish to make use of them. The CodeIgniter defaults were
  56. | chosen for the least overlap with these conventions, while still
  57. | leaving room for others to be defined in future versions and user
  58. | applications.
  59. |
  60. | The three main conventions used for determining exit status codes
  61. | are as follows:
  62. |
  63. | Standard C/C++ Library (stdlibc):
  64. | http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
  65. | (This link also contains other GNU-specific conventions)
  66. | BSD sysexits.h:
  67. | http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
  68. | Bash scripting:
  69. | http://tldp.org/LDP/abs/html/exitcodes.html
  70. |
  71. */
  72. defined('EXIT_SUCCESS') or define('EXIT_SUCCESS', 0); // no errors
  73. defined('EXIT_ERROR') or define('EXIT_ERROR', 1); // generic error
  74. defined('EXIT_CONFIG') or define('EXIT_CONFIG', 3); // configuration error
  75. defined('EXIT_UNKNOWN_FILE') or define('EXIT_UNKNOWN_FILE', 4); // file not found
  76. defined('EXIT_UNKNOWN_CLASS') or define('EXIT_UNKNOWN_CLASS', 5); // unknown class
  77. defined('EXIT_UNKNOWN_METHOD') or define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
  78. defined('EXIT_USER_INPUT') or define('EXIT_USER_INPUT', 7); // invalid user input
  79. defined('EXIT_DATABASE') or define('EXIT_DATABASE', 8); // database error
  80. defined('EXIT__AUTO_MIN') or define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
  81. defined('EXIT__AUTO_MAX') or define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
  82. defined('MAIN_LICI_URL') or define('MAIN_LICI_URL', 'https://www.hacienda.gob.es/es-ES/GobiernoAbierto/Datos%20Abiertos/Paginas/licitaciones_plataforma_contratacion.aspx');
  83. //Contiene la información relativa a las licitaciones publicadas por los órganos de contratación que tienen su perfil del contratante en la Plataforma de Contratación del Sector Público.
  84. //El conjunto de entidades que tienen su perfil del contratante en esta Plataforma ha ido creciendo progresivamente
  85. //por lo que el periodo que cubre estos datos no es homogéneo para todas ellas.
  86. //Diariamente se publican las actualizaciones producidas durante el día anterior, por lo que una misma licitación puede aparecer tantas veces como modificaciones se hayan producido en los datos de dicha licitación.
  87. defined('URL_DIARIA') or define('URL_DIARIA', "https://contrataciondelsectorpublico.gob.es/sindicacion/sindicacion_643/licitacionesPerfilesContratanteCompleto3.atom");
  88. defined('URL_COMPLETO_FECHA') or define('URL_COMPLETO_FECHA', "http://contrataciondelsectorpublico.gob.es/sindicacion/sindicacion_643/licitacionesPerfilesContratanteCompleto3_");
  89. //Contiene la información relativa a las licitaciones publicadas mediante mecanismos de agregación por entidades del Sector Público
  90. //que no tienen su perfil del contratante dado de alta en la Plataforma de Contratación del Sector Público.
  91. //Las entidades que publican mediante mecanismos de agregación ha ido variando a lo largo del tiempo,
  92. // por lo que la información corresponderá al periodo en el que han utilizado este modo de publicación.
  93. defined('URL_DIARIA_AGREGACION_EXCLU_CONTRATOS_MENORES') or define('URL_DIARIA_AGREGACION_EXCLU_CONTRATOS_MENORES', 'https://contrataciondelsectorpublico.gob.es/sindicacion/sindicacion_1044/PlataformasAgregadasSinMenores.atom');
  94. defined('URL_DIARIA_AGREGACION_EXCLU_CONTRATOS_MENORES_FECHA') or define('URL_DIARIA_AGREGACION_EXCLU_CONTRATOS_MENORES_FECHA', "http://contrataciondelsectorpublico.gob.es/sindicacion/sindicacion_1044/PlataformasAgregadasSinMenores_");
  95. //Contiene la información relativa a los contratos menores publicados por los órganos de contratación que tienen su perfil de contratante en la Plataforma de Contratación del Sector Público.
  96. //Diariamente se publican las actualizaciones producidas durante el día anterior.
  97. defined('URL_DIARIA_CONTRATOS_MENORES_PERFILES_CONTRATANES') or define('URL_DIARIA_CONTRATOS_MENORES_PERFILES_CONTRATANES', 'https://contrataciondelsectorpublico.gob.es/sindicacion/sindicacion_1143/contratosMenoresPerfilesContratantes.atom');
  98. defined('URL_DIARIA_CONTRATOS_MENORES_PERFILES_CONTRATANES_FECHA') or define('URL_DIARIA_CONTRATOS_MENORES_PERFILES_CONTRATANES_FECHA', 'http://contrataciondelsectorpublico.gob.es/sindicacion/sindicacion_1143/contratosMenoresPerfilesContratantes_');
  99. //Este conjunto de datos contiene una relación de los órganos de contratación que se alojan en la Plataforma de Contratación del Sector Público, tanto activos como inactivos.
  100. //Por cada órgano de contratación, se proporcionan los datos más relevantes.
  101. defined('PERFILES_CONTRATANTES') or define('PERFILES_CONTRATANTES', 'https://contrataciondelsectorpublico.gob.es/datosabiertos/OrganosContratacion.xlsx');