• [MOD] Ban v1.7 3 0 5 1
Currently:  

Author Topic: [MOD] Ban v1.7  (Read 358497 times)

0 Members and 1 Guest are viewing this topic.

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [MOD] Ban v1.6
« Reply #45 on: April 21, 2005, 09:49:33 AM »
LOOKUP (buscar)
Looking up an IP address from its name in DNS or looking up a name from its IP address.
HOSTNAME (denominación de computador)
The name given to an individual computer attached to the Internet.

if set to yes = more work for the server = slower
if set to no  = less work for the server = faster
MAяTRIX


b.o.fan

  • Guest
Re: [MOD] Ban v1.6
« Reply #46 on: May 12, 2005, 10:24:08 AM »
Hello. I´ve got this Error, when i do the ban_install.php:

Code: [Select]
DB Error: Bad SQL Query: CREATE TABLE 4images_ban (id mediumint(12) NOT NULL auto_increment, `type` tinyint(1) NOT NULL default '0', active tinyint(1) NOT NULL default '0', ip1_start tinyint(3) unsigned NOT NULL default '0', ip1_end tinyint(3) unsigned NOT NULL default '0', ip2_start tinyint(3) unsigned NOT NULL default '0', ip2_end tinyint(3) unsigned NOT NULL default '0', ip3_start tinyint(3) unsigned NOT NULL default '0', ip3_end tinyint(3) unsigned NOT NULL default '0', ip4_start tinyint(3) unsigned NOT NULL default '0', ip4_end tinyint(3) unsigned NOT NULL default '0', user_id mediumint(10) NOT NULL default '0', name varchar(255) NOT NULL default '', hostname tinytext NOT NULL, email tinytext NOT NULL, `date` int(11) NOT NULL default '0', expire int(11) NOT NULL default '0', message text NOT NULL, reason text NOT NULL, PRIMARY KEY (id), KEY active (active)) ENGINE=MyISAM
You have an error in your SQL syntax near 'ENGINE=MyISAM' at line 1

DB Error: Bad SQL Query: CREATE TABLE 4images_ban_logs ( id mediumint(10) NOT NULL auto_increment, `date` int(11) NOT NULL default '0', ban_id mediumint(12) NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', ip tinytext NOT NULL, uri varchar(255) NOT NULL default '', PRIMARY KEY (id)) ENGINE=MyISAM
You have an error in your SQL syntax near 'ENGINE=MyISAM' at line 1

   1. Error
        CREATE TABLE 4images_ban (id mediumint(12) NOT NULL auto_increment, `type` tinyint(1) NOT NULL default '0', active tinyint(1) NOT NULL default '0', ip1_start tinyint(3) unsigned NOT NULL default '0', ip1_end tinyint(3) unsigned NOT NULL default '0', ip2_start tinyint(3) unsigned NOT NULL default '0', ip2_end tinyint(3) unsigned NOT NULL default '0', ip3_start tinyint(3) unsigned NOT NULL default '0', ip3_end tinyint(3) unsigned NOT NULL default '0', ip4_start tinyint(3) unsigned NOT NULL default '0', ip4_end tinyint(3) unsigned NOT NULL default '0', user_id mediumint(10) NOT NULL default '0', name varchar(255) NOT NULL default '', hostname tinytext NOT NULL, email tinytext NOT NULL, `date` int(11) NOT NULL default '0', expire int(11) NOT NULL default '0', message text NOT NULL, reason text NOT NULL, PRIMARY KEY (id), KEY active (active)) ENGINE=MyISAM

   2. Error
        CREATE TABLE 4images_ban_logs ( id mediumint(10) NOT NULL auto_increment, `date` int(11) NOT NULL default '0', ban_id mediumint(12) NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', ip tinytext NOT NULL, uri varchar(255) NOT NULL default '', PRIMARY KEY (id)) ENGINE=MyISAM

   3. Done
        INSERT INTO `4images_settings` ( `setting_name` , `setting_value` ) VALUES ('look_hostname', '1')

   4. Done
        INSERT INTO `4images_settings` ( `setting_name` , `setting_value` ) VALUES ('ban_update', '0')

Why??!??

help me please...


b.o.fan

Offline Josef Florian

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [MOD] Ban v1.6
« Reply #47 on: May 17, 2005, 04:48:26 PM »
Hello. I´ve got this Error, when i do the ban_install.php:

Code: [Select]
DB Error: Bad SQL Query: CREATE TABLE 4images_ban (id mediumint(12) NOT NULL auto_increment, `type` tinyint(1) NOT NULL default '0', active tinyint(1) NOT NULL default '0', ip1_start tinyint(3) unsigned NOT NULL default '0', ip1_end tinyint(3) unsigned NOT NULL default '0', ip2_start tinyint(3) unsigned NOT NULL default '0', ip2_end tinyint(3) unsigned NOT NULL default '0', ip3_start tinyint(3) unsigned NOT NULL default '0', ip3_end tinyint(3) unsigned NOT NULL default '0', ip4_start tinyint(3) unsigned NOT NULL default '0', ip4_end tinyint(3) unsigned NOT NULL default '0', user_id mediumint(10) NOT NULL default '0', name varchar(255) NOT NULL default '', hostname tinytext NOT NULL, email tinytext NOT NULL, `date` int(11) NOT NULL default '0', expire int(11) NOT NULL default '0', message text NOT NULL, reason text NOT NULL, PRIMARY KEY (id), KEY active (active)) ENGINE=MyISAM
You have an error in your SQL syntax near 'ENGINE=MyISAM' at line 1

DB Error: Bad SQL Query: CREATE TABLE 4images_ban_logs ( id mediumint(10) NOT NULL auto_increment, `date` int(11) NOT NULL default '0', ban_id mediumint(12) NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', ip tinytext NOT NULL, uri varchar(255) NOT NULL default '', PRIMARY KEY (id)) ENGINE=MyISAM
You have an error in your SQL syntax near 'ENGINE=MyISAM' at line 1

   1. Error
        CREATE TABLE 4images_ban (id mediumint(12) NOT NULL auto_increment, `type` tinyint(1) NOT NULL default '0', active tinyint(1) NOT NULL default '0', ip1_start tinyint(3) unsigned NOT NULL default '0', ip1_end tinyint(3) unsigned NOT NULL default '0', ip2_start tinyint(3) unsigned NOT NULL default '0', ip2_end tinyint(3) unsigned NOT NULL default '0', ip3_start tinyint(3) unsigned NOT NULL default '0', ip3_end tinyint(3) unsigned NOT NULL default '0', ip4_start tinyint(3) unsigned NOT NULL default '0', ip4_end tinyint(3) unsigned NOT NULL default '0', user_id mediumint(10) NOT NULL default '0', name varchar(255) NOT NULL default '', hostname tinytext NOT NULL, email tinytext NOT NULL, `date` int(11) NOT NULL default '0', expire int(11) NOT NULL default '0', message text NOT NULL, reason text NOT NULL, PRIMARY KEY (id), KEY active (active)) ENGINE=MyISAM

   2. Error
        CREATE TABLE 4images_ban_logs ( id mediumint(10) NOT NULL auto_increment, `date` int(11) NOT NULL default '0', ban_id mediumint(12) NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', ip tinytext NOT NULL, uri varchar(255) NOT NULL default '', PRIMARY KEY (id)) ENGINE=MyISAM

   3. Done
        INSERT INTO `4images_settings` ( `setting_name` , `setting_value` ) VALUES ('look_hostname', '1')

   4. Done
        INSERT INTO `4images_settings` ( `setting_name` , `setting_value` ) VALUES ('ban_update', '0')

Why??!??

help me please...


b.o.fan

Ich habe das selbe Problem! Hängt es irgendwie mit der MyISAM zusammen?  // I have the same problem!  :D
    • running v1.7.6 with MOD: SortImageAsYouLike / Cooliris Slideshow
    • with © removal
    • i have problems with:
actually no[/list]

Offline Josef Florian

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [MOD] Ban v1.6
« Reply #48 on: May 17, 2005, 04:59:16 PM »
Ich habe das Problem behoben!

Da bei meiner SQL-Datenbank sowieso standardmäßig der Typ MyISAM ist, habe ich einfach statt:

Quote
CREATE TABLE fotos1_4images_ban_logs ( id mediumint(10) NOT NULL auto_increment, `date` int(11) NOT NULL default '0', ban_id mediumint(12) NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', ip tinytext NOT NULL, uri varchar(255) NOT NULL default '', PRIMARY KEY (id)) ENGINE=MyISAM

Quote
CREATE TABLE fotos1_4images_ban_logs ( id mediumint(10) NOT NULL auto_increment, `date` int(11) NOT NULL default '0', ban_id mediumint(12) NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', ip tinytext NOT NULL, uri varchar(255) NOT NULL default '', PRIMARY KEY (id))
Ich habe also " ENGINE=MyISAM" gelöscht!



Das gleiche habe ich mit dem 2. Fehler gemacht:

statt:
Quote
CREATE TABLE fotos1_4images_ban (id mediumint(12) NOT NULL auto_increment, `type` tinyint(1) NOT NULL default '0', active tinyint(1) NOT NULL default '0', ip1_start tinyint(3) unsigned NOT NULL default '0', ip1_end tinyint(3) unsigned NOT NULL default '0', ip2_start tinyint(3) unsigned NOT NULL default '0', ip2_end tinyint(3) unsigned NOT NULL default '0', ip3_start tinyint(3) unsigned NOT NULL default '0', ip3_end tinyint(3) unsigned NOT NULL default '0', ip4_start tinyint(3) unsigned NOT NULL default '0', ip4_end tinyint(3) unsigned NOT NULL default '0', user_id mediumint(10) NOT NULL default '0', name varchar(255) NOT NULL default '', hostname tinytext NOT NULL, email tinytext NOT NULL, `date` int(11) NOT NULL default '0', expire int(11) NOT NULL default '0', message text NOT NULL, reason text NOT NULL, PRIMARY KEY (id), KEY active (active)) ENGINE=MyISAM
Quote
CREATE TABLE fotos1_4images_ban (id mediumint(12) NOT NULL auto_increment, `type` tinyint(1) NOT NULL default '0', active tinyint(1) NOT NULL default '0', ip1_start tinyint(3) unsigned NOT NULL default '0', ip1_end tinyint(3) unsigned NOT NULL default '0', ip2_start tinyint(3) unsigned NOT NULL default '0', ip2_end tinyint(3) unsigned NOT NULL default '0', ip3_start tinyint(3) unsigned NOT NULL default '0', ip3_end tinyint(3) unsigned NOT NULL default '0', ip4_start tinyint(3) unsigned NOT NULL default '0', ip4_end tinyint(3) unsigned NOT NULL default '0', user_id mediumint(10) NOT NULL default '0', name varchar(255) NOT NULL default '', hostname tinytext NOT NULL, email tinytext NOT NULL, `date` int(11) NOT NULL default '0', expire int(11) NOT NULL default '0', message text NOT NULL, reason text NOT NULL, PRIMARY KEY (id), KEY active (active))
Ich habe also " ENGINE=MyISAM" gelöscht!



einfach mit phpMyAdmin bequem ausgeführt und mein Ban v1.6 läuft einwandfrei!  :D


Liebe Grüße
Josef Florian Glatz
    • running v1.7.6 with MOD: SortImageAsYouLike / Cooliris Slideshow
    • with © removal
    • i have problems with:
actually no[/list]

b.o.fan

  • Guest
Re: [MOD] Ban v1.6
« Reply #49 on: May 17, 2005, 08:09:35 PM »
ja. danke
@Josef Florian Glatz

here is my ban_install.php:

Code: [Select]
REMOVEDthe half of the ban_install.php is oky but than: Look @ the screenshot
die hälfte des ban_install.php lief auch. aber dann:


B.o.fan
« Last Edit: May 18, 2005, 12:12:13 AM by V@no »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Ban v1.6
« Reply #50 on: May 18, 2005, 12:14:36 AM »
and what is your MySQL version?

@b.o.fan:
dont worry about the errors from the screenshot, your database was successfuly updated.


[EDIT]
I just found out that ENGINE syntax is availiable in MySQL v4.1.x and later versions
And I updated the installer.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

b.o.fan

  • Guest
Re: [MOD] Ban v1.6
« Reply #51 on: May 18, 2005, 05:47:47 AM »
oki.

thankx.

i will look.


b.o.fan

Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] Ban v1.6
« Reply #52 on: May 18, 2005, 09:22:53 AM »
OK, i`ve installed succefully, no error apeared during installation. BUT there is one BUT :)
Script doesnt work. Or i cant understand how it works.
So I add a ban on my host or on my ip but I still can login page, I tryied to login and logout but still nothing happened.
Is there something wrong or what? :)
Again this addres?!
http://www.funny.lt

b.o.fan

  • Guest
Re: [MOD] Ban v1.6
« Reply #53 on: May 18, 2005, 01:07:31 PM »
@universal

yes. thats my problem too.

i give in a other User. but he can loggin.

:) :) :)

MfG

b.o.fan

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Ban v1.6
« Reply #54 on: May 18, 2005, 02:49:28 PM »
Ok, how about this idea: ban my IP: 65.35.35.155 or 65.35.35.*
I'll come back in 9 hours and check it out, also, please post a screenshot of your ban list.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] Ban v1.6
« Reply #55 on: May 18, 2005, 03:57:20 PM »
Here you go :)
http://www.pramoga.net

Added ban for IP: 65.35.35.*
Again this addres?!
http://www.funny.lt

b.o.fan

  • Guest
Re: [MOD] Ban v1.6
« Reply #56 on: May 18, 2005, 04:04:51 PM »
here you can test.

i´ve got 4images 1.71.

:)

http://www.wartenaufden15.de --> look there

the screenshot look under this... 8O 8O 8O :D :D :D

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Ban v1.6
« Reply #57 on: May 18, 2005, 11:56:01 PM »
@universal:
ok it didnt work for me...


@b.o.fan:
It worked first time I opened the site, after refresh the ban was gone..

So, try replace in includes/functions.php:
Code: [Select]
$force = false; with:
Code: [Select]
$force = true;it will force query the database each time someone opens a page. if it works, then there is something wrong with the way your 4images stores some sessions...
if it works, then restore that line, clear your cookies, then put your site domain into "black list" in your browser so it would block any cookies from your site and try to login. if u be able login and browse the site without problem, then we'll go from there, otherwise there is something wrong with your server and u should contact your hoster about it...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline waleed

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: [MOD] Ban v1.6
« Reply #58 on: May 19, 2005, 04:00:03 AM »
how can i ban ppl using proxy
if i ban someone he can use proxy to login again
so ?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Ban v1.6
« Reply #59 on: May 19, 2005, 04:47:01 AM »
sorry, there is no a "real" sollution for a proxy...if someone really wants to get to your site, the only way to stop them is close up your site intirely.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)