Nick
05-17-2009, 07:08 AM
Do you want to make it easier for server owners? well use this installer and fill in the blanks! and then people just run install.php on there webserver and boom!
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Installer</title>
<link rel="stylesheet" href="main.css" type="text/css">
<style type="text/css">
.loginTable {
border-top: 8px solid #D5D5D5;
border-bottom: 8px solid #D5D5D5;
border-left: 8px solid #D5D5D5;
border-right: 8px solid #D5D5D5;
font-size:small;
}
.style1 {
color: #000000;
font-weight: bold;
}
.style2 {color: #000000}
.style3 {color: #000000; font-size: 12px; }
.style5 {color: #000000; font-size: 9px; }
-->
</style>
</head>
<body>
<table width="363" border="0" align="center" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF" class="loginTable">
<tr bgcolor="#02BCF5">
<td height="125" bgcolor="#FFFFFF" class="topRow"><div align="center">Script Installer by Kickerbat</div></td>
</tr><tr>
<td><?php
if ($_POST[install]) {
$connect = @mysql_connect(hostname, databaseuser, databasepass); // EDIT THIS LINE MR SERVER OWNER!
$database = @mysql_select_db($dbname);
if ($connect == false or $database == false) {
echo("error connecting to database please check install.php");
} else {
// You can add loads of $install = features like this 1 | $install = mysql_query("DROP TABLE IF EXISTS `downloads`;");
$install = mysql_query(""); // Fill in between the ""
echo("Congratulations you have installed SCRIPT NAME?!<br />
<br />
<br />
Love AC-WEB.org and kickerbat!");
}
} else {
echo'<form method="post">Make sure you have edited install.php and click install too install!<input type="submit" name="install" value="Install"></form>';
}
?></td></tr>
</table>
</body>
</html>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Installer</title>
<link rel="stylesheet" href="main.css" type="text/css">
<style type="text/css">
.loginTable {
border-top: 8px solid #D5D5D5;
border-bottom: 8px solid #D5D5D5;
border-left: 8px solid #D5D5D5;
border-right: 8px solid #D5D5D5;
font-size:small;
}
.style1 {
color: #000000;
font-weight: bold;
}
.style2 {color: #000000}
.style3 {color: #000000; font-size: 12px; }
.style5 {color: #000000; font-size: 9px; }
-->
</style>
</head>
<body>
<table width="363" border="0" align="center" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF" class="loginTable">
<tr bgcolor="#02BCF5">
<td height="125" bgcolor="#FFFFFF" class="topRow"><div align="center">Script Installer by Kickerbat</div></td>
</tr><tr>
<td><?php
if ($_POST[install]) {
$connect = @mysql_connect(hostname, databaseuser, databasepass); // EDIT THIS LINE MR SERVER OWNER!
$database = @mysql_select_db($dbname);
if ($connect == false or $database == false) {
echo("error connecting to database please check install.php");
} else {
// You can add loads of $install = features like this 1 | $install = mysql_query("DROP TABLE IF EXISTS `downloads`;");
$install = mysql_query(""); // Fill in between the ""
echo("Congratulations you have installed SCRIPT NAME?!<br />
<br />
<br />
Love AC-WEB.org and kickerbat!");
}
} else {
echo'<form method="post">Make sure you have edited install.php and click install too install!<input type="submit" name="install" value="Install"></form>';
}
?></td></tr>
</table>
</body>
</html>