Skip to content
Snippets Groups Projects
Unverified Commit 65e9dbd6 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

php working!

parent 72dfb8d3
No related branches found
No related tags found
No related merge requests found
......@@ -9,9 +9,9 @@ if ($_SERVER["REQUEST_METHOD"] == "POST")
$sCode = validatyInput($_POST["surveyCode"]);
$key = validatyInput($_POST["key"]);
// Warning: forced HTTPS
if($key == '5173' && preg_match('[-0-9]+', $sCode) === 1)
if($key == '0000' && preg_match('/[-0-9]*/', $sCode) == 1)
{
echo 'Please wait while the program is running...';
echo 'Please wait while the program is running...';
exec("./php_agent.fish $sCode", $cstdout);
_log("[mcd] working on sCode `$sCode`");
foreach($cstdout as $outLine)
......
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