/** * Die die die * */ function yourls_die($message = '', $title = '', $header_code = 200) { yourls_do_action('pre_yourls_die', $message, $title, $header_code); yourls_status_header($header_code); if (!yourls_did_action('html_head')) { yourls_html_head(); yourls_html_logo(); } echo yourls_apply_filter('die_title', "<h2>{$title}</h2>"); echo yourls_apply_filter('die_message', "<p>{$message}</p>"); // Hook into 'yourls_die' to add more elements or messages to that page yourls_do_action('yourls_die'); if (!yourls_did_action('html_footer')) { yourls_html_footer(); } die; }
/** * Die die die * */ function yourls_die($message = '', $title = '', $header_code = 200) { yourls_status_header($header_code); if (!yourls_did_action('html_head')) { yourls_html_head(); yourls_html_logo(); } echo yourls_apply_filter('die_title', "<h2>{$title}</h2>"); echo yourls_apply_filter('die_message', "<p>{$message}</p>"); yourls_do_action('yourls_die'); if (!yourls_did_action('html_head')) { yourls_html_footer(); } die; }