PDA

View Full Version : People with sql querys read me!


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>

Legendkilla
05-17-2009, 09:54 PM
Nice nick, i find it wierd how u have time to make stuff like this but no time to help me =/

Nick
05-25-2009, 09:07 AM
bummmppp

barrymanuel
05-06-2011, 03:27 AM
what exactly does this script install? meaning whats the point of it? just curious cause it seems cool

Sayberia
05-17-2011, 12:49 PM
This is for?