-if (!isset($_GET['mode'])) {
- // Get referral id
- $content['refid'] = bigintval($_CONFIG['primera_refid']);
-
- // Get WDS66 id
- $result = SQL_QUERY_ESC("SELECT primera_userid FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1",
- array($GLOBALS['userid']), __FILE__, __LINE__);
-
- // Are there some entries?
- if (SQL_NUMROWS($result) == 1) {
- // Fetch ID
- list($content['primus_nickname']) = SQL_FETCHROW($result);
- } // END - if
-
- // Free result
- SQL_FREERESULT($result);
-
- // Is there an ID?
- if ((!empty($content['primus_nickname'])) && (!isset($_GET['mode']))) {
- // Then use an other "mode"
- $_GET['mode'] = "list";
+if (!isGetRequestElementSet('do')) {
+ // Is there an id?
+ if ((!empty($content['primera_nickname'])) && (!isGetRequestElementSet('do'))) {
+ // Then list all entries
+ setGetRequestElement('do', 'list');