Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 03:26

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

Advertisement



Proplem Login Homepage

Discussion on Proplem Login Homepage 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
Proplem Login Homepage

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="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  
Reply


Similar Threads Similar Threads
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
big proplem in online sea emu admin cant login ?
07/28/2010 - SRO Private Server - 9 Replies
hi guys i using sea emulator to creater server its online not hamachi all can login i test it but when i login in hoster pc ( my pc :D ) i cant login i try real ip i cant login my local ip like 10.0.0.30 login but whean i tybe acc and pass say faild connect c9 i try 127.0.0.1 and again say faild connect c9 but all friend can login but in hoster pc faild c9
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 03:26.


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.