Changeset 31373 for extensions/BanIP
- Timestamp:
- Feb 27, 2016, 9:14:20 AM (9 years ago)
- Location:
- extensions/BanIP
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BanIP/admin.php
r31368 r31373 1 1 <?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 // +-----------------------------------------------------------------------+ 2 21 3 22 if (!defined('PHPWG_ROOT_PATH')) -
extensions/BanIP/admin.tpl
r31368 r31373 1 1 <div class="titrePage"> 2 <h2>{' AntiAspi'|@translate}</h2>2 <h2>{'IP ban'|@translate}</h2> 3 3 </div> 4 4 {if isset ($ipbangest)} 5 5 <form method="post" > 6 6 <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}" /> 8 8 </fieldset> 9 9 </form> -
extensions/BanIP/initadmin.php
r31368 r31373 1 1 <?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 2 22 //add admin menu 3 23 add_event_handler('get_admin_plugin_menu_links', 'banip_admin_menu'); … … 6 26 load_language('plugin.lang', BANIP_PATH); 7 27 $menu[] = array( 8 'NAME' => l10n('B ANIP'),28 'NAME' => l10n('Ban IP'), 9 29 'URL' => BANIP_ADMIN, 10 30 ); -
extensions/BanIP/language/en_UK/plugin.lang.php
r31368 r31373 1 1 <?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 2 22 //admin 3 23 $lang['IP ban'] = 'IP ban'; … … 9 29 $lang['List IP banned and IP address range'] = 'List IP banned and IP address range'; 10 30 $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 8 8 Author URI: http://www.temmii.com 9 9 */ 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 // +-----------------------------------------------------------------------+ 10 30 11 31 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); … … 48 68 while(list($ip) = pwg_db_fetch_row($result)) 49 69 { 50 die("IP " . $ip . " ".l10n(' Plage IP ban'));70 die("IP " . $ip . " ".l10n('Range IP address banned')); 51 71 } 52 72 -
extensions/BanIP/maintain.class.php
r31368 r31373 1 1 <?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 2 23 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 3 24
Note: See TracChangeset
for help on using the changeset viewer.