mirror of
https://github.com/e107inc/e107.git
synced 2025-09-03 03:13:34 +02:00
Add CVS import/export to banlist
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/help/banlist.php,v $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-12-09 16:42:23 $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2007-12-11 22:48:42 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -24,6 +24,19 @@ if (e_QUERY) list($action,$junk) = explode('.',e_QUERY); else $action = 'list';
|
||||
|
||||
switch ($action)
|
||||
{
|
||||
case 'transfer' :
|
||||
$text = "This page allows you to transfer banlist data to and from this site as CSV (Comma Separated Variable) files.<br /><br />";
|
||||
$text .= "<b>Data Export</b><br />
|
||||
Select the types of ban to export. The fields will be delimited by the chosen separator, and optionally included within the selected quotation marks.<br /><br />";
|
||||
$text .= "<b>Data Import</b><br />
|
||||
You can choose whether the imported bans replace existing imported bans, or whether they add to the list. If the imported data includes an expiry date/time, you
|
||||
can select whether this is used, or whether the value for this site is used.<br /><br />";
|
||||
$text .= "<b>CSV Format</b><br />
|
||||
The format of each line in the file is: IP/email, date, expiry, type, reason, notes.<br />
|
||||
Date and expiry are in the format YYYYMMDD_HHMMDD, except that a zero value indicates 'unknown' or 'indefinite'<br />
|
||||
Only the IP or email address is essential; the other fields are imported if present.<br /><br />
|
||||
<b>Note:</b> You will need to add the 'CSV' file type to admin_filetypes.php";
|
||||
break;
|
||||
case 'options' :
|
||||
$text = "This page sets the default behaviour for various types of ban.<br />
|
||||
If a message is specified, this will be shown to the user (where appropriate); otherwise they will most likely get a blank screen<br />
|
||||
|
@@ -4,8 +4,8 @@
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/lan_banlist.php,v $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-12-09 16:42:23 $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2007-12-11 22:48:42 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -42,12 +42,32 @@ define('BANLAN_31','(Use an empty message if you wish the user to get a blank sc
|
||||
define('BANLAN_32','Indefinite');
|
||||
define('BANLAN_33','Settings Updated');
|
||||
define('BANLAN_34','Expired');
|
||||
define('BANLAN_35','');
|
||||
define('BANLAN_36','');
|
||||
define('BANLAN_37','');
|
||||
define('BANLAN_38','');
|
||||
define('BANLAN_39','');
|
||||
define('BANLAN_40','');
|
||||
define('BANLAN_35','Import/Export');
|
||||
define('BANLAN_36','Export Types');
|
||||
define('BANLAN_37','Field Separator');
|
||||
define('BANLAN_38','Quote (round each value)');
|
||||
define('BANLAN_39','Export');
|
||||
define('BANLAN_40','Banlist Export');
|
||||
define('BANLAN_41','Banlist Import');
|
||||
define('BANLAN_42','Import Choices');
|
||||
define('BANLAN_43','Replace all existing imported bans');
|
||||
define('BANLAN_44','Use expiry date/time from import');
|
||||
define('BANLAN_45','Import');
|
||||
define('BANLAN_46','Import File');
|
||||
define('BANLAN_47','File upload error');
|
||||
define('BANLAN_48','Error importing file');
|
||||
define('BANLAN_49','CSV import: Unbalanced quotes in line ');
|
||||
define('BANLAN_50','CSV import: Error writing banlist record at line ');
|
||||
define('BANLAN_51','CSV import: Success, --NUM-- lines imported from file ');
|
||||
define('BANLAN_52','');
|
||||
define('BANLAN_53','');
|
||||
define('BANLAN_54','');
|
||||
define('BANLAN_55','');
|
||||
define('BANLAN_56','');
|
||||
define('BANLAN_57','');
|
||||
define('BANLAN_58','');
|
||||
define('BANLAN_59','');
|
||||
define('BANLAN_60','');
|
||||
|
||||
// Ban types - block reserved 100-109
|
||||
define('BANLAN_100', 'Unknown');
|
||||
@@ -59,7 +79,7 @@ define('BANLAN_105', 'Imported');
|
||||
define('BANLAN_106', 'User');
|
||||
define('BANLAN_107', 'Unknown');
|
||||
define('BANLAN_108', 'Unknown');
|
||||
define('BANLAN_109', 'Unknown');
|
||||
define('BANLAN_109', 'Old');
|
||||
|
||||
// Detailed explanations for ban types - block reserved 110-119
|
||||
define('BANLAN_110', 'Most likely a ban that was imposed before E107 was upgraded to 0.8');
|
||||
@@ -71,7 +91,7 @@ define('BANLAN_115', 'Added from an external list');
|
||||
define('BANLAN_116', 'IP address banned on account of user ban');
|
||||
define('BANLAN_117', 'Spare reason');
|
||||
define('BANLAN_118', 'Spare reason');
|
||||
define('BANLAN_119', 'Spare reason');
|
||||
define('BANLAN_119', 'Indicates an import error - previously imported bans');
|
||||
|
||||
define('BANLAN_120', 'Unknown');
|
||||
|
||||
|
Reference in New Issue
Block a user