includes/functions.php
changeset 313 854eecfada20
parent 304 e2cb5f1432c8
parent 311 a007145a0ff6
child 326 ab66d6d1f1f4
equal deleted inserted replaced
310:199b9708f4a2 313:854eecfada20
   483   $db->close();
   483   $db->close();
   484 
   484 
   485   if ( ob_get_status() )
   485   if ( ob_get_status() )
   486     ob_end_clean();
   486     ob_end_clean();
   487 
   487 
   488   dc_here('functions: <span style="color: red">calling die_semicritical</span>');
       
   489 
       
   490   $tpl = new template_nodb();
   488   $tpl = new template_nodb();
   491   $tpl->load_theme('oxygen', 'bleu');
   489   $tpl->load_theme('oxygen', 'bleu');
   492   $tpl->tpl_strings['SITE_NAME'] = getConfig('site_name');
   490   $tpl->tpl_strings['SITE_NAME'] = getConfig('site_name');
   493   $tpl->tpl_strings['SITE_DESC'] = getConfig('site_desc');
   491   $tpl->tpl_strings['SITE_DESC'] = getConfig('site_desc');
   494   $tpl->tpl_strings['COPYRIGHT'] = getConfig('copyright_notice');
   492   $tpl->tpl_strings['COPYRIGHT'] = getConfig('copyright_notice');
   511   global $db, $session, $paths, $template, $plugins; // Common objects
   509   global $db, $session, $paths, $template, $plugins; // Common objects
   512 
   510 
   513   if ( ob_get_status() )
   511   if ( ob_get_status() )
   514     ob_end_clean();
   512     ob_end_clean();
   515 
   513 
   516   dc_here('functions: <span style="color: red">calling die_friendly</span>');
       
   517   $paths->cpage['name'] = $t;
   514   $paths->cpage['name'] = $t;
   518   $template->tpl_strings['PAGE_NAME'] = $t;
   515   $template->tpl_strings['PAGE_NAME'] = $t;
   519   $template->header();
   516   $template->header();
   520   echo $p;
   517   echo $p;
   521   $template->footer();
   518   $template->footer();
   541     $db->close();
   538     $db->close();
   542 
   539 
   543   if ( ob_get_status() )
   540   if ( ob_get_status() )
   544     ob_end_clean();
   541     ob_end_clean();
   545 
   542 
   546   dc_here('functions: <span style="color: red">calling grinding_halt</span>');
       
   547   $tpl = new template_nodb();
   543   $tpl = new template_nodb();
   548   $tpl->load_theme('oxygen', 'bleu');
   544   $tpl->load_theme('oxygen', 'bleu');
   549   $tpl->tpl_strings['SITE_NAME'] = 'Critical error';
   545   $tpl->tpl_strings['SITE_NAME'] = 'Critical error';
   550   $tpl->tpl_strings['SITE_DESC'] = 'This website is experiencing a serious error and cannot load.';
   546   $tpl->tpl_strings['SITE_DESC'] = 'This website is experiencing a serious error and cannot load.';
   551   $tpl->tpl_strings['COPYRIGHT'] = 'Unable to retrieve copyright information';
   547   $tpl->tpl_strings['COPYRIGHT'] = 'Unable to retrieve copyright information';