equal
deleted
inserted
replaced
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'; |