Mahor rewrite:
[mailer.git] / inc / modules / guest / what-wernis_portal.php
index c891089b7ec2e128441152eed6298f4c50aed76d..b816ef637c0117201991a9c911fd1561695a8db8 100644 (file)
@@ -56,20 +56,20 @@ $rdf->set_Options(
        array(
                'textinput' => "hidden",
                'sitelink'  => "http://www.wds66.com",
-               'refid'     => bigintval($_CONFIG['wernis_refid']),
+               'refid'     => bigintval(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