X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fguest%2Fwhat-wernis_portal.php;h=b19dc24d2227ba89d41ed1fd4ad237a7c804331c;hb=b3ac0295ae2be81269cc35b15565adeb08b90d63;hp=7a5df0860e8a4f84ddc36daeb0a966a620d3a72b;hpb=8c62082711b89c0efdca02d2662aa04bf248b31b;p=mailer.git
diff --git a/inc/modules/guest/what-wernis_portal.php b/inc/modules/guest/what-wernis_portal.php
index 7a5df0860e..b19dc24d22 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;
+outputHtml('
');
+$rdf = new fase4_rdf();
$rdf->use_dynamic_display(false);
-$rdf->set_CacheDir(PATH."cache/");
-$rdf->set_salt(SITE_KEY);
+$rdf->set_CacheDir(getConfig('CACHE_PATH') . '');
+$rdf->set_salt(md5(getConfig('SITE_KEY')));
+$rdf->set_max_item(10);
$rdf->set_Options(
array(
- "textinput" => "hidden",
- "sitelink" => "http://www.wds66.com",
- "refid" => bigintval($_CONFIG['wernis_refid']),
- "reflink" => "/ref.php?refid=",
+ 'textinput' => 'hidden',
+ 'sitelink' => 'http://www.wds66.com',
+ 'refid' => getConfig('wernis_refid'),
+ 'reflink' => '/ref.php?refid=',
)
);
-$rdf->set_max_item(10);
-$rdf->parse_RDF("http://www.wds66.com/rss.xml");
-$rdf->finish();
-$rdf->clear_cache();
-OUTPUT_HTML("
");
-//
+// Use proxy?
+if ((getConfig('proxy_host') != '') && (getConfig('proxy_port') > 0)) {
+ // Set proxy data
+ $rdf->set_proxy(getConfig('proxy_host'), getConfig('proxy_port'));
+
+ // Use auth?
+ if (getConfig('proxy_username') != '') {
+ // Set auth data
+ $rdf->set_proxy_auth(getConfig('proxy_username'), getConfig('proxy_password'));
+ } // END - if
+} // END - if
+
+$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]
?>