Development #2

Merged
kevinowino869 merged 25 commits from Development into master 2025-04-14 11:00:05 +02:00
Showing only changes of commit 5072ff8ba2 - Show all commits

View File

@ -146,7 +146,8 @@ switch ($action) {
$r = ORM::for_table('tbl_routers')->find_many();
$ui->assign('r', $r);
if (function_exists("shell_exec")) {
$php = trim(shell_exec('which php'));
$which = stripos(php_uname('s'), "Win") === 0 ? 'where' : 'which';
$php = trim(shell_exec("$which php"));
if (empty($php)) {
$php = 'php';
}