Skip to content
Snippets Groups Projects
Commit 6960e65b authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

installer: handle validation

parent 9dda3487
No related branches found
No related tags found
No related merge requests found
...@@ -111,6 +111,8 @@ $aFiles2Merge=array_merge( ...@@ -111,6 +111,8 @@ $aFiles2Merge=array_merge(
[ [
"$dirExternal/appmonitor/public_html/client/classes/appmonitor-checks.class.php", "$dirExternal/appmonitor/public_html/client/classes/appmonitor-checks.class.php",
"$dirExternal/appmonitor/public_html/client/classes/appmonitor-client.class.php", "$dirExternal/appmonitor/public_html/client/classes/appmonitor-client.class.php",
"$dirExternal/appmonitor/public_html/client/classes/validateparam.class.php",
// "$dirExternal/appmonitor/public_html/client/classes/validateparam.settings.php",
], ],
glob("$dirExternal/appmonitor/public_html/client/plugins/checks/*php") glob("$dirExternal/appmonitor/public_html/client/plugins/checks/*php")
); );
...@@ -128,14 +130,19 @@ $out="<?php ...@@ -128,14 +130,19 @@ $out="<?php
*/ */
"; ";
$sValidationRules=file_get_contents("$dirExternal/appmonitor/public_html/client/classes/validateparam.settings.php");
// echo "$sValidationRules"; die();
foreach($aFiles2Merge as $sMyFile){ foreach($aFiles2Merge as $sMyFile){
$sSource=file_get_contents($sMyFile); $sSource=file_get_contents($sMyFile);
$sSource=preg_replace( $sSource=preg_replace(
[ [
"/include 'validateparam.settings.php';/",
"/(require[\ \_].*;)/", "/(require[\ \_].*;)/",
"/(\<\?php)/" "/(\<\?php)/"
], ],
[ [
$sValidationRules,
"// REMOVED-BY-MERGER: $1", "// REMOVED-BY-MERGER: $1",
"", "",
], ],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment