vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   disable template eval in global.php (https://vborg.vbsupport.ru/showthread.php?t=96055)

Princeton 09-11-2005 01:38 PM

disable template eval in global.php
 
Is there a way to disable:
PHP Code:

eval('$gobutton = "' fetch_template('gobutton') . '";');
eval(
'$spacer_open = "' fetch_template('spacer_open') . '";');
eval(
'$spacer_close = "' fetch_template('spacer_close') . '";'); 

via plugins?

Marco van Herwaarden 09-11-2005 04:35 PM

Why you want to do that?

Princeton 09-11-2005 04:43 PM

I think spacer_open/spacer_close is just bloated code.
It's not necessary -- right now, I don't even use it but it's still being cached.

Also, gobutton template is not needed. I prefer adding the input (submit) button directly to the template.

Why cache a template for a submit button??? How many characters is that --- 20-30??

Marco van Herwaarden 09-11-2005 04:47 PM

Then comment those lines out.

Princeton 09-11-2005 04:48 PM

I'll refer you to the first post ..... "via plugins"

Marco van Herwaarden 09-11-2005 04:52 PM

You could try unsetting $gobutton etc, in hook 'parse_templates'.

Princeton 09-11-2005 04:58 PM

doesn't work :(

Marco van Herwaarden 09-11-2005 07:06 PM

Did you do a global before unsetting?

Anyhow i wouldn't spend 1 minute on this, i really don't see the reason for trying to cut a few bits.

Andreas 09-11-2005 07:10 PM

Make the Tamplates empty, unset the Variables in parse_templates, don't use them - there are many possibilites.
But honestly, I don't think it's worth even thinking about this.

Zachery 09-12-2005 06:30 AM

Quote:

Originally Posted by princeton
Is there a way to disable:
PHP Code:

eval('$gobutton = "' fetch_template('gobutton') . '";');
eval(
'$spacer_open = "' fetch_template('spacer_open') . '";');
eval(
'$spacer_close = "' fetch_template('spacer_close') . '";'); 

via plugins?

Thats going to break alot of thigns on your website, spacer_open and closed are used all thoughout vB.


All times are GMT. The time now is 11:37 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.01538 seconds
  • Memory Usage 1,736KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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