diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-07 16:12:31 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-07 16:12:31 +0000 |
commit | a72974865eed14ade1564447e34246ffa9583b77 (patch) | |
tree | a768f4962dd2e249ba5ab7817d567433954b64e4 /wp-inst | |
parent | 9d42ec4ee5db0437e9ad14b793f044fa0f5de8fe (diff) | |
download | wordpress-mu-a72974865eed14ade1564447e34246ffa9583b77.tar.gz wordpress-mu-a72974865eed14ade1564447e34246ffa9583b77.tar.xz wordpress-mu-a72974865eed14ade1564447e34246ffa9583b77.zip |
Added graceful_fail()
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@551 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst')
-rw-r--r-- | wp-inst/wp-content/mu-plugins/misc.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/wp-inst/wp-content/mu-plugins/misc.php b/wp-inst/wp-content/mu-plugins/misc.php index 0663dd7..e02818d 100644 --- a/wp-inst/wp-content/mu-plugins/misc.php +++ b/wp-inst/wp-content/mu-plugins/misc.php @@ -1,4 +1,33 @@ <?php + +function graceful_fail( $message ) { + die(' +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"><head profile="http://gmpg.org/xfn/11"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<title>Error!</title> +<style type="text/css"> +img { + border: 0; +} +body { +line-height: 1.6em; font-family: Georgia, serif; width: 390px; margin: auto; +text-align: center; +} +.message { + font-size: 22px; + width: 350px; + margin: auto; +} +</style> +</head> +<body> +<p class="message">' . $message . '</p> +</body> +</html> + '); +} + function fix_upload_details( $uploads ) { $uploads[ 'url' ] = str_replace( UPLOADS, "files", $uploads[ 'url' ] ); |