Exemplo n.º 1
0
                        if (COLOR_NAMES) {
                            echo "<a onClick=\"window.parent.send_popup('/wisp " . special_char2($OtherUsera, $Latin1) . "');\" " . userClass($status, $OtherUsera) . " title='" . L_WHSP . "' onMouseOver=\"window.status='" . L_SEND_WHSP . "'; return true\"><span style=color:" . userColor($status, $colorname) . ";>" . special_char($OtherUser, $Latin1, $status) . "</span></a><br />\n";
                        } else {
                            echo "<a onClick=\"window.parent.send_popup('/wisp " . special_char2($OtherUsera, $Latin1) . "');\" " . userClass($status, $OtherUsera) . " title='" . L_WHSP . "' onMouseOver=\"window.status='" . L_SEND_WHSP . "'; return true\">" . special_char($OtherUser, $Latin1, $status) . "</a><br />\n";
                        }
                    } elseif (C_ENABLE_PM) {
                        if (COLOR_NAMES) {
                            echo "<a onClick=\"window.parent.userClick2('" . special_char2($OtherUsera, $Latin1) . "',true);\" " . userClass($status, $OtherUsera) . " title='" . L_WHSP . "' onMouseOver=\"window.status='" . L_SEND_WHSP . "'; return true\"><span style=color:" . userColor($status, $colorname) . ";>" . special_char($OtherUser, $Latin1, $status) . "</span></a><br />\n";
                        } else {
                            echo "<a onClick=\"window.parent.userClick2('" . special_char2($OtherUsera, $Latin1) . "',true);\" " . userClass($status, $OtherUsera) . " title='" . L_WHSP . "' onMouseOver=\"window.status='" . L_SEND_WHSP . "'; return true\">" . special_char($OtherUser, $Latin1, $status) . "</a><br />\n";
                        }
                    } else {
                        if (COLOR_NAMES) {
                            echo "<a onClick=\"window.parent.userClick2('" . special_char2($OtherUsera, $Latin1) . "',false);\" " . userClass($status, $OtherUsera) . " title='" . L_USE_NAME . " ({$OtherUser})' onMouseOver=\"window.status='" . L_USE_NAME . " ({$OtherUser})'; return true\"><span style=color:" . userColor($status, $colorname) . ";>" . special_char($OtherUser, $Latin1, $status) . "</span></a><br />\n";
                        } else {
                            echo "<a onClick=\"window.parent.userClick2('" . special_char2($OtherUsera, $Latin1) . "',false);\" " . userClass($status, $OtherUsera) . " title='" . L_USE_NAME . " ({$OtherUser})' onMouseOver=\"window.status='" . L_USE_NAME . " ({$OtherUser})'; return true\">" . special_char($OtherUser, $Latin1, $status) . "</a><br />\n";
                        }
                    }
                }
                echo "</DIV>\n";
            }
        }
        $OthersUsers->clean_results();
    }
    $OthersUsers->close();
}
$DbLink->clean_results();
// Display all rest default rooms
for ($k = 0; $k < count($DefaultChatRooms); $k++) {
    $tmpRoom = stripslashes($DefaultChatRooms[$k]);
    $tmpDispRoom = $tmpRoom;
                         }
                         if ($COUNTRY_CODE != "LAN") {
                             $COUNTRY_NAME = $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$COUNTRY_CODE]];
                         }
                         if ($PROXY || substr($IP, 0, 1) == "p") {
                             $COUNTRY_NAME .= " (Proxy Server)";
                         }
                     }
                     $c_flag = "&nbsp;<img src=\"./plugins/countryflags/flags/" . strtolower($COUNTRY_CODE) . ".gif\" alt=\"" . $COUNTRY_NAME . "\" title=\"" . $COUNTRY_NAME . "\" border=\"0\">&nbsp;(" . $COUNTRY_CODE . ")";
                 }
                 // GeoIP country flags Mod End.
                 $room_time = strftime(L_SHORT_DATETIME, $room_time + C_TMZ_OFFSET * 60 * 60);
                 if (stristr(PHP_OS, 'win') && (strstr($L, "chinese") || strstr($L, "korean") || strstr($L, "japanese"))) {
                     $room_time = str_replace(" ", "", $room_time);
                 }
                 echo "-&nbsp;<a " . userClass($status, $Username) . ";>" . special_char($Username, $Latin1, $status) . "</a><BDO dir=\"{$textDirection}\"></BDO><font size=1>&nbsp;(" . $room_time . ")" . (isset($c_flag) ? $c_flag : "") . "</font><br />";
                 // GeoIP Country flags initialization
                 unset($IP);
                 unset($COUNTRY_CODE);
                 unset($COUNTRY_NAME);
                 unset($c_flag);
             }
             echo "</DIV>";
             $ChildNb[$id] = $j;
         }
     }
     $Users->clean_results();
 }
 // GeoIP mode for country flags
 if (isset($gi) && $gi != "") {
     geoip_close($gi);