It is currently Mon May 19, 2025 6:02 pm View unanswered posts | View active topics |


Board index » General Gaming » Gaming Screenshots & Videos


Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: This website is 1352362367x better during maintenance.
PostPosted: Tue Sep 14, 2004 9:34 pm 
Eater of cow souls

Joined: Wed Jul 14, 2004 1:21 am
Posts: 1601
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 14, 2004 11:23 pm 
Star-Spangled Subligar
Star-Spangled Subligar
User avatar

Joined: Wed Dec 31, 1969 7:00 pm
Posts: 15671
Location: THE DOJO
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

_________________
COBRA KAI DOJO NEVER DIES
RIP Shiloh


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 15, 2004 12:14 am 
Decent Challenge
Decent Challenge

Joined: Mon May 17, 2004 11:33 am
Posts: 550
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..

_________________
-Formerly Movien, greatest Beastmaster evah


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 15, 2004 4:33 am 
Tough!
Tough!
User avatar

Joined: Thu Jul 01, 2004 1:27 pm
Posts: 840
Location: Surrey, UK
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]);
}

?>

_________________
Kasdaye Regnar


Last edited by Regnar on Wed Sep 15, 2004 4:54 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 15, 2004 4:48 am 
Devourer of Souls~
Devourer of Souls~

Joined: Mon May 17, 2004 10:16 pm
Posts: 1428
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 15, 2004 7:02 am 
Star-Spangled Subligar
Star-Spangled Subligar
User avatar

Joined: Wed Dec 31, 1969 7:00 pm
Posts: 15671
Location: THE DOJO
regnar

maybe, looks better than mine.

_________________
COBRA KAI DOJO NEVER DIES
RIP Shiloh


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 15, 2004 7:11 am 
Tough!
Tough!
User avatar

Joined: Thu Jul 01, 2004 1:27 pm
Posts: 840
Location: Surrey, UK
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.

_________________
Kasdaye Regnar


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 15, 2004 7:11 pm 
Decent Challenge
Decent Challenge
User avatar

Joined: Mon Jun 07, 2004 8:44 pm
Posts: 494
Location: Somewhere over the rainbow
i never knew my favorite brd regnar was such a computer wizzzzzeeee ;)

_________________
Sometimes when i take off my pants, yarr stares at me

Is this ok?

Level 65 Dragoon
Rank 9 Sandoria
Woodworking 72.0 Fishing 55.7
Smithing 34.0 Leathercraft 28.4
Bonecraft 22.7 Cooking 11.0


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 16, 2004 12:09 am 
I;m in cobr a kuy dogo
I;m in cobr a kuy dogo
User avatar

Joined: Fri May 14, 2004 8:56 am
Posts: 2400
Quote:
never knew my favorite brd regnar was such a computer wizzzzzeeee



F U

_________________
Image
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 16, 2004 3:48 am 
Tough!
Tough!
User avatar

Joined: Thu Jul 01, 2004 1:27 pm
Posts: 840
Location: Surrey, UK
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.)

_________________
Kasdaye Regnar


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 16, 2004 6:18 am 
Decent Challenge
Decent Challenge
User avatar

Joined: Mon Jun 07, 2004 8:44 pm
Posts: 494
Location: Somewhere over the rainbow
talisin, you're my favorite sam k?

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

k? ;)

_________________
Sometimes when i take off my pants, yarr stares at me

Is this ok?

Level 65 Dragoon
Rank 9 Sandoria
Woodworking 72.0 Fishing 55.7
Smithing 34.0 Leathercraft 28.4
Bonecraft 22.7 Cooking 11.0


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

Board index » General Gaming » Gaming Screenshots & Videos


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group