Skip to content

Commit

Permalink
nurnoch eine zusätzliche Einstellun:Redirects auf der Piwik-Domain
Browse files Browse the repository at this point in the history
Einstellung für SSL-Connection war überflüssig
  • Loading branch information
math authored and math committed Aug 7, 2014
1 parent 997b043 commit 7c58005
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
4 changes: 1 addition & 3 deletions bepiwikcharts.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,7 @@ function readfile($url) {
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout = 5);
if ($GLOBALS["TL_CONFIG"]['piwikchartsSSHconnection'] == true ) {
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
}
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
if ($GLOBALS["TL_CONFIG"]['piwikchartsRedirect'] == true ) {
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
}
Expand Down
8 changes: 1 addition & 7 deletions dca/tl_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/**
* Add to palette
*/
$GLOBALS['TL_DCA']['tl_settings']['palettes']['default'] .= ';{piwikcharts_legend:hide},piwikchartsURL,piwikchartsSiteID,piwikchartsAuthCode,piwikchartsUsername,piwikchartsPassword,piwikchartsWelcomePageAdmin,piwikchartsWelcomePage,piwikchartsWelcomePageUpdate,piwikchartsWelcomePageOptout,piwikchartsSSHconnection,piwikchartsRedirect;';
$GLOBALS['TL_DCA']['tl_settings']['palettes']['default'] .= ';{piwikcharts_legend:hide},piwikchartsURL,piwikchartsSiteID,piwikchartsAuthCode,piwikchartsUsername,piwikchartsPassword,piwikchartsWelcomePageAdmin,piwikchartsWelcomePage,piwikchartsWelcomePageUpdate,piwikchartsWelcomePageOptout,piwikchartsRedirect;';

$GLOBALS['TL_DCA']['tl_settings']['fields']['piwikchartsURL'] = array
(
Expand Down Expand Up @@ -99,12 +99,6 @@
'inputType' => 'checkbox',
);

$GLOBALS['TL_DCA']['tl_settings']['fields']['piwikchartsSSHconnection'] = array
(
'label' => &$GLOBALS['TL_LANG']['piwikchartsURL']['piwikchartsSSHconnection'],
'inputType' => 'checkbox',
);


$GLOBALS['TL_DCA']['tl_settings']['fields']['piwikchartsRedirect'] = array
(
Expand Down
1 change: 0 additions & 1 deletion languages/de/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
$GLOBALS['TL_LANG']['piwikchartsURL']['piwikchartsWelcomePage'] = array("BE-Startseite: Statistiken im Backend anzeigen (für alle User)","Für alle User (inkl. Admins): Zeigt eine Auswahl von Statistiken auf der ersten Seite nach dem Login an.");
$GLOBALS['TL_LANG']['piwikchartsURL']['piwikchartsWelcomePageUpdate'] = array("BE-Startseite: Über Piwik-Update informieren (für Nicht-Admins)","Zeigt für Nicht-Admins eine Information an, wenn ein Update von Piwik bereit steht. Admins werden immer informiert.");
$GLOBALS['TL_LANG']['piwikchartsURL']['piwikchartsWelcomePageOptout'] = array("Optout-Link (für Nicht-Admins)","Zeigt für Nicht-Admins neben der Überschrift ein Icon an, über dessen Link die Erfassung von Piwik deaktiviert werden kann.");
$GLOBALS['TL_LANG']['piwikchartsURL']['piwikchartsSSHconnection'] = array("SSL-Connection","https-Verbindung mit selbstsignierten Zertifikaten. Setzt curl_setopt(\$ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt(\$ch, CURLOPT_FOLLOWLOCATION, true); bei der Abfrage des Piwik-Servers. Achtungs: Falls kein SSL-Verbindung vorhanden ist, dann kommt eine PHP-Warnung!");
$GLOBALS['TL_LANG']['piwikchartsURL']['piwikchartsRedirect'] = array("Redirects auf der Piwik-Domain", "wenn man z.B. von nicht-www auf www umschreibt etc.");


Expand Down

0 comments on commit 7c58005

Please sign in to comment.