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 10 of 10
  1. #1
    Join Date
    Dec 2006
    Posts
    1,128
    Tokens
    0

    Latest Awards:

    Default why do they even have a coding secion?

    heres my install code, fix it up only one out of the 3 tables are created.

    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 ?>

    - Nick

  2. #2
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Your missing a ; after the second table creation command.

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

    Latest Awards:

    Default

    Yes, I know I have a fixed up verion of the code, but thanks anyways

  4. #4
    Join Date
    Jul 2005
    Location
    Bristol
    Posts
    2,054
    Tokens
    -10

    Latest Awards:

    Default

    You also have CHEATE instead of CREATE

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

    Latest Awards:

    Default

    Quote Originally Posted by MiniEggs View Post
    Yes, I know I have a fixed up verion of the code, but thanks anyways
    Sam, read..

  6. #6
    Join Date
    Jul 2005
    Location
    Bristol
    Posts
    2,054
    Tokens
    -10

    Latest Awards:

    Default

    I can read o.o

    I just felt like saying..

    Hell it increases my post count

  7. #7
    Join Date
    Dec 2006
    Location
    England
    Posts
    341
    Tokens
    0

    Default

    You're worried about having a good post count on a forum dedicated to a pixel game :S.

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

    Latest Awards:

    Default

    Quote Originally Posted by Sam View Post
    I can read o.o

    I just felt like saying..

    Hell it increases my post count
    Sam is sad?

    You're worried about having a good post count on a forum dedicated to a pixel game :S.

  9. #9
    Join Date
    Jul 2005
    Location
    Bristol
    Posts
    2,054
    Tokens
    -10

    Latest Awards:

    Default

    Rofl not particularly.. Habbo sucks .. Period.

    It was a joke get a sence of humor.

    I quit this forum ages ago.. But , hey i felt like reposting o.o

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

    Latest Awards:

    Default

    So did I.? but sometimes I need Habbox, rofl

Posting Permissions

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