access connections 用PHP和ACCESS写聊天室十

WBOY
Libérer: 2016-07-29 08:34:29
original
1001 Les gens l'ont consulté

func.php3
代码如下:
function suiji($max)
{
        srand((double)microtime()*1000000);
        $x=rand();
        $y=getrandmax();
        $r=$x/$y*($max-1);
        $r=round($r++);
        return $r;
}
function StrOccurs($sStr, $sFind){
        $sTemp=$sStr;
        $iLen=strlen($sFind);
        $iCount=0;
        while (true){
                if (strstr($sTemp, $sFind))
                        break;
                else
                        $sTemp = instr($sTemp,strpos($sTemp,$sFind)+$iLen);
                        $iCount++;
                }
        }
        return $iCount;
}
function StrDupl($sStr, $iCnt){
        $ret="";
        for($i=1;$i                $ret.=$sStr;
        return $ret;
}
function DelQuot($sStr){
        $s=str_replace(chr(124),"¦",$sStr);
        $s=str_replace(chr(39),"´",$s);
        $s=str_replace(chr(34),""",$s);
        return s;
}
function DelTag($sStr){
        $bNeed="False";
        $sOther=strtoupper($sStr);
        if ($bNeed!="True" || !strstr($sOther,"

        if ($bNeed!="True" || !strstr($sOther,"
")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"<script> if ($bNeed!="True" || !strstr($sOther,"</script>")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"        if ($bNeed!="True" || !strstr($sOther,"")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"        if ($bNeed!="True" || !strstr($sOther,"")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"        if ($bNeed!="True" || !strstr($sOther,"")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"
        if ($bNeed!="True" || !strstr($sOther,"
")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"        if ($bNeed!="True" || !strstr($sOther,"")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"        if ($bNeed!="True" || !strstr($sOther,"")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"        if ($bNeed!="True" || !strstr($sOther,"")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"        if ($bNeed!="True" || !strstr($sOther,"")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"        if ($bNeed!="True" || !strstr($sOther,"")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"        if ($bNeed!="True" || !strstr($sOther,"")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"")) $bNeed="True";
        if ($bNeed!="True" || !strstr($sOther,"        if ($bNeed!="True" || !strstr($sOther,"FONT-SIZE:")) $bNeed="True";
        if ($bNeed=="True")
                return str_replace(">",">",str_replace("        else
                return $sStr;
}
function AddLost($sStr){
        $ret=$sStr;
        $ret.=StrDupl(">", (StrOccurs(strtoupper($ret), "")));
        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "")));
        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "")));
        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "")));
        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "")));
        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "")));
        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "")));
        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "")));
        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "")));
        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "")));
        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "")));
        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), ""))); <br>        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "<samp stroccurs>"))); <br>        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "<kbd stroccurs>"))); <br>        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "<var stroccurs>"))); <br>        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "<dfn stroccurs>"))); <br>        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "<big stroccurs>"))); <br>        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "<sup stroccurs>"))); <br>        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "<sub stroccurs>"))); <br>        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "<h1 stroccurs>"))); <br>        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "<h2 stroccurs>"))); <br>        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "<h3 stroccurs>"))); <br>        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "<h4 stroccurs>"))); <br>        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "<h5 stroccurs>"))); <br>        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "<h6 stroccurs>"))); <br>        $ret.=StrDupl("", (StrOccurs(strtoupper($ret), "<h7 stroccurs>"))); <br>        return $ret; <br>} <br>?> <br>【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】    <br> <p> 以上就介绍了access connections 用PHP和ACCESS写聊天室十,包括了access connections方面的内容,希望对PHP教程有兴趣的朋友有所帮助。</p> <p> </p> </h7> </h6> </h5> </h4> </h3> </h2> </h1></sub></sup></big></dfn></var></kbd></samp>
Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!