Hello bradgrafelman
thank you for your informative reply 🙂
below I have posted the info I was given to create 2 new tables and populate them,
but! I want to create the tables and populate them when I install the script, so I am adding the:
$db_desc[] = "Creating <b>ip2nation</b> table";
$db_desc[] = "Creating <b>ip2nationCountries</b> table";
to the Install.php in my script.
your help appreciated.
##########################################################
Open Proxy Country Ban System
(c) 2007
#########################################################
1. Run the Query on your SQL DB.
2. Import the enclosed file "SQLDUMP.sql" into your SQL DB.
3. Make the file edits below.
4. Upload enclosed file: denial.php into your ADMIN directory.
5. Upload enclosed file: denial.tpl.php into your admin/templates directory.
6. Upload your modified files.
7. In admin, goto the OPCBS Configuration Module and define your preferences.
==============================
RUN THE FOLLOWING SQL QUERIES:
ALTER TABLE probid_gen_setts
ADD
enable_proxy_deny TINYINT( 4 ) NOT NULL ,
ADD
enable_country_deny TINYINT( 4 ) NOT NULL ;
DROP TABLE IF EXISTS ip2nation;
CREATE TABLE ip2nation (
ip int(11) unsigned NOT NULL default '0',
country char(2) NOT NULL default '',
blocked tinyint(4) NOT NULL default '0',
KEY ip (ip)
);
DROP TABLE IF EXISTS ip2nationCountries;
CREATE TABLE ip2nationCountries (
code varchar(4) NOT NULL default '',
country varchar(255) NOT NULL default '',
lat float NOT NULL default '0',
lon float NOT NULL default '0',
blocked tinyint(4) NOT NULL default '0',
PRIMARY KEY (code),
KEY code (code)
);
===================================================================================
IN PHPMYADMIN - Click on IMPORT then browse, and select enclosed file: SQLDUMP.sql
and then click on Go. This will populate your IP database.