X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-wernis_portal.php;h=dd8fe7e88f64e7c7326309518a7eb726a215b108;hb=2379934be6a196a54f4155bb8e24c49b20736969;hp=eb6491c642e0468b9dd653566a27c8ae28c20e57;hpb=3daede4c904e23905c3e48dd6749019deca0a0e0;p=mailer.git
diff --git a/inc/modules/guest/what-wernis_portal.php b/inc/modules/guest/what-wernis_portal.php
index eb6491c642..dd8fe7e88f 100644
--- a/inc/modules/guest/what-wernis_portal.php
+++ b/inc/modules/guest/what-wernis_portal.php
@@ -1,7 +1,7 @@
");
-$rdf = new fase4_rdf;
+if ((!isExtensionActive('wernis')) && (!isAdmin())) {
+ displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=wernis%}');
+ return;
+} // END - if
+
+outputHtml('
');
+$rdf = new fase4_rdf();
+$rdf->_use_nl2br = false;
$rdf->use_dynamic_display(false);
-$rdf->set_CacheDir(PATH."inc/cache/");
-$rdf->set_salt(SITE_KEY);
+$rdf->set_CacheDir(getCachePath() . '');
+$rdf->set_salt(md5(getSiteKey()));
$rdf->set_max_item(10);
$rdf->set_Options(
array(
- 'textinput' => "hidden",
- 'sitelink' => "http://www.wds66.com",
- 'refid' => getConfig('wernis_refid'),
- 'reflink' => "/ref.php?refid=",
+ 'textinput' => 'hidden',
+ 'sitelink' => 'http://www.wds66.com',
+ 'refid' => getWernisRefid(),
+ 'reflink' => '/ref.php?refid=',
)
);
// Use proxy?
-if ((getConfig('proxy_host') != "") && (getConfig('proxy_port') > 0)) {
+if (isProxyUsed()) {
// Set proxy data
- $rdf->set_proxy(getConfig('proxy_host'), getConfig('proxy_port'));
+ $rdf->set_proxy(getProxyHost(), getProxyPort());
// Use auth?
- if (getConfig('proxy_username') != "") {
+ if (getProxyUsername() != '') {
// Set auth data
- $rdf->set_proxy_auth(getConfig('proxy_username'), getConfig('proxy_password'));
+ $rdf->set_proxy_auth(getProxyUsername(), getProxyPassword());
} // END - if
} // END - if
-$rdf->parse_RDF("http://www.wds66.com/rss.xml");
-$rdf->finish();
-// DISABLED: $rdf->clear_cache();
-OUTPUT_HTML("
");
+$rdf->parse_RDF('http://www.wds66.com/rss.xml');
+
+// Fix to avoid 'headers already sent' bug. Thanks to Profi-Concept
+outputHtml($rdf->finish(true));
+outputHtml('');
-//
+// [EOF]
?>