Beispiel #1
0
 //
 // do a sanity check on application and server configuration before servicing a request
 //
 require_once __CA_APP_DIR__ . '/lib/ca/ConfigurationCheck.php';
 ConfigurationCheck::performQuick();
 if (ConfigurationCheck::foundErrors()) {
     if (defined('__CA_ALLOW_AUTOMATIC_UPDATE_OF_DATABASE__') && __CA_ALLOW_AUTOMATIC_UPDATE_OF_DATABASE__ && $_REQUEST['updateSchema']) {
         ConfigurationCheck::updateDatabaseSchema();
     } else {
         ConfigurationCheck::renderErrorsAsHTMLOutput();
     }
     exit;
 }
 if (isset($_REQUEST['processIndexingQueue']) && $_REQUEST['processIndexingQueue']) {
     require_once __CA_MODELS_DIR__ . '/ca_search_indexing_queue.php';
     ca_search_indexing_queue::process();
     exit;
 }
 // run garbage collector
 GarbageCollection::gc();
 $app = AppController::getInstance();
 $g_request = $req = $app->getRequest();
 $g_response = $resp = $app->getResponse();
 // Prevent caching
 $resp->addHeader("Cache-Control", "no-cache, must-revalidate");
 $resp->addHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT");
 //
 // Don't try to authenticate when doing a login attempt or trying to access the 'forgot password' feature
 //
 if (!preg_match("/^\\/system\\/auth\\/(dologin|login|forgot|requestpassword|initreset|doreset)/i", $req->getPathInfo())) {
     $vb_auth_success = $req->doAuthentication(array('noPublicUsers' => true));
Beispiel #2
0
 /**
  *
  */
 public static function process_indexing_queue($po_opts = null)
 {
     require_once __CA_MODELS_DIR__ . '/ca_search_indexing_queue.php';
     ca_search_indexing_queue::process();
 }