Armando Ceballos Vargas преди 1 година
родител
ревизия
0b2178717c
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. +3
    -3
      app/Commands/Redes_wifi.php

+ 3
- 3
app/Commands/Redes_wifi.php Целия файл

@@ -47,9 +47,9 @@ class Redes_wifi extends Command

public function getProfilesRegex()
{
/*$result = Process::run('netsh wlan show profile');
$salidaprofiles = $result->output();*/
$salidaprofiles = file_get_contents('profiles.txt');
$result = Process::run('netsh wlan show profile');
$salidaprofiles = $result->output();
//$salidaprofiles = file_get_contents('profiles.txt');
preg_match_all("/: \s*(.*)/", $salidaprofiles, $profiles);
return $profiles[1];
}


Зареждане…
Отказ
Запис