includes/functions.php
changeset 311 a007145a0ff6
parent 299 ce2873735506
child 313 854eecfada20
child 315 f49e3c8b638c
equal deleted inserted replaced
309:a1ccf990db6b 311:a007145a0ff6
   475   $db->close();
   475   $db->close();
   476 
   476 
   477   if ( ob_get_status() )
   477   if ( ob_get_status() )
   478     ob_end_clean();
   478     ob_end_clean();
   479 
   479 
   480   dc_here('functions: <span style="color: red">calling die_semicritical</span>');
       
   481 
       
   482   $tpl = new template_nodb();
   480   $tpl = new template_nodb();
   483   $tpl->load_theme('oxygen', 'bleu');
   481   $tpl->load_theme('oxygen', 'bleu');
   484   $tpl->tpl_strings['SITE_NAME'] = getConfig('site_name');
   482   $tpl->tpl_strings['SITE_NAME'] = getConfig('site_name');
   485   $tpl->tpl_strings['SITE_DESC'] = getConfig('site_desc');
   483   $tpl->tpl_strings['SITE_DESC'] = getConfig('site_desc');
   486   $tpl->tpl_strings['COPYRIGHT'] = getConfig('copyright_notice');
   484   $tpl->tpl_strings['COPYRIGHT'] = getConfig('copyright_notice');
   503   global $db, $session, $paths, $template, $plugins; // Common objects
   501   global $db, $session, $paths, $template, $plugins; // Common objects
   504 
   502 
   505   if ( ob_get_status() )
   503   if ( ob_get_status() )
   506     ob_end_clean();
   504     ob_end_clean();
   507 
   505 
   508   dc_here('functions: <span style="color: red">calling die_friendly</span>');
       
   509   $paths->cpage['name'] = $t;
   506   $paths->cpage['name'] = $t;
   510   $template->tpl_strings['PAGE_NAME'] = $t;
   507   $template->tpl_strings['PAGE_NAME'] = $t;
   511   $template->header();
   508   $template->header();
   512   echo $p;
   509   echo $p;
   513   $template->footer();
   510   $template->footer();
   533     $db->close();
   530     $db->close();
   534 
   531 
   535   if ( ob_get_status() )
   532   if ( ob_get_status() )
   536     ob_end_clean();
   533     ob_end_clean();
   537 
   534 
   538   dc_here('functions: <span style="color: red">calling grinding_halt</span>');
       
   539   $tpl = new template_nodb();
   535   $tpl = new template_nodb();
   540   $tpl->load_theme('oxygen', 'bleu');
   536   $tpl->load_theme('oxygen', 'bleu');
   541   $tpl->tpl_strings['SITE_NAME'] = 'Critical error';
   537   $tpl->tpl_strings['SITE_NAME'] = 'Critical error';
   542   $tpl->tpl_strings['SITE_DESC'] = 'This website is experiencing a serious error and cannot load.';
   538   $tpl->tpl_strings['SITE_DESC'] = 'This website is experiencing a serious error and cannot load.';
   543   $tpl->tpl_strings['COPYRIGHT'] = 'Unable to retrieve copyright information';
   539   $tpl->tpl_strings['COPYRIGHT'] = 'Unable to retrieve copyright information';