* -------------------------------------------------------------------- *
* Kurzbeschreibung : Refback-Einstellungen *
* -------------------------------------------------------------------- *
- * *
+ * $Revision:: $ *
+ * $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 - 2008 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
// Some security stuff...
if (!defined('__SECURITY')) {
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif (!IS_MEMBER()) {
// User is not logged in
- LOAD_URL("modules.php?module=index");
+ LOAD_URL('modules.php?module=index');
}
// Add description as navigation point
-ADD_DESCR("member", __FILE__);
+ADD_DESCR('member', __FILE__);
// Load all referal levels
$result = SQL_QUERY_ESC("SELECT r.level, r.percents
FROM `{!_MYSQL_PREFIX!}_refdepths` AS r
WHERE r.level > 0
ORDER BY r.level ASC",
- array($GLOBALS['userid']), __FILE__, __LINE__);
+ array(getUserId()), __FILE__, __LINE__);
// Are there some entries? (Shall be!)
if (SQL_NUMROWS($result) > 0) {
// List all levels
- $OUT = "";
+ $OUT = '';
while ($content = SQL_FETCHARRAY($result)) {
// Init variables
- $rows = "";
+ $rows = '';
$counter = 0;
$SW = 2;
// Check for users ref in this level
- foreach (GET_USER_REF_POINTS($GLOBALS['userid'], $content['level']) as $refRow) {
+ foreach (GET_USER_REF_POINTS(getUserId(), $content['level']) as $refRow) {
// Add/"translate" more content
$refRow['sw'] = $SW;
$refRow['points'] = TRANSLATE_COMMA($refRow['points']);
LOAD_TEMPLATE("member_ref_list", false, $OUT);
} else {
// No entries
- LOAD_TEMPLATE("admin_settings_saved", false, getMessage('MEMBER_REFBACK_NO_ENTRIES'));
+ LOAD_TEMPLATE('admin_settings_saved', false, getMessage('MEMBER_REFBACK_NO_ENTRIES'));
}
// Free result