From: Lo?c C. <lo...@us...> - 2001-05-22 21:15:36
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv6007/chat Modified Files: users_low.php3 users.php3 Log Message: Moving to the start page is no long required to change of room Index: users_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_low.php3,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** users_low.php3 2001/05/20 18:56:28 1.17 --- users_low.php3 2001/05/22 21:15:34 1.18 *************** *** 277,284 **** $usersCnt = 0; $id = md5($aRoomName); $usersList[] = '<p>'; $usersList[] = "\t" ! . '<a href="' . str_replace('%NEW ROOM%', urlencode($aRoomName), $joinUrl) . '" target="_parent">' . htmlspecialchars($aRoomName) . '</a>' . '<span class="small"><bdo dir="' . $textDirection . '"></bdo> ' . '(%NUM ROWS%)</span><br />'; --- 277,285 ---- $usersCnt = 0; $id = md5($aRoomName); + $jsClickLink = ' onclick="window.parent.pmcRunCmd(\'JOIN\', \'#' . pmcSlashSingleQuotes(pmcSpecialChars($aRoomName, 0), 1) . '\'); return false"'; $usersList[] = '<p>'; $usersList[] = "\t" ! . '<a href="' . str_replace('%NEW ROOM%', urlencode($aRoomName), $joinUrl) . '" target="_parent"' . $jsClickLink . '>' . htmlspecialchars($aRoomName) . '</a>' . '<span class="small"><bdo dir="' . $textDirection . '"></bdo> ' . '(%NUM ROWS%)</span><br />'; *************** *** 364,370 **** } $usersList[] = '<p>'; $usersList[] = "\t" ! . '<a href="' . str_replace('%NEW ROOM%', urlencode($tmpRoom), $joinUrl) . '" target="_parent">' . htmlspecialchars($tmpRoom) . '</a>' . '<span class="small"><bdo dir="' . $textDirection . '"></bdo>' . ' (0)</span>'; --- 365,373 ---- } + $jsClickLink = ' onclick="window.parent.pmcRunCmd(\'JOIN\', \'#' . pmcSlashSingleQuotes(pmcSpecialChars($tmpRoom, 0), 1) . '\'); return false"'; + $usersList[] = '<p>'; $usersList[] = "\t" ! . '<a href="' . str_replace('%NEW ROOM%', urlencode($tmpRoom), $joinUrl) . '" target="_parent"' . $jsClickLink . '>' . htmlspecialchars($tmpRoom) . '</a>' . '<span class="small"><bdo dir="' . $textDirection . '"></bdo>' . ' (0)</span>'; Index: users.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users.php3,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -r1.23 -r1.24 *** users.php3 2001/05/20 18:56:28 1.23 --- users.php3 2001/05/22 21:15:34 1.24 *************** *** 277,280 **** --- 277,281 ---- $usersCnt = 0; $id = md5($aRoomName); + $jsClickLink = ' onclick="window.parent.pmcRunCmd(\'JOIN\', \'#' . pmcSlashSingleQuotes(pmcSpecialChars($aRoomName, 0), 1) . '\'); return false"'; $usersList[] = '<div id="Parent' . $id . '" class="parent" style="margin-top: 10px; cursor: hand">'; *************** *** 282,286 **** . '<img name="imEx" id="imEx' . $id . '" src="images/closed.gif" width="9" height="9" border="0" alt="' . L_EXPCOL . '" /></a>' . ' ' ! . '<a href="' . str_replace('%NEW ROOM%', urlencode($aRoomName), $joinUrl) . '" target="_parent">' . htmlspecialchars($aRoomName) . '</a>' . '<span class="small"><bdo dir="' . $textDirection . '"></bdo> ' . '(%NUM ROWS%)</span>'; --- 283,287 ---- . '<img name="imEx" id="imEx' . $id . '" src="images/closed.gif" width="9" height="9" border="0" alt="' . L_EXPCOL . '" /></a>' . ' ' ! . '<a href="' . str_replace('%NEW ROOM%', urlencode($aRoomName), $joinUrl) . '" target="_parent"' . $jsClickLink . '>' . htmlspecialchars($aRoomName) . '</a>' . '<span class="small"><bdo dir="' . $textDirection . '"></bdo> ' . '(%NUM ROWS%)</span>'; *************** *** 370,376 **** } $usersList[] = '<div id="Parent' . $id . '" class="parent" style="margin-top: 10px; cursor: hand">'; $usersList[] = "\t" ! . '<a href="' . str_replace('%NEW ROOM%', urlencode($tmpRoom), $joinUrl) . '" target="_parent">' . htmlspecialchars($tmpRoom) . '</a>' . '<span class="small"><bdo dir="' . $textDirection . '"></bdo>' . ' (0)</span>'; --- 371,379 ---- } + $jsClickLink = ' onclick="window.parent.pmcRunCmd(\'JOIN\', \'#' . pmcSlashSingleQuotes(pmcSpecialChars($tmpRoom, 0), 1) . '\'); return false"'; + $usersList[] = '<div id="Parent' . $id . '" class="parent" style="margin-top: 10px; cursor: hand">'; $usersList[] = "\t" ! . '<a href="' . str_replace('%NEW ROOM%', urlencode($tmpRoom), $joinUrl) . '" target="_parent"' . $jsClickLink . '>' . htmlspecialchars($tmpRoom) . '</a>' . '<span class="small"><bdo dir="' . $textDirection . '"></bdo>' . ' (0)</span>'; |