ico_email("username={$db['username']}", "absmiddle");
     }
     if ($dbu['icq']) {
         if ($sales_option && $sales_members && !$is_sales_user) {
             // check access for user
             ico_icq("", "absmiddle");
         } else {
             ico_icq("{$dbu['icq']}", "absmiddle");
         }
     }
     if ($dbu['homepage']) {
         if ($sales_option && $sales_members && !$is_sales_user) {
             // check access for user
             ico_url("", "absmiddle");
         } else {
             ico_url("{$dbu['homepage']}", "absmiddle");
         }
     }
 } else {
     echo "{$useronl_guest}\n";
 }
 echo "   </td>\n";
 echo "   <td class=\"classcat5\">\n";
 echo strrchr($db['file'], "/") . "\n";
 echo "   </td>\n";
 echo "   <td class=\"classcat6\">\n";
 if ($_SESSION['susermod']) {
     echo "{$db['ip']}\n";
 } else {
     echo "***.***.***" . strrchr($db['ip'], ".") . "\n";
 }
     }
     if ($dbu[icq]) {
         if ($sales_option && !sales_checkaccess(3, $_SESSION[suserid], $db[catid])) {
             // check access for user and cat
             ico_icq("", "left");
         } else {
             ico_icq("{$dbu['icq']}", "left");
         }
     }
     ico_friend("catid={$db['catid']}&subcatid={$db['subcatid']}&adid={$db['id']}", "left");
     if ($show_url && $dbu[homepage]) {
         if ($sales_option && !sales_checkaccess(3, $_SESSION[suserid], $catid)) {
             // check access for user and cat
             ico_url("", "left");
         } else {
             ico_url("{$dbu['homepage']}", "left");
         }
     }
     ico_print("", "left");
     if ($show_adrating && $_SESSION[suserid]) {
         ico_adrating("adid={$db['id']}", "left");
     }
     if ($show_members_details && $_SESSION[suserid]) {
         ico_info("choice=details&uid={$dbu['id']}&uname={$dbu['username']}", "left");
     }
     echo "   <div class=\"smallright\">{$ad_nr}{$db['id']}</div>";
     echo " <a href=\"favorits.php?deladid={$db['id']}\" onClick='enterWindow=window.open(\"favorits.php?" . sidstr() . "deladid={$db['id']}\",\"Delete\",\"width=400,height=200,top=100,left=100\"); return false'\n          onmouseover=\"window.status='{$adfav_delete}'; return true;\"\n          onmouseout=\"window.status=''; return true;\">\n         <img src=\"{$image_dir}/icons/trash.gif\" border=\"0\" alt=\"{$adfav_delete}\" align=\"right\" vspace=\"6\"></a>\n";
 }
 echo "   <div class=\"maincatnav\"><br>{$ad_home} / {$dbc['name']} / {$dbs['name']} </div>\n";
 echo "   </td>\n";
 echo " </tr>\n";
     } else {
         ico_icq("{$db['icq']}", "center");
     }
 } else {
     echo "&nbsp;";
 }
 echo "     </div>\n";
 echo "    </td>\n";
 echo "    <td class=\"gbtable2\" width=\"30\">\n";
 echo "     <div class=\"smallcenter\">";
 if ($show_url && $db[homepage]) {
     if ($sales_option && $sales_members && !$is_sales_user) {
         // check access for user
         ico_url("", "center");
     } else {
         ico_url("{$db['homepage']}", "center");
     }
 } else {
     echo "&nbsp;";
 }
 echo "     </div>\n";
 echo "    </td>\n";
 echo "    <td class=\"gbtable2\" width=\"30\">\n";
 echo "     <div class=\"smallcenter\">";
 if ($db[picture]) {
     ico_pic("{$db['picture']}", "center");
 } else {
     echo "&nbsp;";
 }
 echo "     </div>\n";
 echo "    </td>\n";
     }
 }
 if ($icq) {
     if ($sales_option && $sales_members && !$is_sales_user) {
         // check access for user
         ico_icq("", "absmiddle");
     } else {
         ico_icq("{$icq}", "absmiddle");
     }
 }
 if ($homepage) {
     if ($sales_option && $sales_members && !$is_sales_user) {
         // check access for user
         ico_url("", "absmiddle");
     } else {
         ico_url("{$homepage}", "absmiddle");
     }
 }
 echo "</div></td>\n";
 echo "</tr></table>\n";
 echo "           <div class=\"maintext\">\n";
 echo "           <br>\n";
 echo "           <table align=center width=\"100%\">\n";
 echo "           <tr>\n";
 echo "            <td class=\"gbtable2\" width=\"50%\"><div class=\"maininputleft\">{$memf_username} : </div></td>\n";
 echo "            <td class=\"gbtable2\">{$uname}</td>\n";
 echo "           </tr>\n";
 echo "           <tr>\n";
 echo "            <td class=\"gbtable2\" width=\"50%\"><div class=\"maininputleft\">{$memf_level} : </div></td>\n";
 echo "            <td class=\"gbtable2\">{$level} ({$userlevel[$level]})</td>\n";
 echo "           </tr>\n";