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

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

0 Members and 1 Guest are viewing this topic.

Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] Ban v1.6
« Reply #60 on: May 19, 2005, 05:15:31 AM »
I have changed false to true
Code: [Select]
else
  {
    $ip = $site_sess->session_info['session_ip'];
    $email = $user_info['user_email'];
    $user_id = $user_info['user_id'];
    $name = $user_info['user_name'];
    $hostname = "";
    $force = true;
  }


But now
Quote
Warning: main(./includes/functions.php): failed to open stream: No such file or directory in /home/pramoga/public_html/global.php on line 266

Warning: main(./includes/functions.php): failed to open stream: No such file or directory in /home/pramoga/public_html/global.php on line 266

Warning: main(): Failed opening './includes/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pramoga/public_html/global.php on line 266

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/pramoga/public_html/global.php:266) in /home/pramoga/public_html/includes/sessions.php on line 99

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/pramoga/public_html/global.php:266) in /home/pramoga/public_html/includes/sessions.php on line 99

Warning: Cannot modify header information - headers already sent by (output started at /home/pramoga/public_html/global.php:266) in /home/pramoga/public_html/includes/sessions.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at /home/pramoga/public_html/global.php:266) in /home/pramoga/public_html/includes/sessions.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at /home/pramoga/public_html/global.php:266) in /home/pramoga/public_html/includes/sessions.php on line 107

Fatal error: Call to undefined function: check_ban() in /home/pramoga/public_html/includes/sessions.php on line 412
Again this addres?!
http://www.funny.lt

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 #61 on: May 19, 2005, 05:53:50 AM »
u've changed something else, or did something to functions.php.
restore backups, and try again ;)
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 #62 on: May 19, 2005, 07:43:02 AM »
what do you mean i`ve something changed?
I`ve nothing changed for your mod...
Again this addres?!
http://www.funny.lt

b.o.fan

  • Guest
Re: [MOD] Ban v1.6
« Reply #63 on: May 19, 2005, 08:26:27 AM »
@v@no

thanx. it gone all.
very good mod.

:)

Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] Ban v1.6
« Reply #64 on: May 19, 2005, 10:04:54 AM »
This is my functions.php ... http://www.pramoga.net/includes/functions.php.txt
Maybe if it is not dificult, you can say if there is any bugs? (as they really is)
Again this addres?!
http://www.funny.lt

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 #65 on: May 19, 2005, 02:11:42 PM »
sounds like something went wrong during uploading the file.
make sure its uploaded in text mod.
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 #66 on: May 20, 2005, 03:27:56 PM »
V@no try now, looks like when date is not red anymore ban works
http://www.pramoga.net
So it works?
Again this addres?!
http://www.funny.lt

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 #67 on: May 21, 2005, 12:13:34 AM »
it worked first time I opened the page, but after refresh it didnt ban me...try the changes I mentioned on previos page.
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 #68 on: May 21, 2005, 07:26:39 AM »
Everythig is very strange...
Now it works when i ma de force true.
But bans still not working...
http://www.pramoga.net works?
Again this addres?!
http://www.funny.lt

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 #69 on: May 21, 2005, 07:33:41 AM »
yes, its working now, I'm banned.

so, for some reason something is wrong when caching the results into the session....
I'll get back to u with some debug code u'll need to add...tommorow though ;)
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 #70 on: May 21, 2005, 07:35:18 AM »
great, thanks for that, i`ll wait :)
Again this addres?!
http://www.funny.lt

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 #71 on: May 21, 2005, 03:58:54 PM »
ok, for now, restore the $force variable and try insert in functions.php below:
Code: [Select]
  $ban_banned = $site_sess->get_session_var("ban_banned");this code:
Code: [Select]
  if (in_array($site_sess->session_info['session_ip'], array("65.35.35.155")))
  {
    @error_reporting(E_ALL);
    echo "Ban checked: ".$ban_checked;
    echo "<br>Ban banned: ".$ban_banned;
  }
u should not see any changes, because it should work only from my IP.
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 #72 on: May 21, 2005, 04:04:31 PM »
ok, try now
Again this addres?!
http://www.funny.lt

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 #73 on: May 21, 2005, 04:13:40 PM »
ok, now I know the reason, but I dont know why its happening...
I'm getting this:
Quote
Ban banned: a:10:{i:0;s:1:\"4\";s:2:\"id\";s:1:\"4\";i:1;s:1:\"1\";s:4:\"type\";s:1:\"1\";i:2;s:7:\"Testing\";s:7:\"message\";s:7:\"Testing\";i:3;s:10:\"1116460302\";s:4:\"date\";s:10:\"1116460302\";i:4;s:1:\"0\";s:6:\"expire\";s:1:\"0\";}
Notice: unserialize(): Error at offset 10 of 227 bytes in /home/pramoga/public_html/includes/functions.php on line 1758

The wierd thing is when I tested the serialized string on my site it worked just fine!

Now, please insert above
Code: [Select]
    @error_reporting(E_ALL); (in the code I've posted in my previous reply)
this line:
Code: [Select]
    phpinfo();
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 #74 on: May 21, 2005, 04:20:41 PM »
try now
Again this addres?!
http://www.funny.lt