Zeusking19 wrote:
GeonoTRON2000 wrote:
Zeusking19 wrote:
We can transfer servine and your email addresses to your server, however I wont be able to create/administrate accounts![]()
No need to transfer, just now that you're out. And what do you mean by administrative accounts?
Nevermind about that
Anyway, I promoted you on our forums
Thank you very much...
Offline
Apparently your disk is full, so here's the registering page (complete with PHP):
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (strlen($_POST["username"]) <= 0) {
header("Location: register.php?error=username");
die("Invalid username.");
}
if (strlen($_POST["password"]) <= 0) {
header("Location: register.php?error=password");
die("Invalid password.");
}
if (strlen($_POST["confirmpass"]) != $_POST["password"]) {
header("Location: register.php?error=confirmpass");
die("Passwords must match.");
}
if (!preg_match('/[0-9A-Za-z\.\-]@[0-9A-Za-z\-]\.[A-Za-z\.]+/', trim($_POST["email"]))) {
header("Location: register.php?error=email");
die("Invalid e-mail.");
}
mysql_connect("localhost", "*******", "*******");
mysql_select_db("*********");
$username = mysql_real_escape_string($_POST["username"]);
$password = hash('sha256', $_POST["password"]);
$email = mysql_real_escape_string($_POST["email"]);
mysql_query("INSERT INTO `users` VALUES (null, '$username', '$password', '$email')") or die(mysql_error());
die("Thanks for adopting a dragon!");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DragonFEST - Adopt a Dragon!</title>
<style type="text/css">
body h1 {
font-family: "Comic Sans MS", cursive;
color: #FF001D;
}
#header {
background-color: #840011;
background-image: url(lib/images/logoback.png);
background-repeat: no-repeat;
}
#header #menu {
width: 850px;
float: right;
margin-top: 40px;
color: #FFF;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
body {
color: #000000;
background-color: #840011;
}
#header #menu a {
color: #FFF;
text-decoration: none;
}
#form1 label {
color: #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
}
#form1 p label {
text-align: justify;
}
#form1 p label {
text-align: justify;
}
#form1 p label {
text-align: justify;
}
#form1 {
width: 300px;
background-color: #C60000;
}
</style>
</head>
<body>
<div id="header"><img src="lib/images/logo.png" width="249" height="96" alt="logo" />
<div id="menu"><a href="index.php">Home</a> • <a href="register.php">Register </a>• <a href="login.php">Login </a></div>
</div>
<p> </p>
<center>
<form id="form1" name="form1" method="post" action="">
<p>
<label for="username">Username<? if (@$_GET["error"]=="username"){ ?> <font color="red">(REQUIRED)</font><? } ?>:</label>
<input type="text" name="username" id="username" />
</p>
<p>
<label for="password">Password<? if (@$_GET["error"]=="password"){ ?> <font color="red">(REQUIRED)</font><? } ?>:</label>
<input type="password" name="password" id="password" />
</p>
<p>
<label for="confirmpass">Confirm Password<? if (@$_GET["error"]=="confirmpass"){ ?> <font color="red">(Must match above password)</font><? } ?>:</label>
<input type="text" name="confirmpass" id="confirmpass" />
</p>
<p>
<label for="email">Email Address<? if (@$_GET["error"]=="email"){ ?> <font color="red">(Please enter a valid e-mail)</font><? } ?>:</label>
<input type="text" name="email" id="email" />
</p>
<p>
<input type="submit" name="submit" id="submit" value="Submit" />
</p>
</form>
</center>
</body>
</html>I censored out the mysql info because: 1, I don't know it, and 2, we wouldn't want strangers to know it...
Offline
I really dont understand, because x10 is supposed to supply unlimited disk space
Edit: Use cpanel`s file manager for now. I am sending a ticket to x10.
Last edited by Zeusking19 (2012-08-05 14:59:59)
Offline
Zeusking19 wrote:
and it reckons that the password confirmation is wrong
Offline
JackERY wrote:
I could help with any PHP coding if you'd like.
Sure
@Geono
Any idea why it isnt working?
Offline
Zeusking19 wrote:
JackERY wrote:
I could help with any PHP coding if you'd like.
Sure
@Geono
Any idea why it isnt working?
It works with cPanel file manager. Just their response was what made me roll my eyes.
EDIT:
@JackERY:
Username: jackery@df.thegt.org
Password: E?=&r[l~P2!D
Webmail Login: http://df.thegt.org/webmail
Make sure to change your password, 'cuz there's no way you'll remember that one.
Last edited by GeonoTRON2000 (2012-08-05 16:30:10)
Offline
Zeusking19 wrote:
I really dont understand, because x10 is supposed to supply unlimited disk space
Edit: Use cpanel`s file manager for now. I am sending a ticket to x10.
I already said that. Anyway, lemme check x10`s response
Sierra Brown wrote:
Hello,
This should now be resolved.
Last edited by Zeusking19 (2012-08-06 03:30:27)
Offline
Zeusking19 wrote:
Zeusking19 wrote:
I really dont understand, because x10 is supposed to supply unlimited disk space
Edit: Use cpanel`s file manager for now. I am sending a ticket to x10.I already said that. Anyway, lemme check x10`s response
Sierra Brown wrote:
Hello,
This should now be resolved.
OK, isssue resolved. Use cPanel file manager.
Now, try checking the website, see what I did. (It's good, not bad.)
Offline
GeonoTRON2000 wrote:
Zeusking19 wrote:
Zeusking19 wrote:
I really dont understand, because x10 is supposed to supply unlimited disk space
Edit: Use cpanel`s file manager for now. I am sending a ticket to x10.I already said that. Anyway, lemme check x10`s response
Sierra Brown wrote:
Hello,
This should now be resolved.OK, isssue resolved. Use cPanel file manager.
Now, try checking the website, see what I did. (It's good, not bad.)
Thats pretty cool
I may change some colours and fonts, but overall it is good
I had an idea - When the user is logged in, the menu bar could display home and logout, but when no one is logged in, it would display home, login and register.
Offline
Also, I am working on a downloadable `launcher` for Windows. It is an easy way to play DragonFEST, and enables you to login and play the game quickly without opening your browser
Edit: Done
Issue: When logging in through launcher, it displays a blank page instead of a thank you for logging in message.
Good news for us: The launcher never needs updating. The website contains all the files.
https://dl.dropbox.com/u/85765634/Drago … uncher.exe
Last edited by Zeusking19 (2012-08-06 12:12:23)
Offline
Zeusking19 wrote:
GeonoTRON2000 wrote:
Zeusking19 wrote:
Zeusking19 wrote:
I really dont understand, because x10 is supposed to supply unlimited disk space
Edit: Use cpanel`s file manager for now. I am sending a ticket to x10.I already said that. Anyway, lemme check x10`s response
OK, isssue resolved. Use cPanel file manager.
Now, try checking the website, see what I did. (It's good, not bad.)Thats pretty cool
I may change some colours and fonts, but overall it is good
I had an idea - When the user is logged in, the menu bar could display home and logout, but when no one is logged in, it would display home, login and register.
OK, that could be done... I'll add that.
Offline
DONE.
I've also created a rank system... it'll probably only help the flash people, unless we want special admin menus or something.
Offline
GeonoTRON2000 wrote:
DONE.
I've also created a rank system... it'll probably only help the flash people, unless we want special admin menus or something.
Thanks
Which we probably will, seeing as the team will need to be able to administrate players in the game.
Would it be possible to implement http://www.phpbb.com/kb/article/phpbb3- … ntegration?
Last edited by Zeusking19 (2012-08-07 05:06:40)
Offline
Zeusking19 wrote:
GeonoTRON2000 wrote:
DONE.
I've also created a rank system... it'll probably only help the flash people, unless we want special admin menus or something.Thanks
![]()
Which we probably will, seeing as the team will need to be able to administrate players in the game.
Would it be possible to implement http://www.phpbb.com/kb/article/phpbb3- … ntegration?
Yes. I can implement that into sessions.php.
Offline
GeonoTRON2000 wrote:
Zeusking19 wrote:
GeonoTRON2000 wrote:
DONE.
I've also created a rank system... it'll probably only help the flash people, unless we want special admin menus or something.Thanks
![]()
Which we probably will, seeing as the team will need to be able to administrate players in the game.
Would it be possible to implement http://www.phpbb.com/kb/article/phpbb3- … ntegration?Yes. I can implement that into sessions.php.
Parse error: syntax error, unexpected '"' in /home/dfest/public_html/sessions.php on line 31
Offline
JackERY wrote:
Anything you need me to do?
Could you start an account portal type of page where people can close their accounts, change password etc
Offline
Servine wrote:
I might have to resign as I have BlueTetra to work with. I want to, but i'll be too busy. Maybe we could sponsor eachother?
I totally understand. Thank you for your interest, and if you want to access our code for other reasons, or in case you want to put a minor change in, feel free. You have the details. Your email account has been removed to allow space for a new account.
Please keep active on our forums. I would love to keep you in touch with the game`s community.
GeonoTRON2000 has been given the position of Head PHP Developer in your absence. Have fun, and good luck with BlueTetra.
Thank you again
Last edited by Zeusking19 (2012-08-07 16:29:54)
Offline
Zeusking19 wrote:
Servine wrote:
I might have to resign as I have BlueTetra to work with. I want to, but i'll be too busy. Maybe we could sponsor eachother?
I totally understand. Thank you for your interest, and if you want to access our code for other reasons, or in case you want to put a minor change in, feel free. You have the details. Your email account has been removed to allow space for a new account.
Please keep active on our forums. I would love to keep you in touch with the game`s community.
GeonoTRON2000 has been given the position of Head PHP Developer in your absence. Have fun, and good luck with BlueTetra.
Thank you again![]()
Thanks! The forum sync thing is a major security flaw so I removed it. (If you have the same username as someone on the forums, they can login to your account, and vice versa.)
I would also appreciate if the rest of the DragonFEST team would register for the game, so I can assign ranks.
Last edited by GeonoTRON2000 (2012-08-07 17:05:39)
Offline
The GT would officially like to sponsor DragonFEST.
Sponsor image:
Imageshack: http://img837.imageshack.us/img837/5466 … essage.png
Imgur: http://i.imgur.com/ZqdFI.png
Tinypic: http://i49.tinypic.com/2nhevwm.png
Small: http://img9.imageshack.us/img9/1345/gtsponsorsmall.png
Last edited by GeonoTRON2000 (2012-08-07 19:11:23)
Offline
the site just got deleted! Who did that?
EDIT: and all the cpanel information. Must be a glitch with the host.
Last edited by GeonoTRON2000 (2012-08-07 19:28:43)
Offline