2
This is the solution to my question:
You can insert a php script into Mastop Publish page through "Manage HTML files" link in the Admin area. Just send a PHP script like a normal HTML page.
If you cant do that and receive a error like "MIME type not allowed: application/{some_crap}", follow this steps:
1 - In the module preferences, check if the "php" is selected in the "Allowed extensions in the content file manager." option.
2 - If you still cant send php files to content manager, even with "php" option selected in the module preferences, its because your XOOPS version is > 2.0.16.
After XOOPS 2.0.16 the "Xoops Uploader" have now a $deniedMimeTypes var (with array("application/x-httpd-php") as default value) and you cant send PHP files to Mastop Publish because of this.
You can fix this opening the modules/mastop_publish/admin/paginas.php file and looking for a line like this:
$uploader->setPrefix("page_");
After this line, you create a new line with this:
$uploader->deniedMimeTypes = null;
Now you can send PHP files to Mastop Publish...
This problem will be corrected in the next version of Mastop Publish.
Thanks a lot to Fernando Santos for the explanation provided by email.
flymirco