On page PHP

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
thomahawk
Power Poster
Power Poster
Posts: 293
Joined: Fri Jul 25, 2008 10:13 am
Location: Zug, Switzerland

On page PHP

Post by thomahawk »

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&hil ... de#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
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: On page PHP

Post by Rolf »

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.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
thomahawk
Power Poster
Power Poster
Posts: 293
Joined: Fri Jul 25, 2008 10:13 am
Location: Zug, Switzerland

Re: On page PHP

Post by thomahawk »

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
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: On page PHP

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
thomahawk
Power Poster
Power Poster
Posts: 293
Joined: Fri Jul 25, 2008 10:13 am
Location: Zug, Switzerland

Re: On page PHP

Post by thomahawk »

Thank you, Rolf, this was really helpful. I was able to solve this and it worked instantly!

Greetings
Thomas
Post Reply

Return to “CMSMS Core”