+addMenuDescription('guest', __FILE__);
+
+// Count referal levels
+$result = SQL_QUERY("SELECT COUNT(`id`) FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `level` > 0", __FILE__, __LINE__);
+
+// Fetch rows
+list($cnt) = SQL_FETCHROW($result);
+
+// Free result
+SQL_FREERESULT($result);
+
+// Prepare content
+$content = array(
+ 'register' => translateComma(getConfig('points_register')),
+ 'ref_levels' => $cnt,
+ 'ref_points' => translateComma(getConfig('points_ref'))
+);
+
+// Load default template
+loadTemplate(substr(basename(__FILE__), 5, -4), false, $content);