]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-wernis_portal.php
A lot more wrapper functions added, templates renamed
[mailer.git] / inc / modules / guest / what-wernis_portal.php
index 6a959b4be1d690b421e17886f355c01ccf6e4400..27166d8584534232781c71087dcd36b756320876 100644 (file)
  * $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                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -45,7 +44,7 @@ if (!defined('__SECURITY')) {
 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'));
@@ -56,27 +55,27 @@ outputHtml('<div style="padding-left: 10px; padding-right: 10px">');
 $rdf = new fase4_rdf();
 $rdf->_use_nl2br = false;
 $rdf->use_dynamic_display(false);
-$rdf->set_CacheDir(getConfig('CACHE_PATH') . '');
-$rdf->set_salt(md5(getConfig('SITE_KEY')));
+$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