From: Roland Häder Date: Sat, 20 Sep 2008 23:58:01 +0000 (+0000) Subject: Random code added which you may use for cache-busters (see OpenX for an example) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1de0532b20b63c9e0eeb9a2f51ca794abf6b36ad;p=mailer.git Random code added which you may use for cache-busters (see OpenX for an example) --- diff --git a/inc/databases.php b/inc/databases.php index b44d79b9ab..6d17cd1a4e 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "373"); +define('CURR_SVN_REVISION', "374"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); @@ -121,6 +121,9 @@ define('_PRIME', 591623); // Calculate "entropy" with the prime number (for code generation) define('_ADD', (_PRIME * _PRIME / (pi() * $_CONFIG['code_length'] + 1))); +// Random number for e.g. "cache-buster" used in OpenX script +define('CACHE_BUSTER', mt_rand(1000000, 9999999)); + // Extra title is empty by default $EXTRA_TITLE = ""; diff --git a/inc/modules/member/what-reflinks.php b/inc/modules/member/what-reflinks.php index 2e3caa73b6..3234e51624 100644 --- a/inc/modules/member/what-reflinks.php +++ b/inc/modules/member/what-reflinks.php @@ -50,7 +50,7 @@ list($c) = SQL_FETCHROW($result); SQL_FREERESULT($result); OUTPUT_HTML("".YOUR_PERSONAL_REFLINK.":
-".URL."/ref.php?ref=".$GLOBALS['userid']."
+".URL."/ref.php?ref=".$GLOBALS['userid']."

"); if (EXT_IS_ACTIVE("nickname")) diff --git a/templates/de/emails/member/member_rallye_notify.tpl b/templates/de/emails/member/member_rallye_notify.tpl index 11c8890bf7..32f63e9b9a 100644 --- a/templates/de/emails/member/member_rallye_notify.tpl +++ b/templates/de/emails/member/member_rallye_notify.tpl @@ -16,7 +16,7 @@ Server-Zeit: $DATA[now_t] Uhr ------------------------------ $content Ihr Werbelink zum Werben neuer Mitglieder: -{!URL!}/ref.php?ref=$UID +{!URL!}/ref.php?refid=$UID ------------------------------ Weitere Werbebanner, sowie alle weiteren noetigen Daten finden Sie im Mitgliedsbereich unter *Refs-Banner* !