Previous Thread
Next Thread
Print Thread
Hop To
#77490 01/31/2002 5:50 PM
Anonymous
Unregistered
Anonymous
Unregistered
By the native of the board i have to allow post of php,html codes (mean simple text) f.e.

<?php
$readfile = join("", file
("../config.inc.php"));
print $readfile;
?>

But i get FYI "Sorry, we do not permit this HTML tag: PHP"
Is there a way to post web codes with no troubles?

.: in God we trust, all others we monitor :.

#77491 01/31/2002 5:56 PM
Anonymous
Unregistered
Anonymous
Unregistered
If you use the UBBcode code option you should be able to post your PHP code.


Example:

Code
<?php
$readfile = join("", file
("../config.inc.php"));
print $readfile;
?>  

#77492 02/01/2002 4:36 PM
Anonymous
Unregistered
Anonymous
Unregistered
Nop, unfortunatelyy nop...
I got ubbcode enabled :&#0124;
Check it.

.: in God we trust, all others we monitor :.

#77493 02/01/2002 9:17 PM
Anonymous
Unregistered
Anonymous
Unregistered
If you insist on removing this check, you'll need to edit sub check_html - I forget which of the ubb_lib files it is in (check ubb_lib.cgi first).

However, this BIG comment block appears prominently before that subroutine. Heed its warnings, for you will NOT receive support (or much sympathy in all honesty) if you ignore them.

Quote
# Someone got the idea in their head a while ago that this entire
# subroutine is here just to annoy them and prevent them from posting
# HTML, and that they should just disable it so they can post.

# That is WRONG.

# This routine is here to FILTER DANGEROUS CONTENT.

# If you are going to hack your board up, feel free to... but
# DO NOT REMOVE OR IN ANY WAY CHANGE THIS ROUTINE
# OR ANYTHING THAT CALLS THIS ROUTINE

# If you do so, there is a SIGNIFIGANT chance that someone will
# try hacking your board, and they'll succeed.

# LEAVE THIS ROUTINE ALONE.
Graeme

Moderator: UBB6 How Do I?

NOTE: Any email requests for support will be ignored.

"The ships hung in the sky in much the same way that bricks don't." --Douglas Adams

#77494 02/02/2002 2:17 PM
Anonymous
Unregistered
Anonymous
Unregistered
i c, & how is this problem solved here? In OpenTopic. <img src="https://www.ubbcentral.com/boards/images/graemlins/confused.gif" alt="" />

.: in God we trust, all others we monitor :.

#77495 02/02/2002 2:33 PM
Anonymous
Unregistered
Anonymous
Unregistered
You don't wanna know what's up with OpenTopic. <img src="https://www.ubbcentral.com/boards/images/graemlins/frown.gif" alt="" />

Peter, you got mail!

[This message was edited by LK on 02 Feb 02 at 11:43 AM.]

#77496 02/02/2002 6:44 PM
Anonymous
Unregistered
Anonymous
Unregistered
Hmmm, this seems like a bug to me. Anything enclosed within CODE tags should be safe, so there should be no need to filter it.

#77497 02/02/2002 8:43 PM
Anonymous
Unregistered
Anonymous
Unregistered
I got the same feeling. If HTML is disabled, then all that stuff just should be treated as plain text.

MODS. maybe beta move the topic to "BUGS" ?

.: in God we trust, all others we monitor :.

#77498 02/03/2002 10:41 AM
Anonymous
Unregistered
Anonymous
Unregistered
I just tried it on a 6.2.0 board - it works fine as long as you use CODE tags.

Graeme

Moderator: UBB6 How Do I?

NOTE: Any email requests for support will be ignored.

"The ships hung in the sky in much the same way that bricks don't." --Douglas Adams

#77499 02/03/2002 4:06 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Dave is correct. In 6.2.0 and up it should be fine inside code tags.

Honor The Victims


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Upgraded to ver8 - now can't login
by phoenix011235 - 10/24/2024 8:50 AM
Who's Online Now
1 members (Phun), 259 guests, and 127 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)