• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: On page PHP
PostPosted: Thu Aug 02, 2018 6:39 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Fri Jul 25, 2008 10:13 am
Posts: 282
Location: Zug, Switzerland
Hello CMSMS friends

I have just updated a CMSMS installation from version 1.9 to 1.11 and 1.12

One page contains a PHP code within {php} ... {/php} tags.

One single forum post mentions that {php} may not be working this way anymore since CMSMS version 1.11
viewtopic.php?f=20&t=73371&p=323481&hilit=php+code#p323481

but strangely I can not find any other mention on how to implement PHP on pages now (in 1.12) or ever in CMSMS...

Has someone a suggestion?

Thanks
Thomas


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: On page PHP
PostPosted: Thu Aug 02, 2018 8:34 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7586
Location: The Netherlands
Pages are for content, as in text and images...

Content editors should not be able to add PHP code using {php} {/php}
It is a security issue and causes a vulnerability in the system.

PHP code should be added in a UDT or plugin tag file.

_________________
Image

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return! [ Click here ]



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: On page PHP
PostPosted: Thu Aug 02, 2018 8:48 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Fri Jul 25, 2008 10:13 am
Posts: 282
Location: Zug, Switzerland
Thank you for your response.

I understand the problem. But this installation was made long ago and I have to overtake it and maintain it so that it continues working.

So if I try to put it in an UDT... what IS an UDT?

Regards
Thom


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: On page PHP
PostPosted: Thu Aug 02, 2018 9:00 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7586
Location: The Netherlands
https://docs.cmsmadesimple.org/tags/use ... ting-a-udt

_________________
Image

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return! [ Click here ]



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: On page PHP
PostPosted: Fri Aug 03, 2018 10:45 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Fri Jul 25, 2008 10:13 am
Posts: 282
Location: Zug, Switzerland
Thank you, Rolf, this was really helpful. I was able to solve this and it worked instantly!

Greetings
Thomas


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


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 post attachments in this forum

Search for:
Jump to:  
A2 Hosting