Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
floppydrivez
Involved
Involved



Joined: Feb 26, 2006
Posts: 340
Location: Jackson, Mississippi

PostPosted: Sat May 12, 2007 7:47 pm Reply with quote

Looking for a little feedback. Also have a few questions for someone who might can help me with some security advice. PM me if you that person lol.

http://www.clan-themes.co.uk/hey.html
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Sat May 12, 2007 9:43 pm Reply with quote

I like the concept - even better since it supports nukeWYSIWYG. But, there is an older error pages tweak called DisError that essentially does the same thing.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
floppydrivez







PostPosted: Sat May 12, 2007 9:45 pm Reply with quote

Well, I thought with the addition of WYSIWYG it would be much more user-friendly for poeple. Thanks for the input. My favorite part is still the links, not sure why though. HaHa

This is actually a rewrite of a module hitwalker helped me find. This actually uses one standalone page and one function inside it, verses using serval functions for each error. I don't think I used one line of code from the old as it disgusted me, but I used the same title.
 
kguske







PostPosted: Sat May 12, 2007 10:01 pm Reply with quote

What's really nice about using something like this, especially if you combine it with tracking functions (a la MS Analysis or even NukeSentinel), is that you can see in Nuke what games people are trying to play. It makes it easier than checking through error logs... Having the content stored in a database and being able to modify it is really nice. Let me know when you release it - please submit a story on my site. Also, I'd be happy to test it.

Also, is that your site? (clan-themes.co.uk) Pretty nice - and it has some nice addons. Keep up the good work!
 
floppydrivez







PostPosted: Sat May 12, 2007 10:07 pm Reply with quote

Yes, thats mine thanks kgsuske. Hmm... The ability to see what url/page was trying to be accessed when the error page was generated! Would that be better stored in the database or read from a .log file?

A .log file seems as if it would be less stress on the server, but if in the database it would be easier to clear/manage. Both could be read through the admin panel though.

Those are good questions.
 
floppydrivez







PostPosted: Sat May 12, 2007 11:16 pm Reply with quote

This is the problem I am running into with catching the requested url. Since .htaccess is forwarding to a page. The requested url is the error page. If anyone can think of something I should try let me know.

Code:
$requested_url = $_SERVER['REQUEST_URI'];


Like I said, returns the error pages.
 
floppydrivez







PostPosted: Sun May 13, 2007 12:04 pm Reply with quote

I got this figured out. Super nice suggestions. Thanks
 
kguske







PostPosted: Sun May 13, 2007 1:02 pm Reply with quote

Great - did you modify the script - or the htaccess?
 
floppydrivez







PostPosted: Sun May 13, 2007 1:08 pm Reply with quote

Both!

Code:
$current_url = getenv("REQUEST_URI");


For the .htaccess you have to list your urls like so

Code:
ErrorDocument 400 /error-E400.html


Compared to

Code:
ErrorDocument 400 http://www.yoursitename.com/error-E400.html


Took some play, but it works now. With some super advanced features to limit the paths/urls it watches & record ips/usernames.
 
CodyG
Life Cycles Becoming CPU Cycles



Joined: Jan 02, 2003
Posts: 714
Location: Vancouver Island

PostPosted: Mon May 14, 2007 9:11 am Reply with quote

cool!

does it record file changes too?

_________________
"We want to see if life is ubiquitous." D.Goldin 
View user's profile Send private message
floppydrivez







PostPosted: Sun Jun 03, 2007 7:54 pm Reply with quote

No sorry it doesn't. However the mod is going great. A few more days and a little beta on different systems it should be done.

I added the ability to turn the theme on and off per page. This delivers 100% xhtml standard compliance and put in a redirect script just in case. All with on and off switches in admin.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©