Update bash-to-php-interpreter.php

This commit is contained in:
myvesta 2023-03-26 03:49:38 +02:00 committed by GitHub
parent 09dcc123be
commit dd1efc58a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ include ("/usr/local/vesta/func/main.php");
include ("/usr/local/vesta/func/string.php");
$counter=count($argv);
if ($counter<1) myvesta_throw_error(2, 'Function is missing');
if ($counter<2) myvesta_throw_error(2, 'Function is missing');
$func="myvesta_".$argv[1];
if (!function_exists($func)) myvesta_throw_error(2, 'Function does not exists');