Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 10 matches
Smarty Forum Index
Author Message
  Topic: How check if Smarty variable exists in via Java Script
Game Over!

Replies: 3
Views: 7519

PostForum: General   Posted: Thu Dec 19, 2019 12:21 pm   Subject: How check if Smarty variable exists in via Java Script
It will be revealed that {$outsourceJson} exists in a Smarty template - and when Smarty compiles that template, the code {$outsourceJson} gets replaced with the intended value.

The finalized HTML t ...
  Topic: How check if Smarty variable exists in via Java Script
Game Over!

Replies: 3
Views: 7519

PostForum: General   Posted: Wed Dec 18, 2019 9:07 am   Subject: How check if Smarty variable exists in via Java Script
Hello guys.

I have an array in my PHP and I pass this variable to Smarty TPL file.


$smarty->assign('outsourceJson', json_encode($outsourceTemp , JSON_UNESCAPED_UNICODE));
...
  Topic: Standard if statement
Game Over!

Replies: 3
Views: 4646

PostForum: General   Posted: Wed Sep 04, 2019 11:38 am   Subject: Standard if statement
Hello guys.

I just wanna know is there any difference between these two? If there is , so which one is better ? which one has more performance ?


<div class="container">
...
  Topic: CSRF Token (XSRF) for preventing CSRF attacks
Game Over!

Replies: 5
Views: 6588

PostForum: General   Posted: Sun May 26, 2019 12:20 pm   Subject: CSRF Token (XSRF) for preventing CSRF attacks
I would pass the token explicitly, if I were you. And certainly not access the session storage directly from a template.

May I ask you why?
why not access session directly from template? please d ...
  Topic: CSRF Token (XSRF) for preventing CSRF attacks
Game Over!

Replies: 5
Views: 6588

PostForum: General   Posted: Sun May 26, 2019 9:19 am   Subject: Implementing CSRF token in Smarty
I used these codes :

for PHP >= 7
// Generating CSRF Token in PHP 7
session_start();
if (empty($_SESSION['token'])) {
$_SESSION['token'] = bi ...
  Topic: How find where will data pass?
Game Over!

Replies: 11
Views: 8570

PostForum: General   Posted: Wed May 22, 2019 1:02 pm   Subject: How find where will data pass?
AnrDaemon"]Only 1.5GB? That's nothing.
Not to mention, you don't need full database, only enough rows to run the code.

There is 195 table Confused Sad
I should check them if there is any relationship ...
  Topic: CSRF Token (XSRF) for preventing CSRF attacks
Game Over!

Replies: 5
Views: 6588

PostForum: General   Posted: Wed May 22, 2019 10:56 am   Subject: CSRF Token (XSRF) for preventing CSRF attacks
Hello dear friends.

I wanna to implement CSRF token to prevent CSRF (XSRF) attack.
Is there any specific way or I should do it manually?

I didn't find any global variables for this purpose.
I ...
  Topic: How find where will data pass?
Game Over!

Replies: 11
Views: 8570

PostForum: General   Posted: Sun May 19, 2019 10:50 am   Subject: How find where will data pass?
Run a copy of the website locally, and use debugger already.

Thanks for replying my message.
I can't run it locally .... just it's DB size is about 1.5GB and have many compiled and tpl files.that' ...
  Topic: How find where will data pass?
Game Over!

Replies: 11
Views: 8570

PostForum: General   Posted: Tue May 14, 2019 6:40 am   Subject: How find where will data pass?
I am not aware of how one can get Smarty to do its thing using means other than its published API. That is, fetch() and display() are the only means I know of.

Of course, one can create a Class set ...
  Topic: How find where will data pass?
Game Over!

Replies: 11
Views: 8570

PostForum: General   Posted: Sat May 11, 2019 2:04 pm   Subject: How find where will data pass?
Hello guys.

I asked my question in IRC and sb told me ask it on the forum.

I have a website that coded by 2-3 person and I havn't any connection with that people. I even just started learning S ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP