Location: PHPKode > projects > MapleStory Register > index.php
<?php
    /*    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    */
    include ("functions.php");
    session_start();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml" xml:lang = "en" lang = "en">
    <head>
        <title>Maple Story Register</title>

        <meta http-equiv = "Content-Type" content = "text/html; charset=ISO-8859-1" />

        <style>
            *
                {
                FONT-SIZE: 8pt;
                FONT-FAMILY: verdana;
                }

            b
                {
                FONT-WEIGHT: bold;
                }

            .listtitle
                {
                BACKGROUND: #425984;
                COLOR: #EEEEEE;
                white-space: nowrap;
                }

            td.list
                {
                BACKGROUND: #EEEEEE;
                white-space: nowrap;
                }
table {
  border-collapse: collapse;
  border: none;
  font: normal 11px helvetica, verdana, arial, sans-serif;
  background-image: url(http://www.acuity.com.br/extern/icant.co.uk/bg_acuity.gif); 
  background-repeat: repeat;

border-spacing: 1px;
  }
caption {
  text-align: left;
  font: normal 11px helvetica, verdana, arial,  sans-serif;
  background: transparent;
  }
td, th {
  border: none;
  padding: .8em;
  color: #6E6E6E;
  }
thead th, tfoot th {
  font: bold 10px helvetica, verdana, arial, sans-serif;
  border: none;
  text-align: left;
  background: #000000;
  color: #00FF0C;
  padding-top:4px;
  }
tbody td a {
  background: transparent;
  text-decoration: none;
  color: #9F9F9F;
  }
tbody td a:hover {
  background: transparent;
  color: #00FF0C;
  }
tbody th a {
  font: bold 11px helvetica, verdana, arial, sans-serif;
  background: transparent;
  text-decoration: none;
  font-weight:normal;
  color: #9F9F9F;
  }
  
  
tbody td+td+td+td a {
    padding-right: 14px;
    background: url(http://www.acuity.com.br/extern/icant.co.uk/arrow.gif) transparent no-repeat bottom right;
    }
    tbody td+td+td+td a:hover {
        padding-right: 14px;
    background: url(http://www.acuity.com.br/extern/icant.co.uk/arrow.gif) transparent no-repeat bottom right;
    }
tbody th a:hover {
  background: transparent;
  color: #00FF0C;
  }
tbody th, tbody td {
  vertical-align: top;
  text-align: left;
  }

.odd {
  background: #000000;
  }
tbody tr:hover {
  background: #0E0E0E;
  }
tbody tr:hover th,
tbody tr.odd:hover th {
  background: #0E0E0E;
  }

        </style>
    </head>
<center><img src="./images/MapleStoryRegister.png"/1:07 PM 2/17/20091:07 PM 2/17/2009></center>
    <body>
<?php
    // check for posted form
    if (isset($_POST['login'])) {
        // see if the code the user typed matched the generated code
        if (strtoupper($_POST['code']) == $_SESSION['code']) {
            echo 'Congratulations, you entered the correct code.';
        } else {
            echo 'You have entered the wrong code. Please <a href="index.php">try again</a>.';
        }
    } else {
    ?>
<center>
<table cellspacing=1 cellpadding=4>
<tr>
<td class=listtitle colspan=2><?php
$result = mysql_query("SELECT * FROM accounts", $db);// Account section
$num_rows = mysql_num_rows($result);
$result2 = mysql_query("SELECT * FROM characters", $db);// Character section
$num_rowsc = mysql_num_rows($result2);
echo "$websitename|Exp:$exp|Meso:$meso|Drop:$drop|"; echo ''   .$num_rows.' Accounts|'.$num_rowsc.' Characters|'; 
?></td></tr>
<form action="register_do.php" method="POST">
<tr><td class=list align=right>Username:</td><td class=list><input type=text name=username maxlength="30"></td></tr>
<tr><td class=list align=right>Password:</td><td class=list><input type=password name=password maxlength="30"></td></tr>
<tr><td class=list align=right>Email:</td><td class=list><input type=text name=email maxlength="30"></td></tr>
<tr><td class=list align=right>DOB:</td><td class=list><input type=text name=dob maxlength="30" value="Y-M-D"></td></tr>
<tr><td class=list align=right><img src="security-image.php?width=144" width="144" height="30" alt="Security Image" /></
<tr><td class=list align=left></label><input type="text" name="code" id="code" value="" />
<tr><td class=listtitle align=right colspan=2><input type=submit name=submit value='Register'></td></tr>
   </form>
</table>
<br>

</center></body></html>

    <?php
    }
?>
</body>
<center>
<?php
    echo "$websitename &copy<br>Register script created By Anthony of RageZone.";
    include("footer.php");
?>
</html>
Return current item: MapleStory Register