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

$smarty.server.REQUEST_URI eq - oraz podstrony

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish
View previous topic :: View next topic  
Author Message
insanepl
Smarty n00b


Joined: 02 Aug 2012
Posts: 2

PostPosted: Thu Aug 02, 2012 8:15 am    Post subject: $smarty.server.REQUEST_URI eq - oraz podstrony Reply with quote

Witam, potrzebuje pomocy. Napisałem pewien kod pod moją stronę (e-commerce) która zezwala na smarty. Stworzyłem kategorię na hasło przy pomocy smarty if na odpowiednia stronę dla przykładu:

http://webpage.com/passwordprot


kod wygląda tak

{if $smarty.server.REQUEST_URI eq "/passwordprot"}
skrypt php i zawartosc
{/if}

Wszystko jest ok, ale jednak, co jeżeli ktoś wejdzie przez przeglądarkę lub link na jakąś podstronę tej strony np:

http://webpage.com/passwordprot/1/235/details

wteyd smarty na hasło nie zadziała i ktoś wejdzie do środka bez problemu

Próbowałem postawić na końcu "*" ale nie działa wtedy w ogóle
Jak zmienić mój kod aby działał na głównej stronie oraz na każdej podstronie /passwordprot/ ?

Dzięki
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


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