WoWPortal PVE Server
Would you like to react to this message? Create an account in a few clicks or log in to continue.

WoWPortal PVE Server

WoWPortal Custom PVE Server like no other!
 
Latest imagesportalHomeRegisterLog in
VCN WOW IS NOW ON HTTP://VCNWOW.NET
If you are looking for V.C.N






Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» V.C.N WOW IS NOW ON VCNWOW.NET
AAPDRDS fix Icon_minitimeWed 06 Feb 2019, 4:50 pm by Zanukan

» INTRODUCTION Destiny
AAPDRDS fix Icon_minitimeThu 18 Oct 2018, 6:54 pm by Destiny

» 2.4.3 oldfags still here? whats up?
AAPDRDS fix Icon_minitimeThu 18 Oct 2018, 10:05 am by Zanukan

» An Thread dedicated to Old School 2.4.3 and all its memories
AAPDRDS fix Icon_minitimeSat 19 Mar 2016, 8:56 am by Shifthappens

» Hey sexy Gentlemen and Ladies
AAPDRDS fix Icon_minitimeThu 24 Jan 2013, 11:21 am by Suspect2

» yoo
AAPDRDS fix Icon_minitimeMon 13 Aug 2012, 1:34 pm by Casp'

» hay gm
AAPDRDS fix Icon_minitimeThu 09 Aug 2012, 11:47 pm by sevenhuehuelol

» Ques for GM
AAPDRDS fix Icon_minitimeThu 09 Aug 2012, 11:43 pm by sevenhuehuelol

» YES IT IS I
AAPDRDS fix Icon_minitimeMon 30 Jul 2012, 11:21 am by Casp'

» oldfags asemble
AAPDRDS fix Icon_minitimeTue 03 Jul 2012, 3:19 pm by -BoomBox

» Oh hai...
AAPDRDS fix Icon_minitimeTue 19 Jun 2012, 3:55 pm by Queshi

» hey windir bro guess what
AAPDRDS fix Icon_minitimeTue 19 Jun 2012, 3:55 pm by Queshi

» Downpatch from 3.0.8 to 3.0?
AAPDRDS fix Icon_minitimeMon 20 Jun 2011, 12:54 pm by windir2

» Mouthless asking me for RESS! LOOL
AAPDRDS fix Icon_minitimeThu 26 May 2011, 5:29 pm by Feel

» Need an unstuck
AAPDRDS fix Icon_minitimeTue 24 Nov 2009, 2:48 am by ombladon123

» Idea for Arena Rating and Arena Rewards
AAPDRDS fix Icon_minitimeMon 23 Nov 2009, 7:58 pm by Raddau

» shammy bug
AAPDRDS fix Icon_minitimeMon 23 Nov 2009, 1:35 pm by stomstrikes

» Gentlemen?
AAPDRDS fix Icon_minitimeMon 23 Nov 2009, 1:33 pm by stomstrikes

» Rous aka Zanukan attention please
AAPDRDS fix Icon_minitimeMon 23 Nov 2009, 3:36 am by ryonis

» I cant get my tokens when i vote.
AAPDRDS fix Icon_minitimeSun 22 Nov 2009, 1:26 pm by demonolator12345

Who is online?
In total there are 6 users online :: 0 Registered, 0 Hidden and 6 Guests

None

Most users ever online was 395 on Sun 18 May 2008, 12:28 pm
Top posters
ServerBot (7646)
AAPDRDS fix Vote_lcapAAPDRDS fix Voting_barAAPDRDS fix Vote_rcap 
Swifteh (7171)
AAPDRDS fix Vote_lcapAAPDRDS fix Voting_barAAPDRDS fix Vote_rcap 
Charlie Face (4524)
AAPDRDS fix Vote_lcapAAPDRDS fix Voting_barAAPDRDS fix Vote_rcap 
Lisyhalath (3900)
AAPDRDS fix Vote_lcapAAPDRDS fix Voting_barAAPDRDS fix Vote_rcap 
Scruffay (3896)
AAPDRDS fix Vote_lcapAAPDRDS fix Voting_barAAPDRDS fix Vote_rcap 
kitch (3536)
AAPDRDS fix Vote_lcapAAPDRDS fix Voting_barAAPDRDS fix Vote_rcap 
Min0rity (3192)
AAPDRDS fix Vote_lcapAAPDRDS fix Voting_barAAPDRDS fix Vote_rcap 
Ubberpownage88 (3023)
AAPDRDS fix Vote_lcapAAPDRDS fix Voting_barAAPDRDS fix Vote_rcap 
bacongrease2 (2761)
AAPDRDS fix Vote_lcapAAPDRDS fix Voting_barAAPDRDS fix Vote_rcap 
Juicy (2649)
AAPDRDS fix Vote_lcapAAPDRDS fix Voting_barAAPDRDS fix Vote_rcap 
Keywords
Meatstick MEAT Spotlight

 

 AAPDRDS fix

Go down 
AuthorMessage
Zanukan
WWemu Expert
WWemu Expert
Zanukan


Number of posts : 856
Age : 45
Joined : 2007-12-11
Points : 14310
Reputation : 3197

AAPDRDS fix Empty
PostSubject: AAPDRDS fix   AAPDRDS fix Icon_minitimeThu 05 Nov 2009, 6:04 pm

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
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);
    }
?>
Back to top Go down
http://www.vcnserver.net
 
AAPDRDS fix
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
WoWPortal PVE Server :: Releases :: Websites-
Jump to: