Log in
Latest topics
Who is Online ?
In total there are 12 users online :: 0 Registered, 0 Hidden and 12 Guests :: 1 BotNone
Most users ever online was 395 on Sun 18 May 2008, 11:28 am
Top posters
| ServerBot (7646) | ||||
| Swifteh (7171) | ||||
| Charlie Face (4524) | ||||
| Lisyhalath (3900) | ||||
| Scruffay (3895) | ||||
| kitch (3536) | ||||
| Min0rity (3192) | ||||
| Ubberpownage88 (3021) | ||||
| bacongrease2 (2761) | ||||
| Juicy (2649) |
AAPDRDS fix
Page 1 of 1 • Share •
AAPDRDS fix
Ok so i was helping one of the people from mmowned with AAPDRDS donation system.
And i found out the script was written with 2 mistakes, that is why most of the people cannot get it working.
here is why
index..php
this is wrong
has to be
has to be like this
And i found out the script was written with 2 mistakes, that is why most of the people cannot get it working.
here is why
index..php
- Code:
}
else
{
$con = mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_PASS);
mysql_select_db(MYSQL_DATA);
$res = mysql_query("SELECT entry,name FROM realms");
$REALMS = "{";
while($row = mysql_fetch_array($res))
{
$REALMS .= ((int)$row['entry']-1).":\"".$row['name']."\",";
this is wrong
- Code:
$res = mysql_query("SELECT entry,name FROM realms");
- Code:
$REALMS .= ((int)$row['entry']-1).":\"".$row['name']."\",";
has to be
- Code:
$res = mysql_query("SELECT id,name FROM realms");
- Code:
$REALMS .= ((int)$row['id']-1).":\"".$row['name']."\",";
has to be like this
- Code:
header("Cache-control: no-cache, must-revalidate\r\n");
require_once("config.php");
if(isset($_GET['char']))
{
$con = mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_PASS);
mysql_select_db(MYSQL_DATA);
$Name = mysql_real_escape_string($_GET['char']);
$Realm = mysql_real_escape_string($_GET['realm']);
$Realm = (int)$Realm+1;
$res = mysql_query("SELECT sqlhost,sqluser,sqlpass,chardb FROM realms WHERE id='{$Realm}'");
$row = mysql_fetch_array($res);
mysql_close($con);
$con = mysql_connect($row['sqlhost'],$row['sqluser'],$row['sqlpass']);
mysql_select_db($row['chardb']);
$res = mysql_query("SELECT guid FROM characters WHERE name='{$Name}'");
if(mysql_num_rows($res) == 1)
{
$row = mysql_fetch_array($res);
echo $row['guid'];
}
else
{
echo "0";
die;
}
mysql_close($con);
}
else
{
$con = mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_PASS);
mysql_select_db(MYSQL_DATA);
$res = mysql_query("SELECT id,name FROM realms");
$REALMS = "{";
while($row = mysql_fetch_array($res))
{
$REALMS .= ((int)$row['id']-1).":\"".$row['name']."\",";
}
$REALMS .= "\"undefined\":0}";
$res = mysql_query("SELECT entry,name,realm,description,price FROM rewards");
$REWARDS = "{";
while($row = mysql_fetch_array($res))
{
$REWARDS .= ((int)$row['entry']-1).":{name:\"".$row['name']."\",realm:".((int)$row['realm']-1).",description:\"".addslashes($row['description'])."\",price:".$row['price']."},";
$DESCRIPTIONS .= "".$row['description']."
";
}
$REWARDS .= "\"undefined\":0}";
$REWARDS = str_replace("\r","\\r",$REWARDS);
$REWARDS = str_replace("\n","\\n",$REWARDS);
include("form.php");
mysql_close($con);
}
?>
_________________

Permissions of this forum:
You cannot reply to topics in this forum




















» Idea for Arena Rating and Arena Rewards
» shammy bug
» Gentlemen?
» Rous aka Zanukan attention please
» I cant get my tokens when i vote.
» Hi again --- imweedy
» pizzabox2 whats ur name?
» Epic Vendors. Mangos 3.2.3, Trinity 3.1.3, Arc-EMu
» Congrats..
» W00t
» Vcn
» Warlock fears true teh walls :S
» ummmm wtf?
» V.C.N Website for any Emu
» The different of the two servers :)
» Sup!
» Heroes of Northrend 3.2.2
» [Release]T9 Vendors, ArcEMU and Mangos
» Read here!