Added ability to Enable / Disable QR LDAP
This commit is contained in:
parent
b26dc9d377
commit
7578a89494
|
@ -109,7 +109,7 @@
|
||||||
$xml .= "<Voicemail>*97</Voicemail>";
|
$xml .= "<Voicemail>*97</Voicemail>";
|
||||||
$xml .= "</Account>";
|
$xml .= "</Account>";
|
||||||
$xml .= "</AccountConfig>";
|
$xml .= "</AccountConfig>";
|
||||||
|
if ($_SESSION["ldap"]["qr_enable"]["numeric"] > 0){
|
||||||
$ldapxml = "<?xml version='1.0' encoding='utf-8'?>";
|
$ldapxml = "<?xml version='1.0' encoding='utf-8'?>";
|
||||||
$ldapxml .= "<LdapConfig version='1'>";
|
$ldapxml .= "<LdapConfig version='1'>";
|
||||||
$ldapxml .= "<Server>".$_SESSION["ldap"]["qr_server"]["text"]."</Server>";
|
$ldapxml .= "<Server>".$_SESSION["ldap"]["qr_server"]["text"]."</Server>";
|
||||||
|
@ -124,7 +124,7 @@
|
||||||
$ldapxml .= "<NumPro>".$_SESSION["ldap"]["qr_num_attribute"]["text"]."</NumPro>";
|
$ldapxml .= "<NumPro>".$_SESSION["ldap"]["qr_num_attribute"]["text"]."</NumPro>";
|
||||||
$ldapxml .= "<DisplayName>".$_SESSION["ldap"]["qr_display_name"]["text"]."</DisplayName>";
|
$ldapxml .= "<DisplayName>".$_SESSION["ldap"]["qr_display_name"]["text"]."</DisplayName>";
|
||||||
$ldapxml .= "</LdapConfig>";
|
$ldapxml .= "</LdapConfig>";
|
||||||
|
}
|
||||||
|
|
||||||
// Use Default settings to set these
|
// Use Default settings to set these
|
||||||
}
|
}
|
||||||
|
@ -205,8 +205,10 @@
|
||||||
if (is_uuid($extension_uuid)) {
|
if (is_uuid($extension_uuid)) {
|
||||||
echo "<img src=\"data:image/jpeg;base64,".base64_encode($image)."\" style='margin-top: 30px; padding: 5px; background: white; max-width: 100%;'>\n";
|
echo "<img src=\"data:image/jpeg;base64,".base64_encode($image)."\" style='margin-top: 30px; padding: 5px; background: white; max-width: 100%;'>\n";
|
||||||
echo "<p>Extension QR Code</p>\n";
|
echo "<p>Extension QR Code</p>\n";
|
||||||
|
if ($_SESSION["ldap"]["qr_enable"]["numeric"] > 0){
|
||||||
echo "<img src=\"data:image/jpeg;base64,".base64_encode($ldapimage)."\" style='margin-top: 30px; padding: 5px; background: white; max-width: 100%;'>\n";
|
echo "<img src=\"data:image/jpeg;base64,".base64_encode($ldapimage)."\" style='margin-top: 30px; padding: 5px; background: white; max-width: 100%;'>\n";
|
||||||
echo "<p>LDAP QR Code</p>\n";
|
echo "<p>LDAP QR Code</p>\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
|
|
Loading…
Reference in New Issue