Code comment

This commit is contained in:
Laurent Destailleur 2023-02-11 14:09:00 +01:00
parent 695ca08684
commit 968720bfdc

View File

@ -673,10 +673,12 @@ function showWebsiteTemplates(Website $website)
/**
* checkPHPCode
* Check a new string containing only php code (including <php tag)
* - Block if bad code in the new string.
* - Block also if user has no permission to change PHP code.
*
* @param string $phpfullcodestringold PHP old string
* @param string $phpfullcodestring PHP new string
* @param string $phpfullcodestringold PHP old string. For exemple "<?php echo 'a' ?><php echo 'b' ?>"
* @param string $phpfullcodestring PHP new string. For exemple "<?php echo 'a' ?><php echo 'c' ?>"
* @return int Error or not
*/
function checkPHPCode($phpfullcodestringold, $phpfullcodestring)