ashais13 Posted January 24, 2009 Report Share Posted January 24, 2009 Kāds nevarētu padotmājienu kā varētu dabūt gatavu apmēram kautko šādu?.: Tas login panelis ir apvienots ar ipb forumu.. Link to comment Share on other sites More sharing options...
kechums Posted January 24, 2009 Report Share Posted January 24, 2009 Ar $_COOKIE un vienu kveriju. Link to comment Share on other sites More sharing options...
ashais13 Posted January 24, 2009 Author Report Share Posted January 24, 2009 Tell me more.. ;) Link to comment Share on other sites More sharing options...
Val Posted January 24, 2009 Report Share Posted January 24, 2009 skaties pats. sharashka.lv. Yo Tiger, firefox tabam aukšā var izlasīt adresi... kautkas tāds? http://www.tutorialfx.com/forums/index.php?showtopic=2006 Link to comment Share on other sites More sharing options...
ashais13 Posted January 25, 2009 Author Report Share Posted January 25, 2009 Nu jaa taa buutu taka viena dalja bet kaa lai panak to kad esi ielogojies lai vairs nerada to login paneli.? Link to comment Share on other sites More sharing options...
kechums Posted January 25, 2009 Report Share Posted January 25, 2009 Kā jau teicu, ar $_COOKIE no IPB dabūn cepumu member_id un uzraksti kveriju. Ja member_id = 0, tad parāda login formu, ja cits, tad login forma pazūd, bet parādās logged in saturs. Link to comment Share on other sites More sharing options...
ashais13 Posted January 25, 2009 Author Report Share Posted January 25, 2009 (edited) Kā jau teicu, ar $_COOKIE no IPB dabūn cepumu member_id un uzraksti kveriju. Ja member_id = 0, tad parāda login formu, ja cits, tad login forma pazūd, bet parādās logged in saturs. To kaut kā ar if else dabū gatavu vai kā?? Edited January 25, 2009 by ashais13 Link to comment Share on other sites More sharing options...
kechums Posted January 25, 2009 Report Share Posted January 25, 2009 #7 Tieši tā. Link to comment Share on other sites More sharing options...
ashais13 Posted January 29, 2009 Author Report Share Posted January 29, 2009 ghmm galiigi nesanak.. Link to comment Share on other sites More sharing options...
duplets Posted January 30, 2009 Report Share Posted January 30, 2009 Nesen te vienam taisīju galveno lapu ipb forumam, tāka varu padalīties ar jūzeru autorizācijas kodu: <?php 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']) { //izvadam kko shaadu: echo "Cau ".$udata->members_display_name.""; }else{ echo "tu neesi autorizeets"; //izvadam logina paneli } }else{ echo "tu neesi autorizeets1"; //izvadam logina paneli } ?> Link to comment Share on other sites More sharing options...
waplet Posted January 30, 2009 Report Share Posted January 30, 2009 (edited) <form action='http://tava_ip/index.php?act=Login&CODE=01' method='post' name='theform'> <div align="left"><font size="1" face="Arial, Helvetica, sans-serif">Username <input type='text' class='text' name='username'> <br> Password</font> <input type='password' class='text' name='parole'> <br> <input name="submit" type='submit' class='submit' value='Login'> </div> </form> Rekur login panelītis! Edited January 30, 2009 by waplet Link to comment Share on other sites More sharing options...
airbus Posted January 30, 2009 Report Share Posted January 30, 2009 <?php 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']) { //izvadam kko shaadu: echo "Cau ".$udata->members_display_name.""; }else{ echo "tu neesi autorizeets"; //izvadam logina paneli } }else{ echo "tu neesi autorizeets1"; //izvadam logina paneli <form action='http://tava_ip/index.php?act=Login&CODE=01' method='post' name='theform'> <div align="left"><font size="1" face="Arial, Helvetica, sans-serif">Username <input type='text' class='text' name='username'> <br> Password</font> <input type='password' class='text' name='parole'> <br> <input name="submit" type='submit' class='submit' value='Login'> </div> </form> } ?> es ieliku shadi un man rada balto lapu Link to comment Share on other sites More sharing options...
kechums Posted January 30, 2009 Report Share Posted January 30, 2009 mysql_connect pieliec. Link to comment Share on other sites More sharing options...
airbus Posted January 30, 2009 Report Share Posted January 30, 2009 kur ? Link to comment Share on other sites More sharing options...
Aleksejs Posted January 30, 2009 Report Share Posted January 30, 2009 Vēlams pirms mysql_query()... Un vēlams izlasīt, ko par atkļūdošanu rakstīju šeit: http://php.lv/f/index.php?showtopic=12593&...st&p=100205 Link to comment Share on other sites More sharing options...
Recommended Posts