Jump to content
php.lv forumi

Linku parnes uz citu


GeRik

Recommended Posts

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>

";
}
?>

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...