X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-wernis_portal.php;h=5c82e8d187af1c96ea7ae85479e5111d14d7a22a;hp=7a5df0860e8a4f84ddc36daeb0a966a620d3a72b;hb=963e55ca1ea79e255f235e359cde9f7862191dc5;hpb=daefa5dc8ffd7773e0c2556a5dcf33fa52196180 diff --git a/inc/modules/guest/what-wernis_portal.php b/inc/modules/guest/what-wernis_portal.php index 7a5df0860e..5c82e8d187 100644 --- a/inc/modules/guest/what-wernis_portal.php +++ b/inc/modules/guest/what-wernis_portal.php @@ -32,8 +32,7 @@ ************************************************************************/ // Some security stuff... -if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) -{ +if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } @@ -47,8 +46,9 @@ ADD_DESCR("guest", basename(__FILE__)); OUTPUT_HTML("
"); $rdf = new fase4_rdf; $rdf->use_dynamic_display(false); -$rdf->set_CacheDir(PATH."cache/"); +$rdf->set_CacheDir(PATH."inc/cache/"); $rdf->set_salt(SITE_KEY); +$rdf->set_max_item(10); $rdf->set_Options( array( "textinput" => "hidden", @@ -57,10 +57,22 @@ $rdf->set_Options( "reflink" => "/ref.php?refid=", ) ); -$rdf->set_max_item(10); + +// Use proxy? +if ((!empty($_CONFIG['proxy_host'])) && (!empty($_CONFIG['proxy_port']))) { + // Set proxy data + $rdf->set_proxy($_CONFIG['proxy_host'], $_CONFIG['proxy_port']); + + // Use auth? + if (!empty($_CONFIG['proxy_username'])) { + // Set auth data + $rdf->set_proxy_auth($_CONFIG['proxy_username'], $_CONFIG['proxy_password']); + } // END - if +} // END - if + $rdf->parse_RDF("http://www.wds66.com/rss.xml"); $rdf->finish(); -$rdf->clear_cache(); +// DISABLED: $rdf->clear_cache(); OUTPUT_HTML("
"); //