Add QR code type "Wifi" + handle every request in index.php (#27)

QR codes types can now be chosen between the default text mode and the Wifi mode.

The WiFi form is on a dedicated page, and that has been implemented by managing every HTTP request from index.php

For more information about the format used for Wifi QR codes check https://github.com/zxing/zxing/wiki/Barcode-Contents#wi-fi-network-config-android-ios-11

Co-authored-by: Miraty <miraty+git@antopie.org>
Reviewed-on: #27 (https://code.antopie.org/miraty/libreqr/issues/27)
Reviewed-by: Miraty <miraty@noreply.code.antopie.org>
Co-authored-by: Denise <denisebitca@42l.fr>
Co-committed-by: Denise <denisebitca@42l.fr>

e4491752f2
This commit is contained in:
Bakhai Support 2025-09-07 17:17:32 +05:30
commit 1df83b89a1
8 changed files with 362 additions and 156 deletions

View file

@ -3,6 +3,12 @@ $loc = array(
'subtitle' => "subtitle",
'description' => "description",
'tab_text' => "tab_text",
'tab_wifi' => "tab_wifi",
'tab_wifi_title' => "tab_wifi_title",
'label_wifi_ssid' => "label_wifi_ssid",
'label_wifi_password' => "label_wifi_password",
'label_content' => "label_content",
'label_redundancy' => "label_redundancy",
'label_margin' => "label_margin",
@ -11,9 +17,10 @@ $loc = array(
'label_fgColor' => "label_fgColor",
'placeholder' => "placeholder",
'placeholder_wifi_ssid' => "placeholder_wifi_ssid",
'placeholder_wifi_password' => "placeholder_wifi_password",
'value_default' => "value_default",
'help_wifi_password' => "help_wifi_password",
'help_content' => "help_content",
'help_redundancy' => "help_redundancy",
'help_margin' => "help_margin",
@ -21,14 +28,19 @@ $loc = array(
'button_create' => "button_create",
'button_download' => "button_download",
'button_edit' => "button_edit",
'title_showOnlyQR' => "title_showOnlyQR",
'alt_QR_before' => "alt_QR_before",
'alt_QR_after' => "alt_QR_after",
'wifi_raw_content_before' => "wifi_raw_content_before",
'wifi_raw_content_after' => "wifi_raw_content_after",
'metaText_qr' => "metaText_qr",
'metaText_legal' => "metaText_legal",
'error_generation' => "error_generation",
);
'error_404' => "error_404",
);