X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fguest%2Fwhat-wernis_portal.php;h=b886468a0ec5fbc53ebd2493cfec4bae55cf0427;hb=cd7d344ea7007cfa20413acd3e03e50f0ab86d86;hp=7cd8ea8ab4e1d821247f4689bc35574ecdeeea1e;hpb=75ad748a68473ace540251427a74fb781b1145e9;p=mailer.git diff --git a/inc/modules/guest/what-wernis_portal.php b/inc/modules/guest/what-wernis_portal.php index 7cd8ea8ab4..b886468a0e 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; -$rdf->use_dynamic_display(false); -$rdf->set_CacheDir(PATH."cache/"); -$rdf->set_salt(SITE_KEY); +// Init PDF/RDF parser class +$rdf = new fase4_rdf(); +$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" => "10437", - "reflink" => "/ref.php?refid=", + 'textinput' => 'hidden', + 'sitelink' => 'http://www.wds66.com', + 'refid' => getWernisRefid(), + '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 (isProxyUsed()) { + // Set proxy data + $rdf->set_proxy(getProxyHost(), getProxyPort()); + + // Use auth? + if (getProxyUsername() != '') { + // Set auth data + $rdf->set_proxy_auth(getProxyUsername(), getProxyPassword()); + } // END - if +} // END - if + +$rdf->parse_RDF('http://www.wds66.com/rss.xml'); + +// Load template +loadTemplate('guest_wernis_news', FALSE, $rdf->finish(TRUE)); + +// [EOF] ?>