Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Eudemons Online > EO PServer Hosting
You last visited: Today at 13:47

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

Advertisement



[Questions] Orb,register and grafic

Discussion on [Questions] Orb,register and grafic within the EO PServer Hosting forum part of the Eudemons Online category.

Reply
 
Old   #1
 
zukoo's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 506
Received Thanks: 162
[Questions] Orb,register and grafic

1 to Altar virgin (orb 0) only to register the pets with more than 19 *

2 Graph of the maps are distorted divine maps

3 of my register.php is not effecting the record shows that this successfully, but in reality is not registering on my> account

Code:
Config.php


<?php
	require_once './inc/class.captcha.php';
	// Configurations
	$myhost="127.0.0.1";
	$mypass="tes"; 		//your server login password
	$myuser="root"; 		//your server login username
	$mydbacc="my";		//your server account database
	$mydbdata="my";			//your server my database name
	$serveraddress="myip"; 	//your server ip
	$serverport=5816;		//your server connection port
	$servername="ServerName"; 	//your server name
	$forum="www.google.com"; 	//your server forum
	$mydb="my";			//your server my database

	// Dont Edit after this
	mysql_connect($myhost,$myuser,$mypass);
	mysql_select_db($mydb);
?>

Code:
Register.php


<?
$myhost="localhost";
	$mypass="test"; 		//your server login password
	$myuser="root"; 		//your server login username
	$mydbacc="my";		//your server account database
	$mydbdata="my";			//your server my database name
	$serverport=3306;		//your server connection port
	$mydb="my";			//your server my database

	// Dont Edit after this
	mysql_connect($myhost,$myuser,$mypass);
	mysql_select_db($mydb);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Account Registration</title>
<script type="text/javascript" src="./inc/md5.js"></script>
</head>
<body bgcolor="#000000" text="#FFFFFF">

<DIV align="center"><b class="h2">
 <?php
	echo "Welcome to Our Account Registration";
 ?>
	Account Registration</b><br />

<br />
<form method='post' action='register.php'>
      <TABLE width="312">
        <TBODY>
        <TR>
          <TD id=GoodStuff style="PADDING-LEFT: 0px; MARGIN-LEFT: 0px">
            <DIV id=theform style="PADDING-LEFT: 0px">
            <TABLE class=body width="306" height="229">
              <TBODY>
              <TR>
                <TD align="left" height="32"><b>UserID:</b></TD>
                <TD class=it3 height="32">
				<INPUT class=it style="FONT-SIZE: 9pt; font-weight:700" name="id" id="id"><b>
				</b>				</TR>
              <TR>
                <TD align="left" height="37"><b>Password:</b></TD>
                <TD class=it3 height="37">
				<INPUT class=it id="ipassword" style="FONT-SIZE: 9pt; font-weight:700" type=password maxLength=12 name=pass></TD>
                </TR>
              <TR>
                <TD align="left" height="32"><b>Retype Password:</b></TD>
                <TD class=it3 height="32">
				<input class=it1 id="ipassword" style="FONT-SIZE: 9pt; font-weight:700" type=password maxlength=12 name=retpass></TD>
                </TR>
                <tr>
                <TD class=Label align="right" height="32">
				<p align="left"><b>Email:</b></TD>
                <TD class=it3 height="32"> 
                  <input class=it id="email" style="FONT-SIZE: 9pt; font-weight:700" type=email maxlength=24 name=email></TD> 
                </tr>
                <TR>
                <TD>&nbsp;</TD>
                <TD style="FONT-SIZE: 14px; VERTICAL-ALIGN: middle">
				<span style="font-size: 9pt">
				<input type="hidden" name="hash" style="font-weight: 700">
				<p align="center">
				<input class=Butt type=submit onclick="hash.value = login(pass.value)" value='Register' name=B1 style="float: left; font-weight: 700"></span></TD>
                </TR></TBODY></TABLE>
            </DIV></TD></TR></TBODY></TABLE></FORM>
			<center>
			<?php
			if($_POST['B1'])
					{
					mysql_select_db($mydbacc);
					$userid = trim($_POST['id']);
					$password=trim($_POST['pass']);
					$passretype=trim($_POST['retpass']);
					$hash=$_POST['hash'];

				if($password != $passretype) {
							echo "Password not equal to Retyped Password.";
						}else{
							if(!ereg("^[0-9a-zA-Z]{4,12}$",$password))
							{
								echo "Only letters or numbers, length of 4 to 12 characters";
							}
							else
							{
								$res = mysql_query("select * from account where name = '".$userid."' order by id desc");
								if(mysql_num_rows($res) == 0)
								{
									mysql_query("insert into account (name,Password,Reg_date) values ('".$userid."','".$hash."','".date("y-m-d H:i:s", time())."')");
									echo "Account registered successfully.";
								}
								else
								{
									echo "Account Already exists in database.";
								}
							}
						}


						}

			?>
			</center>
</DIV>
</body>
</html>
Ps.:Script


Tank you
zukoo is offline  
Old 11/17/2009, 13:37   #2
 
zukoo's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 506
Received Thanks: 162
Solucion?
Please..
=/
zukoo is offline  
Old 11/18/2009, 16:17   #3
 
sandolkakos's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 395
Received Thanks: 313
Look if this help:

Code:
<?php
	require_once './inc/class.captcha.php';
	// Configurations
	$myhost="localhost";
	$mypass="pass";
	$myuser="user";
	$mydbacc="account";
	$mydbdata="my";
	$serveraddress="127.0.0.1";
	$serverport=5816;
	// Domt Edit after this
	mysql_connect($myhost,$myuser,$mypass);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Eudemons Register</title>
<script type="text/javascript" src="./inc/md5.js"></script>
<style type="text/css">
<!--
.style4 {
	color: #FF0000;
	font-weight: bold;
	font-size: 16px;
}
-->
</style>
</head>
<STYLE type='text/css'>
body
{
	FONT: 13px Arial;
}
td
{
	FONT: 13px Arial;
}
.Label1 {
	TEXT-ALIGN: right
}
.Label {
	PADDING-LEFT: 5px
}
.Label1 {
	PADDING-LEFT: 5px
}
.Label {
	PADDING-BOTTOM: 16px; FONT: 13px Arial; VERTICAL-ALIGN: top! important; WIDTH: 100px; COLOR: #000; WHITE-SPACE: nowrap
}
.it {
	WIDTH: 160px
}
#ipassword {
	WIDTH: 160px
}
#ipassword2 {
	WIDTH: 160px
}
.it3 {
	VERTICAL-ALIGN: top; WIDTH: 160px
}
.it1 {	WIDTH: 160px
}
.Butt {
	BORDER-RIGHT: #2854a7 1px solid; BORDER-TOP: #7cbaff 1px solid; FONT: bold 12px Arial, Helvetica, sans-serif; BORDER-LEFT: #7cbaff 1px solid; COLOR: #ffffff; BORDER-BOTTOM: #2854a7 1px solid; BACKGROUND-COLOR: #3366cc
}
</STYLE>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" bgcolor="#ffffff">
<DIV align="center">
  <p><br />
      <b>Registro de Conta Eo Paraiba</b></p>
  <p>
  </p>
  <p><span style="PADDING-LEFT: 0px; MARGIN-LEFT: 0px">
    <?php
			if($_GET['act'] == "cadastro")
			{
				if(PhpCaptcha::Validate($_POST['CheckCode']))
				{
					mysql_select_db($mydbacc);
					$userid = trim($_POST['id']);
					$password=trim($_POST['pass']);
					$passretype=trim($_POST['retpass']);
					$hash=$_POST['hash'];
					if(!ereg("^[0-9a-z]{4,12}$",$userid))
					{
						echo "<font style='color: #FF3300'><B>Este Cadastro aceita somente letras minúsculas de \"a\" a \"z\" e números, contendo entre 4 e 12 caracteres</B></font>";
					}
					else
					{
						if($password == $passretype)
						{
							if(!ereg("^[0-9a-zA-Z]{4,12}$",$password))
							{
								echo "<font style='color: #FF3300'><B>Este Cadastro aceita somente letras minúsculas de \"a\" a \"z\" e números, contendo entre 4 e 12 caracteres</B></font>";
							}
							else
							{
								$res = mysql_query("select * from account where name = '".$userid."' order by id desc");
								if(mysql_num_rows($res) == 0)
								{
									mysql_query("insert into account (name,Password,Reg_date) values ('".$userid."','".$hash."','".date("y-m-d H:i:s", time())."')");
									echo "<font style='color: #FF3300'><B>Usuário  registrado com sucesso ! ! ! Seja Bem Vindo ! ! !</B></font>";
								}
								else
								{
									echo "<font style='color: #FF3300'><B>Este usuário já foi cadastrado. Por Favor, tente novamente.</B></font>";
								}
							}
						}
						else
						{
							echo "<font style='color: #FF3300'><B>As senhas digitadas não estão idênticas</B></font>.";
						}
					}
				}
				else
				{
					echo "<font style='color: #FF3300'><B>O Código de Verificação não está correto</B></font>";
				}
			}
			?>
        </span></p>
  <form method='post' action='cadastro.php?act=cadastro'>
  <TABLE width="465" height="255">
      <TBODY>
        <TR>
          <TD width="457" height="249" id=GoodStuff style="PADDING-LEFT: 0px; MARGIN-LEFT: 0px">
            <DIV id=theform style="PADDING-LEFT: 0px">
            <TABLE class=fdata width="470" height="229">
              <TBODY>
              <TR>
                <TD height="25" align="right"><span style="font-size: 9pt"><strong>Usuário:</strong></span></TD>
                <TD width="310" height="32" class=it3>
				<INPUT class=it style="FONT-SIZE: 9pt" name="id" id="id"><span style="font-size: 9pt">
				</span></TR>
              <TR>
                <TD height="25" align="right"><span style="font-size: 9pt"><strong>Senha:</strong></span></TD>
                <TD class=it3 height="37">
				<INPUT class=it id="ipassword" style="FONT-SIZE: 9pt" type=password maxLength=12 name=pass></TD>
                </TR>
              <TR>
                <TD height="25" align="right"><span style="font-size: 9pt"><strong>Confirme a Senha:</strong></span></TD>
                <TD class=it3 height="32">
				<input class=it1 id="ipassword" style="FONT-SIZE: 9pt" type=password maxlength=12 name=retpass></TD>
                </TR>
              <TR>
                <TD height="25" align="right"><span style="font-size: 9pt"><strong>Digite o Código abaixo:</strong></span></TD>
                <TD class=it3 height="32">
					<input name='CheckCode' size='20' maxlength='6'class=it style="FONT-SIZE: 9pt"></TD>
                </TR>
              <TR>
                <TD height="25" align="right"><strong>Código de Verificação:</strong></TD>
                <TD height="25"><span style="font-size: 9pt"><img src='./inc/img.php' width='200' height='60' alt='Visual CAPTCHA' 
  style='border: 1px solid #000000; padding: 2px;' /></TD></TR>
              <TR>
                <TD></TD>
                <TD style="FONT-SIZE: 14px; VERTICAL-ALIGN: middle">
				<span style="font-size: 9pt"><input type="hidden" name="hash">
				<input class=Butt type=submit onClick="hash.value = login(pass.value)" value='cadastro' name=B1>
				</span></TD>
                </TR>
              </TBODY></TABLE>
            </DIV></TD>
        </TR>
        </TBODY></TABLE> 
  </FORM>
</DIV>
</body>
</html>
sandolkakos is offline  
Old 11/19/2009, 22:33   #4
 
zukoo's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 506
Received Thanks: 162
erro visual captcha
=/
zukoo is offline  
Reply




All times are GMT +2. The time now is 13:47.


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.