Changeset 980
- Timestamp:
- 05/22/07 21:06:32 (2 years ago)
- Files:
-
- trunk/wp-content/mu-plugins/delete-blog.php (modified) (2 diffs)
- trunk/wp-content/mu-plugins/misc.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-content/mu-plugins/delete-blog.php
r833 r980 28 28 $hash = substr( md5( $_SERVER[ 'REQUEST_URI' ] . time() ), 0, 6 ); 29 29 update_option( "delete_blog_hash", $hash ); 30 $msg = "Dear User, 30 $url_delete = get_option( "siteurl" ) . "/wp-admin/options-general.php?page=delete-blog&h=" . $hash; 31 $msg = __("Dear User, 31 32 You recently clicked the 'Delete Blog' link on your blog and filled in a 32 33 form on that page. 33 34 If you really want to delete your blog, click the link below. You will not 34 35 be asked to confirm again so only click this link if you are 100% certain: 35 " . get_option( "siteurl" ) . "/wp-admin/options-general.php?page=delete-blog&h=" . $hash . " 36 URL_DELETE 36 37 37 38 If you delete your blog, please consider opening a new blog here … … 41 42 Thanks for using the site, 42 43 Webmaster 43 {$current_site->site_name} 44 "; 45 wp_mail( get_option( "admin_email" ), "[ " . get_option( "blogname" ) . " ] Delete My Blog", $msg ); 44 SITE_NAME 45 "); 46 $msg = str_replace( "URL_DELETE", $url_delete, $msg ); 47 $msg = str_replace( "SITE_NAME", $current_site->site_name, $msg ); 48 wp_mail( get_option( "admin_email" ), "[ " . get_option( "blogname" ) . " ] ".__("Delete My Blog"), $msg ); 46 49 ?> 47 50 <p><?php _e('Thank you. Please check your email for a link to confirm your action. Your blog will not be deleted until this link is clicked.') ?></p> trunk/wp-content/mu-plugins/misc.php
r858 r980 32 32 33 33 function fix_upload_details( $uploads ) { 34 35 34 $uploads[ 'url' ] = str_replace( UPLOADS, "files", $uploads[ 'url' ] ); 36 35 return $uploads; … … 74 73 75 74 if( ($spaceAllowed-$size) < 0 ) { 76 return "Sorry, you have used your space allocation. Please delete some files to upload more files."; //No space left75 return __("Sorry, you have used your space allocation. Please delete some files to upload more files."); //No space left 77 76 } else { 78 77 return false; … … 84 83 function filter_upload_dir_size( $uploads ) { 85 84 if( upload_is_user_over_quota( 1 ) ) { 86 $uploads[ 'error' ] = 'Sorry, you have used your upload quota.';85 $uploads[ 'error' ] = __('Sorry, you have used your upload quota.'); 87 86 } 88 87 … … 92 91 93 92 function upload_is_file_too_big( $ret ) { 94 if( $_FILES[ 'image' ][ 'size' ] > ( 1024 * get_site_option( 'fileupload_maxk', 1500 ) ) ) 95 $ret = "This file is too big. Files must be less than " . get_site_option( 'fileupload_maxk', 1500 ) . "Kb in size.<br />"; 96 93 if( $_FILES[ 'image' ][ 'size' ] > ( 1024 * get_site_option( 'fileupload_maxk', 1500 ) ) ) { 94 $file_maxk = get_site_option( 'fileupload_maxk', 1500 ); 95 $ret = sprintf(__('This file is too big. Files must be less than %1$s Kb in size.<br />'), $file_maxk); 96 } 97 97 return $ret; 98 98 }
