Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (SteveS, Bjab), 37 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 469
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#77490 - 01/31/02 04:50 PM Code posting.
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 :.
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#77491 - 01/31/02 04:56 PM Re: Code posting.
Anonymous
Unregistered

If you use the UBBcode code option you should be able to post your PHP code.


Example:

[CODE]$readfile = join("", file
("../config.inc.php"));
print $readfile;
?> [/CODE]
Top
#77492 - 02/01/02 03:36 PM Re: Code posting.
Anonymous
Unregistered

Nop, unfortunatelyy nop...
I got ubbcode enabled :|
Check it.

.: in God we trust, all others we monitor :.
Top
#77493 - 02/01/02 08:17 PM Re: Code posting.
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.[/QUOTE]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
Top
#77494 - 02/02/02 01:17 PM Re: Code posting.
Anonymous
Unregistered

i c, & how is this problem solved here? In OpenTopic.

.: in God we trust, all others we monitor :.
Top
#77495 - 02/02/02 01:33 PM Re: Code posting.
Anonymous
Unregistered

You don't wanna know what's up with OpenTopic.

Peter, you got mail!

[This message was edited by LK on 02 Feb 02 at 11:43 AM.]
Top
#77496 - 02/02/02 05:44 PM Re: Code posting.
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.
Top
#77497 - 02/02/02 07:43 PM Re: Code posting.
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 :.
Top
#77498 - 02/03/02 09:41 AM Re: Code posting.
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
Top
#77499 - 02/03/02 03:06 PM Re: Code posting.
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Dave is correct. In 6.2.0 and up it should be fine inside code tags.

Honor The Victims
Top



Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image