Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2006
    Posts
    1,128
    Tokens
    0

    Latest Awards:

    Default Install files, help

    Hi,

    Spent all last night making this, but found out one of the 3 tables works and inserts itsself to the data base.

    PHP Code:
    <?php
    include ('../inc/config.php');
    switch(
    $_GET["step"])
    {
        case 
    "1":
            
    ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>SP install beta one</title>
    </head>

    <body>
    <table width="982" height="263" border="1">
      <tr>
        <td height="257"><center/>
          <p>Welcome to Z-junk install, this will install everything for you.</p>
          <p>This install was made by Nick Cocchiarella.</p>
          <p>We hope you enjoy Z-Junk.</p>
          Read me: list to do, install and play.chmd 777 sv_serv and sc_trans_linux. then you can have fun!
               <p><a href="?step=2">Click here to start. </a></p></td>
        <p> have a useful idea? why not email me.</p>
        <p> [email protected] </p>
      </tr>
    </table>
    <p>Read me: list to do, install and play.chmd 777 sv_serv and sv_server_linux. then you can have fun! </p>
    <p>Have a problem with this software, report it to: [email protected], he will sort it out, and its a msn add aswell. </p>
    </body>
    </html>
    <?php
        
    break;
    case 
    "2":
    ?>>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>

    <body>
    <table width="982" height="190" border="1">
      <tr>
        <td height="23"><center/>
         <p> You havn't got an error, at stage two, this is good,lets continue.
              <p><a href="?step=3">Click here.</a></p></td>
      </tr>
    </table>
    </body>
    </html>
    <?php
        
    break;
    case 
    "3":
    ?>
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>

    <body>
    <table width="982" height="190" border="1">
      <tr>
        <td height="23"><center/>
         <p> Lets insert the tables.
         <?
    mysql_query
    ("CREATE TABLE `servers` (`id` varchar(8) NOT NULL, `nick` varchar(8) NOT NULL,`owner` varchar(8) NOT NULL, `port` varchar(8) NOT NULL, `listeners` varchar(8) NOT NULL, `pid` varchar(8) NOT NULL,`adjpid` varchar(8) NOT NULL) ENGINE=MyISAM");
    mysql_query("CREATE TABLE `users` (`id varchar (8) NOT NULL, `username` varchar(15) NOT NULL, `password` VARCHAR(20) NOT NULL, `rank` tinyint (3) NOT NULL, `billed` tinyint(1) NOT NULL, `email` varchar(255) NOT NULL, `mailling` varchar(255) NOT NULL, `number`varchar(255) NOT NULL, `paypal` varchar(255) NOT NULL) ENGINE=MYISM")
    mysql_query("CHEATE TABLE `config`(`installed` varchar(100) NULL,default '0') ENGINE=MyISAM");
    ?>
         
          <p><a href="?step=5">Click here.</a></p></td>
          
      </tr>
    </table>
    </body>
    </html>
    <?php
        
    break;
    case 
    "5":
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <eta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>

    <body>
    <table width="982" height="190" border="1">
      <tr>
        <td height="23"><center/>
         <p> Finashed!, you can now login to your control panel, your default user and password are:
         <P> <b>User<b/>:admin <b>Password:<b> admin <b/>
         <p> thank you for using Z-Junk.
               <p><a href="/sc/sc/index.php">Click here.</a></p></td>
      </tr>
    </table>
    </body>
    </html>

        
        </tr>
    </table>
    </body>
    </html>
    <?php ?>

    Thanks,
    Nick

  2. #2
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    Which one works, and also that script says you have an admin account, but no part of the script inserts it :s


  3. #3
    Join Date
    Dec 2006
    Posts
    1,128
    Tokens
    0

    Latest Awards:

    Default

    ive fixed it, it should be closed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •