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 merge requests found
......@@ -111,6 +111,8 @@ $aFiles2Merge=array_merge(
[
"$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/validateparam.class.php",
// "$dirExternal/appmonitor/public_html/client/classes/validateparam.settings.php",
],
glob("$dirExternal/appmonitor/public_html/client/plugins/checks/*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){
$sSource=file_get_contents($sMyFile);
$sSource=preg_replace(
[
"/include 'validateparam.settings.php';/",
"/(require[\ \_].*;)/",
"/(\<\?php)/"
],
[
$sValidationRules,
"// REMOVED-BY-MERGER: $1",
"",
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment