Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 02:27

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

Advertisement



Php of change login dates !!!!

Discussion on Php of change login dates !!!! within the DarkOrbit forum part of the Browsergames category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2013
Posts: 31
Received Thanks: 1
Php of change login dates !!!!

Hey guys, I was watching the administrator of Blue Orbit Server not give the code from your site, so I decided to start doing things myself ...
Here I leave the data change form, which is still in development but if someone wants to do the original as DarkOrbit, then so be it ...
Quote:
<?php
//error("WAIT.");
$dbhost = 'localhost';
$dbname = 'darkorbit';
$dbuser = 'root';
$dbbg = '';
$username = isset($_POST['username']) ? $_POST['username'] : '';
$password = isset($_POST['password']) ? $_POST['password'] : '';
$newpassword = isset($_POST['newpassword']) ? $_POST['newpassword'] : '';
$confirmpassword = isset($_POST['confirmpassword']) ? $_POST['confirmpassword'] : '';
$newmail = isset($_POST['newmail']) ? $_POST['newmail'] : '';
mysql_connect($dbhost, $dbuser, $dbbg)or error("Could not connect: ".mysql_error());
mysql_select_db($dbname) or error(mysql_error());

if (!isset($_POST['submit'])) {
} else {
// Ufff aqui viene la parte confusa
$result = mysql_query("SELECT pwHash FROM users WHERE Name='$username' and pwHash = '".md5($password)."'")or die("Query failed: " . mysql_error());if(mysql_num_rows($result)){ if($newpassword==$confirmpassword){
$sql=mysql_query("UPDATE users SET pwHash='".md5($newpassword)."' where Name='$username'");
$sql=mysql_query("UPDATE users SET Email='$newmail' where Name='$username'");
if($sql)
{
echo "Password Cambiada";
}
else
{
echo "Error, contacta a Feer";
}
} else {
// Si la confirmacion y la otra no coinciden este error
echo "La password nueva no coincide con su confirmacion.";
}
} else {
echo "El usuario y la password actual no coinciden.";
}
}
?>
<div class="pageContent">
<div id="main">
<div class="container">
<h2>Cambiar Contraseña</h2>
</div>
<div class="container">
<?php
echo '<form action="" method="post">';
echo '<h2>Username: </h2><input type="text" name="username" size="50" maxlength="255"><br/>';
echo '<h2>Password: </h2><input type="password" name="password" size="50" maxlength="255"><br/>';
echo '<h2>Nueva Password: </h2><input type="password" name="newpassword" size="50" maxlength="255"><br/>';
echo '<h2>Confirmar Password: </h2><input type="password" name="confirmpassword" size="50" maxlength="255"><br/>';
echo '<h2>Nuevo Mail: </h2><input type="text" name="newmail" size="50" maxlength="255"><br/>';
echo '<input type="submit" name="submit" value="Cambiar Datos">';
echo '</form>';
?>
Insert in here your mysql password -> $dbbg = 'youpassword';
leave him if you do not have blank password...
This still developing as I said before, where this UserName have to put the username you have at this time.
corei7pro is offline  
Reply


Similar Threads Similar Threads
How to change Login Screen?
12/14/2011 - SRO Private Server - 5 Replies
Hi, everybody i want to change login screen on silkroad. i search everywhere but i don't find anything. i search media.pk2 but in it's a lot file so i don't find the login screen file can anybody help me.
WoW Login Screen Change
11/24/2011 - World of Warcraft - 8 Replies
Hallo Leute (: Verzeiht mir wenn ich hier im Falschen Bereich Poste :o Aber ich hab schon ganz Google Abgeklappert..Erfolglos Könnte mir einer nen Link Posten von nem Deutschen How To/Tutorial oder mir das Erklären wie ich den Login Screen Ändern kann ? Ich möcht aber was eigenes Erstellen :'> Nicht Umändern in BC oder Vanilla. Soll halt scho ne Eigenkreation sein. Nur mir fehlt eine Anleitung ^^
Mixed up with dates
01/25/2010 - Silkroad Online - 0 Replies
hy, i spent nearly an hour to dig up some dates, thought maybe anyone could clarify it to me since i can't find the right info... so i'd need to know if Iris server was started before avatars were made acount bound, if it was then maybe i have a chance to get a rly good avatar cuz the new ones look like sht thx in advance, btw did anyone try to convince the gaymax staff to make an event where you could get/buy old avatars? i miss my spartan one :P
How to change the login screen? .^,..,^.
12/30/2009 - Dekaron - 2 Replies
guys can someone help me please i want to change the login screen for a dekaron p server.....you know when you need to enter your account name and password in the background you see a big door with phantom skulls coming out and all classes are in front of it.....how can i change that......like change the color of the door or make the phantom skulls red.or make them dance wear a costume......please would really appreciate your help ^-^.
[HELP] How to change the login pictures?
10/11/2009 - CO2 Private Server - 10 Replies
How do I change the pictures that show when conquer is loading?



All times are GMT +1. The time now is 02:28.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.