vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   PHP in BBCODE (https://vborg.vbsupport.ru/showthread.php?t=62600)

Karthick 03-17-2004 03:22 PM

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

Zero Tolerance 03-17-2004 03:35 PM

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

Karthick 03-17-2004 03:38 PM

I dont understand, how is it even a slight security flaw?

Zachery 03-17-2004 03:40 PM

Quote:

Originally Posted by Karthick
I dont understand, how is it even a slight security flaw?

If you allow php to be executed anywhere, you are allowing anything to be run, which means someone could drop your database, specific tables, even get passwords or other viatal info :)

Karthick 03-17-2004 03:43 PM

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

Zero Tolerance 03-17-2004 03:53 PM

Why exactly would you want to make session vars in a post?

Im a little un-certain why such a thing would be needed

Karthick 03-17-2004 03:57 PM

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.

Karthick 03-17-2004 10:46 PM

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?

Karthick 03-19-2004 08:07 AM

bump

Zachery 03-19-2004 08:07 AM

Quote:

Originally Posted by Karthick
bump

I dont think anyone is going to code an open security risk.

You can take a service request but most of these are paid.


All times are GMT. The time now is 02:20 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01161 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete