This commit is contained in:
parent
b469c0f380
commit
ab327a3f0c
2 changed files with 7 additions and 1 deletions
|
@ -44,10 +44,16 @@ function isProcessRunning($processname) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clean($string) {
|
||||||
|
|
||||||
|
return preg_replace('/[^A-Za-z0-9\-\/\ \.\_]/', '', $string); // Removes special chars.
|
||||||
|
}
|
||||||
|
|
||||||
function createConfigLines() {
|
function createConfigLines() {
|
||||||
$out ="";
|
$out ="";
|
||||||
foreach($_GET as $key=>$val) {
|
foreach($_GET as $key=>$val) {
|
||||||
if($key != "cmd") {
|
if($key != "cmd") {
|
||||||
|
$val = clean($val);
|
||||||
$out .= "define(\"$key\", \"$val\");"."\n";
|
$out .= "define(\"$key\", \"$val\");"."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
define("VERSION", "20170516-1 (".getGitVersion().")");
|
define("VERSION", "20170712-1 (".getGitVersion().")");
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue