X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-wernis_portal.php;h=567fe1a2b6b29bc292308a68868f7b5451531d52;hb=07612d2debcc78a93678db0deed050d82df432f1;hp=658530e9f2bf9ec2a843fb2de44b1fa3ee80eb29;hpb=ea295a391646261bc643264570404f6862abcbd4;p=mailer.git diff --git a/inc/modules/guest/what-wernis_portal.php b/inc/modules/guest/what-wernis_portal.php index 658530e9f2..567fe1a2b6 100644 --- a/inc/modules/guest/what-wernis_portal.php +++ b/inc/modules/guest/what-wernis_portal.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : * * -------------------------------------------------------------------- * - * * + * $Revision:: $ * + * $Date:: $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -33,52 +38,51 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); -} elseif ((!EXT_IS_ACTIVE("wernis")) && (!IS_ADMIN())) { - addFatalMessage(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "wernis"); +} elseif ((!EXT_IS_ACTIVE('wernis')) && (!IS_ADMIN())) { + addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('wernis')); return; } // Special file -LOAD_INC_ONCE("inc/rdf.class.php"); +loadIncludeOnce('inc/rdf.class.php'); // Add description as navigation point -ADD_DESCR("guest", __FILE__); +ADD_DESCR('guest', __FILE__); -OUTPUT_HTML("
"); +OUTPUT_HTML('
'); $rdf = new fase4_rdf(); $rdf->use_dynamic_display(false); -$rdf->set_CacheDir(constant('PATH')."inc/cache/"); -$rdf->set_salt(md5(SITE_KEY)); +$rdf->set_CacheDir(constant('PATH') . 'inc/cache/'); +$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->parse_RDF('http://www.wds66.com/rss.xml'); -// Fix to avoid "headers already sent" bug. Thanks to Profi-Concept +// 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("
"); +OUTPUT_HTML('
'); // ?>