X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-wernis_portal.php;h=5b52e527edd8eb98a049ab11bbf5d766bed82ffc;hp=3d801a5e8c80bea7740d27766f71df45b8fac896;hb=0715fa7aa8e5e70bcf1d957fb09ae655c3896c4e;hpb=77cdaff2afb97ed32985ced906a3a95ee078c2ef diff --git a/inc/modules/guest/what-wernis_portal.php b/inc/modules/guest/what-wernis_portal.php index 3d801a5e8c..5b52e527ed 100644 --- a/inc/modules/guest/what-wernis_portal.php +++ b/inc/modules/guest/what-wernis_portal.php @@ -1,7 +1,7 @@ "); +if ((!isExtensionActive('wernis')) && (!isAdmin())) { + loadTemplate('admin_settings_saved', false, 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(md5(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", + 'textinput' => 'hidden', + 'sitelink' => 'http://www.wds66.com', 'refid' => getConfig('wernis_refid'), - 'reflink' => "/ref.php?refid=", + 'reflink' => '/ref.php?refid=', ) ); // Use proxy? -if ((getConfig('proxy_host') != "") && (getConfig('proxy_port') > 0)) { +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') != "") { + 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"); -$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] ?>