ritogy Posted March 15, 2011 Report Share Posted March 15, 2011 (edited) Es izveidojis savu tādu kā cms vai portfailo. Šajā lapa esu izlicis visas savas zināšanas un protams regulari to uzlabošu. Pagaidām lapā ir 1.Reģistrācija/login sistēma 2.Jaunumu lapa, kur es pazinoju par uzlabojumiem. 3.Lietotāju lapa 4.Forums/Rakstu pievienosana, labošana, dzēšana, piespraušana, aizvēršana Vienīgais ko es neesu kodējis tie ir visi javascript, ajax. Tas pagaidam arī viss, dodu jums šo, lai jūs izvērtētu un ieteiktu ko pielikt, ko atņemt. Majas lapa: http://ritogy.unri.lv/ Liels paldies koderiem no php.lv, bez jūsu palidzības tik daudz nevarētu sataisīt. Edited March 15, 2011 by ritogy Quote Link to comment Share on other sites More sharing options...
daGrevis Posted March 15, 2011 Report Share Posted March 15, 2011 Pirmais iespaids ir labs. Kaut kas nav ar CSS, reģistrācija forma ir nobīdījusies tā, ka nevar piereģistrēties. Quote Link to comment Share on other sites More sharing options...
mypoint Posted March 15, 2011 Report Share Posted March 15, 2011 (edited) Piekrītu @daGrevis par pirmo iespaidu. Turpini veidot ;) EDIT: Mēģināju piereģistrēties, bet man neatver reģistrācijas lapu. :( Edited March 15, 2011 by mypoint Quote Link to comment Share on other sites More sharing options...
ritogy Posted March 15, 2011 Author Report Share Posted March 15, 2011 (edited) Esu pamanīji, ka uz operas nestradā submit pogas, nezinu, kā sataisīt. Ja kads zina būšu ļoti pateicīgs. Zinu ka 100% darboja no Google Chrome Tagad var reģistrēties no firefox Edited March 15, 2011 by ritogy Quote Link to comment Share on other sites More sharing options...
daGrevis Posted March 16, 2011 Report Share Posted March 16, 2011 Nu ir jātaisa pēc standartiem, tad arī viss visur turēsies kopā kā vajag. ) Ja vēl izmanto kādu reset.css, tad vispār ideāli! <input type="submit" /> http://htmldog.com/reference/htmltags/input/ Quote Link to comment Share on other sites More sharing options...
briedis Posted March 16, 2011 Report Share Posted March 16, 2011 Nevalidējas :( http://validator.w3.org/check?uri=http%3A%2F%2Fritogy.unri.lv%2F&charset=%28detect+automatically%29&doctype=Inline&group=0 Quote Link to comment Share on other sites More sharing options...
codez Posted March 16, 2011 Report Share Posted March 16, 2011 1. XSS atradu 2 minūtēs. Quote Link to comment Share on other sites More sharing options...
ritogy Posted March 16, 2011 Author Report Share Posted March 16, 2011 1. XSS atradu 2 minūtēs. Un kā varētu, to apiet? Quote Link to comment Share on other sites More sharing options...
codez Posted March 16, 2011 Report Share Posted March 16, 2011 (edited) neļaut href-ā likt javascript: vai pārbaudīt, lai saite hrefā atbilstu paternam (http|https)://* Edited March 16, 2011 by codez Quote Link to comment Share on other sites More sharing options...
ritogy Posted March 16, 2011 Author Report Share Posted March 16, 2011 Nekadīgi nesanak sataisīt, meģinu ar preg_match nekas nesanak. Lūk kods: function bbcode($value) { $bb_replace = array( '/(\[url=)(.+)(\])(.+)(\[\/url\])/', ); $bb_replacements = array( '<a href="\\2">\\4</a>', ); $value = preg_replace($bb_replace, $bb_replacements, $value); if(preg_match('/^url/',$value) && preg_match('/^javascript/',$value)){ return false; }else{ return $value; } } Quote Link to comment Share on other sites More sharing options...
briedis Posted March 16, 2011 Report Share Posted March 16, 2011 Pamēģini htmlPurifieri - http://htmlpurifier.org/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.