1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

add margin to wifi qr code to have it work with dark background (i.e. dark theme)

This commit is contained in:
glaszig 2021-05-08 14:29:59 -03:00
parent 45a50edc41
commit 947ccf7021

View File

@ -42,7 +42,7 @@ $ssid = qr_encode($ssid);
$password = qr_encode($password); $password = qr_encode($password);
$data = "WIFI:S:$ssid;T:$type;P:$password;$hidden;"; $data = "WIFI:S:$ssid;T:$type;P:$password;$hidden;";
$command = "qrencode -t svg -m 0 -o - " . mb_escapeshellarg($data); $command = "qrencode -t svg -m 1 -o - " . mb_escapeshellarg($data);
$svg = shell_exec($command); $svg = shell_exec($command);
$config_mtime = filemtime(RASPI_HOSTAPD_CONFIG); $config_mtime = filemtime(RASPI_HOSTAPD_CONFIG);