A Qcodo based CMS/ecommerce framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
3.8 KiB

13 years ago
  1. <?php
  2. define('SERVER_INSTANCE', 'dev');
  3. switch (SERVER_INSTANCE) {
  4. case 'dev':
  5. case 'test':
  6. case 'stage':
  7. case 'prod':
  8. define ('__DOCROOT__', '/var/www');
  9. define ('__SUBDIRECTORY__', '/quasi');
  10. define ('__VIRTUAL_DIRECTORY__', '');
  11. define('DB_CONNECTION_1', serialize(array(
  12. 'adapter' => 'MySqli5',
  13. 'server' => 'localhost',
  14. 'port' => null,
  15. 'database' => 'quasicms',
  16. 'username' => 'quasidbu',
  17. 'password' => 'quasidbp',
  18. 'profiling' => false)));
  19. break;
  20. }
  21. define('ALLOW_REMOTE_ADMIN', true);
  22. define ('__URL_REWRITE__', 'none');
  23. define ('__DEVTOOLS_CLI__', __DOCROOT__ . __SUBDIRECTORY__ . '/../_devtools_cli');
  24. define ('__INCLUDES__', __DOCROOT__ . __SUBDIRECTORY__ . '/includes');
  25. define ('__QCODO__', __INCLUDES__ . '/qcodo');
  26. define ('__QCODO_CORE__', __INCLUDES__ . '/qcodo/_core');
  27. define ('__DEVTOOLS__', __SUBDIRECTORY__ . '/_devtools');
  28. /*
  29. define ('__DATA_CLASSES__', __INCLUDES__ . '/data_classes');
  30. define ('__DATAGEN_CLASSES__', __INCLUDES__ . '/data_classes/generated');
  31. define ('__DATA_META_CONTROLS__', __INCLUDES__ . '/data_meta_controls');
  32. define ('__DATAGEN_META_CONTROLS__', __INCLUDES__ . '/data_meta_controls/generated');
  33. define ('__FORM_DRAFTS__', __SUBDIRECTORY__ . '/drafts');
  34. define ('__PANEL_DRAFTS__', __SUBDIRECTORY__ . '/drafts/dashboard');
  35. */
  36. /**
  37. * The generator directories are defined so that it is easy to have a different local generation.
  38. * All basic functionality for Quasi's ORM layer is under core/orm/ while the generated base classes
  39. * are in generated. Thus, Quasi ORM can be under version control while generated classes
  40. * are not, allowing for local versions of base classes that may have relationships due to local
  41. * database schema changes or extensions. You can move subclassed ORM and MetaControls
  42. * classes to the directories under local after generation and they will be found by the
  43. * Quasi autoloader (Note: currently if you move the generated base class you will need to modify
  44. * the require statements to suit, if you leave them in generated/ they will function as is.).
  45. * This way local and core code can be under different version control without conflict - generated/
  46. * classes are not under version control.
  47. */
  48. /// QUASIBASE defined here in case we are running code generation (ie. without Quasi)
  49. /// QUASIBASE should be the same as QUASI_ROOT ..
  50. define ('__QUASIBASE__', __DOCROOT__ . __SUBDIRECTORY__ );
  51. /// ORM Classes and MetaControls _all_ go under core/orm
  52. define ('__DATA_CLASSES__', __QUASIBASE__ . '/core/orm');
  53. define ('__DATA_META_CONTROLS__', __QUASIBASE__ . '/core/meta_controls');
  54. /// Generated base classes and drafts go under generated/
  55. define ('__DATAGEN_CLASSES__', __QUASIBASE__ . '/generated/orm');
  56. define ('__DATAGEN_META_CONTROLS__', __QUASIBASE__ . '/generated/meta_controls');
  57. ///
  58. define ('__PANEL_DRAFTS__', __SUBDIRECTORY__ . '/generated/panels');
  59. define ('__FORM_DRAFTS__', __SUBDIRECTORY__ . '/generated/forms');
  60. // We don't want "Examples", and we don't want to download them during qcodo_update
  61. define ('__EXAMPLES__', null);
  62. define ('__JS_ASSETS__', __SUBDIRECTORY__ . '/assets/js');
  63. define ('__CSS_ASSETS__', __SUBDIRECTORY__ . '/assets/css');
  64. define ('__IMAGE_ASSETS__', __SUBDIRECTORY__ . '/assets/images');
  65. define ('__PHP_ASSETS__', __SUBDIRECTORY__ . '/assets/php');
  66. if ((function_exists('date_default_timezone_set')) && (!ini_get('date.timezone')))
  67. date_default_timezone_set('America/Los_Angeles');
  68. define('ERROR_PAGE_PATH', __PHP_ASSETS__ . '/_core/error_page.php');
  69. // define('ERROR_LOG_PATH', __INCLUDES__ . '/error_log');
  70. // define('ERROR_FRIENDLY_PAGE_PATH', __PHP_ASSETS__ . '/friendly_error_page.php');
  71. // define('ERROR_FRIENDLY_AJAX_MESSAGE', 'Oops! An error has occurred.\r\n\r\nThe error was logged, and we will take a look into this right away.');
  72. ?>