From: Roland Häder Date: Thu, 21 Jun 2012 23:56:35 +0000 (+0000) Subject: Fixed referral system (hopefully for good) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d082c3d2f3d71e8109f54913ab4417aad76e67df;p=mailer.git Fixed referral system (hopefully for good) --- diff --git a/inc/libs/security_functions.php b/inc/libs/security_functions.php index b84140ced3..ae23cbf22f 100644 --- a/inc/libs/security_functions.php +++ b/inc/libs/security_functions.php @@ -46,7 +46,8 @@ if (strpos($_SERVER['PHP_SELF'], basename(__FILE__)) !== false) { } // END - if // Include ctracker, recommended place! -//require_once('ctracker.php'); +require_once('ctracker.php'); +require_once('ipfilter.php'); /** * Function to secure input strings diff --git a/inc/modules/guest/action-actions.php b/inc/modules/guest/action-actions.php index f551ef47b7..864815d358 100644 --- a/inc/modules/guest/action-actions.php +++ b/inc/modules/guest/action-actions.php @@ -1,3 +1,57 @@ diff --git a/inc/modules/guest/action-dummy.php b/inc/modules/guest/action-dummy.php index f551ef47b7..6d56e53e0f 100644 --- a/inc/modules/guest/action-dummy.php +++ b/inc/modules/guest/action-dummy.php @@ -1,3 +1,58 @@ diff --git a/inc/modules/guest/action-interna.php b/inc/modules/guest/action-interna.php index f551ef47b7..6d56e53e0f 100644 --- a/inc/modules/guest/action-interna.php +++ b/inc/modules/guest/action-interna.php @@ -1,3 +1,58 @@ diff --git a/inc/modules/guest/action-mailer.php b/inc/modules/guest/action-mailer.php index f551ef47b7..6d56e53e0f 100644 --- a/inc/modules/guest/action-mailer.php +++ b/inc/modules/guest/action-mailer.php @@ -1,3 +1,58 @@ diff --git a/inc/modules/guest/what-about.php b/inc/modules/guest/what-about.php index f551ef47b7..c38e378409 100644 --- a/inc/modules/guest/what-about.php +++ b/inc/modules/guest/what-about.php @@ -1,3 +1,31 @@ diff --git a/inc/modules/guest/what-aboutme.php b/inc/modules/guest/what-aboutme.php index f551ef47b7..c38e378409 100644 --- a/inc/modules/guest/what-aboutme.php +++ b/inc/modules/guest/what-aboutme.php @@ -1,3 +1,31 @@ diff --git a/inc/modules/guest/what-awards.php b/inc/modules/guest/what-awards.php index f551ef47b7..2b11b9cb77 100644 --- a/inc/modules/guest/what-awards.php +++ b/inc/modules/guest/what-awards.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-bug-tracker.php b/inc/modules/guest/what-bug-tracker.php index f551ef47b7..bb9ce74c99 100644 --- a/inc/modules/guest/what-bug-tracker.php +++ b/inc/modules/guest/what-bug-tracker.php @@ -1,3 +1,71 @@ '); +$rdf = new fase4_rdf(); +$rdf->_use_nl2br = false; +$rdf->use_dynamic_display(false); +$rdf->set_CacheDir(getConfig('PATH').'inc/cache/'); +$rdf->set_salt(md5(getConfig('SITE_KEY'))); +$rdf->set_Options( + array( + 'textinput' => 'hidden', + 'sitelink' => 'http://bugs.mxchange.org' + ) +); +$rdf->set_max_item(10); +$rdf->parse_RDF('http://bugs.mxchange.org/issues_rss.php?project_id=0'); +outputHtml($rdf->finish(true)); +outputHtml(''); + +// ?> diff --git a/inc/modules/guest/what-contribute.php b/inc/modules/guest/what-contribute.php index f551ef47b7..c38e378409 100644 --- a/inc/modules/guest/what-contribute.php +++ b/inc/modules/guest/what-contribute.php @@ -1,3 +1,31 @@ diff --git a/inc/modules/guest/what-delphine-helfen-kind.php b/inc/modules/guest/what-delphine-helfen-kind.php index f551ef47b7..af3e4088fc 100644 --- a/inc/modules/guest/what-delphine-helfen-kind.php +++ b/inc/modules/guest/what-delphine-helfen-kind.php @@ -1,3 +1,33 @@ diff --git a/inc/modules/guest/what-demo.php b/inc/modules/guest/what-demo.php index f551ef47b7..fa038fa9b4 100644 --- a/inc/modules/guest/what-demo.php +++ b/inc/modules/guest/what-demo.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-docs.php b/inc/modules/guest/what-docs.php index f551ef47b7..3e169f5e09 100644 --- a/inc/modules/guest/what-docs.php +++ b/inc/modules/guest/what-docs.php @@ -1,3 +1,32 @@ diff --git a/inc/modules/guest/what-donate.php b/inc/modules/guest/what-donate.php index f551ef47b7..c38e378409 100644 --- a/inc/modules/guest/what-donate.php +++ b/inc/modules/guest/what-donate.php @@ -1,3 +1,31 @@ diff --git a/inc/modules/guest/what-downloads.php b/inc/modules/guest/what-downloads.php index f551ef47b7..20524a2a22 100644 --- a/inc/modules/guest/what-downloads.php +++ b/inc/modules/guest/what-downloads.php @@ -1,3 +1,32 @@ diff --git a/inc/modules/guest/what-faqs.php b/inc/modules/guest/what-faqs.php index f551ef47b7..3e9240b30c 100644 --- a/inc/modules/guest/what-faqs.php +++ b/inc/modules/guest/what-faqs.php @@ -1,3 +1,33 @@ diff --git a/inc/modules/guest/what-forum.php b/inc/modules/guest/what-forum.php index f551ef47b7..94fff02b00 100644 --- a/inc/modules/guest/what-forum.php +++ b/inc/modules/guest/what-forum.php @@ -1,3 +1,53 @@ '); +$rdf = new fase4_rdf(); +$rdf->_use_nl2br = false; +$rdf->use_dynamic_display(false); +$rdf->set_CacheDir(getConfig('PATH').'inc/cache/'); +$rdf->set_salt(md5(getConfig('SITE_KEY'))); +$rdf->set_Options( + array( + 'textinput' => 'hidden', + 'sitelink' => 'http://forum.mxchange.org' + ) +); +$rdf->set_max_item(10); +$rdf->parse_RDF('http://forum.mxchange.org/rss.xml'); +outputHtml($rdf->finish(true)); +outputHtml(''); + + +// ?> diff --git a/inc/modules/guest/what-link_us.php b/inc/modules/guest/what-link_us.php index f551ef47b7..b5270e8bcc 100644 --- a/inc/modules/guest/what-link_us.php +++ b/inc/modules/guest/what-link_us.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-listed.php b/inc/modules/guest/what-listed.php index f551ef47b7..c38e378409 100644 --- a/inc/modules/guest/what-listed.php +++ b/inc/modules/guest/what-listed.php @@ -1,3 +1,31 @@ diff --git a/inc/modules/guest/what-my_weblog.php b/inc/modules/guest/what-my_weblog.php index f551ef47b7..eca9f69405 100644 --- a/inc/modules/guest/what-my_weblog.php +++ b/inc/modules/guest/what-my_weblog.php @@ -1,3 +1,65 @@ '); +$rdf = new fase4_rdf(); +$rdf->_use_nl2br = false; +$rdf->use_dynamic_display(false); +$rdf->set_CacheDir(getConfig('PATH') . 'inc/cache/'); +$rdf->set_salt(md5(getConfig('SITE_KEY'))); +$rdf->set_Options( + array( + 'textinput' => 'hidden', + 'sitelink' => 'http://blog.mxchange.org' + ) +); +$rdf->set_max_item(10); +$rdf->parse_RDF('http://blog.mxchange.org/feed/'); +$rdf->finish(); +$rdf->clear_cache(); +outputHtml(''); + +// ?> diff --git a/inc/modules/guest/what-news-2003.php b/inc/modules/guest/what-news-2003.php index f551ef47b7..fa038fa9b4 100644 --- a/inc/modules/guest/what-news-2003.php +++ b/inc/modules/guest/what-news-2003.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-news-2004.php b/inc/modules/guest/what-news-2004.php index f551ef47b7..fa038fa9b4 100644 --- a/inc/modules/guest/what-news-2004.php +++ b/inc/modules/guest/what-news-2004.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-news-2005.php b/inc/modules/guest/what-news-2005.php index f551ef47b7..fa038fa9b4 100644 --- a/inc/modules/guest/what-news-2005.php +++ b/inc/modules/guest/what-news-2005.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-news-2006.php b/inc/modules/guest/what-news-2006.php index f551ef47b7..fa038fa9b4 100644 --- a/inc/modules/guest/what-news-2006.php +++ b/inc/modules/guest/what-news-2006.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-news-2007.php b/inc/modules/guest/what-news-2007.php index f551ef47b7..fa038fa9b4 100644 --- a/inc/modules/guest/what-news-2007.php +++ b/inc/modules/guest/what-news-2007.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-news-2008.php b/inc/modules/guest/what-news-2008.php index f551ef47b7..fa038fa9b4 100644 --- a/inc/modules/guest/what-news-2008.php +++ b/inc/modules/guest/what-news-2008.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-news-2009.php b/inc/modules/guest/what-news-2009.php index f551ef47b7..fa038fa9b4 100644 --- a/inc/modules/guest/what-news-2009.php +++ b/inc/modules/guest/what-news-2009.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-news-2010.php b/inc/modules/guest/what-news-2010.php index f551ef47b7..fa038fa9b4 100644 --- a/inc/modules/guest/what-news-2010.php +++ b/inc/modules/guest/what-news-2010.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-news.php b/inc/modules/guest/what-news.php index f551ef47b7..fa038fa9b4 100644 --- a/inc/modules/guest/what-news.php +++ b/inc/modules/guest/what-news.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-newsletter.php b/inc/modules/guest/what-newsletter.php index f551ef47b7..c38e378409 100644 --- a/inc/modules/guest/what-newsletter.php +++ b/inc/modules/guest/what-newsletter.php @@ -1,3 +1,31 @@ diff --git a/inc/modules/guest/what-partner.php b/inc/modules/guest/what-partner.php index f551ef47b7..c38e378409 100644 --- a/inc/modules/guest/what-partner.php +++ b/inc/modules/guest/what-partner.php @@ -1,3 +1,31 @@ diff --git a/inc/modules/guest/what-pay_faq.php b/inc/modules/guest/what-pay_faq.php index f551ef47b7..2b11b9cb77 100644 --- a/inc/modules/guest/what-pay_faq.php +++ b/inc/modules/guest/what-pay_faq.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-philosophy.php b/inc/modules/guest/what-philosophy.php index f551ef47b7..fa038fa9b4 100644 --- a/inc/modules/guest/what-philosophy.php +++ b/inc/modules/guest/what-philosophy.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-photos.php b/inc/modules/guest/what-photos.php index f551ef47b7..fa038fa9b4 100644 --- a/inc/modules/guest/what-photos.php +++ b/inc/modules/guest/what-photos.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-powered.php b/inc/modules/guest/what-powered.php index f551ef47b7..db5638d3ce 100644 --- a/inc/modules/guest/what-powered.php +++ b/inc/modules/guest/what-powered.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-preview.php b/inc/modules/guest/what-preview.php index f551ef47b7..7c5f391333 100644 --- a/inc/modules/guest/what-preview.php +++ b/inc/modules/guest/what-preview.php @@ -1,3 +1,38 @@ diff --git a/inc/modules/guest/what-references.php b/inc/modules/guest/what-references.php index f551ef47b7..c38e378409 100644 --- a/inc/modules/guest/what-references.php +++ b/inc/modules/guest/what-references.php @@ -1,3 +1,31 @@ diff --git a/inc/modules/guest/what-releases.php b/inc/modules/guest/what-releases.php index f551ef47b7..c38e378409 100644 --- a/inc/modules/guest/what-releases.php +++ b/inc/modules/guest/what-releases.php @@ -1,3 +1,31 @@ diff --git a/inc/modules/guest/what-requirements.php b/inc/modules/guest/what-requirements.php index f551ef47b7..c38e378409 100644 --- a/inc/modules/guest/what-requirements.php +++ b/inc/modules/guest/what-requirements.php @@ -1,3 +1,31 @@ diff --git a/inc/modules/guest/what-rettet_das_internet.php b/inc/modules/guest/what-rettet_das_internet.php index f551ef47b7..4d00eae6b7 100644 --- a/inc/modules/guest/what-rettet_das_internet.php +++ b/inc/modules/guest/what-rettet_das_internet.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-roadmap.php b/inc/modules/guest/what-roadmap.php index f551ef47b7..be2f9233ab 100644 --- a/inc/modules/guest/what-roadmap.php +++ b/inc/modules/guest/what-roadmap.php @@ -1,3 +1,34 @@ diff --git a/inc/modules/guest/what-svn.php b/inc/modules/guest/what-svn.php index f551ef47b7..c38e378409 100644 --- a/inc/modules/guest/what-svn.php +++ b/inc/modules/guest/what-svn.php @@ -1,3 +1,31 @@ diff --git a/inc/modules/guest/what-why_reg.php b/inc/modules/guest/what-why_reg.php index f551ef47b7..c38e378409 100644 --- a/inc/modules/guest/what-why_reg.php +++ b/inc/modules/guest/what-why_reg.php @@ -1,3 +1,31 @@ diff --git a/inc/referral-functions.php b/inc/referral-functions.php index 02a4fea202..9d5146c85c 100644 --- a/inc/referral-functions.php +++ b/inc/referral-functions.php @@ -582,6 +582,9 @@ function addMissingReferralLevels ($userid) { // Next are the users foreach ($levelArray as $refid) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',level=' . $level . ',refid=' . $refid); + // Add also this user's (maybe) missing levels + addMissingReferralLevels($refid); + // Does the refid have an array? if (isset($GLOBALS['referral_refid'][$refid])) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',level=' . $level . ',refid=' . convertNullToZero($refid) . ',count()=' . count($GLOBALS['referral_refid'][$refid])); @@ -598,6 +601,9 @@ function addMissingReferralLevels ($userid) { // Then we must add this ref's refid to the userid's next level //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',newLevel=' . $newLevel . ',refRefid=' . $refRefid . ' - ADDED!'); $GLOBALS['referral_refid'][$userid][$newLevel][] = $refRefid; + + // Add also this user's (maybe) missing levels + addMissingReferralLevels($refRefid); } // END - if } // END - foreach } // END - foreach