INDEX.PHP
代码如下!
function delquot($sStr){
$s=str_replace(chr(124),"",$sStr);
$s=str_replace(chr(39),"",$s);
$s=str_replace(chr(34),"",$s);
return $s;
}
if ($cmdYes=="进 入"){
$sUserName=htmlspecialchars(trim(delquot($sUserName)));
if ($sUserName=="superldz" && $sPass="superldz"){
$sUserID=1;
include("chtmain.php3");
exit();
}
else{
$C
if ($ConnID){
$result=@odbc_exec($ConnID,"select UserID,UserName,PassWord,RoomID,Sex FROM User WHERE UserName='".$sUserName."'");
if (@odbc_fetch_into($result,0,&$rArr)){
$sUserID=$rArr[0];
if ($rArr[2]==$sPass){
if ($rArr[3]==0){
@odbc_exec($ConnID,"update User SET RoomID=1,LstDate='".date("Y.m.d")."',ToID=0,T >");
springboardaccess 用PHP和ACCESS写聊天室一
免责声明:本站内容仅用于学习参考,信息和图片素材来源于互联网,如内容侵权与违规,请联系我们进行删除,我们将在三个工作日内处理。联系邮箱:chuangshanghai#qq.com(把#换成@)