Topic Closed

I understand from other threads that PHP can not be inserted in code editor for security reasons; this was some years ago.

Has this changed and if so, any suggestions on how to?

Thanks,

Al.

2 years ago#11968

Not quite what I want but it works is thus:

 

<iframe height="400" src="/typesetter_files/calculator.php" width="800"></iframe>

 

for example the PHP code for calculator is in the file calculator.php

Edited: 2 years ago#11969

mabu
442 Posts
7.5K Downloads
5 Themes
9 Plugins

See this posting. There was a PHP-Box-Plugin for gpeasy. Typesetter is a multiuser - Cms , and so the developers decided to disable php in the source code of pages.

If You want to change it , You must do it in Your own version ( rmPHP() ) - the developers will not !

For security reasons all php-files begin with  define('is_running',true);  !  Maybe there are some holes like iframe and ie-sandbox.

Can You publish the source of calculator.php

P.S. It is not possible to uplad php-files except with ftp.  User will not be able. So the risk is at the ftp-administrator to do that .

Of course You can always add furter php-functionality with a plugin.

Javascript : let pi = document.createProcessingInstruction('php', 'echo "Hallo world";'); (untested)

Edited: 2 years ago#11970

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

Log In

  Register