require("inc/config.php");
// Redirect only to registration page when this script is installed
-if (isBooleanConstantAndTrue('mxchange_installed')) {
+if (isInstalled()) {
// Base URL for redirection
switch (getConfig('refid_target'))
{
}
// Get referal ID from ref or refid variable
- if (!empty($_GET['ref'])) $ref = secureString($_GET['ref']);
- elseif (!empty($_GET['refid'])) $ref = secureString($_GET['refid']);
+ if (REQUEST_ISSET_GET(('ref'))) $ref = REQUEST_GET('ref');
+ elseif (REQUEST_ISSET_GET(('refid'))) $ref = REQUEST_GET('refid');
if (!empty($ref)) {
// Test if nickname or numeric id