mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Move qr_encode() to inc/functions
This commit is contained in:
parent
cbab3f2825
commit
3ac70a3a3c
@ -10,11 +10,6 @@ if (!isset($_SERVER['HTTP_REFERER'])) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
function qr_encode($str)
|
|
||||||
{
|
|
||||||
return preg_replace('/(?<!\\\)([\":;,])/', '\\\\\1', $str);
|
|
||||||
}
|
|
||||||
|
|
||||||
$hostapd = parse_ini_file(RASPI_HOSTAPD_CONFIG, false, INI_SCANNER_RAW);
|
$hostapd = parse_ini_file(RASPI_HOSTAPD_CONFIG, false, INI_SCANNER_RAW);
|
||||||
|
|
||||||
// assume wpa encryption and get the passphrase
|
// assume wpa encryption and get the passphrase
|
||||||
|
Loading…
Reference in New Issue
Block a user