Several more constants rewritten to getConfig()
[mailer.git] / inc / modules / member / what-reflinks.php
index 8688d2a476e98f3fc5a2a117ab32d707adc36b25..8ef3a61acb9155d6d66cf195bafbb8ef2882c244 100644 (file)
@@ -54,7 +54,7 @@ $content = SQL_FETCHARRAY($result);
 SQL_FREERESULT($result);
 
 OUTPUT_HTML("<div class=\"tiny\">{--YOUR_PERSONAL_REFLINK--}:<br />
-<strong><a href=\"{!URL!}/ref.php?refid=".getUserId()."\" target=\"_blank\">{!URL!}/ref.php?ref=".getUserId()."</a></strong><br />
+<strong><a href=\"{?URL?}/ref.php?refid=".getUserId()."\" target=\"_blank\">{?URL?}/ref.php?ref=".getUserId()."</a></strong><br />
 <br />");
 
 if (EXT_IS_ACTIVE('nickname')) {
@@ -64,12 +64,12 @@ if (EXT_IS_ACTIVE('nickname')) {
        if (!empty($nick)) {
                // Display nickname link
                OUTPUT_HTML("{--NICKNAME_YOUR_REFLINK--}:<br />
-<strong><a href=\"{!URL!}/ref.php?ref=".$nick."\" target=\"_blank\">{!URL!}/ref.php?ref=".$nick."</a></strong><br />
+<strong><a href=\"{?URL?}/ref.php?ref=".$nick."\" target=\"_blank\">{?URL?}/ref.php?ref=".$nick."</a></strong><br />
 <br />");
        } else {
                // Display link to nickname form
                OUTPUT_HTML("<div class=\"guest_note\">{--NO_NICKNAME_SET--}</strong><br />
-<a class=\"tiny\" href=\"{!URL!}/modules.php?module=login&amp;what=nickname\">{--PLEASE_CLICK_NICKNAME_FORM--}</a>");
+<a class=\"tiny\" href=\"{?URL?}/modules.php?module=login&amp;what=nickname\">{--PLEASE_CLICK_NICKNAME_FORM--}</a>");
        }
 }
 
@@ -84,7 +84,7 @@ if (SQL_NUMROWS($result) > 0) {
        // List available ref banners
        $OUT = ''; $SW = 2;
        while ($content = SQL_FETCHARRAY($result)) {
-               $test = str_replace(constant('URL'), constant('PATH'), $content['url']); $size = 0;
+               $test = str_replace(getConfig('URL'), getConfig('PATH'), $content['url']); $size = 0;
                if ($test == $content['url']) {
                        // Download banner (I hope you keep the banner on same server???)
                        $fp = sendGetRequest($content['url']); $bannerContent = '';