Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 00:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



proplem login homepage Help!

Discussion on proplem login homepage Help! within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2012
Posts: 97
Received Thanks: 7
Unhappy proplem login homepage Help!

Hi,
Please help i cant login to my homepage
userpanel.php
PHP Code:
<div id="page_effect" style="display:none;">


<SCRIPT TYPE="text/javascript">


<!--


function popup(mylink, windowname)


{


if (! window.focus)return true;


var href;


if (typeof(mylink) == 'string')


   href=mylink;


else


   href=mylink.href;


window.open(href, windowname, 'width=400,height=200,scrollbars=yes');


return false;


}


//-->


</SCRIPT>


 <div class="postui post-title">





                    <h2><a href="#"><img src="http://www.elitepvpers.com/forum/images/news/01.jpg" alt="" /> <span>Panou Utilizatorului</span></a></h2>


                    <span class="date">Metin2DD.in</span>





                    </div>





                    <div class="postui post-con">


                    <?PHP


if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {


  if(
$_POST['emailreset']=="Reset") {


      
$newPass rand(000000,999999);


      


        
$setPass "UPDATE player.safebox SET password=".$newPass." WHERE account_id='".$_SESSION['user_id']."' LIMIT 1";


        
$qryPass mysql_query($setPass);


        





   


          echo
'<p class="meldung"><meta http-equiv="refresh" content="2;url=index.php?s=userpanel">Your password has been set successfully. You will receive an email with your new password.</p>';


          


          
$absender $serverSettings['titel']." Noua parola la depozit";


          
$email $serverSettings['pass_mail'];


          
$empfaenger $_SESSION['user_email'];


          
$mail_body "Salut,


          Parola de la depozitul tau a fost resetata.


          


          Noua parola: "
.$newPass."


          


           Te asteptam la joc :)!


          


          Cu drag "
.$serverSettings['titel']." Team


          


          


          Acest e-mail a fost generat!Nu trimite reply la acest e-mail!"
;


          
$titel "Noua parola la depozit".$serverSettings['titel'];


          


          
$header .= "X-Priority: 3\n";


          
$header .= "X-Mailer: mtVision Homepage Mailer\n";


          
$header .= "MIME-Version: 1.0\n";


          
$header .= "From: ".$absender." <".$serverSettings['pass_mail'].">\n";


          
$header .= "Reply-To: ".$serverSettings['pass_mail']."\n";


          
//$header .= "Content-Transfer-Encoding: 8bit\n"; 


          
$header .= "Content-Type: text/plain; charset=iso-8859-1\n";


          


            if(!
mail($empfaenger$titel$mail_body$header)) {


            echo
'<p class="meldung">Eroare nu am putut trimite emailul!</p>';


          }


          }


          


            }





?>


<?PHP





  
if(isset($_GET['do']) && $_GET['do']=="activation" && isset($_GET['hash']) && !empty($_GET['hash'])) {


    if(
strlen($_GET['hash'])==32 && $_GET['hash']!=&& checkAnum($_GET['hash'])) {


      
$cmdHash "SELECT id,web_aktiviert FROM account.account WHERE web_aktiviert='".$_GET['hash']."' AND web_aktiviert!='1' LIMIT 1;";


      
$qryHash mysql_query($cmdHash,$sqlServ);


      


      if(
mysql_num_rows($qryHash)) {


      


        
$getData mysql_fetch_object($qryHash);


        
$userUpdate "UPDATE account.account SET web_aktiviert='1',status='OK' WHERE id='".$getData->id."' LIMIT 1;";


        
$updateQry mysql_query($userUpdate,$sqlServ);


        


        if(
$updateQry) {


          echo
'<p class="meldung">Your account has been activated successfully. You can log in now.</p>';


          echo
'<meta http-equiv="refresh" content="5; URL=index.php?s=userpanel"> ';


        }


        else {


          echo
'<p class="meldung">Query failed. Please contact an admin!</p>';


        }


        


      }


      else {


        echo
'<p class="meldung">Can not find a matching entry. Activation failed.</p>';


      }


      


    }


    else {


      echo
'<p class="meldung">No valid hash!</p>';


    }


  }





  if(!empty(
$_SESSION['user_id'])) 


  {


   


    echo
'<div class="splitLeft">';


    echo
'<ul class="menue">';


    


    echo
'</div>';


    echo
'';


   


    
$cmdStats "SELECT SUM( player.playtime ) AS ges_spielzeit, COUNT( * ) AS ges_chars, player_index.empire


    FROM player.player


    INNER JOIN player.player_index ON player_index.id = player.account_id


    WHERE player.account_id = '"
.$_SESSION['user_id']."'


    LIMIT 1"
;


    


    
$qryStats mysql_query($cmdStats,$sqlServ);


    
$getStats mysql_fetch_object($qryStats);


     








    if(!empty(
$getStats->empire)) {


      
$reich '<img src="img/kingdom/'.$getStats->empire.'.png" title="Reich" alt="Reich"/>';


    }


    else {


      
$reich='Nu exista niciun caracter creat';


    }


    


    


    echo
'<table>





      <tr>


        <th class="topLine">Nume de utilizator:</th>


        <td class="tdunkel">'
.$_SESSION['user_name'].'</td>


      </tr>


      


          <tr>


        <th class="topLine">Regat:</th>


        <td class="thell">'
.$reich.'</td>


      </tr>





      <tr>


        <th class="topLine">Caractere:</th>


        <td class="tdunkel">'
.$getStats->ges_chars.'</td>


      </tr>


      <tr>


        <th class="topLine">Timp jucat:</th>


        <td class="thell">'
.$getStats->ges_spielzeit.' Minute</td>


      </tr>'
;


    
$sqlAcc "SELECT account.social_id AS loeschcode, name_checked AS warn,account.status AS status, safebox.password AS lagerpw


    FROM account.account 


    LEFT JOIN player.safebox 


    ON account.id=safebox.account_id 


    WHERE account.id='"
.$_SESSION['user_id']."'";





    
$qryAcc mysql_query($sqlAcc) or die(mysql_error());


    
$getAcc mysql_fetch_object($qryAcc);


    


    if(empty(
$getAcc->lagerpw)) $getAcc->lagerpw '000000';


      


      echo
'


        <tr>


        <th class="topLine">E-mail:</th>


        <td class="tdunkel">'
.$_SESSION['user_email'].'</td>


      </tr>


    


    <tr>


        <th class="topLine">Cod de stergere:</th>


        <td class="tdunkel">'
.$getAcc->loeschcode.'</td>


      </tr>


     


    


    <tr>


        <th class="topLine">Parola depozit:</th>


        <td class="tdunkel"><form action="index.php?s=userpanel" method="POST">


           <input type="submit" name="emailreset" value="Reset"/>


 </td>


      </tr>


       <tr>


        


        <th class="topLine">Status:</th>


        <td class="tdunkel">'
.$getAcc->status.'</td>


      </tr>


       <tr>


        <th class="topLine"><b><font color="red">Monezi Cont</font></b>: </th>


        <td class="tdunkel">'
.$_SESSION['coins'].' (<a href="index.php?s=donatii">doneaza pentru server</a>)</td>


      </tr>


    </table>'
;


    


    echo
'<div class="clear"></div>';


  }


  else


  {





  
?>








                    <form id="login" action="index.php?s=userpanel" method="POST">





                      <div>





                       





                   <input class="fui txt user" type="text" name="userid" maxlength="16" size="20"/><br />





                    <input class="fui txt pass" type="password" name="userpass" maxlength="16" size="20"/><br />





                        <input class="fui btn log" type="submit" name="submit" value="login"/>  





                        <input class="fui btn reg" ONCLICK="window.location.href='index.php?s=register'" type="button" value="Register" />


                        <center><a href="index.php?s=lostpw"><h4>Ai uitat parola?</h4></a></center></p>





                        <div class="clear"></div>





                      </div>





                    </form>








  <?PHP


  
}


 


  


  


         
?>                       


           </div> 





                    <div class="postui post-end"></div>


                    </div>
where should i change to work with my mysql??
thnx

up help please
SGA]E3DaM] is offline  
Old 10/03/2014, 23:03   #2
 
Coniesan's Avatar
 
elite*gold: 1000
Join Date: Mar 2009
Posts: 1,407
Received Thanks: 1,005
I think in u'r database tables are some attributes missing!
Try to add an error exec to your query's for a better error detection.
For example:
Code:
mysql_query($sql);
to
Code:
mysql_query($sql)or die(mysql_error());
U have this sometimes, but not everywhere!
Coniesan is offline  
Old 10/04/2014, 00:36   #3
 
elite*gold: 0
Join Date: Dec 2012
Posts: 97
Received Thanks: 7
I already have it $qryAcc = mysql_query($sqlAcc) or die(mysql_error());
SGA]E3DaM] is offline  
Reply


Similar Threads Similar Threads
Proplem Login Homepage
10/03/2014 - Metin2 Private Server - 0 Replies
Hi, Please help i cant login to my homepage userpanel.php <div id="page_effect" style="display:none;"> <SCRIPT TYPE="text/javascript"> <!--
help login to server proplem
08/06/2013 - Rappelz Private Server - 2 Replies
http://s18.postimg.org/fwwo64n4p/Untitled2.png when i press Ok the game just shut down my auth S db.auth.server:127.0.0.1 S db.auth.name:Auth S db.auth.account:sa S db.auth._password:
proplem all login
10/15/2011 - Rappelz Private Server - 2 Replies
Hi I have a problem and annoying Mgillh everything is fine in terms of the server, everything is completely I work when login to the admin .. everything is good but when enter the person before me a line and inform the problem ..( microsoft visual c++ error r6002 ) Please give me a solution or theory, which makes me play and I can call my friends because I can not
Homepage proplem
05/13/2010 - Metin2 Private Server - 1 Replies
Hallo wollte anstadt des weit verbreiteten h t t P /5.55.55.555/ <- z.B register zeugs mal meien homepage verwenden habe alles eingegebn: 5.59.27.210 root und das pw nach ca 1min warten steht dann auf iener weißes seite dieses: No suitable nodes are available to serve your request.
Login Proplem
04/08/2008 - WarRock - 5 Replies
Hi leute seid dem Update von heute (4.1.08)^^ kann ich nich mehr in warrock beide update dinger ok gebe ganz normal passwort ein klicke auf ok und weiter passiert nix? erst seit dem update so =( @underkeeper wenns so einfach wäre neuinstalation auch schon propiert aber das merkwürdige is wenn ich einen neuen acc machen komme ich mit dem rein? liegt es daran das ich vorher noch ne psg1 gekauft hab weil von nem kumpel von mir sein acc is geblieben er hatte keine lv 11 waffen die jett...



All times are GMT +2. The time now is 00:09.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.