]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-wernis_portal.php
opendir() should be rewritten to GET_DIR_AS_ARRAY()
[mailer.git] / inc / modules / guest / what-wernis_portal.php
index fa37e336630a31661b7677892b9da2b82ac0957f..6f7cbeeafd37ae97dea1165532c8357f860ce437 100644 (file)
  * -------------------------------------------------------------------- *
  * 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                  *
@@ -36,21 +41,21 @@ if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 } elseif ((!EXT_IS_ACTIVE("wernis")) && (!IS_ADMIN())) {
-       ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "wernis");
+       addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "wernis");
        return;
 }
 
 // Special file
-require_once(PATH."inc/rdf.class.php");
+LOAD_INC_ONCE("inc/rdf.class.php");
 
 // Add description as navigation point
 ADD_DESCR("guest", __FILE__);
 
-OUTPUT_HTML("<DIV style=\"padding-left: 10px; padding-right: 10px\">");
-$rdf = new fase4_rdf;
+OUTPUT_HTML("<div style=\"padding-left: 10px; padding-right: 10px\">");
+$rdf = new fase4_rdf();
 $rdf->use_dynamic_display(false);
-$rdf->set_CacheDir(PATH."inc/cache/");
-$rdf->set_salt(SITE_KEY);
+$rdf->set_CacheDir(constant('PATH')."inc/cache/");
+$rdf->set_salt(md5(constant('SITE_KEY')));
 $rdf->set_max_item(10);
 $rdf->set_Options(
        array(
@@ -74,9 +79,11 @@ if ((getConfig('proxy_host') != "") && (getConfig('proxy_port') > 0)) {
 } // END - if
 
 $rdf->parse_RDF("http://www.wds66.com/rss.xml");
-$rdf->finish();
-// DISABLED: $rdf->clear_cache();
-OUTPUT_HTML("</DIV>");
+
+// 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("</div>");
 
 //
 ?>