/**
  * Handle Write Exceptions.
  * 
  * @global string                       $urlAppend
  * @param  Zend_Search_Lucene_Exception $e
  */
 protected function handleWriteErrors($e) {
     global $tool_content, $pageName, $errorMessage;
     if (preg_match("/too many open files/i", $e->getMessage())) {
         $pageName = 'Open eClass Asynchronous eLearning Platform';
         $tool_content .= "
           <p>The Open eClass asynchronous eLearning platform is not operational.</p>
           <p>This is caused by a possible maximum open files (ulimit) problem for the search engine indexing directory (courses/idx/).</p>
           <p>Please inform the platform administrator.</p>";
         draw_popup();
         exit();
     } else {
         $errorMessage = $e->getMessage();
         require_once 'fatal_error.php';
     }
 }
 /**
  * Handle Write Exceptions.
  * 
  * @global string                       $urlAppend
  * @param  Zend_Search_Lucene_Exception $e
  */
 protected function handleWriteErrors($e)
 {
     if (preg_match("/too many open files/i", $e->getMessage())) {
         global $urlAppend;
         echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n                <html xmlns=\"http://www.w3.org/1999/xhtml\">\n                  <head>\n                    <title>Asynchronous eLearning Platform Open eClass</title>\n                    <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />\n                    <link href='{$urlAppend}/install/install.css' rel='stylesheet' type='text/css' />\n                  </head>\n                  <body>\n                  <div class='install_container'>\n                  <p align='center'><img src='{$urlAppend}/template/classic/img/logo_openeclass.png' alt='logo' /></p>\n                  <div class='alert' align='center'>\n                  <p>The asynchronous eLearning Platform Open eClass is not operational.</p>\n                  <p>This is caused by a possible maximum open files (ulimit) problem for the search engine indexing directory (courses/idx/).</p>\n                  <p>Please inform the platform administrator.</p>\n                  </div>\n                  </div>\n                  </body>\n                </html>";
         exit;
     } else {
         require_once 'fatal_error.php';
     }
 }