PDA

View Full Version : why do they even have a coding secion?



jarhead!
29-01-2007, 05:53 PM
heres my install code, fix it up only one out of the 3 tables are created.


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

Tomm
29-01-2007, 08:41 PM
Your missing a ; after the second table creation command.

jarhead!
29-01-2007, 08:48 PM
Yes, I know I have a fixed up verion of the code, but thanks anyways

Sam
29-01-2007, 09:23 PM
You also have CHEATE instead of CREATE <3

jarhead!
29-01-2007, 09:28 PM
Yes, I know I have a fixed up verion of the code, but thanks anyways
Sam, read..

Sam
29-01-2007, 09:30 PM
I can read o.o

I just felt like saying..

Hell it increases my post count

?php?
29-01-2007, 09:36 PM
You're worried about having a good post count on a forum dedicated to a pixel game :S.

jarhead!
29-01-2007, 09:38 PM
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.

Sam
29-01-2007, 09:38 PM
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

jarhead!
29-01-2007, 09:40 PM
So did I.? but sometimes I need Habbox, rofl

Want to hide these adverts? Register an account for free!