|
From: Lo?c C. <lo...@us...> - 2001-04-19 20:25:20
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv12657/chat Modified Files: users.php3 users_low.php3 Log Message: The whois and profile links displayed can be run with pure HTML Index: users.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users.php3,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** users.php3 2001/04/19 08:51:33 1.16 --- users.php3 2001/04/19 20:24:53 1.17 *************** *** 13,17 **** // | http://www.phpheaven.net/projects/phpMyChat/ | // | | ! // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // --- 13,17 ---- // | http://www.phpheaven.net/projects/phpMyChat/ | // | | ! // | Authors: the phpHeaven-team <te...@ph...> | // +--------------------------------------------------------------------------+ // *************** *** 169,177 **** if ($status != 'u' && $status != 'k' && $status != 'd' && $status != 'b') { ! $tmpStr = '<a href="#" onclick="window.parent.pmcRunCmd(' ! . (($username == $dbSessionVars['nick']) ! ? '\'PROFILE\', \'\'' ! : '\'WHOIS\', \'' . pmcSlashSingleQuotes(pmcSpecialChars($username, $latin1)) .'\'') ! . '); return false;" class="user">' . '<img src="images/gender_' . $gender . '.gif" width="14" height="14" border="0" alt="' . L_PROFILE . '" />' . '</a> '; --- 169,179 ---- if ($status != 'u' && $status != 'k' && $status != 'd' && $status != 'b') { ! $htmlLink = ($username == $dbSessionVars['nick']) ! ? 'profile_edit.' . C_EXTENSION . '?' . dbSessionSID('GET') ! : 'whois_popup.' . C_EXTENSION . '?' . dbSessionSID('GET') . $pmcQueryArgSeparator . 'whoisTarget=' . urlencode($username); ! $jsArgs = ($username == $dbSessionVars['nick']) ! ? '\'PROFILE\', \'\'' ! : '\'WHOIS\', \'' . pmcSlashSingleQuotes(pmcSpecialChars($username, $latin1)) . '\''; ! $tmpStr = '<a href="' . $htmlLink . '" target="_blank" onclick="window.parent.pmcRunCmd(' . $jsArgs . '); return false;" class="user">' . '<img src="images/gender_' . $gender . '.gif" width="14" height="14" border="0" alt="' . L_PROFILE . '" />' . '</a> '; *************** *** 320,328 **** $gender = 'none'; if ($status != 'u' && $status != 'k' && $status != 'd' && $status != 'b') ! $tmpStr = '<a href="#" onclick="window.parent.pmcRunCmd(\'WHOIS\', \''. pmcSlashSingleQuotes(pmcSpecialChars($otherUser, $latin1)) . '\'); return false" class="user">' . '<img src="images/gender_' . $gender . '.gif" width="14" height="14" border="0" alt="' . L_PROFILE . '" />' . '</a> '; else $tmpStr = '<img src="images/gender_none.gif" width="14" height="14" border="0" alt="' . L_NO_PROFILE . '" /> '; $tmpStr .= '<a href="javascript:window.parent.pmcUserClick(\'' . pmcSlashSingleQuotes(pmcSpecialChars($otherUser, $latin1)) . '\', false)" class="user">' . pmcFormatUsername($otherUser, $latin1, $status) --- 322,335 ---- $gender = 'none'; if ($status != 'u' && $status != 'k' && $status != 'd' && $status != 'b') ! { ! $htmlLink = 'whois_popup.' . C_EXTENSION . '?' . dbSessionSID('GET') . $pmcQueryArgSeparator . 'whoisTarget=' . urlencode($otherUser); ! $tmpStr = '<a href="' . $htmlLink . '" target="_blank" onclick="window.parent.pmcRunCmd(\'WHOIS\', \''. pmcSlashSingleQuotes(pmcSpecialChars($otherUser, $latin1)) . '\'); return false" class="user">' . '<img src="images/gender_' . $gender . '.gif" width="14" height="14" border="0" alt="' . L_PROFILE . '" />' . '</a> '; + } else + { $tmpStr = '<img src="images/gender_none.gif" width="14" height="14" border="0" alt="' . L_NO_PROFILE . '" /> '; + } $tmpStr .= '<a href="javascript:window.parent.pmcUserClick(\'' . pmcSlashSingleQuotes(pmcSpecialChars($otherUser, $latin1)) . '\', false)" class="user">' . pmcFormatUsername($otherUser, $latin1, $status) Index: users_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_low.php3,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** users_low.php3 2001/04/19 08:51:33 1.11 --- users_low.php3 2001/04/19 20:24:53 1.12 *************** *** 14,18 **** // | http://www.phpheaven.net/projects/phpMyChat/ | // | | ! // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // --- 14,18 ---- // | http://www.phpheaven.net/projects/phpMyChat/ | // | | ! // | Authors: the phpHeaven-team <te...@ph...> | // +--------------------------------------------------------------------------+ // *************** *** 170,178 **** if ($status != 'u' && $status != 'k' && $status != 'd' && $status != 'b') { ! $tmpStr = '<a href="#" onclick="window.parent.pmcRunCmd(' ! . (($username == $dbSessionVars['nick']) ! ? '\'PROFILE\', \'\'' ! : '\'WHOIS\', \'' . pmcSlashSingleQuotes(pmcSpecialChars($username, $latin1)) .'\'') ! . '); return false;" class="user">' . '<img src="images/gender_' . $gender . '.gif" width="14" height="14" border="0" alt="' . L_PROFILE . '" />' . '</a> '; --- 170,180 ---- if ($status != 'u' && $status != 'k' && $status != 'd' && $status != 'b') { ! $htmlLink = ($username == $dbSessionVars['nick']) ! ? 'profile_edit.' . C_EXTENSION . '?' . dbSessionSID('GET') ! : 'whois_popup.' . C_EXTENSION . '?' . dbSessionSID('GET') . $pmcQueryArgSeparator . 'whoisTarget=' . urlencode($username); ! $jsArgs = ($username == $dbSessionVars['nick']) ! ? '\'PROFILE\', \'\'' ! : '\'WHOIS\', \'' . pmcSlashSingleQuotes(pmcSpecialChars($username, $latin1)) . '\''; ! $tmpStr = '<a href="' . $htmlLink . '" target="_blank" onclick="window.parent.pmcRunCmd(' . $jsArgs . '); return false;" class="user">' . '<img src="images/gender_' . $gender . '.gif" width="14" height="14" border="0" alt="' . L_PROFILE . '" />' . '</a> '; *************** *** 312,320 **** $gender = 'none'; if ($status != 'u' && $status != 'k' && $status != 'd' && $status != 'b') ! $tmpStr = '<a href="#" onclick="window.parent.pmcRunCmd(\'WHOIS\', \''. pmcSlashSingleQuotes(pmcSpecialChars($otherUser, $latin1)) . '\'); return false" class="user">' . '<img src="images/gender_' . $gender . '.gif" width="14" height="14" border="0" alt="' . L_PROFILE . '" />' . '</a> '; else $tmpStr = '<img src="images/gender_none.gif" width="14" height="14" border="0" alt="' . L_NO_PROFILE . '" /> '; $tmpStr .= '<a href="javascript:window.parent.pmcUserClick(\'' . pmcSlashSingleQuotes(pmcSpecialChars($otherUser, $latin1)) . '\', false)" class="user">' . pmcFormatUsername($otherUser, $latin1, $status) --- 314,327 ---- $gender = 'none'; if ($status != 'u' && $status != 'k' && $status != 'd' && $status != 'b') ! { ! $htmlLink = 'whois_popup.' . C_EXTENSION . '?' . dbSessionSID('GET') . $pmcQueryArgSeparator . 'whoisTarget=' . urlencode($otherUser); ! $tmpStr = '<a href="' . $htmlLink . '" target="_blank" onclick="window.parent.pmcRunCmd(\'WHOIS\', \''. pmcSlashSingleQuotes(pmcSpecialChars($otherUser, $latin1)) . '\'); return false" class="user">' . '<img src="images/gender_' . $gender . '.gif" width="14" height="14" border="0" alt="' . L_PROFILE . '" />' . '</a> '; + } else + { $tmpStr = '<img src="images/gender_none.gif" width="14" height="14" border="0" alt="' . L_NO_PROFILE . '" /> '; + } $tmpStr .= '<a href="javascript:window.parent.pmcUserClick(\'' . pmcSlashSingleQuotes(pmcSpecialChars($otherUser, $latin1)) . '\', false)" class="user">' . pmcFormatUsername($otherUser, $latin1, $status) |