| @@ 181-188 (lines=8) @@ | ||
| 178 | ||
| 179 | // Find a usable path |
|
| 180 | $b_found = false; |
|
| 181 | while (!$b_found && !empty($ar_path)) { |
|
| 182 | $s_cmd = $ar_path[0] . 'gammu-smsd-inject'; |
|
| 183 | if (is_executable($s_cmd)) { |
|
| 184 | $b_found = true; |
|
| 185 | break; |
|
| 186 | } |
|
| 187 | array_shift($ar_path); |
|
| 188 | } |
|
| 189 | if ($b_found) { |
|
| 190 | $this->Log('Got gammu smsd inject execute file: ' |
|
| 191 | . $s_cmd, 1); |
|
| @@ 83-89 (lines=7) @@ | ||
| 80 | ||
| 81 | // Find a usable path |
|
| 82 | $found = false; |
|
| 83 | while (!$found && !empty($arPath)) { |
|
| 84 | $cmd = array_shift($arPath) . 'gammu-smsd-inject'; |
|
| 85 | if (is_executable($cmd)) { |
|
| 86 | $found = true; |
|
| 87 | break; |
|
| 88 | } |
|
| 89 | } |
|
| 90 | ||
| 91 | if ($found) { |
|
| 92 | return $cmd; |
|