Yarr The Pirate!
https://w.yarrthepirate.com/phpbb3/

This website is 1352362367x better during maintenance.
https://w.yarrthepirate.com/phpbb3/viewtopic.php?f=8&t=1211
Page 1 of 1

Author:  Ultimaj [ Tue Sep 14, 2004 9:34 pm ]
Post subject:  This website is 1352362367x better during maintenance.

Image

Author:  Yarr [ Tue Sep 14, 2004 11:23 pm ]
Post subject: 

lol i agree

write a scrip for me to switch the sql login user before it caps out and we can fix it.

I just cant get my script to run, im retarded thats why

Author:  Monstercloud [ Wed Sep 15, 2004 12:14 am ]
Post subject: 

UltimaJ.. you go to Gamefaq forums?...

In light of this new evidence...



....i suggest you allow us to pee on you since you come from the filth of that place..

Author:  Regnar [ Wed Sep 15, 2004 4:33 am ]
Post subject: 

off the top of my head this should work, just add it in place of your current db connection lines. and insert valid user/passwords etc.

I would test it but i dont have time to play, have a go (and make sure you backup your current index files that you change)


Code:
<?

$verified = false;
$test = 0;
$userdata = array("username" => "user0",
               "password" => "pass0"
            );

while(!$verified) {
   if($db_con = mysql_connect("hostname", $userdata['username'], $userdata['password'])) {
      mysql_select_db("yarrs_forum_db", $db_con);
      $verified = true;
   }
   else {
      list($userdata['username'], $userdata['password']) = change_db_user($test);
      $test ++;
      if($test == 5) {
         die("All available user/password combinations have been tested and failed!!!");
      }
      $verified = false;
   }
}

function change_db_user($counter) {
   $rtn = array();
   
   $usernames = array("user1", "user2", "user3", "user4", "user5", "user6");
   $passwords = array("pass1", "pass2", "pass3", "pass4", "pass5", "pass6");
   
   return array($usernames[$counter], $passwords[$counter]);
}

?>

Author:  Vurin [ Wed Sep 15, 2004 4:48 am ]
Post subject: 

I post on the gamefaqs.com forums... Granted I only post like 1-2 messages every couple days but I make it a point to check it for a little while each day.

Author:  Yarr [ Wed Sep 15, 2004 7:02 am ]
Post subject: 

regnar

maybe, looks better than mine.

Author:  Regnar [ Wed Sep 15, 2004 7:11 am ]
Post subject: 

i can make you a quick script you can run to make 50,000 database queries too if you want, so it times out a user account for you, pretty easy ;) but could be malicous (for the testing side that is ;) )


PS: I can add comments if you need, i just assumed you can understand what i wrote as its not very long.

Author:  Plasma [ Wed Sep 15, 2004 7:11 pm ]
Post subject: 

i never knew my favorite brd regnar was such a computer wizzzzzeeee ;)

Author:  Talisin [ Thu Sep 16, 2004 12:09 am ]
Post subject: 

Quote:
never knew my favorite brd regnar was such a computer wizzzzzeeee



F U

Author:  Regnar [ Thu Sep 16, 2004 3:48 am ]
Post subject: 

Bah i have a degree in computer science :p

dont php for 4yrs now.

oh btw something i thought about is that this script will only kick in once you cant make a connection. If you have made the connection and are running queries then it could fail half way still but on refreshing it should kick in and change the user data.... needs to be tested i do have another method you could try too but its more complex. (never had a problem with user queries before.)

Author:  Plasma [ Thu Sep 16, 2004 6:18 am ]
Post subject: 

talisin, you're my favorite sam k?

regnar was my favorite brd from like a long time ago k?

k? ;)

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/