Changeset 31746 for extensions


Ignore:
Timestamp:
03/07/17 12:01:47 (3 years ago)
Author:
ddtddt
Message:

[extensions] - Ban IP - add table Ip list - datatables

Location:
extensions/BanIP
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/BanIP/admin.php

    r31419 r31746  
    33// | Ban IP plugin for piwigo                                              | 
    44// +-----------------------------------------------------------------------+ 
    5 // | Copyright(C) 2016 ddtddt                    http://temmii.com/piwigo/ | 
     5// | Copyright(C) 2016-2017 ddtddt               http://temmii.com/piwigo/ | 
    66// +-----------------------------------------------------------------------+ 
    77// | This program is free software; you can redistribute it and/or modify  | 
  • extensions/BanIP/admin.tpl

    r31395 r31746  
     1{combine_script id='common' load='footer' path='admin/themes/default/js/common.js'} 
     2 
     3{combine_script id='jquery.dataTables' load='footer' path='themes/default/js/plugins/jquery.dataTables.js'} 
     4{combine_css path="themes/default/js/plugins/datatables/css/jquery.dataTables.css"} 
     5 
    16{footer_script} 
    27jQuery(document).ready(function(){ 
     
    1520  }); 
    1621 
     22  $("#tablebanip").dataTable({ 
     23    pageLength: 10, 
     24        "pagingType": "full_numbers", 
     25    language: { 
     26      processing: "{'Loading...'|translate|escape:'javascript'}", 
     27      lengthMenu: sprintf("{'Show %s IP'|translate|escape:'javascript'}", '_MENU_'), 
     28      zeroRecords: "{'No matching IP found'|translate|escape:'javascript'}", 
     29      info: sprintf("{'Showing %s to %s of %s IP'|translate|escape:'javascript'}", '_START_', '_END_', '_TOTAL_'), 
     30      infoEmpty: "{'No matching IP found'|translate|escape:'javascript'}", 
     31      infoFiltered: sprintf("{'(filtered from %s total IP)'|translate|escape:'javascript'}", '_MAX_'), 
     32      search: '<span class="icon-search"></span>'+"{'Search'|translate|escape:'javascript'}", 
     33      loadingRecords: "{'Loading...'|translate|escape:'javascript'}", 
     34      paginate: { 
     35          first:    "{'First'|translate|escape:'javascript'}", 
     36          previous: "{'Previous'|translate|escape:'javascript'}", 
     37          next:     "{'Next'|translate|escape:'javascript'}", 
     38          last:     "{'Last'|translate|escape:'javascript'}", 
     39      } 
     40    } 
     41  }); 
     42   
    1743}); 
    1844{/footer_script} 
     
    4369        <fieldset> 
    4470          <legend>{'List IP banned'|@translate}</legend> 
     71          <table id="tablebanip"> 
     72            <thead> 
     73                <tr> 
     74                  <th></th> 
     75                </tr> 
     76                </thead> 
     77                <tbody> 
    4578                {foreach from=$ipban2 item=ipban} 
     79                <tr> 
     80                  <td> 
    4681                        <div class="lip"> 
    4782                        <!-- {$ipban.ID} --> {$ipban.IP} 
     
    5186                          </span> 
    5287                        </div> 
     88                  </td> 
     89                </tr> 
    5390                {/foreach} 
     91                </tbody> 
    5492         </table> 
    5593        </fieldset> 
  • extensions/BanIP/initadmin.php

    r31434 r31746  
    33// | Ban IP plugin for piwigo                                              | 
    44// +-----------------------------------------------------------------------+ 
    5 // | Copyright(C) 2016 ddtddt                    http://temmii.com/piwigo/ | 
     5// | Copyright(C) 2016-2017 ddtddt               http://temmii.com/piwigo/ | 
    66// +-----------------------------------------------------------------------+ 
    77// | This program is free software; you can redistribute it and/or modify  | 
  • extensions/BanIP/language/en_UK/plugin.lang.php

    r31419 r31746  
    33// | Ban IP plugin for piwigo                                              | 
    44// +-----------------------------------------------------------------------+ 
    5 // | Copyright(C) 2016 ddtddt                    http://temmii.com/piwigo/ | 
     5// | Copyright(C) 2016-2017 ddtddt               http://temmii.com/piwigo/ | 
    66// +-----------------------------------------------------------------------+ 
    77// | This program is free software; you can redistribute it and/or modify  | 
     
    3838$lang['Edit IP banned'] = 'Edit IP banned'; 
    3939$lang['Update'] = 'Update'; 
     40$lang['Show %s IP'] = 'Show %s IP'; 
     41$lang['No matching IP found'] = 'No matching IP found'; 
     42$lang['Showing %s to %s of %s IP'] = 'Showing %s to %s of %s IP'; 
     43$lang['(filtered from %s total IP)'] = '(filtered from %s total IP)'; 
     44 
  • extensions/BanIP/language/fr_FR/plugin.lang.php

    r31419 r31746  
    33// | Ban IP plugin for piwigo                                              | 
    44// +-----------------------------------------------------------------------+ 
    5 // | Copyright(C) 2016 ddtddt                    http://temmii.com/piwigo/ | 
     5// | Copyright(C) 2016-2017 ddtddt               http://temmii.com/piwigo/ | 
    66// +-----------------------------------------------------------------------+ 
    77// | This program is free software; you can redistribute it and/or modify  | 
     
    3838$lang['Edit IP banned'] = 'Editer l\'IP bannie'; 
    3939$lang['Update'] = 'Mettre à jour'; 
     40$lang['Show %s IP'] = 'Afficher %s IP'; 
     41$lang['No matching IP found'] = 'Aucune IP à afficher'; 
     42$lang['Showing %s to %s of %s IP'] = 'Afficher %s à %s sur %s IP'; 
     43$lang['(filtered from %s total IP)'] = '(filtrée de %s IP au total)'; 
    4044 
  • extensions/BanIP/main.inc.php

    r31408 r31746  
    1212// | Ban IP plugin for piwigo                                              | 
    1313// +-----------------------------------------------------------------------+ 
    14 // | Copyright(C) 2016 ddtddt                    http://temmii.com/piwigo/ | 
     14// | Copyright(C) 2016-2017 ddtddt               http://temmii.com/piwigo/ | 
    1515// +-----------------------------------------------------------------------+ 
    1616// | This program is free software; you can redistribute it and/or modify  | 
  • extensions/BanIP/maintain.class.php

    r31408 r31746  
    44// | Ban IP plugin for piwigo                                              | 
    55// +-----------------------------------------------------------------------+ 
    6 // | Copyright(C) 2016 ddtddt                    http://temmii.com/piwigo/ | 
     6// | Copyright(C) 2016-2017 ddtddt               http://temmii.com/piwigo/ | 
    77// +-----------------------------------------------------------------------+ 
    88// | This program is free software; you can redistribute it and/or modify  | 
Note: See TracChangeset for help on using the changeset viewer.