Changeset 31373


Ignore:
Timestamp:
Feb 27, 2016, 9:14:20 AM (5 years ago)
Author:
ddtddt
Message:

[extensions] - BanIP - check language

Location:
extensions/BanIP
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/BanIP/admin.php

    r31368 r31373  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | Ban IP plugin for piwigo                                              |
     4// +-----------------------------------------------------------------------+
     5// | Copyright(C) 2016 ddtddt                            http://temmii.com |
     6// +-----------------------------------------------------------------------+
     7// | This program is free software; you can redistribute it and/or modify  |
     8// | it under the terms of the GNU General Public License as published by  |
     9// | the Free Software Foundation                                          |
     10// |                                                                       |
     11// | This program is distributed in the hope that it will be useful, but   |
     12// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
     13// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
     14// | General Public License for more details.                              |
     15// |                                                                       |
     16// | You should have received a copy of the GNU General Public License     |
     17// | along with this program; if not, write to the Free Software           |
     18// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
     19// | USA.                                                                  |
     20// +-----------------------------------------------------------------------+
    221
    322if (!defined('PHPWG_ROOT_PATH'))
  • extensions/BanIP/admin.tpl

    r31368 r31373  
    11<div class="titrePage">
    2   <h2>{'AntiAspi'|@translate}</h2>
     2  <h2>{'IP ban'|@translate}</h2>
    33</div>
    44{if isset ($ipbangest)}
    55<form method="post" >
    66        <fieldset>
    7                 <input class="submit" name="submitipban" type="submit" value="{'Add IP ban'|@translate}" />
     7                <input class="submit" name="submitipban" type="submit" value="{'Add IP ban or IP address range'|@translate}" />
    88        </fieldset>
    99</form>
  • extensions/BanIP/initadmin.php

    r31368 r31373  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | Ban IP plugin for piwigo                                              |
     4// +-----------------------------------------------------------------------+
     5// | Copyright(C) 2016 ddtddt                            http://temmii.com |
     6// +-----------------------------------------------------------------------+
     7// | This program is free software; you can redistribute it and/or modify  |
     8// | it under the terms of the GNU General Public License as published by  |
     9// | the Free Software Foundation                                          |
     10// |                                                                       |
     11// | This program is distributed in the hope that it will be useful, but   |
     12// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
     13// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
     14// | General Public License for more details.                              |
     15// |                                                                       |
     16// | You should have received a copy of the GNU General Public License     |
     17// | along with this program; if not, write to the Free Software           |
     18// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
     19// | USA.                                                                  |
     20// +-----------------------------------------------------------------------+
     21
    222//add admin menu
    323add_event_handler('get_admin_plugin_menu_links', 'banip_admin_menu');
     
    626    load_language('plugin.lang', BANIP_PATH);
    727    $menu[] = array(
    8         'NAME' => l10n('BAN IP'),
     28        'NAME' => l10n('Ban IP'),
    929        'URL' => BANIP_ADMIN,
    1030    );
  • extensions/BanIP/language/en_UK/plugin.lang.php

    r31368 r31373  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | Ban IP plugin for piwigo                                              |
     4// +-----------------------------------------------------------------------+
     5// | Copyright(C) 2016 ddtddt                            http://temmii.com |
     6// +-----------------------------------------------------------------------+
     7// | This program is free software; you can redistribute it and/or modify  |
     8// | it under the terms of the GNU General Public License as published by  |
     9// | the Free Software Foundation                                          |
     10// |                                                                       |
     11// | This program is distributed in the hope that it will be useful, but   |
     12// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
     13// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
     14// | General Public License for more details.                              |
     15// |                                                                       |
     16// | You should have received a copy of the GNU General Public License     |
     17// | along with this program; if not, write to the Free Software           |
     18// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
     19// | USA.                                                                  |
     20// +-----------------------------------------------------------------------+
     21
    222//admin
    323$lang['IP ban'] = 'IP ban';
     
    929$lang['List IP banned and IP address range'] = 'List IP banned and IP address range';
    1030$lang['Edit IP banned or IP address range'] = 'Edit IP banned or IP address range';
    11 
     31$lang['Add IP ban or IP address range'] = 'Add IP ban or IP address range';
     32$lang['IP'] = 'IP';
     33$lang['Ban IP'] = 'Ban IP';
     34$lang['Range IP address banned'] = 'Range IP address banned';
  • extensions/BanIP/main.inc.php

    r31368 r31373  
    88Author URI: http://www.temmii.com
    99*/
     10
     11// +-----------------------------------------------------------------------+
     12// | Ban IP plugin for piwigo                                              |
     13// +-----------------------------------------------------------------------+
     14// | Copyright(C) 2016 ddtddt                            http://temmii.com |
     15// +-----------------------------------------------------------------------+
     16// | This program is free software; you can redistribute it and/or modify  |
     17// | it under the terms of the GNU General Public License as published by  |
     18// | the Free Software Foundation                                          |
     19// |                                                                       |
     20// | This program is distributed in the hope that it will be useful, but   |
     21// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
     22// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
     23// | General Public License for more details.                              |
     24// |                                                                       |
     25// | You should have received a copy of the GNU General Public License     |
     26// | along with this program; if not, write to the Free Software           |
     27// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
     28// | USA.                                                                  |
     29// +-----------------------------------------------------------------------+
    1030
    1131if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    4868  while(list($ip) = pwg_db_fetch_row($result))
    4969  {
    50     die("IP " . $ip . "  ".l10n('Plage IP ban'));
     70    die("IP " . $ip . "  ".l10n('Range IP address banned'));
    5171  }
    5272 
  • extensions/BanIP/maintain.class.php

    r31368 r31373  
    11<?php
     2
     3// +-----------------------------------------------------------------------+
     4// | Ban IP plugin for piwigo                                              |
     5// +-----------------------------------------------------------------------+
     6// | Copyright(C) 2016 ddtddt                            http://temmii.com |
     7// +-----------------------------------------------------------------------+
     8// | This program is free software; you can redistribute it and/or modify  |
     9// | it under the terms of the GNU General Public License as published by  |
     10// | the Free Software Foundation                                          |
     11// |                                                                       |
     12// | This program is distributed in the hope that it will be useful, but   |
     13// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
     14// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
     15// | General Public License for more details.                              |
     16// |                                                                       |
     17// | You should have received a copy of the GNU General Public License     |
     18// | along with this program; if not, write to the Free Software           |
     19// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
     20// | USA.                                                                  |
     21// +-----------------------------------------------------------------------+
     22
    223if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    324
Note: See TracChangeset for help on using the changeset viewer.