DJEdja Posted February 16, 2010 Report Share Posted February 16, 2010 Sveiki man ir tāda problēma ka mēģīnu apvienot HTML lapu ar IPB loginu itkā visu saliku un lieta tāda ka caur Lapu loginojoties viņš visu izdara iemet IPB bet kad piespiežu pogu lai ieiet Lapā viņš iemet tā itkā es nebūtu ielogonojies! Bet ja es uztaisu Loginu caur IPB un tad ieeju Lapā tad viss iet normāli! Izmantoju lūk šo scriptu : <?php mysql_connect("localhost", "root", "******"); mysql_select_db("forums"); 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>Sveiks ".$udata->members_display_name."</center><br> <a href= 'f/index.php?act=UserCP&CODE=00'>Edit Profile</a><br> <a href= 'f/index.php?act=Members'>Users</a><br> <a href= 'f/index.php?act=Search&f=0'>Search at forum</a><br><br> <a href= 'f/index.php?act=Login&CODE=03&k=5ed3ccfb59c53e0aeba3d22aa0f4bdd5'>Exit</a>"; }else{ echo " <form action='http://127.0.0.1/f/index.php?act=Login&CODE=01' method='post' name='theform'> <div align='left'><font size='1' face='Arial, Helvetica, sans-serif'>Username <input style='width: 124px;' name='UserName' type='text'> <br> Password</font> <input style='width: 124px;' name='PassWord' type='password'> <br> <input name='submit' type='submit' class='submit' value='Login'> </div> </form> "; } }else{ echo " <form action='http://127.0.0.1/f/index.php?act=Login&CODE=01' method='post' name='theform'> <div align='left'><font size='1' face='Arial, Helvetica, sans-serif'>Username <input style='width: 124px;' name='UserName' type='text'> <br> Password</font> <input style='width: 124px;' name='PassWord' type='password'> <br> <input name='submit' type='submit' class='submit' value='Login'> </div> </form> "; } ?> Quote Link to comment Share on other sites More sharing options...
Pentiums Posted February 16, 2010 Report Share Posted February 16, 2010 Protams ka nestrādās kad neuzliksim cepumus un sesiju mainīgos :) Quote Link to comment Share on other sites More sharing options...
2easy Posted February 16, 2010 Report Share Posted February 16, 2010 name='UserName' name='PassWord' r u sure, ka tie lauki nav lowercase? Quote Link to comment Share on other sites More sharing options...
anonīms Posted February 16, 2010 Report Share Posted February 16, 2010 name's ir pareizi. Pamēģini action laukā norādīt savu IP nevis localhost'a ip. Quote Link to comment Share on other sites More sharing options...
DJEdja Posted February 16, 2010 Author Report Share Posted February 16, 2010 (edited) Nu tur stāv mans reālais IP es vnk te ieliekot ierakstīju tā! Em Pentium moš tu varētu paskaidrot par to kur un kas ir jādara ar tiem cepumiem? Edited February 16, 2010 by DJEdja Quote Link to comment Share on other sites More sharing options...
DJEdja Posted February 16, 2010 Author Report Share Posted February 16, 2010 a nē viss tiku galā! ;) em man tgd cits jautājums : kā varēja inclūdot failu iekšā html lapā ?? Nu piemēram to pašu login.php failu! Liekas ka kautkas bija <?include ("login.php") kautkā tā bet nesanāk un īšti neatceros vai tā bija pareizi! :) Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted February 16, 2010 Report Share Posted February 16, 2010 http://lv.php.net/manual/en/function.include.php ;) Quote Link to comment Share on other sites More sharing options...
DJEdja Posted February 16, 2010 Author Report Share Posted February 16, 2010 Viss paldies! :) Quote Link to comment Share on other sites More sharing options...
daGrevis Posted February 16, 2010 Report Share Posted February 16, 2010 a nē viss tiku galā! ;) em man tgd cits jautājums : kā varēja inclūdot failu iekšā html lapā ?? Nu piemēram to pašu login.php failu! Liekas ka kautkas bija <?include ("login.php") kautkā tā bet nesanāk un īšti neatceros vai tā bija pareizi! :) Em, HTML failā nevar include'ot neko, jo tas ir HTML fails. <?php include 'fails.html'; ...ir PHP skripts, ko HTML nevar izpildīt... :) Quote Link to comment Share on other sites More sharing options...
DJEdja Posted February 16, 2010 Author Report Share Posted February 16, 2010 nu nezinu īsti kā pareizi tas saucas nu dabūju pie dzīvības gatavu to ko vajag ar šādu komandu : <? require_once("fails.php"); ?> 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.