summaryrefslogtreecommitdiffstats
path: root/emacs.d/nxhtml/tests/in/bug354363-index.php
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-03-07 09:04:49 +0100
committerGravatar Tom Willemsen2011-03-07 09:04:49 +0100
commit94d2fc1815a919734353c942f224db1de4b4fcb8 (patch)
tree4168e816ead132bfa3510e272427837c3895f5e2 /emacs.d/nxhtml/tests/in/bug354363-index.php
parentd0e7674fdb1de12c8de202d4028a5d7ed3669a6e (diff)
downloaddotfiles-94d2fc1815a919734353c942f224db1de4b4fcb8.tar.gz
dotfiles-94d2fc1815a919734353c942f224db1de4b4fcb8.zip
Django, org
* Added nxhtml, mostly for django support. * Changed some org settings.
Diffstat (limited to 'emacs.d/nxhtml/tests/in/bug354363-index.php')
-rw-r--r--emacs.d/nxhtml/tests/in/bug354363-index.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/emacs.d/nxhtml/tests/in/bug354363-index.php b/emacs.d/nxhtml/tests/in/bug354363-index.php
new file mode 100644
index 0000000..3644f5d
--- /dev/null
+++ b/emacs.d/nxhtml/tests/in/bug354363-index.php
@@ -0,0 +1,38 @@
+<?php
+ define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application/'));
+set_include_path(
+ APPLICATION_PATH . '/../library'
+ . PATH_SEPARATOR . get_include_path()
+ );
+
+if(true){
+ echo 'test';
+ }
+else
+ {
+
+ }
+
+require_once "Zend/Loader.php";
+Zend_Loader::registerAutoload();
+
+try
+{
+ require '../application/bootstrap.php';
+ }
+catch(Exception $exception)
+{
+ echo '<html><body><center>'
+ . 'An exception occured while bootstrapping the application.';
+ if(defined('APPLICATION_ENVIRONMENT')
+ && APPLICATION_ENVIRONMENT != 'production'
+ ) {
+ echo '<br /><br />' . $exception->getMessage() . '<br />'
+ . '<div align="left">Stack Trace:'
+ . '<pre>' . $exception->getTraceAsString() . '</pre></div>';
+ }
+ echo '</center><body></html>';
+ exit(1);
+ }
+
+Zend_Controller_Front::getInstance()->dispatch();