Skip to content

Instantly share code, notes, and snippets.

@steffanwilliams
Created September 16, 2010 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steffanwilliams/583310 to your computer and use it in GitHub Desktop.
Save steffanwilliams/583310 to your computer and use it in GitHub Desktop.
<?php
...
function txp_die($msg, $status='503')
{
...
if (@$GLOBALS['connected']) {
$out= @file_get_contents(txpath.'/../templates/pages/error_'.doSlash($code).'.php');
if (empty($out))
$out = safe_field('user_html','txp_page',"name='error_".doSlash($code)."'");
if (empty($out))
$out= @file_get_contents(txpath.'/../templates/pages/error_default.php');
if (empty($out))
$out = safe_field('user_html','txp_page',"name='error_default'");
}
...
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment