X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-wernis_portal.php;h=c60a8f3f8e03f5e7a4501009af91ebb7f924a81c;hp=5c82e8d187af1c96ea7ae85479e5111d14d7a22a;hb=7989ec603971c0dc8dc35d8be4e72f8098b83baa;hpb=963e55ca1ea79e255f235e359cde9f7862191dc5
diff --git a/inc/modules/guest/what-wernis_portal.php b/inc/modules/guest/what-wernis_portal.php
index 5c82e8d187..c60a8f3f8e 100644
--- a/inc/modules/guest/what-wernis_portal.php
+++ b/inc/modules/guest/what-wernis_portal.php
@@ -35,45 +35,48 @@
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
+} elseif ((!EXT_IS_ACTIVE("wernis")) && (!IS_ADMIN())) {
+ addFatalMessage(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "wernis");
+ return;
}
// Special file
-require_once (PATH."inc/rdf.class.php");
+LOAD_INC_ONCE("inc/rdf.class.php");
// Add description as navigation point
-ADD_DESCR("guest", basename(__FILE__));
+ADD_DESCR("guest", __FILE__);
-OUTPUT_HTML("
");
-$rdf = new fase4_rdf;
+OUTPUT_HTML("
");
+$rdf = new fase4_rdf();
$rdf->use_dynamic_display(false);
-$rdf->set_CacheDir(PATH."inc/cache/");
-$rdf->set_salt(SITE_KEY);
+$rdf->set_CacheDir(constant('PATH')."inc/cache/");
+$rdf->set_salt(md5(SITE_KEY));
$rdf->set_max_item(10);
$rdf->set_Options(
array(
- "textinput" => "hidden",
- "sitelink" => "http://www.wds66.com",
- "refid" => bigintval($_CONFIG['wernis_refid']),
- "reflink" => "/ref.php?refid=",
+ 'textinput' => "hidden",
+ 'sitelink' => "http://www.wds66.com",
+ '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
$rdf->parse_RDF("http://www.wds66.com/rss.xml");
$rdf->finish();
// DISABLED: $rdf->clear_cache();
-OUTPUT_HTML("
");
+OUTPUT_HTML("
");
//
?>