X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-wernis_portal.php;h=241ee0c22e34308f473dd4404c967d0b4bd44277;hb=d1922ab361b5e104b7c14b28c76d1c47651635ef;hp=093b1864ec5fb9c5e98483dbb758fb69b835fc3c;hpb=e8ca54fe91872ab95a6ffdc4f1268bf18889021d;p=mailer.git diff --git a/inc/modules/guest/what-wernis_portal.php b/inc/modules/guest/what-wernis_portal.php index 093b1864ec..241ee0c22e 100644 --- a/inc/modules/guest/what-wernis_portal.php +++ b/inc/modules/guest/what-wernis_portal.php @@ -10,14 +10,9 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2016 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -37,7 +32,7 @@ // Some security stuff... if (!defined('__SECURITY')) { - die(); + exit(); } // END - if // Special file @@ -47,22 +42,23 @@ loadIncludeOnce('inc/classes/rdf.class.php'); addYouAreHereLink('guest', __FILE__); if ((!isExtensionActive('wernis')) && (!isAdmin())) { - loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('wernis')); + displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=wernis%}'); return; } // END - if -outputHtml('
'); +// Init PDF/RDF parser class $rdf = new fase4_rdf(); -$rdf->_use_nl2br = false; -$rdf->use_dynamic_display(false); +$rdf->_use_nl2br = FALSE; +$rdf->_finishCallback = 'compactContent'; +$rdf->use_dynamic_display(FALSE); $rdf->set_CacheDir(getCachePath() . ''); -$rdf->set_salt(md5(getConfig('SITE_KEY'))); +$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'), + 'sitelink' => getWernisBaseUrl(), + 'refid' => getWernisRefid(), 'reflink' => '/ref.php?refid=', ) ); @@ -70,20 +66,19 @@ $rdf->set_Options( // Use proxy? 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(getWernisBaseUrl() . '/rss.xml'); -// Fix to avoid 'headers already sent' bug. Thanks to Profi-Concept -outputHtml($rdf->finish(true)); -outputHtml('
'); +// Load template +loadTemplate('guest_wernis_news', FALSE, $rdf->finish(TRUE)); // [EOF] ?>