GeRik Posted May 27, 2009 Report Share Posted May 27, 2009 Man majaslapa ir jaieiet caur forumu bet kad vinsh ielagojas vinsh aizmet uz forumu bet es gribu lai paliek web lapa kads var to izlabot ? <?php mysql_connect("localhost", "root", "*****"); mysql_select_db("forum"); if(isset($_COOKIE['member_id'])){ $get=mysql_query("SELECT * FROM `ibf_members` WHERE id='".intval($_COOKIE['member_id'])."'") or die(mysql_error()); $udata=mysql_fetch_object($get); if($udata->member_login_key==$_COOKIE['pass_hash']) { echo " <center>Čau, <b>".$udata->members_display_name."</b></center><br> <a href= 'http://sixsixone.oo.lv/'>Pievienot reklamu</a><br> <a href= '/forum/index.php?act=Msg&CODE=01'>Vēstules</a><br> <a href= '/forum/index.php?act=UserCP&CODE=00'>Labot Profilu</a><br> <a href= '/forum/index.php?act=Members'>Lietotāji</a><br> <a href= '/forum/index.php?act=Search&f=0'>Meklēt forumā</a><br><br> <a href= '/forum/index.php?act=Login&CODE=03'>[IZIET]</a>"; }else{ echo " <form action='http://sixsixone.oo.lv/forum/index.php?act=Login&CODE=01' method='post' name='theform'> <div align='left'><font size='1' face='Arial, Helvetica, sans-serif'>Niks<br> <input style='width: 124px;' name='UserName' class='textbox' type='text'> <br> Parole<br></font> <input style='width: 124px;' name='PassWord' class='textbox' type='password'> <br> <input name='submit' type='submit' class='button' value='Ielogoties'> </div> </form> "; } }else{ echo " <form action='http://sixsixone.oo.lv/forum/index.php?act=Login&CODE=01' method='post' name='theform'> <div align='left'><font size='1' face='Arial, Helvetica, sans-serif'>Niks<br> <input style='width: 124px;' name='UserName' class='textbox' type='text'> <br> Parole<br></font> <input style='width: 124px;' name='PassWord' class='textbox' type='password'> <br> <input name='submit' type='submit' class='button' value='Ielogoties'> </div> </form> "; } ?> Quote Link to comment Share on other sites More sharing options...
marcis Posted May 27, 2009 Report Share Posted May 27, 2009 IPBWI -> class member -> method login Quote Link to comment Share on other sites More sharing options...
GeRik Posted May 27, 2009 Author Report Share Posted May 27, 2009 chota neatradu tur to ko mekleju Quote Link to comment Share on other sites More sharing options...
marcis Posted May 27, 2009 Report Share Posted May 27, 2009 Hmm... Man pat grūti iedomāties, kā tu varēji atrast šajā forumā "New topic" pogu, bet neatrast, to, kas uzreiz izlec uz ekrāna :) Quote Link to comment Share on other sites More sharing options...
GeRik Posted May 27, 2009 Author Report Share Posted May 27, 2009 Kur tur visp kkas pa Parneshanu kad login taisa ? 4ota neredzu Quote Link to comment Share on other sites More sharing options...
marcis Posted May 27, 2009 Report Share Posted May 27, 2009 omg $ipbwi->member->login('lietotājvārds','parole'); Un kas tad tas? Minēšu, tu tāpat neko nesaprati, vai ne? P.S. Interesanta dokumentācija, ja nekas nav mainījies, tad true/false = boolean, 0-9 = integer. Quote Link to comment Share on other sites More sharing options...
GeRik Posted May 27, 2009 Author Report Share Posted May 27, 2009 man liekas ka nabarot tu nesaprati ko es ar savu topiku domaju Man ir Logins Majaslapa vari pats paskatiities http://sixsixone.oo.lv bet kad ieiet sava akonta no majaslapas iemet uzreiz foruma man vaig lai nemet foruma Quote Link to comment Share on other sites More sharing options...
marcis Posted May 28, 2009 Report Share Posted May 28, 2009 Es visu sapratu ļoti labi, bet tu gan nē :) Ielogošonās (sesijas uzsākšana, cepuma uzlikšana) tev ir jāuztaisa pašam, nevis jāsubmitē forma uz forumu. Es tev centos parādīt elementārāko iespējamo variantu, tu nesaprati. Tagad saprati? Quote Link to comment Share on other sites More sharing options...
GeRik Posted May 28, 2009 Author Report Share Posted May 28, 2009 (edited) Sapratu ko domaji nu nemaku uzlikt :-/ Edited May 28, 2009 by GeRik 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.