Drastic CVS / Dragonfly 9.1.x changes
Post new topic   This topic is locked: you cannot edit posts or make replies.   Printer Friendly Page     Forum IndexAnnouncements
Author Message
alva
1000+ Posts Club


Joined: May 31, 2005
Posts: 1150
Location: The Netherlands

PostPost subject: Re: Drastic CVS / Dragonfly 9.1.x changes
Posted: Mon Jan 23, 2006 11:35 am
Reply with quote

DJMaze wrote:
And what does empty(false) is according to php.net/empty ?
It's similar to dragonflycms.org/Proje...d=731.html

Please investigate before you report a bug.
DJMaze, I do investigate first and I had visited the page you're linking to, be it the auto-translation. Hope you don't mind my occasional mistake and please forgive me for not seeing the similarity to JamieWolf's report on missing "?>".

Thanks for fixing the HTTP_X_FORWARD_FOR.

Any comments on my ban_ipn padding report? I can see in my _security table that the entries are not padded, even though it's a varchar(17) BINARY.

Thanks for your time, I'm really trying not to waiste it and I do compensate my asking here with al lot of answering elsewhere.


alva's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache/5.0.24/5/9.1 CVS
Back to top
View user's profile Visit poster's website
alva
1000+ Posts Club


Joined: May 31, 2005
Posts: 1150
Location: The Netherlands

PostPost subject: Re: Drastic CVS / Dragonfly 9.1.x changes
Posted: Tue Jan 24, 2006 9:22 am
Reply with quote

I went ahead with padding $ip ('$ip/') where ban_ipn is involved in includes/classes/security.php. Now for the admin-panel to show ip's properly I modified admin/modules/security.php.

PHP:

if ($result = $db->query('SELECT * FROM '.$prefix."_security WHERE ban_type = 0 ORDER BY ban_string $limit")) {
while (
$row = $db->fetch_array($result, SQL_ASSOC)) {
if (!empty(
$row['ban_ipn'])) {
$ip = inet_ntop($row['ban_ipn']);

I changed the last line in the snippet (151) to:

PHP:

$ip
= inet_ntop(substr($row['ban_ipn'],0,-1));

Apart from this modification I padded in this file too $ip a couple of times in occurences of INSERT and SELECT involving ban_ipn.

All seems to work better for me, now. I'm not getting all the emails anymore (some of which were identical)


alva's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache/5.0.24/5/9.1 CVS
Back to top
View user's profile Visit poster's website
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: Drastic CVS / Dragonfly 9.1.x changes
Posted: Tue Jan 24, 2006 10:57 am
Reply with quote

Alva stop flooding this topic with useless information.
The current CVS already pads the ip with a slash.

You will NOT recieve any support in here anyway especialy now that we know you're not using the latest cvs.

Topic is now locked to prevent more useless replies and because CVS has no support anyway.


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.   Printer Friendly Page     Forum IndexAnnouncements All times are GMT
Go to page Previous  1, 2, 3, 4, 5, 6
Page 6 of 6


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Dedicated Server & Bandwidth Sponsored by DedicatedNOW
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 1.116 seconds with 16 DB Queries in 0.0866 seconds
Memory Usage: 2.87 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy