WordPress.org

Plugin Directory

Changeset 353055


Ignore:
Timestamp:
02/28/11 12:23:15 (3 years ago)
Author:
ampt
Message:

version 1.0.0

Location:
mute-screamer/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • mute-screamer/trunk/languages/mute-screamer.pot

    r352693 r353055  
    55"Project-Id-Version: Mute Screamer 1.0.0-beta\n" 
    66"Report-Msgid-Bugs-To: http://wordpress.org/tags/mute-screamer\n" 
    7 "POT-Creation-Date: 2011-02-27 04:36:21+00:00\n" 
     7"POT-Creation-Date: 2011-02-28 08:32:45+00:00\n" 
    88"MIME-Version: 1.0\n" 
    99"Content-Type: text/plain; charset=UTF-8\n" 
     
    1313"Language-Team: LANGUAGE <LL@li.org>\n" 
    1414 
     15#: libraries/mscr/functions.php:30 
     16msgid "Error %s " 
     17msgstr "" 
     18 
     19#: libraries/mscr/functions.php:32 
     20msgid "An Error Was Encountered %s " 
     21msgstr "" 
     22 
    1523#: libraries/mscr/Log_Email.php:27 
    1624msgid "" 
     
    218226msgstr "" 
    219227 
    220 #: mute-screamer.php:276 
     228#: mute-screamer.php:277 
    221229msgid "[%s] Mute Screamer IDS Alert" 
    222230msgstr "" 
    223231 
    224 #: mute-screamer.php:512 
    225 msgid "An Error Was Encountered." 
    226 msgstr "" 
    227  
    228 #: mute-screamer.php:516 
    229 msgid "Site is unavailable, try again later." 
     232#: mute-screamer.php:513 
     233msgid "There was an error with the page you requested." 
     234msgstr "" 
     235 
     236#: mute-screamer.php:517 
     237msgid "There was a problem processing your request." 
    230238msgstr "" 
    231239 
  • mute-screamer/trunk/libraries/mscr/Utils.php

    r352695 r353055  
    256256 
    257257    /** 
    258      * WP Title filter, when setting status 500 header change 
    259      * the page title to reflect this 
    260      * 
    261      * @return string 
    262      */ 
    263     public static function filter_wp_title( $title, $sep, $seplocation ) { 
    264         return 'An Error Was Encountered '.$sep; 
    265     } 
    266  
    267     /** 
    268258     * Is this a ban request? 
    269259     * 
  • mute-screamer/trunk/mute-screamer.php

    r352693 r353055  
    55Description: <a href="http://phpids.org/">PHPIDS</a> for Wordpress. 
    66Author: ampt 
    7 Version: 1.0.0-beta 
     7Version: 1.0.0 
    88Author URI: http://notfornoone.com/ 
    99*/ 
     
    4242require_once 'mscr/Utils.php'; 
    4343require_once 'mscr/Log_Database.php'; 
     44require_once 'mscr/functions.php'; 
    4445require_once 'IDS/Init.php'; 
    4546require_once 'IDS/Log/Composite.php'; 
     
    5152 
    5253    const INTRUSIONS_TABLE  = 'mscr_intrusions'; 
    53     const VERSION           = '1.0.0-beta'; 
     54    const VERSION           = '1.0.0'; 
    5455    const DB_VERSION        = 2; 
    5556    const POST_TYPE         = 'mscr_ban'; 
     
    510511    private function admin_message() { 
    511512        $filter = 'mscr_admin_warn_message'; 
    512         $message = __( 'An Error Was Encountered.', 'mute-screamer' ); 
     513        $message = __( 'There was an error with the page you requested.', 'mute-screamer' ); 
    513514 
    514515        if( $this->is_ban ) { 
    515516            $filter = 'mscr_admin_ban_message'; 
    516             $message = __( 'Site is unavailable, try again later.', 'mute-screamer' ); 
     517            $message = sprintf( __( 'There was a problem processing your request.', 'mute-screamer' ), get_bloginfo( 'name' ) ); 
    517518        } 
    518519 
  • mute-screamer/trunk/readme.txt

    r352693 r353055  
    44Requires at least: 3.0 
    55Tested up to: 3.1 
    6 Stable tag: 1.0.0-beta 
     6Stable tag: 1.0.0 
    77 
    88PHPIDS for Wordpress 
  • mute-screamer/trunk/templates/500.php

    r352693 r353055  
    11<?php  if ( ! defined('ABSPATH') ) exit; 
    22/** 
    3  * The template for displaying 500 error pages (Server Error). 
     3 * Example template for displaying 500 error pages (Server Error). 
    44 */ 
    55 
    66// Change the page title for a 500 error 
    7 if( is_callable( 'MSCR_Utils::filter_wp_title' ) ) { 
    8     add_filter( 'wp_title', 'MSCR_Utils::filter_wp_title', 10, 3 ); 
     7if( function_exists( 'mscr_filter_wp_title' ) ) { 
     8    add_filter( 'wp_title', 'mscr_filter_wp_title', 10, 3 ); 
    99} 
    1010 
    1111// Warning message 
    1212$mscr_error_title = __( 'An Error Was Encountered', 'twentyten' ); 
    13 $mscr_error_message = __( 'Apologies, there was an error with the page you requested. Perhaps searching will help.', 'twentyten' ); 
     13$mscr_error_message = __( 'There was an error with the page you requested.', 'twentyten' ); 
    1414 
    1515// Is this a ban request? 
    16 if( is_callable( 'MSCR_Utils::is_ban' ) AND MSCR_Utils::is_ban() ) { 
     16if( function_exists( 'mscr_is_ban' ) AND mscr_is_ban() ) { 
    1717    // Ban message 
    1818    $mscr_error_title = sprintf( __( '%s Unavailable', 'twentyten' ), get_bloginfo( 'name' ) ); 
    19     $mscr_error_message = __( 'There was an error with the page you requested. Try again later.', 'twentyten' ); 
     19    $mscr_error_message = __( 'There was a problem processing your request.', 'twentyten' ); 
    2020} 
    2121 
Note: See TracChangeset for help on using the changeset viewer.