@@ -174,15 +174,15 @@ discard block |
||
| 174 | 174 | <key>PayloadDescription</key> |
| 175 | 175 | <string>$tagline</string> |
| 176 | 176 | <key>PayloadDisplayName</key> |
| 177 | - <string>" . CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'] . "</string> |
|
| 177 | + <string>".CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']."</string> |
|
| 178 | 178 | <key>PayloadIdentifier</key> |
| 179 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang</string> |
|
| 179 | + <string>" . self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang</string> |
|
| 180 | 180 | <key>PayloadOrganization</key> |
| 181 | - <string>" . htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['general:instname'][0]), ENT_XML1, 'UTF-8') . ( $this->attributes['internal:profile_count'][0] > 1 ? " (" . htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['profile:name'][0]), ENT_XML1, 'UTF-8') . ")" : "") . "</string> |
|
| 181 | + <string>".htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['general:instname'][0]), ENT_XML1, 'UTF-8').($this->attributes['internal:profile_count'][0] > 1 ? " (".htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['profile:name'][0]), ENT_XML1, 'UTF-8').")" : "")."</string> |
|
| 182 | 182 | <key>PayloadType</key> |
| 183 | 183 | <string>Configuration</string> |
| 184 | 184 | <key>PayloadUUID</key> |
| 185 | - <string>" . \core\common\Entity::uuid('', self::IPHONE_PAYLOAD_PREFIX . $this->massagedConsortium . $this->massagedCountry . $this->massagedInst . $this->massagedProfile) . "</string> |
|
| 185 | + <string>" . \core\common\Entity::uuid('', self::IPHONE_PAYLOAD_PREFIX.$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile)."</string> |
|
| 186 | 186 | <key>PayloadVersion</key> |
| 187 | 187 | <integer>1</integer>"; |
| 188 | 188 | \core\common\Entity::outOfThePotatoes(); |
@@ -213,15 +213,15 @@ discard block |
||
| 213 | 213 | protected function consentBlock() { |
| 214 | 214 | \core\common\Entity::intoThePotatoes(); |
| 215 | 215 | if (isset($this->attributes['support:info_file'])) { |
| 216 | - return MobileconfigSuperclass::BUFFER_CONSENT_PRE . htmlspecialchars(iconv("UTF-8", "UTF-8//TRANSLIT", $this->attributes['support:info_file'][0]), ENT_XML1, 'UTF-8') . MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
| 216 | + return MobileconfigSuperclass::BUFFER_CONSENT_PRE.htmlspecialchars(iconv("UTF-8", "UTF-8//TRANSLIT", $this->attributes['support:info_file'][0]), ENT_XML1, 'UTF-8').MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
| 217 | 217 | } |
| 218 | 218 | if ($this->attributes['internal:verify_userinput_suffix'][0] != 0) { |
| 219 | 219 | if (strlen($this->attributes['internal:realm'][0]) > 0) { |
| 220 | - $retval =MobileconfigSuperclass::BUFFER_CONSENT_PRE . sprintf(_("Important Notice: your username must end with @%s!"), $this->attributes['internal:realm'][0]) . MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
| 220 | + $retval = MobileconfigSuperclass::BUFFER_CONSENT_PRE.sprintf(_("Important Notice: your username must end with @%s!"), $this->attributes['internal:realm'][0]).MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
| 221 | 221 | \core\common\Entity::outOfThePotatoes(); |
| 222 | 222 | return $retval; |
| 223 | 223 | } |
| 224 | - $retval = MobileconfigSuperclass::BUFFER_CONSENT_PRE . _("Important Notice: your username MUST be in the form of xxx@yyy where the yyy is a common suffix identifying your Identity Provider. Please find out what to use there and enter the username in the correct format.") . MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
| 224 | + $retval = MobileconfigSuperclass::BUFFER_CONSENT_PRE._("Important Notice: your username MUST be in the form of xxx@yyy where the yyy is a common suffix identifying your Identity Provider. Please find out what to use there and enter the username in the correct format.").MobileconfigSuperclass::BUFFER_CONSENT_POST; |
|
| 225 | 225 | \core\common\Entity::outOfThePotatoes(); |
| 226 | 226 | return $retval; |
| 227 | 227 | } |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | // also escape htmlspecialchars |
| 246 | 246 | // not all names and profiles have a name, so be prepared |
| 247 | 247 | |
| 248 | - $this->loggerInstance->debug(5, "List of available attributes: " . var_export($this->attributes, TRUE)); |
|
| 248 | + $this->loggerInstance->debug(5, "List of available attributes: ".var_export($this->attributes, TRUE)); |
|
| 249 | 249 | |
| 250 | 250 | $this->instName = $this->attributes['general:instname'][0] ?? _("Unnamed Organisation"); |
| 251 | 251 | $this->profileName = $this->attributes['profile:name'][0] ?? _("Unnamed Profile"); |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | |
| 290 | 290 | textdomain($dom); |
| 291 | 291 | |
| 292 | - $fileName = $this->installerBasename . '.mobileconfig'; |
|
| 292 | + $fileName = $this->installerBasename.'.mobileconfig'; |
|
| 293 | 293 | |
| 294 | 294 | if (!$this->sign) { |
| 295 | 295 | rename("installer_profile", $fileName); |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | return $fileName; |
| 298 | 298 | } |
| 299 | 299 | // still here? Then we are signing. |
| 300 | - $signing = system($this->sign . " installer_profile '$fileName' > /dev/null"); |
|
| 300 | + $signing = system($this->sign." installer_profile '$fileName' > /dev/null"); |
|
| 301 | 301 | if ($signing === FALSE) { |
| 302 | 302 | $this->loggerInstance->debug(2, "Signing the mobileconfig installer $fileName FAILED!\n"); |
| 303 | 303 | } |
@@ -315,19 +315,19 @@ discard block |
||
| 315 | 315 | \core\common\Entity::intoThePotatoes(); |
| 316 | 316 | $ssidCount = count($this->attributes['internal:SSID']); |
| 317 | 317 | $certCount = count($this->attributes['internal:CAs'][0]); |
| 318 | - $out = "<p>" . _("For best results, please use the built-in browser (Safari) to open the configuration file.") . "</p>"; |
|
| 318 | + $out = "<p>"._("For best results, please use the built-in browser (Safari) to open the configuration file.")."</p>"; |
|
| 319 | 319 | $out .= "<p>"; |
| 320 | 320 | $out .= _("The profile will install itself after you click (or tap) the button. You will be asked for confirmation/input at several points:"); |
| 321 | 321 | $out .= "<ul>"; |
| 322 | - $out .= "<li>" . _("to install the profile") . "</li>"; |
|
| 323 | - $out .= "<li>" . ngettext("to accept the server certificate authority", "to accept the server certificate authorities", $certCount); |
|
| 322 | + $out .= "<li>"._("to install the profile")."</li>"; |
|
| 323 | + $out .= "<li>".ngettext("to accept the server certificate authority", "to accept the server certificate authorities", $certCount); |
|
| 324 | 324 | if ($certCount > 1) { |
| 325 | - $out .= " " . sprintf(_("(%d times)"), $certCount); |
|
| 325 | + $out .= " ".sprintf(_("(%d times)"), $certCount); |
|
| 326 | 326 | } |
| 327 | 327 | $out .= "</li>"; |
| 328 | - $out .= "<li>" . _("to enter the username and password you have been given by your organisation"); |
|
| 328 | + $out .= "<li>"._("to enter the username and password you have been given by your organisation"); |
|
| 329 | 329 | if ($ssidCount > 1) { |
| 330 | - $out .= " " . sprintf(_("(%d times each, because %s is installed for %d SSIDs)"), $ssidCount, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $ssidCount); |
|
| 330 | + $out .= " ".sprintf(_("(%d times each, because %s is installed for %d SSIDs)"), $ssidCount, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $ssidCount); |
|
| 331 | 331 | } |
| 332 | 332 | $out .= "</li>"; |
| 333 | 333 | $out .= "</ul>"; |
@@ -364,7 +364,7 @@ discard block |
||
| 364 | 364 | <key>ServiceProviderRoamingEnabled</key> |
| 365 | 365 | <true/> |
| 366 | 366 | <key>DisplayedOperatorName</key> |
| 367 | - <string>" . CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'] . " via Passpoint</string>"; |
|
| 367 | + <string>" . CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']." via Passpoint</string>"; |
|
| 368 | 368 | // if we don't know the realm, omit the entire DomainName key |
| 369 | 369 | if (isset($this->attributes['internal:realm'])) { |
| 370 | 370 | $retval .= "<key>DomainName</key> |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | <dict> |
| 413 | 413 | <key>AcceptEAPTypes</key> |
| 414 | 414 | <array> |
| 415 | - <integer>" . $eapType['OUTER'] . "</integer> |
|
| 415 | + <integer>" . $eapType['OUTER']."</integer> |
|
| 416 | 416 | </array> |
| 417 | 417 | <key>EAPFASTProvisionPAC</key> |
| 418 | 418 | <true /> |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | "; |
| 426 | 426 | if ($realm !== NULL) { |
| 427 | 427 | $retval .= "<key>OuterIdentity</key> |
| 428 | - <string>" . htmlspecialchars($realm, ENT_XML1, 'UTF-8') . "</string> |
|
| 428 | + <string>" . htmlspecialchars($realm, ENT_XML1, 'UTF-8')."</string> |
|
| 429 | 429 | "; |
| 430 | 430 | } |
| 431 | 431 | $retval .= "<key>PayloadCertificateAnchorUUID</key> |
@@ -449,11 +449,11 @@ discard block |
||
| 449 | 449 | $retval .= " |
| 450 | 450 | </array>"; |
| 451 | 451 | if ($eapType['INNER'] == \core\common\EAP::NE_SILVERBULLET) { |
| 452 | - $retval .= "<key>UserName</key><string>" . $this->clientCert["certObject"]->username . "</string>"; |
|
| 452 | + $retval .= "<key>UserName</key><string>".$this->clientCert["certObject"]->username."</string>"; |
|
| 453 | 453 | } |
| 454 | 454 | $retval .= " |
| 455 | 455 | <key>TTLSInnerAuthentication</key> |
| 456 | - <string>" . ($eapType['INNER'] == \core\common\EAP::NONE ? "PAP" : "MSCHAPv2") . "</string> |
|
| 456 | + <string>" . ($eapType['INNER'] == \core\common\EAP::NONE ? "PAP" : "MSCHAPv2")."</string> |
|
| 457 | 457 | </dict>"; |
| 458 | 458 | return $retval; |
| 459 | 459 | } |
@@ -472,9 +472,9 @@ discard block |
||
| 472 | 472 | // characters are still reversed, invert on use! |
| 473 | 473 | $buffer .= "<string>Manual</string> |
| 474 | 474 | <key>ProxyServer</key> |
| 475 | - <string>" . strrev($serverAndPort[1]) . "</string> |
|
| 475 | + <string>" . strrev($serverAndPort[1])."</string> |
|
| 476 | 476 | <key>ProxyServerPort</key> |
| 477 | - <integer>" . strrev($serverAndPort[0]) . "</integer> |
|
| 477 | + <integer>" . strrev($serverAndPort[0])."</integer> |
|
| 478 | 478 | <key>ProxyPACFallbackAllowed</key> |
| 479 | 479 | <false/>"; |
| 480 | 480 | } else { |
@@ -502,7 +502,7 @@ discard block |
||
| 502 | 502 | throw new Exception("SSID must be a string!"); |
| 503 | 503 | } |
| 504 | 504 | $escapedSSID = htmlspecialchars($toBeConfigured, ENT_XML1, 'UTF-8'); |
| 505 | - $payloadIdentifier = "wifi." . $this->serial; |
|
| 505 | + $payloadIdentifier = "wifi.".$this->serial; |
|
| 506 | 506 | $payloadShortName = sprintf(_("SSID %s"), $escapedSSID); |
| 507 | 507 | $payloadName = sprintf(_("%s configuration for network name %s"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $escapedSSID); |
| 508 | 508 | $encryptionTypeString = "WPA"; |
@@ -550,11 +550,11 @@ discard block |
||
| 550 | 550 | <key>PayloadDisplayName</key> |
| 551 | 551 | <string>$payloadShortName</string> |
| 552 | 552 | <key>PayloadIdentifier</key> |
| 553 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.$payloadIdentifier</string> |
|
| 553 | + <string>".self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.$payloadIdentifier</string> |
|
| 554 | 554 | <key>PayloadOrganization</key> |
| 555 | - <string>" . $this->massagedConsortium . ".1x-config.org</string> |
|
| 555 | + <string>".$this->massagedConsortium.".1x-config.org</string> |
|
| 556 | 556 | <key>PayloadType</key> |
| 557 | - <string>com.apple." . ($blocktype == MobileconfigSuperclass::NETWORK_BLOCK_TYPE_WIRED ? "firstactiveethernet" : "wifi") . ".managed</string>"; |
|
| 557 | + <string>com.apple." . ($blocktype == MobileconfigSuperclass::NETWORK_BLOCK_TYPE_WIRED ? "firstactiveethernet" : "wifi").".managed</string>"; |
|
| 558 | 558 | $retval .= $this->proxySettings(); |
| 559 | 559 | $retval .= $setupModesString; |
| 560 | 560 | if ($eapType['INNER'] == \core\common\EAP::NE_SILVERBULLET) { |
@@ -566,7 +566,7 @@ discard block |
||
| 566 | 566 | } |
| 567 | 567 | $retval .= " |
| 568 | 568 | <key>PayloadUUID</key> |
| 569 | - <string>" . \core\common\Entity::uuid() . "</string> |
|
| 569 | + <string>" . \core\common\Entity::uuid()."</string> |
|
| 570 | 570 | <key>PayloadVersion</key> |
| 571 | 571 | <integer>1</integer> |
| 572 | 572 | $wifiNetworkIdentification</dict>"; |
@@ -595,15 +595,15 @@ discard block |
||
| 595 | 595 | <key>IsHotspot</key> |
| 596 | 596 | <false/> |
| 597 | 597 | <key>PayloadDescription</key> |
| 598 | - <string>" . sprintf(_("This SSID should not be used after bootstrapping %s"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) . "</string> |
|
| 598 | + <string>" . sprintf(_("This SSID should not be used after bootstrapping %s"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])."</string> |
|
| 599 | 599 | <key>PayloadDisplayName</key> |
| 600 | - <string>" . _("Disabled WiFi network") . "</string> |
|
| 600 | + <string>" . _("Disabled WiFi network")."</string> |
|
| 601 | 601 | <key>PayloadIdentifier</key> |
| 602 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.wifi.disabled.$this->removeSerial</string> |
|
| 602 | + <string>" . self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang.wifi.disabled.$this->removeSerial</string> |
|
| 603 | 603 | <key>PayloadType</key> |
| 604 | 604 | <string>com.apple.wifi.managed</string> |
| 605 | 605 | <key>PayloadUUID</key> |
| 606 | - <string>" . \core\common\Entity::uuid() . "</string> |
|
| 606 | + <string>".\core\common\Entity::uuid()."</string> |
|
| 607 | 607 | <key>PayloadVersion</key> |
| 608 | 608 | <real>1</real>"; |
| 609 | 609 | $retval .= $this->proxySettings(); |
@@ -677,7 +677,7 @@ discard block |
||
| 677 | 677 | $mimeBlob = base64_encode($binaryBlob); |
| 678 | 678 | $mimeFormatted = chunk_split($mimeBlob, 52, "\r\n"); |
| 679 | 679 | $payloadUUID = \core\common\Entity::uuid('', $mimeBlob); |
| 680 | - $retArray = ["block" => "<dict>" . |
|
| 680 | + $retArray = ["block" => "<dict>". |
|
| 681 | 681 | // we don't include the import password. It's displayed on screen, and should be input by the user. |
| 682 | 682 | // <key>Password</key> |
| 683 | 683 | // <string>" . $this->clientCert['password'] . "</string> |
@@ -690,7 +690,7 @@ discard block |
||
| 690 | 690 | <key>PayloadDescription</key> |
| 691 | 691 | <string>MIME Base-64 encoded PKCS#12 Client Certificate</string> |
| 692 | 692 | <key>PayloadDisplayName</key> |
| 693 | - <string>" . _("eduroam user certificate") . "</string> |
|
| 693 | + <string>"._("eduroam user certificate")."</string> |
|
| 694 | 694 | <key>PayloadIdentifier</key> |
| 695 | 695 | <string>com.apple.security.pkcs12.$payloadUUID</string> |
| 696 | 696 | <key>PayloadType</key> |
@@ -700,7 +700,7 @@ discard block |
||
| 700 | 700 | <key>PayloadVersion</key> |
| 701 | 701 | <integer>1</integer> |
| 702 | 702 | </dict>", |
| 703 | - "UUID" => $payloadUUID,]; |
|
| 703 | + "UUID" => $payloadUUID, ]; |
|
| 704 | 704 | \core\common\Entity::outOfThePotatoes(); |
| 705 | 705 | return $retArray; |
| 706 | 706 | } |
@@ -718,7 +718,7 @@ discard block |
||
| 718 | 718 | } |
| 719 | 719 | $expiryTime = new \DateTime($this->clientCert['certObject']->expiry); |
| 720 | 720 | return "<key>RemovalDate</key> |
| 721 | - <date>" . $expiryTime->format("Y-m-d") . "T" . $expiryTime->format("H:i:s") . "Z</date>"; |
|
| 721 | + <date>" . $expiryTime->format("Y-m-d")."T".$expiryTime->format("H:i:s")."Z</date>"; |
|
| 722 | 722 | } |
| 723 | 723 | |
| 724 | 724 | /** |
@@ -739,21 +739,21 @@ discard block |
||
| 739 | 739 | $stream = " |
| 740 | 740 | <dict> |
| 741 | 741 | <key>PayloadCertificateFileName</key> |
| 742 | - <string>" . $ca['uuid'] . ".der</string> |
|
| 742 | + <string>" . $ca['uuid'].".der</string> |
|
| 743 | 743 | <key>PayloadContent</key> |
| 744 | 744 | <data> |
| 745 | -" . $trimmedPem . "</data> |
|
| 745 | +" . $trimmedPem."</data> |
|
| 746 | 746 | <key>PayloadDescription</key> |
| 747 | - <string>" . sprintf(_("The %s Certification Authority"), \core\common\Entity::$nomenclature_inst) . "</string> |
|
| 747 | + <string>" . sprintf(_("The %s Certification Authority"), \core\common\Entity::$nomenclature_inst)."</string> |
|
| 748 | 748 | <key>PayloadDisplayName</key> |
| 749 | - <string>" . sprintf(_("%s CA"), \core\common\Entity::$nomenclature_inst) . "</string> |
|
| 749 | + <string>" . sprintf(_("%s CA"), \core\common\Entity::$nomenclature_inst)."</string> |
|
| 750 | 750 | <key>PayloadIdentifier</key> |
| 751 | - <string>" . self::IPHONE_PAYLOAD_PREFIX . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.credential.$this->caSerial</string> |
|
| 751 | + <string>" . self::IPHONE_PAYLOAD_PREFIX.".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.credential.$this->caSerial</string> |
|
| 752 | 752 | <key>PayloadOrganization</key> |
| 753 | - <string>" . $this->massagedConsortium . ".1x-config.org</string> |
|
| 753 | + <string>".$this->massagedConsortium.".1x-config.org</string> |
|
| 754 | 754 | <key>PayloadType</key> |
| 755 | 755 | <string>com.apple.security.root</string> |
| 756 | - <key>PayloadUUID</key><string>" . $ca['uuid'] . "</string> |
|
| 756 | + <key>PayloadUUID</key><string>" . $ca['uuid']."</string> |
|
| 757 | 757 | <key>PayloadVersion</key> |
| 758 | 758 | <integer>1</integer> |
| 759 | 759 | </dict>"; |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | namespace web\lib\admin; |
| 24 | 24 | |
| 25 | -require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
| 25 | +require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * This class provides map display functionality |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | // use HTML5 geolocation |
| 87 | 87 | function locateMe() { |
| 88 | - $('#address').val(\"" . _("locating") . "\"); |
|
| 88 | + $('#address').val(\"" . _("locating")."\"); |
|
| 89 | 89 | navigator.geolocation.getCurrentPosition(locate_succes,locate_fail,{maximumAge:3600000, timeout:5000}); |
| 90 | 90 | } |
| 91 | 91 | |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | view.fit(extent, {padding: [10, 0, 10, 0]}); |
| 208 | 208 | } else { |
| 209 | 209 | view.setCenter([0,0]); |
| 210 | - locate_country('" . $cat->knownFederations[strtoupper($this->fedName)] . "'); // use the federation code to locate the country |
|
| 210 | + locate_country('" . $cat->knownFederations[strtoupper($this->fedName)]."'); // use the federation code to locate the country |
|
| 211 | 211 | map.setView(view); |
| 212 | 212 | } |
| 213 | 213 | view.setMaxZoom(20); |
@@ -229,14 +229,14 @@ discard block |
||
| 229 | 229 | function getAddressLocation() { |
| 230 | 230 | var city = $('#address').val(); |
| 231 | 231 | if(city == '') { |
| 232 | - alert(\"" . _("nothing entered in the address field") . "\"); |
|
| 232 | + alert(\"" . _("nothing entered in the address field")."\"); |
|
| 233 | 233 | return false; |
| 234 | 234 | } |
| 235 | 235 | city = city.replace(/\s*,\s*/g,',+'); |
| 236 | 236 | city = city.replace(/ +/,'+'); |
| 237 | 237 | $.get(addressService+'?format=json&addressdetails=0&q='+city, '', function(data) { |
| 238 | 238 | if (data[0] === undefined) { |
| 239 | - alert('" . _("Address not found, perhaps try another form, like putting the street number to the front.") . "'); |
|
| 239 | + alert('" . _("Address not found, perhaps try another form, like putting the street number to the front.")."'); |
|
| 240 | 240 | return; |
| 241 | 241 | } |
| 242 | 242 | showTmpPointer(data[0].lon, data[0].lat); |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | if ($this->readOnly) { |
| 288 | 288 | return "<div id='map' class='locationmap'></div><script>generateMap('map')</script>"; |
| 289 | 289 | } else { |
| 290 | - return $this->htmlPreEdit($wizard, $additional) . $this->findLocationHtml() . "<span id='location-prompt'>You can drag the pointer to the final location before you save the results.</span><div id='map' class='locationmap'></div><script>generateMap('map')</script>" . $this->htmlPostEdit(FALSE); |
|
| 290 | + return $this->htmlPreEdit($wizard, $additional).$this->findLocationHtml()."<span id='location-prompt'>You can drag the pointer to the final location before you save the results.</span><div id='map' class='locationmap'></div><script>generateMap('map')</script>".$this->htmlPostEdit(FALSE); |
|
| 291 | 291 | } |
| 292 | 292 | } |
| 293 | 293 | |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | // we don't need this parameter in this subclass |
| 313 | 313 | unset($coords); |
| 314 | 314 | \core\common\Entity::intoThePotatoes(); |
| 315 | - $retval = "<button id='location_b_" . $number . "' class='location_button'>" . _("Click to see location") . " $number</button>"; |
|
| 315 | + $retval = "<button id='location_b_".$number."' class='location_button'>"._("Click to see location")." $number</button>"; |
|
| 316 | 316 | \core\common\Entity::outOfThePotatoes(); |
| 317 | 317 | return $retval; |
| 318 | 318 | } |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | */ |
| 325 | 325 | private function findLocationHtml() { |
| 326 | 326 | \core\common\Entity::intoThePotatoes(); |
| 327 | - $retval = "<p>" . _("Address:") . " <input name='address' id='address' /><button type='button' onclick='getAddressLocation()'>" . _("Find address") . "</button> <button type='button' onclick='locateMe()'>" . _("Locate Me!") . "</button></p>"; |
|
| 327 | + $retval = "<p>"._("Address:")." <input name='address' id='address' /><button type='button' onclick='getAddressLocation()'>"._("Find address")."</button> <button type='button' onclick='locateMe()'>"._("Locate Me!")."</button></p>"; |
|
| 328 | 328 | \core\common\Entity::outOfThePotatoes(); |
| 329 | 329 | return $retval; |
| 330 | 330 | } |
@@ -285,7 +285,7 @@ |
||
| 285 | 285 | * @throws Exception |
| 286 | 286 | */ |
| 287 | 287 | public static function getCaEngine($type) { |
| 288 | - switch ($type) { |
|
| 288 | + switch ($type) { |
|
| 289 | 289 | case \devices\Devices::SUPPORT_EMBEDDED_RSA: |
| 290 | 290 | $caEngine = new CertificationAuthorityEmbeddedRSA(); |
| 291 | 291 | break; |