lizard Posted December 25, 2006 Report Share Posted December 25, 2006 Priecigus svetkus :) Shetel ir tada uztaisiju lapeli uzrakstiju visu daudzmaz sataisiju tikai nezinu vot kada veida un ar kadam komandam atirit komentarus no visadiem exploitiem un visadiem mesliem piemeram lai html neizvada! Link to comment Share on other sites More sharing options...
andrisp Posted December 25, 2006 Report Share Posted December 25, 2006 (edited) 1) lūdzu izmanto komatus daudzmaz. 2) Ievadot - php.net/mysqlrealescapestring 3) Izvadot - php.net/htmlspecialchars 4) Vari arī apsvērt php.net/striptags PS. Priecīgus svētkus tev arī ;) Edited December 25, 2006 by andrisp Link to comment Share on other sites More sharing options...
lizard Posted December 25, 2006 Author Report Share Posted December 25, 2006 (edited) Paldies :) a ka panakt kad piemeram tekstu :smile: aiveito ar bilditi. Tip samilijus lai salikt varetu? Edited December 25, 2006 by lizard Link to comment Share on other sites More sharing options...
bubu Posted December 25, 2006 Report Share Posted December 25, 2006 Lūdzu iemācies lietot search: http://php.lv/f/index.php?showtopic=2795&hl=smiley Link to comment Share on other sites More sharing options...
hmnc Posted December 25, 2006 Report Share Posted December 25, 2006 str_replace() Link to comment Share on other sites More sharing options...
ok1 Posted December 25, 2006 Report Share Posted December 25, 2006 smaili: $tavs_txt = ":smile:"; $new_txt = str_replace(":smile:","<img src=smile.gif>",$tavs_txt); Kas attiecas uz hakošanu, var izmantot manu funkciju: function safe($text){ //dodam vārdu funkcijai un mainīgajiem $string = htmlspecialchars(stripslashes(addslashes($text))); //noņemam hakošanu return $string; //atgriežam rezultātu, kurā hakošana vairs prakstiski nav iespējama } //aizveram funkciju Kuru var izsaukt: $comment = safe($_POST['comment']); Link to comment Share on other sites More sharing options...
andrisp Posted December 25, 2006 Report Share Posted December 25, 2006 stripslashes(addslashes($text)) I don't get it... Link to comment Share on other sites More sharing options...
bubu Posted December 25, 2006 Report Share Posted December 25, 2006 $a = ($a + 1) - 1; Link to comment Share on other sites More sharing options...
Recommended Posts