Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's v7.0 Customized Distro
Author Message
porcupinepc
Involved
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Sat Jan 24, 2004 9:40 pm Reply with quote

I have a question regarding html code in v7.0

I am trying to figure out what html code i enter in order to have a link to a site. For example, on my site, i type out a "New Story" In this story, i want a link to a site. For example:

For more info, visit XYZSITE

When they click the word XYZSITE they go to that site. I tried using html code from Frontpage but Nuke said those tags are not allowed. I'd appreciate any pointers.

Thanks

Joe
Porcupine PC
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sat Jan 24, 2004 10:57 pm Reply with quote

Some words within a URL are not aloud, like the word Script for one.

This post at Nukecops should help you.

Only registered users can see links on this board! Get registered or login!

_________________
Scott Johnson MIS Ubuntu/Linux 11.10 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Sun Jan 25, 2004 12:52 am Reply with quote

Check in your config.php file to see what tags are allowed. Then compare the FP tags to that array. Just a word of advice, scrap FP. It usually adds more code than is needed and also is usually proprietary code that only works in IE Wink
 
View user's profile Send private message
Nukeum66
PostPosted: Sun Jan 25, 2004 7:08 am Reply with quote

I seen the link porcupinepc trying to use. It a link to Ravenphpscripts.com, I had the same problem when I tried to enter any link using the word script. The fix for me was editing the mainfile.php.

Is there a better fix for this problem?
 
porcupinepc
PostPosted: Sun Jan 25, 2004 7:18 am Reply with quote

can you provide me with the corrected mainfile code?

Joe
 
Nukeum66
PostPosted: Sun Jan 25, 2004 7:37 am Reply with quote

Is that the problem your having, entering curtain words or are you having trouble with all URL's/Links? Read Raven's Post here Only registered users can see links on this board! Get registered or login! it explains what needs to be done. Wink

You need to rule out all other possible problem before you resort to editing the mainfile.php.
 
porcupinepc
PostPosted: Sun Jan 25, 2004 8:56 am Reply with quote

Thanks to Nukem66 for the fix.

For everyone else, backup your mainfile.php and edit all instances of "script"

Here's the edited code:

foreach ($_GET as $secvalue) {
if (/*(eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||*/
(eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||
(eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
(eregi("\"", $secvalue))) {
die ("I don't like you...");
}
}

foreach ($_POST as $secvalue) {
if (/*(eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||*/ (eregi("<[^>]*style*\"?[^>]*>", $secvalue))) {
Header("Location: index.php");
die();
}
}



Joe
PorcupinePC Only registered users can see links on this board! Get registered or login!
 
Raven
PostPosted: Sun Jan 25, 2004 8:57 am Reply with quote

Here is a good thread on it also Only registered users can see links on this board! Get registered or login!
 
porcupinepc
PostPosted: Sun Jan 25, 2004 9:06 am Reply with quote

Thanks Raven. I printed out the article and will keep it for future reference.

Joe
 
Nukeum66
PostPosted: Sun Jan 25, 2004 9:20 am Reply with quote

Don't thank me! I'm just passing along what I've learned from READING EVERTHING in this forum, so really you need to thank Raven. Very Happy
 
porcupinepc
PostPosted: Sun Jan 25, 2004 9:49 am Reply with quote

Well, a big thank you to Raven.


Joe
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's v7.0 Customized Distro

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 ©