The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP in BBCODE
Hi,
I tried to add php to bbcode with no luck. E.g I have [test] bbcode and in the bbcode replacement I want a php script to run. I want to use sessions to store information but just for example, lets say I need to include a file: [include]test.php[/include] Is it possible to actually run php code and make it execute: <?php include("test.php"); ?> Thanks, Karthick |
#2
|
||||
|
||||
Possible yes but it would be a HUGE security flaw id say in your forums and i wouldn't advise it at all
- Zero Tolerance |
#3
|
|||
|
|||
I dont understand, how is it even a slight security flaw?
|
#4
|
||||
|
||||
Quote:
|
#5
|
|||
|
|||
No, I dont want others to be able to run PHP code. I want to run my own php code in bbcode. For example, someone types [store]this[/store] I want to be able to type php code in the bbcode replacement variable so that I can use php to store "this" as a session variable.
I hope I am making sense :S |
#6
|
||||
|
||||
Why exactly would you want to make session vars in a post?
Im a little un-certain why such a thing would be needed |
#7
|
|||
|
|||
5 AM here, so ill try and make this quick.
http://64.91.226.5/showthread.php?t=452&page=2 Please see the chess boards. The BB Code just currently tags a php file through Iframe, <iframe src=blah.php?chess moves etc. Now Apache GET limit is 8kb max, and to change that, I would have to recompile apache, which is not advisable. I want to allow up to 200kb. So I need to get PHP to store a session variable with that name, or do ANYTHING with php to store the information somewhere, instead of tagging it onto iframe. |
#8
|
|||
|
|||
Can someone give me a hint on how to do this?
Alternatively, How can I make a template into bbcode? E.G how are all the standard bbcodes as templates? How does it know that template is bbcode? |
#9
|
|||
|
|||
bump
|
#10
|
||||
|
||||
Quote:
You can take a service request but most of these are paid. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|