homers Posted October 16, 2009 Report Share Posted October 16, 2009 Tatad gribu tos sliktos cilvēkus mājaslapa block. Kods <?php $ip = "IP adrese"; $ip2 = $_SERVER['REMOTE_ADDR']; if($ip == $ip2){ echo "Banned"; {else{ ?> //majaslapas kods <?php } ?> Bet rada erroru uz 6rindas par T_ELSE. Kas tur ir nepareizs? Quote Link to comment Share on other sites More sharing options...
xmas12 Posted October 16, 2009 Report Share Posted October 16, 2009 (edited) Es kodāsasaktiju mazliet kļūdu , bet nezinu vaitas ir tas, pameigini šādi: <?php $ip = "IP adrese"; $ip2 = $_SERVER['REMOTE_ADDR']; if($ip == $ip2){ echo "Banned"; }else{ ?> //majaslapas kods <?php } ?> Es domāju tam else eroram vajadzeetu pazust, bet nu meigini! Edited October 16, 2009 by xmas12 Quote Link to comment Share on other sites More sharing options...
homers Posted October 16, 2009 Author Report Share Posted October 16, 2009 (edited) Uj, tiešam tikko pats pamanīju :D Edited October 16, 2009 by homers Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted October 16, 2009 Report Share Posted October 16, 2009 homer, vienu šādu { figūriekavu uz vienu šādu figūriekavu } Quote Link to comment Share on other sites More sharing options...
xmas12 Posted October 16, 2009 Report Share Posted October 16, 2009 Uj, tiešam tikko pats pamanīju :D Nu tagad aizgāja? 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.