X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-wernis_portal.php;h=9a680e8bf575f6a8c5d9a0d6215aec953e925323;hp=6f7cbeeafd37ae97dea1165532c8357f860ce437;hb=8da353fa4bb729bb3299d247803c23833a52a327;hpb=fb7120ffa230b62b54895bcf95952e1cf30f8594 diff --git a/inc/modules/guest/what-wernis_portal.php b/inc/modules/guest/what-wernis_portal.php index 6f7cbeeafd..9a680e8bf5 100644 --- a/inc/modules/guest/what-wernis_portal.php +++ b/inc/modules/guest/what-wernis_portal.php @@ -1,7 +1,7 @@ "); +// Init PDF/RDF parser class $rdf = new fase4_rdf(); -$rdf->use_dynamic_display(false); -$rdf->set_CacheDir(constant('PATH')."inc/cache/"); -$rdf->set_salt(md5(constant('SITE_KEY'))); +$rdf->_use_nl2br = FALSE; +$rdf->_finishCallback = 'compactContent'; +$rdf->use_dynamic_display(FALSE); +$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->parse_RDF('http://www.wds66.com/rss.xml'); -// Fix to avoid "headers already sent" bug. Thanks to Profi-Concept -OUTPUT_HTML($rdf->finish(true)); -// @TODO Can this be removed? $rdf->clear_cache(); -OUTPUT_HTML(""); +// Load template +loadTemplate('guest_wernis_news', FALSE, $rdf->finish(TRUE)); -// +// [EOF] ?>