Log in

View Full Version : Install files, help



jarhead!
29-01-2007, 04:28 PM
Hi,

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


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

Drompo
29-01-2007, 07:38 PM
Which one works, and also that script says you have an admin account, but no part of the script inserts it :s

jarhead!
29-01-2007, 08:02 PM
ive fixed it, it should be closed

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