X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-wernis_portal.php;h=994bd8d72dcbd9190b0fe8cc396d45c0316c6945;hb=5e4fd904c6045b66540a4e8fd77bf4f2f04537eb;hp=dae458d7fbf0ea89d8f04d4b34dcbede7793abcd;hpb=ec7e4b413d38965f11aac54c6bfdadbb2b7d3dd1;p=mailer.git
diff --git a/inc/modules/guest/what-wernis_portal.php b/inc/modules/guest/what-wernis_portal.php
index dae458d7fb..994bd8d72d 100644
--- a/inc/modules/guest/what-wernis_portal.php
+++ b/inc/modules/guest/what-wernis_portal.php
@@ -10,9 +10,14 @@
* -------------------------------------------------------------------- *
* 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 *
+ * Copyright (c) 2003 - 2009 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -33,47 +38,52 @@
// Some security stuff...
if (!defined('__SECURITY')) {
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
- require($INC);
-}
+ die();
+} // END - if
// Special file
-require_once(PATH."inc/rdf.class.php");
+loadIncludeOnce('inc/classes/rdf.class.php');
// Add description as navigation point
-ADD_DESCR("guest", __FILE__);
+addMenuDescription('guest', __FILE__);
-OUTPUT_HTML("
");
-$rdf = new fase4_rdf;
+if ((!isExtensionActive('wernis')) && (!isAdmin())) {
+ loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('wernis'));
+ return;
+} // END - if
+
+outputHtml('
');
+$rdf = new fase4_rdf();
$rdf->use_dynamic_display(false);
-$rdf->set_CacheDir(PATH."inc/cache/");
-$rdf->set_salt(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",
- 'refid' => bigintval($_CONFIG['wernis_refid']),
- 'reflink' => "/ref.php?refid=",
+ 'textinput' => 'hidden',
+ 'sitelink' => 'http://www.wds66.com',
+ 'refid' => getConfig('wernis_refid'),
+ 'reflink' => '/ref.php?refid=',
)
);
// Use proxy?
-if ((!empty($_CONFIG['proxy_host'])) && (!empty($_CONFIG['proxy_port']))) {
+if ((getConfig('proxy_host') != '') && (getConfig('proxy_port') > 0)) {
// Set proxy data
- $rdf->set_proxy($_CONFIG['proxy_host'], $_CONFIG['proxy_port']);
+ $rdf->set_proxy(getConfig('proxy_host'), getConfig('proxy_port'));
// Use auth?
- if (!empty($_CONFIG['proxy_username'])) {
+ if (getConfig('proxy_username') != '') {
// Set auth data
- $rdf->set_proxy_auth($_CONFIG['proxy_username'], $_CONFIG['proxy_password']);
+ $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]
?>