MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides  
Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > WoW Emulator Server > Emulator Server Guides > Ascent Guides
Reload this Page Make an GM registration page
Ascent Guides This section is for WoW emulated server, Ascent guides.
[NO QUESTIONS HERE]

Reply
 
LinkBack Thread Tools
Make an GM registration page
(#1)
Old
groonie's Avatar
groonie is Offline
Sergeant
Rep Power: 3
Reputation: 7
groonie is an unknown quantity at this point
 
Posts: 55
Join Date: Sep 2006
Codes Make an GM registration page - 12-06-2007

Discription
I know meny servers were they say that all can be GM's but first you have to send me a mail and after 50hours ill check the mail

Nobody wants that...
....so ive made this guide; how to make an GM rigistration page

Required
This is only tested on ascent...
This is only tested with AC-Repack... (sure it works on all but this guide is made with AC-repack)
You dont need any programs, else than notepad.

Guide

1) Open: C:\AC Web Ultimate Repack\Server\htdocs\stats\register.php
(with notepad)
site root, and then the rigistration page....

2) the file should look something like this:

Code:
/*
<?php
#################
# #
# #
# Enjoy! #
# #
# #
#################
include("config.php");
error_reporting(E_ALL ^ E_NOTICE);
session_start();
$msg = Array();
$error = Array();
function addUser(){
if (empty($_POST)) return false;
global $config, $msg, $error;
if (empty($_POST['login'])) $error[] = 'Error, You forgot to enter a account name!';
if (empty($_POST['password'][0]) || empty($_POST['password'][1])) $error[] = 'Error, You forgot to enter a password!';
if ($_POST['password'][0] !== $_POST['password'][1]) $error[] = 'Password does not match!';
if (empty($_POST['email'])) $error[] = 'Please fill in a valid email adress!';
if (!empty($error)) return false;
$db = @mysql_connect($config['mysql_host'], $config['mysql_user'], $config['mysql_pass']);
if (!$db) return $error[] = 'Database: '.mysql_error();
if (!@mysql_select_db($config['mysql_dbname'], $db)) return $error[] = 'Database: '.mysql_error();
$query = "SELECT `acct` FROM `accounts` WHERE `login` = '".mysql_real_escape_string($_POST['login'])."'";
$res = mysql_query($query, $db);
if (!$res) return $error[] = 'Database: '.mysql_error();
if (mysql_num_rows($res) > 0) return $error[] = 'Username already in use.';
$query = "INSERT INTO `accounts` (`login`,`password`,`lastip`, `email`, `flags`) VALUES ('".mysql_real_escape_string($_POST['login'])."', '".mysql_real_escape_string($_POST['password'][0])."', '".$_SERVER['REMOTE_ADDR']."', '".mysql_real_escape_string($_POST['email'])."', '8')";
$res = mysql_query($query, $db);
if (!$res) return $error[] = 'Database: '.mysql_error();
$msg[] = 'The Account <span style="color:#00FF00"><strong>'.htmlentities($_POST['login']).'</strong></span> has been created!';
mysql_close($db);
return true;
}
{
addUser();
}
?>
 
<html xmlns="[Only registered and activated users can see links. ]" >
<head>
<title>Account Creation Page</title>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<style type="text/css" media="screen">@import url(server_stats.css);</style>
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->
</head>
<body>
<center>
<div class="logo"></div>
<div style="width:300px">
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr class="head"><th colspan="2">Account Creation</th></tr>
<tr>
<th>Username: </th><td align="center"><input class="button" type="text" name="login" size="30" maxlength="16"/></td>
</tr>
<tr>
<th>Password: </th><td align="center"><input class="button" type="password" name="password[]" size="30" maxlength="16"/></td>
</tr>
<tr>
<th>Retype Password: </th><td align="center"><input class="button" type="password" name="password[]" size="30" maxlength="16"/></td>
</tr>
<tr>
<th>E-mail: </th><td align="center"><input class="button" type="text" name="email" size="30" maxlength="30"/></td>
</tr>
</table>
<input type="button" class="button" value="Back" onClick="history.go(-1)" />
<input type="submit" value="Create" class="button"/>
</form>
<?php
if (!empty($error)){
echo '<table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td class="error" align="center">';
foreach($error as $text)
echo $text.'</br>';
echo '</td></tr></table>';
};
if (!empty($msg)){
echo '<table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td align="center">';
foreach($msg as $text)
echo $text.'</br>';
echo '</td></tr></table>';
exit();
};
?>
</div>
 
</center>
</body>
</html>
*/


3) while in notepad press CTRL + G.
write: "35"
4) change all in that line to:

Code:
/*
$query = "INSERT INTO `accounts` (`login`,`password`,`gm`,`lastip`, `email`, `flags`) VALUES ('".mysql_real_escape_string($_POST['login'])."', '".mysql_real_escape_string($_POST['password'][0])."', 'az', '".$_SERVER['REMOTE_ADDR']."', '".mysql_real_escape_string($_POST['email'])."', '8')";
*/

5) Save


Now then people register all accounts will be GM / ADMIN
------------------------

Explanation
Will come tomorrow...


(This is made by myself)
~GrooN
Reply With Quote

Donate to remove ads.
(#2)
Old
kayleta's Avatar
kayleta is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 17
kayleta is on a distinguished road
 
Posts: 247
Join Date: Aug 2007
12-06-2007

So many posts you have made!


Reply With Quote
(#3)
Old
groonie's Avatar
groonie is Offline
Sergeant
Rep Power: 3
Reputation: 7
groonie is an unknown quantity at this point
 
Posts: 55
Join Date: Sep 2006
12-07-2007

I know, but what about the guide? :P
Reply With Quote
(#4)
Old
gurpreet is Offline
Master Sergeant
Rep Power: 2
Reputation: 5
gurpreet is an unknown quantity at this point
 
Posts: 93
Join Date: Sep 2007
12-07-2007

I think thats wrong because "az" would make them admin. Just "a" would make them GM, im not sure so if someone else can say yes
Reply With Quote
(#5)
Old
groonie's Avatar
groonie is Offline
Sergeant
Rep Power: 3
Reputation: 7
groonie is an unknown quantity at this point
 
Posts: 55
Join Date: Sep 2006
12-07-2007

you're right but it still works
Reply With Quote
(#6)
Old
Xo 0wner oX's Avatar
Xo 0wner oX is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 0
Reputation: 1
Xo 0wner oX is an unknown quantity at this point
 
Posts: 4
Join Date: Mar 2007
Location: Australia
12-07-2007

Great Guide been lookin for this all over. About time. Thanks
Reply With Quote
(#7)
Old
groonie's Avatar
groonie is Offline
Sergeant
Rep Power: 3
Reputation: 7
groonie is an unknown quantity at this point
 
Posts: 55
Join Date: Sep 2006
12-07-2007

Quote:
Originally Posted by Xo 0wner oX View Post
Great Guide been lookin for this all over. About time. Thanks
No problem mate


Reply With Quote
(#8)
Old
P--JawZ--K is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 0
Reputation: 1
P--JawZ--K is an unknown quantity at this point
 
Posts: 4
Join Date: Jan 2008
01-06-2008

What about having an alternate registration page for gm registration only. And hava a password for enabling the registration. And the password could be sent as a pm or whatever, over the website. I'm not good at these .html, .php or whatever need's to be done for this to work but, if someone could do it would nice to have that kinda thing on a website.

EDIT: Think I know how to do it myself now, so no need to rush in here and give me an answer (not that I didn't thought I would get an answer, but yeah...)

Last edited by P--JawZ--K; 01-07-2008 at 02:00 PM..
Reply With Quote
(#9)
Old
mythicofforgotten is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 0
Reputation: 1
mythicofforgotten is an unknown quantity at this point
 
Posts: 4
Join Date: Mar 2008
03-09-2008

nice guide you have got here thanks for posting it
Reply With Quote
(#10)
Old
death1 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 1
death1 is an unknown quantity at this point
 
Posts: 19
Join Date: Mar 2008
Location: Romania
03-22-2008

Nice guide
Reply With Quote
(#11)
Old
Kyoshero's Avatar
Kyoshero is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 2
Kyoshero is an unknown quantity at this point
 
Posts: 21
Join Date: Feb 2008
Location: MI
05-13-2008

Server don't last long like that
Reply With Quote
right
(#12)
Old
nigthy's Avatar
nigthy is Offline
Master Sergeant
Rep Power: 2
Reputation: 6
nigthy is an unknown quantity at this point
 
Posts: 73
Join Date: May 2007
Location: Haugesund, Norway
right - 05-15-2008

Quote:
Originally Posted by gurpreet View Post
I think thats wrong because "az" would make them admin. Just "a" would make them GM, im not sure so if someone else can say yes
yea.. ur right :P
Reply With Quote
(#13)
Old
helios00100 is Offline
Sergeant
Rep Power: 1
Reputation: 6
helios00100 is an unknown quantity at this point
 
Posts: 59
Join Date: Apr 2008
Location: M@RW@N
06-10-2008

Thanxxxxxxxx this realy realy helped alooot! but i changed az to 1 thanxxxx +rep just lemme spread somethings around and ill rep
Reply With Quote
(#14)
Old
helios00100 is Offline
Sergeant
Rep Power: 1
Reputation: 6
helios00100 is an unknown quantity at this point
 
Posts: 59
Join Date: Apr 2008
Location: M@RW@N
06-10-2008

dont u get it make it 1 so server will last
Reply With Quote
(#15)
Old
eddiewom's Avatar
eddiewom is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 1
eddiewom is an unknown quantity at this point
 
Posts: 12
Join Date: Feb 2008
Location: TinkerTown
06-10-2008

OMG nice one (i will never use it, making all members gm ) but still nice
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382