echo 'Fatal Error: Could not load the Erfurt Framework classes.' . PHP_EOL; echo 'Maybe you should install it with apt-get or with "make deploy"?' . PHP_EOL; exit; } // restore old error handler restore_error_handler(); // bootstrap try { $application->bootstrap(); } catch (Exception $e) { echo 'Error on bootstrapping application: ' . $e->getMessage() . PHP_EOL; exit; } return $application; } $application = initApp(); $ontowiki = OntoWiki::getInstance(); echo $ontowiki->config->version->label . ' ' . $ontowiki->config->version->number . PHP_EOL; $timeStart = microtime(true); /* -- EXAMPLE JOB CALL -------------------------------------------------- */ $ontowiki->callJob("test", array('repeat' => 10)); // initialize the cron job $ontowiki->callJob("cron"); //$workload = array( //'receiver' => "", //'sender' => "*****@*****.**", //'subject' => "Test @ ".time(), //'body' => "This is just a test..." //); //if(empty($workload['receiver'])) //die("Please set receiver to run this example!");
print 'Your installation directory seems to be screwed.' . PHP_EOL; exit; } /* check/include Erfurt_App */ try { // use include, so we can catch it with the error handler require_once 'Erfurt/App.php'; } catch (Exception $e) { print 'Fatal Error: Could not load the Erfurt Framework classes.' . PHP_EOL; print 'Maybe you should install it with apt-get or with "make deploy"?' . PHP_EOL; exit; } // restore old error handler restore_error_handler(); // bootstrap try { $application->bootstrap(); } catch (Exception $e) { print 'Error on bootstrapping application: ' . $e->getMessage() . PHP_EOL; exit; } return $application; } chdir("../.."); initApp(); $erfurt = Erfurt_App::getInstance(); $erfurt->getCache()->clean(); $erfurt->getQueryCache()->cleanUpCache(array('mode' => 'uninstall')); #if (Zend_Translate::hasCache()) { # Zend_Translate::clearCache(); #}