Guest User

Untitled

a guest
Jan 23rd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. <?php
  2.  
  3. // Define path to application directory
  4. defined('APPLICATION_PATH')
  5. || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
  6.  
  7.  
  8. // Define application environment
  9. if ($_SERVER["SERVER_NAME"] != "un_nom" && $_SERVER["SERVER_NAME"] != "un_nom") {
  10. define('APPLICATION_ENV', 'production');
  11. $libZendPath = realpath(APPLICATION_PATH . '/../../library');
  12. }
  13. else {
  14. define('APPLICATION_ENV', 'development');
  15. $libZendPath = realpath(APPLICATION_PATH . '/../../../library');
  16. error_reporting(E_ALL);
  17. }
  18.  
  19.  
  20. // Ensure library/ is on include_path
  21. set_include_path(implode(PATH_SEPARATOR, array(
  22. $libZendPath,
  23. realpath(APPLICATION_PATH . '/../library'),
  24. ".",
  25. )));
  26.  
  27.  
  28. /** Zend_Application */
  29. require_once 'Zend/Application.php';
  30.  
  31. // Create application, bootstrap, and run
  32. $application = new Zend_Application(
  33. APPLICATION_ENV,
  34. APPLICATION_PATH . '/configs/application.ini'
  35. );
  36.  
  37.  
  38.  
  39. $application->bootstrap()
  40. ->run();
Add Comment
Please, Sign In to add comment