<?php
/************************************************************************
- * MXChange v0.2.1 Start: 10/13/2003 *
- * =============== Last change: 09/04/2004 *
+ * Mailer v0.2.1-FINAL Start: 10/13/2003 *
+ * =================== Last change: 09/04/2004 *
* *
* -------------------------------------------------------------------- *
* File : ref.php *
* $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
* $Author:: $ *
- * Needs to be in all Files and every File needs "svn propset *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Load the required file(s)
require('inc/config-global.php');
+// Set content type for e.g. search engines
+setContentType('text/html');
+
// No refid by default
-$URL = 'index.php';
+$URL = 'modules.php?module=index';
-if (determineReferalId() > 0) {
+if (determineReferalId() != 0) {
// Test if nickname or numeric id
if (isExtensionActive('nickname')) {
// Nickname in URL, so load the id
setSession('refid', determineReferalId());
// Is the refid valid?
- if (determineReferalId() > 0) {
+ if (isValidUserId(determineReferalId())) {
// Update ref counter
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `ref_clicks`=`ref_clicks`+1 WHERE `userid`=%s LIMIT 1",
array(determineReferalId()), __FILE__, __LINE__);
break;
case 'index':
- $URL = 'index.php';
+ $URL = 'modules.php?module=index';
break;
} // END - switch
} // END - if