Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('config/raxezdev.php');
- include('inc/counter.php');
- if (!function_exists("GetSQLValueString")) {
- function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
- {
- if (PHP_VERSION < 6) {
- $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
- }
- $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
- switch ($theType) {
- case "text":
- $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
- break;
- case "long":
- case "int":
- $theValue = ($theValue != "") ? intval($theValue) : "NULL";
- break;
- case "double":
- $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
- break;
- case "date":
- $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
- break;
- case "defined":
- $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
- break;
- }
- return $theValue;
- }
- }
- // reg form
- if ((isset($_POST["loginz"])) && (isset($_POST["passwordz"])) && (isset($_POST['emailz']))) {
- $insertSQL = sprintf("INSERT INTO accounts (login, password, email, banned, gm) VALUES (%s, %s, %s, %s, %s)",
- GetSQLValueString($_POST['loginz'], "text"),
- GetSQLValueString($_POST['passwordz'], "text"),
- GetSQLValueString($_POST['emailz'], "text"),
- GetSQLValueString(0, "int"),
- GetSQLValueString(0, "int"));
- mysql_select_db($database_logon, $raxezdev);
- $Result1 = mysql_query($insertSQL, $raxezdev) or die(mysql_error());
- }
- require('inc/mainphp.php');
- include('inc/head.php'); ?>
- <body>
- <div class="top"></div>
- <!-- wrapper -->
- <div class="wrapper">
- <?php include('inc/header.php'); ?>
- <div class="nav">
- <?php include('inc/nav.php'); ?>
- </div>
- <div class="middlebox">
- <?php include('inc/left.php'); ?>
- <?php include('inc/middle.php'); ?>
- <?php include('inc/right.php'); ?>
- </div>
- <div class="leftcenter">
- <div class="lefttop"></div>
- <div class="leftmiddle">
- <span style="font-size:16px;color:#d26b27;"><center>Account creation</center></span><br />
- <?php if ((isset($_POST["loginz"])) && (isset($_POST["passwordz"])) && (isset($_POST['emailz']))) { echo "<center>Your account has been created!</center>";
- } else { ?>
- <form id="registrationz" name="registration" method="post" action="<?php echo $editFormAction; ?>">
- <table width="200" border="0" align="center" cellpadding="2" cellspacing="0">
- <tr>
- <td>Username:</td>
- <td><label>
- <input name="loginz" type="text" class="topform" id="loginz" />
- </label></td>
- </tr>
- <tr>
- <td>Password:</td>
- <td><input name="passwordz" type="password" class="topform" id="passwordz" /></td>
- </tr>
- <tr>
- <td>E-mail:</td>
- <td><input name="emailz" type="text" class="topform" id="emailz" /></td>
- </tr>
- <tr>
- <td> </td>
- <td align="center"><label>
- <input name="registerz" type="submit" class="topbutton" id="registerz" value="Register!" />
- </label></td>
- </tr>
- </table>
- </form><?php } ?><br />
- <br />
- </div>
- <div class="leftbottom"></div>
- </div>
- <br />
- <?php include('inc/footer.php'); ?>
- </div>
- <!-- wrapper end -->
- </body>
- </html>
- <?php
- mysql_free_result($shoutbox);
- mysql_free_result($realmone);
- mysql_free_result($nav);
- mysql_free_result($settings);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement