editor.php 632 B

123456789101112131415161718192021
  1. <?php
  2. if($_SERVER['ENVIRONMENT'] != 'development' && $_SERVER['APPLICATION'] != 'cms')
  3. {
  4. header('HTTP/1.0 403 Forbidden');
  5. error_log("Access to editor when environment is '". $_SERVER['ENVIRONMENT'] . "' and application mode is '" . $_SERVER['APPLICATION'] . "'.");
  6. die();
  7. }
  8. include (dirname(__FILE__) . "/../config.inc");
  9. function devtool_autoload($class)
  10. {
  11. if(file_exists(DEVTOOL_ROOT . $class . ".inc"))
  12. {
  13. require_once (DEVTOOL_ROOT . $class . ".inc");
  14. }
  15. }
  16. spl_autoload_register("devtool_autoload");
  17. session_start();
  18. $devtoolController = DevtoolController::getInstance();
  19. echo $devtoolController->getPage()->process();