]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-wernis_portal.php
Updated copyright notice as there are changes in this year
[mailer.git] / inc / modules / guest / what-wernis_portal.php
index d2b5695204d8e79868e28ad252aafd0cd4b4a594..b886468a0ec5fbc53ebd2493cfec4bae55cf0427 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
  * Mailer v0.2.1-FINAL                                Start: 10/19/2003 *
- * ================                             Last change: 10/19/2003 *
+ * ===================                          Last change: 10/19/2003 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-                                            *
  * $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 - 2009 by Roland Haeder                           *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2013 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 *
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       die();
+       exit();
 } // END - if
 
 // Special file
 loadIncludeOnce('inc/classes/rdf.class.php');
 
 // Add description as navigation point
-addMenuDescription('guest', __FILE__);
+addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('wernis')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('wernis'));
+       displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=wernis%}');
        return;
 } // END - if
 
-outputHtml('<div style="padding-left: 10px; padding-right: 10px">');
+// Init PDF/RDF parser class
 $rdf = new fase4_rdf();
-$rdf->use_dynamic_display(false);
-$rdf->set_CacheDir(getConfig('CACHE_PATH') . '');
-$rdf->set_salt(md5(getConfig('SITE_KEY')));
+$rdf->_use_nl2br = FALSE;
+$rdf->_finishCallback = 'compactContent';
+$rdf->use_dynamic_display(FALSE);
+$rdf->set_CacheDir(getCachePath() . '');
+$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'),
+               'refid'     => getWernisRefid(),
                'reflink'   => '/ref.php?refid=',
        )
 );
 
 // Use proxy?
-if ((getConfig('proxy_host') != '') && (getConfig('proxy_port') > 0)) {
+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');
 
-// Fix to avoid 'headers already sent' bug. Thanks to Profi-Concept
-outputHtml($rdf->finish(true));
-outputHtml('</div>');
+// Load template
+loadTemplate('guest_wernis_news', FALSE, $rdf->finish(TRUE));
 
 // [EOF]
 ?>