$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
} elseif ((!EXT_IS_ACTIVE("wernis")) && (!IS_ADMIN())) {
- ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "wernis");
+ addFatalMessage(EXTENSION_PROBLEM_EXT_INACTIVE, "wernis");
return;
}
array(
'textinput' => "hidden",
'sitelink' => "http://www.wds66.com",
- 'refid' => bigintval($_CONFIG['wernis_refid']),
+ '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