Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ General ⇒ Announcements :: Archives ⇒ Drastic CVS / Dragonfly 9.1.x changes :: Archived


Drastic CVS / Dragonfly 9.1.x changes :: Archived
General announcements from the Dragonfly CMS Team.
Go to page Previous  1, 2, 3, 4, 5, 6
Post new topic    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page     Forum Index ⇒  Announcements

Topic Archived View previous topic :: View next topic  
Author Message
alva
1000+ Posts Club
1000+ Posts Club

Offline Offline
Joined: May 31, 2005
Posts: 1150
Location: The Netherlands
PostPosted: Mon Jan 23, 2006 11:35 am
Post subject: Re: Drastic CVS / Dragonfly 9.1.x changes

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
1000+ Posts Club

Offline Offline
Joined: May 31, 2005
Posts: 1150
Location: The Netherlands
PostPosted: Tue Jan 24, 2006 9:22 am
Post subject: Re: Drastic CVS / Dragonfly 9.1.x changes

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
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Tue Jan 24, 2006 10:57 am
Post subject: Re: Drastic CVS / Dragonfly 9.1.x changes

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 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Display posts from previous:   
Post new topic    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page    Forum Index ⇒  Announcements
Page 6 of 6
All times are GMT
Go to page Previous  1, 2, 3, 4, 5, 6

 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

lesa meira...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
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

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
Interactive software released under GNU GPL, Code Credits, Privacy Policy