ArcEmu: [Release] Yaart - The safest account creation script - ArcEmu

Jump to content

Toggle shoutbox Lastest Announcements

dfighter  : (07 December 2014 - 12:06 PM) Arcemu is in hibernation mode, please read http://arcemu.org/fo...showtopic=26903
dfighter  : (01 January 2013 - 05:56 PM) Arcemu wishes you all a happy new year!
Hasbro  : (12 September 2012 - 10:01 AM) Please excuse our outage from the web! Our web host had a major malfunction!
dfighter  : (01 September 2012 - 04:05 PM) Since the spam bots just don't want to stop, I've enabled admin verification when registering.
dfighter  : (23 January 2012 - 09:56 PM) Please note that from now on you will need to confirm your email on the wiki in order to edit it!
Hasbro  : (31 December 2011 - 12:50 PM) Happy New Years all!
Navid  : (26 December 2011 - 04:09 AM) Merry Christmas !!!!!! Happy holidays all :)
WAmadeus  : (24 December 2011 - 03:54 PM) Merry Christmas to all!
dfighter  : (24 December 2011 - 11:05 AM) The Arcemu team wishes y'all a Merry Christmukkah!
Hasbro  : (05 October 2011 - 12:53 PM) Looking for web designers for upcoming web related project. If you're interested in designing user interfaces contact me
dfighter  : (02 September 2011 - 03:47 PM) So who here wants vehicles in Arcemu? :P http://arcemu.org/fo...showtopic=25440
Hasbro  : (14 August 2011 - 03:25 PM) Join us on irc, grab an irc client and connect to irc.freenode.net join channel #arcemu /server irc.freenode.net:6667 /join #arcemu
jackpoz  : (03 August 2011 - 05:33 AM) to all Lua Engine (old one) users: please check http://arcemu.org/fo...showtopic=25274
Hasbro  : (20 May 2011 - 05:27 PM) Looking for people experienced with CMake configuration and setup! Contact me asap
Hasbro  : (15 May 2011 - 05:03 PM) ArcEmu is recruiting C++ programmers, contact Hasbro if interested.
paroxysm  : (03 May 2011 - 06:26 PM) Updated luabridge gossip example to describe the whole gossip creation process rather than just how to create menu. Gossip tutorial
paroxysm  : (23 April 2011 - 11:35 AM) Lua writers can refer to the Luabridge Tutorials section in the Wiki to learn how to write gossip code correctly.
Hasbro  : (20 April 2011 - 05:22 PM) Thank you for your continuous contribution of bug reports, we are working on them.
Hasbro  : (17 April 2011 - 03:20 AM) Please consider donating to support our bills. Donations can be sent using PayPal to donations@arcemu.org - Thank you for your support.
paroxysm  : (10 April 2011 - 12:43 AM) Refer to the Luabridge Tutorials section in the Wiki to learn the new syntax of luabridge.
Resize Shouts Area

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

[Release] Yaart - The safest account creation script Yaart - Yet another account registration tool

#21 User is offline   NabalXela 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 287
  • Joined: 07-July 08
  • Location:Sweden

Posted 24 August 2008 - 10:44 AM

This deserve a sticky.

Old signature but I'm currently to lazy to make a new one :/
0

#22 User is offline   BadBull 

  • Member
  • Pip
  • Group: Members
  • Posts: 29
  • Joined: 07-June 08

Posted 24 August 2008 - 04:39 PM

:D It isnt working same prob, now hat file is like that:

<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?PHP

// ####################################################
// # Webmasters, fill out the following informations: #
// ####################################################

/*
* $backgroundcolor:
* The background color of the webpage (HTML colors)
*
* $textcolor:
* The text color of the webpage (HTML colors)
*
* $warningcolor:
* The color of warnings (HTML colors)
*
* $okaycolor:
* The color of confirmations (HTML colors)
*
* $fontfamily:
* The font family (CSS font-family)
*
* $fontsize:
* The font size (CSS font-size)
*
* $headerimage:
* The HTML-path to a header image. null for none.
*
* $footertext:
* The text on the footer of the page.
*
* $pagetitle:
* The title of the page.
*
* $style:
* Text align. 0 = left, 1 = center
*/
$backgroundcolor = "FFFFFF";
$textcolor = "000000";
$warningcolor = "FF0000";
$okaycolor = "00FF00";
$fontfamily = "verdana";
$fontsize = "12px";
$headerimage = null;
$footertext = "<br><br>\n\nThis script is made by Gachl.";
$pagetitle = "Account creator";
$style = 1;

/* The values for the information collector:
0 = forename
1 = surename
2 = born
3 = gender
/* Required informations */
$required = Array(0,3);
/* Not required informations */
$notrequired = Array(1,2);

/*
* $dburl:
* The URL / hostaddress to your database server.
*
* $dbuser:
* The username for the database. It needs read/writeaccess to $dbwname
* and if you enabled the information collector it needs permissions to
* create a new table.
*
* $dbpass:
* The password for the user.
*
* $dbwname:
* The name of your ArcEmu account database.
*
* $dbiname:
* The name of the database where the table for the informations is in.
*
* $enableic:
* Do you want to enable the information collector?
* Valid values: true (enables this feature), false (diables this feature)
*
* $itable:
* The name of the table where the informations shall be stored (this
* table must not exists, the script will create it!
*
* $atable:
* The name of the table in the ArcEmu account database where the accounts are stored in
* Default: accounts
* $usernamefield:
* The name of the database field where the username is stored in.
*
* $emailfield:
* The name of the database field where the email is stored in.
*
* $checkversion:
* Check your current script version ant notify if a new version is available.
* Valid values: true (check your version, RECOMMENDED!), false (diable version check, NOT recommended)
*/
$dburl = "***";
$dbuser = "****";
$dbpass = "*****";
$dbwname = "*****";
$dbiname = "dbw";
$enableic = true;
$itable = "informations";
$atable = "accounts";
$usernamefield = "login";
$emailfield = "email";
$checkversion = true;

$table = Array(
/* For compatibility to all versions set the fields of the account table.
* Variables:
* Variable Value Type
* %login% Username Text
* %password% Password Text
* %email% Email Text
* %flags% WOW (0) or TBC (8) Integer
*
* Table field name => Value */
"acct" => 'NULL',
"login" => '"%login%"',
"password" => '"%password%"',
"encrypted_password"=> '""',
"gm" => '""',
"banned" => '0',
"lastlogin" => '"0000-00-00 00:00:00"',
"lastip" => '"0.0.0.0"',
"email" => '"%email%"',
"flags" => '%flags%',
"forceLanguage" => '"enUS"',
"muted" => '0'
);

/* LANGUAGE SETTINGS */
// English
$lang = Array(
"accountexist"=> "This accountname already exists.",
"confirmmail" => "Confirm EMail",
"headerimage" => "headerimage",
"welcometext" => "Welcome to our World of Warcraft server. You can register an account here.",
"mustfillin" => "* These fields must be filled out!",
"wowversion" => "World of Warcraft version (TBC / no TBC)",
"emailinuse" => "This email address is already in use.",
"pwnomatch" => "The two entered passwords are not the same.",
"confirmpw" => "Confirm password",
"mailwrong" => "The two entered email addresses are not equal.",
"username" => "Username",
"password" => "Password",
"forename" => "Forename",
"surename" => "Surename",
"congrats" => "Congratulations. You account has been successfully created.",
"invalid" => "The field % contains invalid characters! Allowed: Upper- and lowercase a-z, 0-9, ., - and _",
"submit" => "Submit",
"female" => "Female",
"empty" => "The field % must be filled!",
"email" => "EMail address",
"born" => "Born",
"male" => "Male",
"sex" => "Gender",
"cap" => "The typed character sequence is wrong."
);

// German
/*$lang = Array(
"accountexist"=> "Dieser Benutzername existiert bereits.",
"confirmmail" => "EMail best&auml;tigen",
"headerimage" => "titelbild",
"welcometext" => "Willkommen auf unserem World of Warcraft Server. Du kannst dir hier einen Account erstellen.",
"mustfillin" => "* Diese Felder m&uuml;ssen ausgef&uuml;llt werden!",
"wowversion" => "World of Warcraft Version (TBC / kein TBC)",
"emailinuse" => "Diese EMailadresse wird bereits benutzt.",
"pwnomatch" => "Die beiden eingegebenen Passw&ouml;rter sind nicht gleich.",
"confirmpw" => "Passwort best&auml;tigen",
"mailwrong" => "Die zwei eingegebenen EMailadressen stimmen nicht &uuml;berein.",
"username" => "Benutzername",
"password" => "Passwort",
"forename" => "Vorname",
"surename" => "Nachname",
"congrats" => "Gratulation, dein Account wurde erfolgreich erstellt.",
"invalid" => "Das Feld % beinhaltet ung&uuml;ltige Zeichen. Erlaubt: Grosse und kleine a-z, 0-9, ., - und _",
"submit" => "Absenden",
"female" => "Frau",
"empty" => "Das Feld % muss ausgef&uuml;llt werden!",
"email" => "EMailadresse",
"born" => "Geboren",
"male" => "Mann",
"sex" => "Geschlecht",
"cap" => "Die eingegebenen Zeichen sind falsch."
);*/
/*****************************************************\
* Thats all you can set. Now check the values again *
* and if you think they are okay run the script and *
* try it once. *
\*****************************************************/

// ########################################################################
// # DO NOT EDIT BELOW HERE IF YOU DON'T KNOW WHAT EXACTLY YOU ARE DOING! #
// ########################################################################

$currentVersion = 200808143; // DO NEVER CHANGE THAT LINE!!!

// This function creates a random string
function random($count = 14) {
$possible = "0123456789bcdfghjkmnpqrstvwxyz";
$random = "";
for ($i = 0; $i < $count; $i++)
$random .= substr($possible, mt_rand(0, strlen($possible)-1), 1);
return $random;
}

// Check if some of the values in a list equals with another value
function equals($list) {
foreach ($list as $v1) {
foreach ($list as $v2) {
if ($v1 == $v2)
return true;
}
}
return false;
}

// Check if a string contains invalid characters
function containsInvalidCharacters($string) {
$string = preg_match('/[^a-zA-Z0-9.-_]/', $string);
return (intval($string) === 0) ? false : true;
}

function invalid($fieldname) {
global $lang;
return str_replace("%", $fieldname, $lang['invalid']);
}

function emptyfield($fieldname) {
global $lang;
return str_replace("%", $fieldname, $lang['empty']);
}

session_start(); // We need a session here to save the form field names

// Create on of these ... captchas?
if (!empty($_GET['g']) && ($_GET['g'] == "1")) {
$chars = strtolower(random(5));
$_SESSION['imagecode'] = md5($chars);
header("Content-type: image/png");
$im = imagecreatetruecolor(120, 20);
$text1 = imagecolorallocate($im, rand(0, 80), rand(0, 80), rand(0, 80));
$text2 = imagecolorallocate($im, rand(0, 80), rand(0, 80), rand(0, 80));
$text3 = imagecolorallocate($im, rand(0, 80), rand(0, 80), rand(0, 80));
$text4 = imagecolorallocate($im, rand(0, 80), rand(0, 80), rand(0, 80));
$text5 = imagecolorallocate($im, rand(0, 80), rand(0, 80), rand(0, 80));
$rect1 = imagecolorallocate($im, rand(150, 255), rand(150, 255), rand(150, 255));
$rect2 = imagecolorallocate($im, rand(150, 255), rand(150, 255), rand(150, 255));
$rect3 = imagecolorallocate($im, rand(150, 255), rand(150, 255), rand(150, 255));

imagefilledrectangle($im, 0, 0, 120, 20, imagecolorallocate($im, rand(120, 160), rand(120, 160), rand(120, 160)));

imagerectangle($im, rand(0, 90), rand(0, 20), rand(0, 90), rand(0, 20), $rect1);
imagerectangle($im, rand(80, 120), rand(0, 20), rand(80, 120), rand(0, 20), $rect2);
imagerectangle($im, rand(60, 111), rand(0, 20), rand(50, 90), rand(0, 20), $rect3);

imagestring($im, 5, rand(1, 25), 3, $chars[0], $text1);
imagestring($im, 5, rand(30, 50), 3, $chars[1], $text2);
imagestring($im, 5, rand(55, 75), 3, $chars[2], $text3);
imagestring($im, 5, rand(80, 100), 3, $chars[3], $text4);
imagestring($im, 5, rand(105, 112), 3, $chars[4], $text5);

imagepng($im);
imagedestroy($im);

exit();
// Looks stupid.. biggrin.gif
}

$errors = Array();
$success = false;

// This is for security purpose. If the names of the input fields are not the same every time
// no bot can fill them out and out again.
$fusername = "";
$fpassword = "";
$fconfirmpassword = "";
$femail = "";
$fconfirmemail = "";
$fgametype = "";
$fforename = "";
$fsurename = "";
$fborn = "";
$fgender = "";
$fsubmit = "";

do {
$fusername = random();
$fpassword = random();
$fconfirmpassword = random();
$femail = random();
$fconfirmemail = random();
$fgametype = random();
$fforename = random();
$fsurename = random();
$fdd = random();
$fmm = random();
$fyyyy = random();
$fgender = random();
$fcaptcha = random();
$fsubmit = random();
} while (!equals(Array($fusername, $fpassword, $fconfirmpassword, $femail, $fconfirmemail, $fgametype, $fforename, $fsurename, $fdd, $fmm, $fyyyy, $fgender, $fcaptcha, $fsubmit)));

if (!empty($_SESSION['fsubmit']) && !empty($_POST[$_SESSION['fsubmit']]) && ($_POST[$_SESSION['fsubmit']] === $lang['submit'])) {
// The form seems to be submitted.
$uname = $_SESSION['fusername'];
$pw = $_SESSION['fpassword'];
$cpw = $_SESSION['fconfirmpassword'];
$mail = $_SESSION['femail'];
$cmail = $_SESSION['fconfirmemail'];
$gt = $_SESSION['fgametype'];
$fore = $_SESSION['fforename'];
$sure = $_SESSION['fsurename'];
$dd = $_SESSION['fdd'];
$mm = $_SESSION['fmm'];
$yyyy = $_SESSION['fyyyy'];
$sex = $_SESSION['fgender'];
$cap = $_SESSION['fcaptcha'];
$subm = $_SESSION['fsubmit'];

// Get form values
$uname = trim($_POST[$uname]);
$pw = $_POST[$pw];
$cpw = $_POST[$cpw];
$mail = trim($_POST[$mail]);
$cmail = trim($_POST[$cmail]);
$gt = intval($_POST[$gt]);
$fore = trim($_POST[$fore]);
$sure = trim($_POST[$sure]);
$dd = intval($_POST[$dd]);
$mm = intval($_POST[$mm]);
$yyyy = intval($_POST[$yyyy]);
$sex = intval($_POST[$sex]);
$cap = $_POST[$cap];
$subm = $_POST[$subm];

$attemp = false;

// Check

//Checking for bot or brute
if (!empty($_POST['login']) || !empty($_POST['password'])) {
die("Fatal hacking attempt. Aborting!");
}

// Checking all valid fields
if (empty($uname))
$errors[] = emptyfield($lang['username']);

if (containsInvalidCharacters($uname)) {
$errors[] = invalid($lang['username']);
$attemp = true;
}

mysql_connect($dburl, $dbuser, $dbpass) or die(mysql_error() . "<br>\nWebmaster, check the script configuration!");
mysql_select_db($dbwname) or die(mysql_error() . "<br>\nWebmaster, check the script configuration!");

if (!empty($uname) && !$attemp) {
$usercount = mysql_fetch_assoc(mysql_query("SELECT COUNT(*) AS `count` FROM `$atable` WHERE `$usernamefield` = \"$uname\";"));
if (intval($usercount['count']) !== 0)
$errors[] = $lang['accountexist'];
}

if (empty($pw))
$errors[] = emptyfield($lang['password']);

if (empty($cpw))
$errors[] = emptyfield($lang['confirmpw']);

if (empty($mail))
$errors[] = emptyfield($lang['email']);

if (empty($cmail))
$errors[] = emptyfield($lang['confirmmail']);

$attemp = false;

if (!empty($mail)) {
if (strpos($mail, "@") !== false) {
$emailname = substr($mail, 0, strpos($mail, "@"));
$domain = substr($mail, strpos($mail, "@") + 1);
if (containsInvalidCharacters($emailname) || containsInvalidCharacters($domain)) {
$errors[] = invalid($lang['email']);
$attemp = true;
}
} else {
$errors[] = invalid($lang['email']);
}
}

if (!$attemp) {
$usercount = mysql_fetch_assoc(mysql_query("SELECT COUNT(*) AS `count` FROM `$atable` WHERE `$emailfield` = \"$mail\";"));
if (intval($usercount['count']) !== 0)
$errors[] = $lang['emailinuse'];
}

if ($mail != $cmail)
$errors[] = $lang['mailwrong'];

if (($gt !== 0) && ($gt !== 8))
$errors[] = invalid($lang['wowversion']);

if ($enableic) {
// forename surename born gender
if (in_array(0, $required) || in_array(0, $notrequired)) {
if (in_array(0, $required)) {
if (empty($fore))
$errors[] = emptyfield($lang['forename']);
}
if (containsInvalidCharacters($fore))
$errors[] = invalid($lang['forename']);
}

// surename
if (in_array(1, $required) || in_array(1, $notrequired)) {
if (in_array(1, $required)) {
if (empty($sure))
$errors[] = emptyfield($lang['surename']);
}
if (containsInvalidCharacters($sure))
$errors[] = invalid($lang['surename']);
}

$born = "$yyyy-$mm-$dd";
}

if ($_SESSION['imagecode'] !== md5(trim(strtolower($cap))))
$errors[] = $lang['cap'];
// Submit is checked but more checks are more safety
if (empty($subm) || ($subm != $lang['submit']))
$errors[] = "Hack attempt!";

// Only continue if everything is okay.
if (count($errors) === 0) {
mysql_select_db($dbwname) or die(mysql_error() . "<br>\nWebmaster, check the script configuration!");

$query = "INSERT INTO `" . $atable . "` (";
$secondq = ") VALUES (";
foreach ($table as $key => $value) {
$find = Array("%login%", "%password%", "%email%", "%flags%");
$replace = Array($uname, $pw, $mail, $gt);
$value = str_replace($find, $replace, $value);
$query .= "`$key`, ";
$secondq .= "$value, ";
}

$query = substr($query, 0, strlen($query) - 2) . substr($secondq, 0, strlen($secondq) - 2) . ");";
mysql_query($query) or die(mysql_error() . "<br>\nWebmaster, check the script configuration (table settings)!");
$acct = mysql_insert_id();
if ($acct < 1)
$errors[] = "FATAL ERROR. Check your database.";
if ($enableic) {
mysql_select_db($dbiname) or die(mysql_error() . "<br>\nWebmaster, check the script configuration (table settings)!");
$tablecheck = mysql_query("SHOW TABLES;");
$tblexists = false;
while ($row = mysql_fetch_assoc($tablecheck)) {
if ($row['Tables_in_' . $dbiname] == $itable) {
$tblexists = true;
break;
}
}

if (!$tblexists) {
mysql_query("CREATE TABLE `$dbiname`.`$itable` (
`id` INT UNSIGNED NOT NULL ,
`forename` VARCHAR( 60 ) NOT NULL ,
`surename` VARCHAR( 60 ) NOT NULL ,
`born` DATE NOT NULL ,
`gender` ENUM( '" . $lang['male'] . "', '" . $lang['female'] . "' ) NOT NULL ,
PRIMARY KEY ( `id` )
);");
}

$efore = (in_array(0, $required) || in_array(0, $notrequired));
$esure = (in_array(1, $required) || in_array(1, $notrequired));
$eborn = (in_array(2, $required) || in_array(2, $notrequired));
$egend = (in_array(3, $required) || in_array(3, $notrequired));

$query = 'INSERT INTO `' . $itable . '` VALUES (' . $acct . ', "' . ($efore ? $fore : "") . '", "' . ($esure ? $sure : "") . '", "' . ($eborn ? $born : "") . '", "' . (empty($sex) ? $lang['male'] : ((intval($sex) == 0) ? $lang['male'] : $lang['female'])) . '");';
mysql_query($query) or die(mysql_error() . "<br>\nWebmaster, check the script configuration (table settings)!");
}
$success = true;
}
}

$_SESSION['fusername'] = $fusername;
$_SESSION['fpassword'] = $fpassword;
$_SESSION['fconfirmpassword'] = $fconfirmpassword;
$_SESSION['femail'] = $femail;
$_SESSION['fconfirmemail'] = $fconfirmemail;
$_SESSION['fgametype'] = $fgametype;
$_SESSION['fforename'] = $fforename;
$_SESSION['fsurename'] = $fsurename;
$_SESSION['fyyyy'] = $fyyyy;
$_SESSION['fmm'] = $fmm;
$_SESSION['fdd'] = $fdd;
$_SESSION['fgender'] = $fgender;
$_SESSION['fcaptcha'] = $fcaptcha;
$_SESSION['fsubmit'] = $fsubmit;

// Check for new version
if ($checkversion) {
$vh = null;
$vh = @fopen("http://xn--hllo-wrld-v2a7r.net/wow_scripts/version", "r");
if ($vh != null) {
$version = "";
while (!feof($vh))
$version .= @fread($vh, 1024);
fclose($vh);
$version = intval($version);
if ($version > $currentVersion)
$footertext = "<br><br>A new version is available! Please update now!<br>\n" . $footertext;
} else {
$footertext = "<br><br>Unable to receive version informations.<br>\n" . $footertext;
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?PHP echo $pagetitle; ?></title>
<script type="text/javascript">
<!--
function reloadc() {
var c = this.document.getElementById("captcha");
var now = new Date();
c.src = '?g=1&amp;f=' + now.getTime();
}
-->
</script>
<style type="text/css">
<!--
body {
background-color: #<?PHP echo $backgroundcolor; ?>;
color: #<?PHP echo $textcolor; ?>;
font-family: <?PHP echo $fontfamily; ?>;
font-size: <?PHP echo $fontsize; ?>;
}

.error {
color: #<?PHP echo $warningcolor; ?>;
}

.okay {
color: #<?PHP echo $okaycolor; ?>;
}
-->
</style>
</head>
<body>
<?PHP echo ($style == 1) ? "<center>" : "" ?>
<?PHP echo (($headerimage != null) && empty($headerimage)) ? '<img src="' . $headerimage . '" alt="' . $lang['headerimage'] . '">' . "\n" : '' ?><br>
<?PHP echo $lang['welcometext'] ?><br>
<?PHP foreach ($errors as $error) echo '<span class="error">' . $error . '</span><br>' . "\n"; ?>
<?PHP if ($success) { ?>
<span class="okay"><?PHP echo $lang['congrats'] ?></span>
<?PHP } else { ?>
<form action="?" method="POST">
<table>
<tr>
<td><?PHP echo $lang['username'] ?>*</td>
<td><input type="text" name="<?PHP echo $fusername; ?>"></td>
</tr>
<tr>
<td><?PHP echo $lang['password'] ?>*</td>
<td><input type="password" name="<?PHP echo $fpassword; ?>"></td>
</tr>
<tr>
<td><?PHP echo $lang['confirmpw'] ?>*</td>
<td><input type="password" name="<?PHP echo $fconfirmpassword; ?>"></td>
</tr>
<tr>
<td><?PHP echo $lang['email'] ?>*</td>
<td><input type="text" name="<?PHP echo $femail; ?>"></td>
</tr>
<tr>
<td><?PHP echo $lang['confirmmail'] ?>*</td>
<td><input type="text" name="<?PHP echo $fconfirmemail; ?>"></td>
</tr>
<tr>
<td><?PHP echo $lang['wowversion'] ?>*</td>
<td>
<select name="<?PHP echo $fgametype; ?>">
<option value="8">World of Warcraft: The burning crusade</option>
<option value="1">World of Warcraft</option>
</select>
</td>
</tr>
<?PHP if ($enableic) { if (in_array(0, $required) || in_array(0, $notrequired)) { ?>
<tr>
<td><?PHP echo $lang['forename'] ?><?PHP echo in_array(0, $required) ? "*" : "" ?></td>
<td><input type="text" name="<?PHP echo $fforename; ?>"></td>
</tr>
<?PHP } if (in_array(1, $required) || in_array(1, $notrequired)) { ?>
<tr>
<td><?PHP echo $lang['surename'] ?><?PHP echo in_array(1, $required) ? "*" : "" ?></td>
<td><input type="text" name="<?PHP echo $fsurename; ?>"></td>
</tr>
<?PHP } if (in_array(2, $required) || in_array(2, $notrequired)) { ?>
<tr>
<td><?PHP echo $lang['born'] ?> (dd mm yyyy)<?PHP echo in_array(2, $required) ? "*" : "" ?></td>
<td>
<select name="<?PHP echo $fdd; ?>"><?PHP for ($i = 1; $i < 32; $i++) echo "<option>$i</option>\n"; ?></select>
<select name="<?PHP echo $fmm; ?>"><?PHP for ($i = 1; $i < 13; $i++) echo "<option>$i</option>\n"; ?></select>
<select name="<?PHP echo $fyyyy; ?>"><?PHP for ($i = 1920; $i < 2009; $i++) echo "<option>$i</option>\n"; ?></select>
</td>
</tr>
<?PHP } if (in_array(3, $required) || in_array(3, $notrequired)) { ?>
<tr>
<td><?PHP echo $lang['sex'] ?><?PHP echo in_array(3, $required) ? "*" : "" ?></td>
<td>
<select name="<?PHP echo $fgender; ?>">
<option value="0"><?PHP echo $lang['male'] ?></option>
<option value="1"><?PHP echo $lang['female'] ?></option>
</select>
</td>
</tr>
<?PHP } } ?>
<tr>
<td><img src="?g=1" alt="captcha" id="captcha"><a href="java script:reloadc()">R</a></td>
<td><input type="text" name="<?PHP echo $fcaptcha; ?>"></td>
</tr>
<tr>
<td><input type="submit" name="<?PHP echo $fsubmit; ?>" value="<?PHP echo $lang['submit'] ?>"></td>
<td>&nbsp;</td>
</tr>
</table>
<?PHP echo $lang['mustfillin'] ?>
<div style="visibility: hidden;"><input type="text" name="login"><input type="password" name="password"></div>
</form>
<?PHP } ?>
<?PHP echo $footertext; ?>
<?PHP echo ($style == 1) ? "</center>" : "" ?>
</body>
</html></div>

0

#23 User is offline   NabalXela 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 287
  • Joined: 07-July 08
  • Location:Sweden

Posted 24 August 2008 - 05:32 PM

I translated it to Swedish (I'm Swedish so it's not robot-swedish :D ) if you want to add that. If not it's cool

"accountexist"=> "Det finns redan ett konto med detta namnet.",
"confirmmail" => "Bekräfta Mail Adress",
"headerimage" => "Titelbild",
"welcometext" => "Välkommen till vår World Of Warcraft Server. Du kan skapa ett konto här.",
"mustfillin" => "* Fälten nedan måste fyllas i korrekt för att allt ska funka!",
"wowversion" => "World of Warcraft version (TBC / ej TBC)",
"emailinuse" => "Denna mailadressen används redan.",
"pwnomatch" => "Lösenorden matchar ej varandra.",
"confirmpw" => "Bekräfta Lösenord",
"mailwrong" => "De två mailadresserna matchar ej varandra.",
"username" => "Användarnamn",
"password" => "Lösenord",
"forename" => "Förnamn",
"surename" => "Efternamn",
"congrats" => "Grattis. Ditt konto är skapat.",
"invalid" => "% Fältet innehåller ej tillåtna tecken! Godkända: Stora och lilla a-z, 0-9, ., - and _",
"submit" => "Skicka",
"female" => "Kvinna",
"empty" => "% måste fyllas i!",
"email" => "Mail address",
"born" => "Född",
"male" => "Man",
"sex" => "Kön",
"cap" => "Karaktär sekvensen är felaktig."


Old signature but I'm currently to lazy to make a new one :/
0

#24 User is offline   Gachl 

  • Occasional Poster
  • PipPip
  • Group: Members
  • Posts: 113
  • Joined: 08-June 08
  • Location:Basel // Switzerland
  • Interests:PHP and stuff

Posted 25 August 2008 - 03:01 AM

View PostBadBull, on Aug 24 2008, 11:39 PM, said:

:) It isnt working same prob, now hat file is like that:


Aaahww dude put your div lines in the HTML section, not above doctype and stuff...
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>

must be here:
<body><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>

and
</html></div>

the </div> must be
</div></body>


(You should learn at least a little bit html and css before you modify the style of other webapps...) place you html style code between the <body> and the </body> tag, nowhere else!
and never put html above a session_start();

View PostNabalXela, on Aug 25 2008, 12:32 AM, said:

I translated it to Swedish (I'm Swedish so it's not robot-swedish :lol: ) if you want to add that. If not it's cool

nice work, thank you, i'll just edit it that it fits to iso-8859-1 (in utf8 these characters are not displayed right..)

Swedish ISO-8859-1
"accountexist"=> "Det finns redan ett konto med detta namnet.",
"confirmmail" => "Bekr&auml;fta Mail Adress",
"headerimage" => "Titelbild",
"welcometext" => "V&auml;lkommen till v&aring;r World Of Warcraft Server. Du kan skapa ett konto h&auml;r.",
"mustfillin" => "* F&auml;lten nedan m&aring;ste fyllas i korrekt f&ouml;r att allt ska funka!",
"wowversion" => "World of Warcraft version (TBC / ej TBC)",
"emailinuse" => "Denna mailadressen anv&auml;nds redan.",
"pwnomatch" => "L&ouml;senorden matchar ej varandra.",
"confirmpw" => "Bekr&auml;fta L&ouml;senord",
"mailwrong" => "De tv&aring; mailadresserna matchar ej varandra.",
"username" => "Anv&auml;ndarnamn",
"password" => "L&ouml;senord",
"forename" => "F&ouml;rnamn",
"surename" => "Efternamn",
"congrats" => "Grattis. Ditt konto &auml;r skapat.",
"invalid" => "% F&auml;ltet inneh&aring;ller ej till&aring;tna tecken! Godk&auml;nda: Stora och lilla a-z, 0-9, ., - and _",
"submit" => "Skicka",
"female" => "Kvinna",
"empty" => "% m&aring;ste fyllas i!",
"email" => "Mail address",
"born" => "F&ouml;dd",
"male" => "Man",
"sex" => "K&ouml;n",
"cap" => "Karakt&auml;r sekvensen &auml;r felaktig."

Thanks NabalXela for that translation!
Sorry for my bad english.
ATTENTION:
I haven't been playing WoW (retrail or arc) for over a year. So I don't know all the new designs and database structures and tweaks and values and all that, so don't bother me with "OMG I goz err0R on uR sc1ipAZZ!!! liek TABLE arc_user NOT FOUND. OMZG Wat to do??? halp plz!!" because I will not reply to this.
Swiss quality and neutrality.
Ich spreche Deutsch als Muttersprache. I speak German as first language. Je parle l'allemand comme langue maternelle.
Ich spreche ein wenig englisch. I speak a little bit English. Je parle un peu d'anglais.
Ich spreche ein wenig französisch. I speak a little bit Frensh. Je parle un peu français.
0

#25 User is offline   Uniquesone 

  • Member
  • Pip
  • Group: Members
  • Posts: 31
  • Joined: 07-June 08

Posted 25 August 2008 - 05:11 AM

If its sooo secure, why inserting the password in the password row, and not encrypted in the encrypted_password row?

.. and its not safe agains unix file/folde faking/tagging
0

#26 User is offline   Gachl 

  • Occasional Poster
  • PipPip
  • Group: Members
  • Posts: 113
  • Joined: 08-June 08
  • Location:Basel // Switzerland
  • Interests:PHP and stuff

Posted 25 August 2008 - 05:24 AM

View PostUniquesone, on Aug 25 2008, 12:11 PM, said:

If its sooo secure, why inserting the password in the password row, and not encrypted in the encrypted_password row?

you can set it if you want but the safety of this script has nothing to do with password encryption on the wow db.

View PostUniquesone, on Aug 25 2008, 12:11 PM, said:

.. and its not safe agains unix file/folde faking/tagging

where/on which line?
Sorry for my bad english.
ATTENTION:
I haven't been playing WoW (retrail or arc) for over a year. So I don't know all the new designs and database structures and tweaks and values and all that, so don't bother me with "OMG I goz err0R on uR sc1ipAZZ!!! liek TABLE arc_user NOT FOUND. OMZG Wat to do??? halp plz!!" because I will not reply to this.
Swiss quality and neutrality.
Ich spreche Deutsch als Muttersprache. I speak German as first language. Je parle l'allemand comme langue maternelle.
Ich spreche ein wenig englisch. I speak a little bit English. Je parle un peu d'anglais.
Ich spreche ein wenig französisch. I speak a little bit Frensh. Je parle un peu français.
0

#27 User is offline   Uniquesone 

  • Member
  • Pip
  • Group: Members
  • Posts: 31
  • Joined: 07-June 08

Posted 25 August 2008 - 05:31 AM

There is no specifik line.. you have to protect it

as a hint:

mysql_real_escape_string( htmlentities($args[$i])
0

#28 User is offline   Gachl 

  • Occasional Poster
  • PipPip
  • Group: Members
  • Posts: 113
  • Joined: 08-June 08
  • Location:Basel // Switzerland
  • Interests:PHP and stuff

Posted 25 August 2008 - 05:34 AM

View PostUniquesone, on Aug 25 2008, 12:31 PM, said:

There is no specifik line.. you have to protect it

as a hint:

mysql_real_escape_string( htmlentities($args[$i])

yes it is, its a own function that checks the string for invalid characters, if any it throws an error and runs no queries.
the function is:
CODE-BOX
// Check if a string contains invalid characters
function containsInvalidCharacters($string) {
$string = preg_match('/[^a-zA-Z0-9.-_]/', $string);
return (intval($string) === 0) ? false : true;
}

its protected, its binary safe, its script and html safe and its sql injection safe and as far i dont use include (i dont use include in that script) its remotefileexploit safe
have a nice day.
Sorry for my bad english.
ATTENTION:
I haven't been playing WoW (retrail or arc) for over a year. So I don't know all the new designs and database structures and tweaks and values and all that, so don't bother me with "OMG I goz err0R on uR sc1ipAZZ!!! liek TABLE arc_user NOT FOUND. OMZG Wat to do??? halp plz!!" because I will not reply to this.
Swiss quality and neutrality.
Ich spreche Deutsch als Muttersprache. I speak German as first language. Je parle l'allemand comme langue maternelle.
Ich spreche ein wenig englisch. I speak a little bit English. Je parle un peu d'anglais.
Ich spreche ein wenig französisch. I speak a little bit Frensh. Je parle un peu français.
0

#29 User is offline   Gachl 

  • Occasional Poster
  • PipPip
  • Group: Members
  • Posts: 113
  • Joined: 08-June 08
  • Location:Basel // Switzerland
  • Interests:PHP and stuff

Posted 25 August 2008 - 05:40 AM

View PostBadBull, on Aug 24 2008, 11:39 PM, said:

:( It isnt working same prob, now hat file is like that:

<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>....</div>

Oh i found the source of all evil :P the forums style replaced the codebox-tag with html tags, i fixed it, you can use the code from the first post now.
sorry ;)
Sorry for my bad english.
ATTENTION:
I haven't been playing WoW (retrail or arc) for over a year. So I don't know all the new designs and database structures and tweaks and values and all that, so don't bother me with "OMG I goz err0R on uR sc1ipAZZ!!! liek TABLE arc_user NOT FOUND. OMZG Wat to do??? halp plz!!" because I will not reply to this.
Swiss quality and neutrality.
Ich spreche Deutsch als Muttersprache. I speak German as first language. Je parle l'allemand comme langue maternelle.
Ich spreche ein wenig englisch. I speak a little bit English. Je parle un peu d'anglais.
Ich spreche ein wenig französisch. I speak a little bit Frensh. Je parle un peu français.
0

#30 User is offline   Uniquesone 

  • Member
  • Pip
  • Group: Members
  • Posts: 31
  • Joined: 07-June 08

Posted 25 August 2008 - 06:21 AM

Sry to nerf you again xD

But.. I scanned your site with acunetix and found 2 security holes

Posted Image

Im not allowed to show you the errors, cause of acunetix license.. but maybe the screen will help you..

anyway great script
0

#31 User is offline   BadBull 

  • Member
  • Pip
  • Group: Members
  • Posts: 29
  • Joined: 07-June 08

Posted 25 August 2008 - 07:28 AM

YEH!! Thanks now its working, btw.. I am such good at php and smt, put i got bitt rush ;)
0

#32 User is offline   NabalXela 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 287
  • Joined: 07-July 08
  • Location:Sweden

Posted 04 September 2008 - 04:36 PM

I took some time today to redo the design on the page to go with "Antrix Server Status" page, Not sure on the name but the common one with all the info you need.

Here's a link to how it looks (I assume it doesn't count as advertising since the server isn't public check all wow list/vote sites if you want)
http://status.theeye...r.com/yaart.php

I know I have slightly modded my status page but it's just to change the colours back to the original ones.

So if anyone want this first replace everything inside the "<body></body>" tags with this
		<?PHP echo ($style == 1) ? "<center>" : ""; ?>
		<div class="logo"></div>
		<div style="width:300px">
		<?PHP echo (($headerimage != null) && empty($headerimage)) ? '<img src="' . $headerimage . '" alt="' . $lang['headerimage'] . '">' . "\n" : ''; ?>
		<?PHP foreach ($errors as $error) echo '<span class="error">' . $error . '</span><br>' . "\n";; ?>
		<?PHP if ($success) {; ?>
		<span class="okay"><?PHP echo $lang['congrats']; ?></span>
		<?PHP } else {; ?>
		<form action="?" method="POST">
		<table width="100%" border="0" cellspacing="1" cellpadding="3">
			<tr class="head"><th colspan="2">Account Creation</th></tr>
			<tr>
				<th><?PHP echo $lang['username']; ?>*</th><td align="center">
				<input class="button" type="text"  name="<?PHP echo $fusername; ?>" size="30" /></td>
			</tr>
				<tr>
					<th><?PHP echo $lang['password']; ?>*</th>
					<td align="center"><input class="button" type="password" name="<?PHP echo $fpassword; ?>" size="30" /></td>
				</tr>
				<tr>
					<th><?PHP echo $lang['confirmpw']; ?>*</th>
					<td align="center"><input class="button" type="password" name="<?PHP echo $fconfirmpassword; ?>" size="30" /></td>
				</tr>
				<tr>
					<th><?PHP echo $lang['email']; ?>*</th>
					<td align="center"><input class="button" type="text" name="<?PHP echo $femail; ?>" size="30" /></td>
				</tr>
				<tr>
					<th><?PHP echo $lang['confirmmail']; ?>*</th>
					<td align="center"><input class="button" type="text" name="<?PHP echo $fconfirmemail; ?>" size="30" /></td>
				</tr>
				<tr>
					<th><?PHP echo $lang['wowversion']; ?>*</th>
					<td align="center">
						<select class="button" name="<?PHP echo $fgametype; ?>" />
						<option value="8">TBC</option>
						<option value="1">No Tbc</option>
						</select>
					</td>
				</tr>
				<?PHP if ($enableic) { if (in_array(0, $required) || in_array(0, $notrequired)) {; ?>
				<tr>
					<th><?PHP echo $lang['forename']; ?><?PHP echo in_array(0, $required) ? "*" : ""; ?></th>
					<td align="center"><input class="button" type="text" name="<?PHP echo $fforename; ?>" size="30" /></td>
				</tr>
				<?PHP } if (in_array(1, $required) || in_array(1, $notrequired)) {; ?>
				<tr>
					<th><?PHP echo $lang['surename']; ?><?PHP echo in_array(1, $required) ? "*" : ""; ?></th>
					<td align="center"><input class="button" type="text" name="<?PHP echo $fsurename; ?>" size="30" /></td>
				</tr>
				<?PHP } if (in_array(2, $required) || in_array(2, $notrequired)) {; ?>
				<tr>
					<th><?PHP echo $lang['born']; ?> (dd mm yyyy)<?PHP echo in_array(2, $required) ? "*" : ""; ?></th>
					<td align="center">
						<select class="button" name="<?PHP echo $fdd; ?>" /><?PHP for ($i = 1; $i < 32; $i++) echo "<option>$i</option>\n";; ?></select>
						<select class="button" name="<?PHP echo $fmm; ?>" /><?PHP for ($i = 1; $i < 13; $i++) echo "<option>$i</option>\n";; ?></select>
						<select class="button" name="<?PHP echo $fyyyy; ?>" /><?PHP for ($i = 1920; $i < 2009; $i++) echo "<option>$i</option>\n";; ?></select>
					</td>
				</tr>
				<?PHP } if (in_array(3, $required) || in_array(3, $notrequired)) {; ?>
				<tr>
					<th><?PHP echo $lang['sex']; ?><?PHP echo in_array(3, $required) ? "*" : ""; ?></th>
					<td align="center">
						<select class="button" name="<?PHP echo $fgender; ?>" />
						<option value="0"><?PHP echo $lang['male']; ?></option>
						<option value="1"><?PHP echo $lang['female']; ?></option>
						</select>
					</td>
				</tr>
				<?PHP } }; ?>
				<tr>
					<th><img src="?g=1" alt="captcha" id="captcha"><a href="java script:reloadc()">R</a></th>
					<td align="center"><input class="button" type="text" name="<?PHP echo $fcaptcha; ?>" size="30" /></td>
				</tr>

				</tr>
			</table>
			<?PHP echo $lang['mustfillin']; ?> <br /> <br />
<input class="button" type="submit" name="<?PHP echo $fsubmit; ?>" value="<?PHP echo $lang['submit']; ?>" size="30" />
<a href="stats.xml" style="text-decoration:none" ><input type="button" class="button" value="Status Page" /></a>
			<div style="visibility: hidden;"><input class="button" type="text" name="login"><input class="button" type="password" name="password"></div>
		</form>
		<?PHP }; ?>
		<div class="footer">This script is made by Gachl. Redesigned by AlexLaban<->NabalXela.</div>
		<?PHP echo ($style == 1) ? "</center>" : ""; ?>


When you're done with that replace this
		<style type="text/css">
		<!--
		body {
			background-color: #<?= $backgroundcolor ?>;
			color: #<?= $textcolor ?>;
			font-family: <?= $fontfamily ?>;
			font-size: <?= $fontsize ?>;
		}

		.error {
			color: #<?= $warningcolor ?>;
		}

		.okay {
			color: #<?= $okaycolor ?>;
		}
		-->
		</style>


With this
		<style type="text/css">
html, body {
	background: #000000 url(bg_tile.gif);
	margin: 0px;
	color: #848484;
	font-family:Arial, Helvetica, sans-serif;
	font-size:9pt;
}

.logo {
	width: 100%;
	background: url(antrix.png) no-repeat center;
	height: 200px;
}

table {
	background: #1f1f1f;
	border: 1px solid #363636;
	margin-bottom:20px;
}

td {	
	background-color:black;
	font-size:9pt;
}

th {
	background: #373737 url(gradient_thead.gif) repeat-x top left;
	font-size:9pt;
	text-align: left;
	color:#FFFFFF;
	border-top: 1px solid #363636;
}

tr.head th {
	background: #5b8d22 url(gradient_tcat.gif) repeat-x top left;
	text-align:center;
	font-size:10pt;
	color:#000000;
	padding:5px;
}

.footer {
	font-size:7pt;
	margin:10px 0 10px 0;
}

.button {
	background: #373737 url(gradient_thead.gif) repeat-x top left;
	color: #FFFFFF;
	border: 1px solid #d28f00;
	width:120px;
	margin:0px 10px 0px 10px;
	font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}

.error {
	color:#FF0000;
}
		<!--
		.error {
			color: #<?PHP echo $warningcolor; ?>;
		}

		.okay {
			color: #<?PHP echo $okaycolor; ?>;
		}
		-->
		</style>

Then save rename it to register.php and replace the original register.php file in your status folder.

If you don't want orange and want to use what color your status page use don't do the last replacement and instead delete this
		body {
			background-color: #<?= $backgroundcolor ?>;
			color: #<?= $textcolor ?>;
			font-family: <?= $fontfamily ?>;
			font-size: <?= $fontsize ?>;
		}

And add this over the <style> tag
<link rel="stylesheet" type="text/css"
href="server_stats.css">

Feel free to use this as much you want and Gachl if you think something is wrong with it or so tell me so I can change it :).
Hope someone will like this.

Old signature but I'm currently to lazy to make a new one :/
0

#33 User is offline   Gachl 

  • Occasional Poster
  • PipPip
  • Group: Members
  • Posts: 113
  • Joined: 08-June 08
  • Location:Basel // Switzerland
  • Interests:PHP and stuff

Posted 05 September 2008 - 12:41 AM

really nice, good work! thank you!
there is one little error:
<a href="java script:reloadc()">R</a>

must be javascript (without space)
that stupid forum adds a space between java and script (wtf???)
Sorry for my bad english.
ATTENTION:
I haven't been playing WoW (retrail or arc) for over a year. So I don't know all the new designs and database structures and tweaks and values and all that, so don't bother me with "OMG I goz err0R on uR sc1ipAZZ!!! liek TABLE arc_user NOT FOUND. OMZG Wat to do??? halp plz!!" because I will not reply to this.
Swiss quality and neutrality.
Ich spreche Deutsch als Muttersprache. I speak German as first language. Je parle l'allemand comme langue maternelle.
Ich spreche ein wenig englisch. I speak a little bit English. Je parle un peu d'anglais.
Ich spreche ein wenig französisch. I speak a little bit Frensh. Je parle un peu français.
0

#34 User is offline   NabalXela 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 287
  • Joined: 07-July 08
  • Location:Sweden

Posted 05 September 2008 - 04:01 AM

Didn't see that problem. I'll take a look on it when I come home.

Old signature but I'm currently to lazy to make a new one :/
0

#35 User is offline   Gachl 

  • Occasional Poster
  • PipPip
  • Group: Members
  • Posts: 113
  • Joined: 08-June 08
  • Location:Basel // Switzerland
  • Interests:PHP and stuff

Posted 05 September 2008 - 04:03 AM

try clicking on the "R" next to the captcha image on your page (http://status.theeye...r.com/yaart.php)
Sorry for my bad english.
ATTENTION:
I haven't been playing WoW (retrail or arc) for over a year. So I don't know all the new designs and database structures and tweaks and values and all that, so don't bother me with "OMG I goz err0R on uR sc1ipAZZ!!! liek TABLE arc_user NOT FOUND. OMZG Wat to do??? halp plz!!" because I will not reply to this.
Swiss quality and neutrality.
Ich spreche Deutsch als Muttersprache. I speak German as first language. Je parle l'allemand comme langue maternelle.
Ich spreche ein wenig englisch. I speak a little bit English. Je parle un peu d'anglais.
Ich spreche ein wenig französisch. I speak a little bit Frensh. Je parle un peu français.
0

#36 User is offline   short 

  • Member
  • Pip
  • Group: Members
  • Posts: 79
  • Joined: 22-September 08

Posted 31 October 2008 - 02:09 PM

Guys-- Please be nice to your fellow forum readers.

Please use [ codebox] and [ /codebox] (without the extra " "'s.

Short
0

#37 User is offline   SLameys 

  • Member
  • Pip
  • Group: Members
  • Posts: 10
  • Joined: 29-September 08

  Posted 18 November 2008 - 05:04 PM

How about adding suport for WOTLK i like this
0

#38 User is offline   Gachl 

  • Occasional Poster
  • PipPip
  • Group: Members
  • Posts: 113
  • Joined: 08-June 08
  • Location:Basel // Switzerland
  • Interests:PHP and stuff

Posted 16 April 2009 - 09:25 AM

like this:
FIND CODE
<option value="8">World of Warcraft: The burning crusade</option>
<option value="1">World of Warcraft</option>

REPLACE WITH
<option value="16">World of Warcraft: WOTLK</option>
<option value="8">World of Warcraft: The burning crusade</option>
<option value="1">World of Warcraft</option>

(Maybe value 16 is not correct, I have NO idea what ID WOTLK is, just replace it by the correct value and don't bother me with 'omg teh shiats not wurking omg why' because the id is wrong.)
Sorry for my bad english.
ATTENTION:
I haven't been playing WoW (retrail or arc) for over a year. So I don't know all the new designs and database structures and tweaks and values and all that, so don't bother me with "OMG I goz err0R on uR sc1ipAZZ!!! liek TABLE arc_user NOT FOUND. OMZG Wat to do??? halp plz!!" because I will not reply to this.
Swiss quality and neutrality.
Ich spreche Deutsch als Muttersprache. I speak German as first language. Je parle l'allemand comme langue maternelle.
Ich spreche ein wenig englisch. I speak a little bit English. Je parle un peu d'anglais.
Ich spreche ein wenig französisch. I speak a little bit Frensh. Je parle un peu français.
0

#39 User is offline   ¤Rob¤ 

  • Member
  • Pip
  • Group: Members
  • Posts: 30
  • Joined: 12-April 09

Posted 17 April 2009 - 03:41 PM

WoTLK ID is 24. I have successfully updated Gachl's awesome php form to work flawlessly with WoTLK. I completely removed the other 2 options.

Also, Just changing those ID's is incorrect, Gachl. I have tried to do so and was returned an error stating that "The (blah blah blah) has incorrect characters)" and it referenced your "a-Z, 0-8" ect.

This line MUST be changed to add a "24" value option to the script:

if (($gt !== 24) && ($gt !== 24))
$errors[] = invalid($lang['wowversion']);


Where you see "24" it was 1 and 8 in the stock code. You may also be able to change this line:

$possible = "0123456789bcdfghjkmnpqrstvwxyz";


But it doesn't seem feasible to just start adding a count all the way to 24 and since my change worked, Just use that.
/join #Rob-Help on IRC for "noob" help with new installs/DB questions!
www.twinkserver.com
0

#40 User is offline   Gachl 

  • Occasional Poster
  • PipPip
  • Group: Members
  • Posts: 113
  • Joined: 08-June 08
  • Location:Basel // Switzerland
  • Interests:PHP and stuff

Posted 28 April 2009 - 08:21 AM

Oops, thanks for that, I don't know anymore how my script works :P
Sorry for my bad english.
ATTENTION:
I haven't been playing WoW (retrail or arc) for over a year. So I don't know all the new designs and database structures and tweaks and values and all that, so don't bother me with "OMG I goz err0R on uR sc1ipAZZ!!! liek TABLE arc_user NOT FOUND. OMZG Wat to do??? halp plz!!" because I will not reply to this.
Swiss quality and neutrality.
Ich spreche Deutsch als Muttersprache. I speak German as first language. Je parle l'allemand comme langue maternelle.
Ich spreche ein wenig englisch. I speak a little bit English. Je parle un peu d'anglais.
Ich spreche ein wenig französisch. I speak a little bit Frensh. Je parle un peu français.
0

Share this topic:


  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users