* $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 *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
// Some security stuff...
if (!defined('__SECURITY')) {
- die();
+ exit();
} elseif (!isMember()) {
// User is not logged in
redirectToIndexMemberOnlyModule();
}
// Add description as navigation point
-addMenuDescription('member', __FILE__);
+addYouAreHereLink('member', __FILE__);
-// Load all referal levels
-$result = SQL_QUERY('SELECT
- `level`, `percents`
+// Load all referral levels
+$result = sqlQuery('SELECT
+ `level`,
+ `percents`
FROM
`{?_MYSQL_PREFIX?}_refdepths`
WHERE
`level` ASC', __FILE__, __LINE__);
// Are there some entries? (Shall be!)
-if (!SQL_HASZERONUMS($result)) {
+if (!ifSqlHasZeroNums($result)) {
// List all levels
$OUT = '';
- while ($content = SQL_FETCHARRAY($result)) {
+ while ($content = sqlFetchArray($result)) {
// Init variables
$rows = '';
$counter = '0';
// Check for users ref in this level
- foreach (getUserReferalPoints(getMemberId(), $content['level']) as $refRow) {
+ foreach (getUserReferralPoints(getMemberId(), $content['level']) as $refRow) {
// Add/"translate" more content
- $refRow['clickrate'] = translateComma($refRow['clickrate'], true, 1);
+ $refRow['click_rate'] = translateComma($refRow['click_rate'], TRUE, 1);
// Load row template
- $rows .= loadTemplate('member_ref_list_row', true, $refRow);
+ $rows .= loadTemplate('member_list_referral_row', TRUE, $refRow);
// Count this ref and switch color
$counter++;
// Remember the content
$content['counter'] = $counter;
- $content['percents'] = translateComma($content['percents'], true, 1);
+ $content['percents'] = translateComma($content['percents'], TRUE, 1);
$content['rows'] = $rows;
// Load level template
- $OUT .= loadTemplate('member_ref_list_level', true, $content);
+ $OUT .= loadTemplate('member_list_referral_level', TRUE, $content);
} // END - while
// Load main template
- loadTemplate('member_ref_list', false, $OUT);
+ loadTemplate('member_list_referral', FALSE, $OUT);
} else {
// No entries
- loadTemplate('admin_settings_saved', false, '{--MEMBER_REFBACK_NO_ENTRIES--}');
+ displayMessage('{--MEMBER_REFBACK_NO_ENTRIES--}');
}
// Free result
-SQL_FREERESULT($result);
+sqlFreeResult($result);
// [EOF]
?>