]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-wernis_portal.php
Old config.php is now automatically updated to new config-local.php format, several...
[mailer.git] / inc / modules / guest / what-wernis_portal.php
index 9a313d0e1497c8f48bf6004874cf325af42ae2c4..af08f495b60d260be660d5425bc67e312513d74f 100644 (file)
@@ -10,7 +10,7 @@
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  :                                                  *
  * -------------------------------------------------------------------- *
- * $Revision:: 856                                                    $ *
+ * $Revision::                                                        $ *
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
 
 // 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(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "wernis");
+} elseif ((!EXT_IS_ACTIVE('wernis')) && (!IS_ADMIN())) {
+       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), '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("<div style=\"padding-left: 10px; padding-right: 10px\">");
 $rdf = new fase4_rdf();
 $rdf->use_dynamic_display(false);
 $rdf->set_CacheDir(constant('PATH')."inc/cache/");
-$rdf->set_salt(md5(constant('SITE_KEY')));
+$rdf->set_salt(md5(getConfig('SITE_KEY')));
 $rdf->set_max_item(10);
 $rdf->set_Options(
-       array(
+array(
                'textinput' => "hidden",
                'sitelink'  => "http://www.wds66.com",
                'refid'     => getConfig('wernis_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