Jump to content
php.lv forumi

logina problēma


fnk

Recommended Posts

Man ir neliela problēma ar login skriptu! Man vajag sataisīt lai kad ielogojos profilā pazūd login rāmītis un sākumlapā rādās lietotāja cp!

 

mans login skripts!

 

<?php
mysql_connect("foumzzzzz", "forumzzzz", "forumzzzz");
mysql_select_db("forumzzz");
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><b>Sveiks ".$udata->members_display_name."</b></center><br>
<a href= 'f/index.php?act=UserCP&CODE=00'>Labot Profilu</a><br>
<a href= 'f/index.php?act=Members'>Lietotāji</a><br>
<a href= 'f/index.php?act=Search&f=0'>Meklēt forumā</a><br>
<a href= '/f/index.php?act=Login&CODE=03&k=4c92e878c20400996e743ad864f16e04'>[IZIET]</a>";
}else{
echo "";

}
}else{
echo " ";
}
?>
<br>
<br>
<form action="http://gttex.woano.lv/f/index.php?act=Login&CODE=01&CookieDate=1" method="post">
<div align="center">
 <p>
<input type="text" class="forminput" size="12" name="UserName" onfocus="this.value=''" value='Username' />
<p><input type='password' class='forminput' size='12' name='PassWord' onfocus="this.value=''" value='Password' /></p>
<input type='submit' class='forminput' value='Log In' />
</p>
 </div>
</form>

 

 

Vaig nodabūt login rāmīti nost kad ielogojas !

bmygy1mcskw7tbp5rh9.png

 

Ja kāds var palīdzēt izmaina kōdā ko tur vaig mainīt !

Un ja var tad noņemt bugus lai var normāli iziet no profila..

Edited by fnk
Link to comment
Share on other sites

<?php
mysql_connect("foumzzzzz", "forumzzzz", "forumzzzz");
mysql_select_db("forumzzz");
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><b>Sveiks ".$udata->members_display_name."</b></center><br>
<a href= 'f/index.php?act=UserCP&CODE=00'>Labot Profilu</a><br>
<a href= 'f/index.php?act=Members'>Lietotāji</a><br>
<a href= 'f/index.php?act=Search&f=0'>Meklēt forumā</a><br>
<a href= '/f/index.php?act=Login&CODE=03&k=4c92e878c20400996e743ad864f16e04'>[IZIET]</a>";
}else{
?>

<br>
<br>
<form action="http://gttex.woano.lv/f/index.php?act=Login&CODE=01&CookieDate=1" method="post">
<div align="center">
 <p>
<input type="text" class="forminput" size="12" name="UserName" onfocus="this.value=''" value='Username' />
<p><input type='password' class='forminput' size='12' name='PassWord' onfocus="this.value=''" value='Password' /></p>
<input type='submit' class='forminput' value='Log In' />
</p>
 </div>
</form>
<?
}
?>

 

vajag iet... ;)

Link to comment
Share on other sites

Nevarētu.

Pacenties pats izprast. Vai arī nenodarbojies ar lietām, kuras neproti.

 

P.S. Ja es redzētu ka tu pūlies un tiešām nesanāktu, tad es labprāt palīdzētu. Bet te jau tu esi par slinku, lai pats kaut ko censtos panākt.

Edited by cilveks
Link to comment
Share on other sites

jau 2 dienas mēģinu to izdarīt , man liekas ka pie

<a href= '/f/index.php?act=Login&CODE=03&k=4c92e878c20400996e743ad864f16e04'>[IZIET]</a>";
}else{
?>

jānomaina uz

<a href= '/f/index.php?act=Login&CODE=03&k=4c92e878c20400996e743ad864f16e04'>[IZIET]</a>";
}else{
echo " ";
}
?>

 

psc , bet vienalga nesanāk , iespējams tas arī varētu būt pie vainas , bet nezinu kā lai to tieši izlabo.. nu varētu kāds palīdzēt?

Edited by fnk
Link to comment
Share on other sites

<?php
mysql_connect("foumzzzzz", "forumzzzz", "forumzzzz");
mysql_select_db("forumzzz");
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><b>Sveiks ".$udata->members_display_name."</b></center><br>
<a href= 'f/index.php?act=UserCP&CODE=00'>Labot Profilu</a><br>
<a href= 'f/index.php?act=Members'>Lietotāji</a><br>
<a href= 'f/index.php?act=Search&f=0'>Meklēt forumā</a><br>
<a href= '/f/index.php?act=Login&CODE=03&k=4c92e878c20400996e743ad864f16e04'>[IZIET]</a>";
}else{
die("Error: Hacking attempt! :D ");

}
}else{
?>

<br>
<br>
<form action="http://gttex.woano.lv/f/index.php?act=Login&CODE=01&CookieDate=1" method="post">
<div align="center">
 <p>
<input type="text" class="forminput" size="12" name="UserName" onfocus="this.value=''" value='Username' />
<p><input type='password' class='forminput' size='12' name='PassWord' onfocus="this.value=''" value='Password' /></p>
<input type='submit' class='forminput' value='Log In' />
</p>
 </div>
</form>
<?
}
?>

 

pats parbaudiju , sim ir jāstrādā...

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...