Get Smarty

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Check reviews of PHP Web Hosting, compatible with Smarty Templates

$security

E' una variabile booleana, per default è false. Security viene utile per situazioni in cui avete affidato la modifica dei template a terzi (ad esempio via ftp) di cui non vi fidate completamente, e volete quindi ridurre il rischio di compromettere la sicurezza del sistema attraverso il linguaggio del template. Attivare security comporta l'applicazione delle seguenti regole al linguaggio del template, a parte ciò che può essere modificato con $security_settings:

  • Se $php_handling è impostato a SMARTY_PHP_ALLOW viene implicitamente modificato a SMARTY_PHP_PASSTHRU

  • Non sono ammesse funzioni PHP nelle istruzioni IF, ad esclusione di quelle specificate in $security_settings

  • I file dei template possono essere inclusi solo dalle directory elencate nell'array $secure_dir

  • I file locali possono essere letti con {fetch} solo dalle directory elencate nell'array $secure_dir

  • I tag {php}{/php} non sono consentiti

  • Non è possibile usare funzioni PHP come modificatori, ad esclusione di quelle specificate in $security_settings

Comments
No comments for this page.
Post a Comment
All comments are moderated. Support questions are ignored, use the forums instead.
Author:
Email: (not shown)
What is 17 plus 3? (Are you human?)

Sponsors [info]

Cheap Website Hosting @hostdone.com
email marketing @ActiveCampaign
broadband deals @BroadbandGenie
Best UK Web Hosting @webhost.uk.net
Reliable UK and US Web Hosting @rshosting.com
Cheap US and UK Web Hosting @infrenion.com
I.T Certification Exams @pass-guaranteed.com
Certification Practice Tests @firsttrycertify.com
Certification Practice Exam Questions @ace-it-certifications.com
Broadband Speed Test @broadbandspeed.co.uk
bulk email software @americaint.com
ASP.NET hosting @aspnethosting.co.uk