<body background="http://www.blindedstorms.com/palm-tree.jpg"> <?php error_reporting(7); require("./global.php"); if(!$where) { $where='start'; } $action="start"; $thisurl = $PHP_SELF; // ############################### start ############################### if ($where=="start" OR $HTTP_GET_VARS['where']=="start") { echo ('<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">Welcome to the Clan Hack Installer!</font></td></table><table width="100%"><tr> <td align="center">Please click "NEXT" to begin!<br>If you would like the rank hack uninstalled (*sigh*), click "KILL EM"</td></tr></table></td></tr></table>'); $action="install"; echo ("<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=install' style=\"color: purple;\">NEXT -></a><br><a href='$thisurl?s=$session[sessionhash]&where=mekill' style=\"color: purple;\">KILL EM</a></td></tr></table>"); } // ############################### install ############################### if ($HTTP_GET_VARS['where']=="install") { echo ('<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">Are You Sure?</font></td></table><table width="100%"><tr> <td align="center">If you click yes, the table "clan" will be added with 4 columns. Is this what you want?</td></tr></table></td></tr></table>'); $action="install"; echo ("<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=clandb' style=\"color: purple;\">OH YEAH</a> <a href='$thisurl?s=$session[sessionhash]&where=start' style=\"color: purple;\">NO WAY!</a></td></tr></table>"); } // ############################### install clandb############################### if ($HTTP_GET_VARS['where']=="clandb") { echo ('<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">Table Added</font></td></table><table width="100%"><tr> <td align="center">Added stuff</td></tr></table></td></tr></table>'); $DB_site->query("CREATE TABLE clan ( clanid smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, title varchar(50) NOT NULL, pass varchar(50) NOT NULL, leader varchar(50) NOT NULL, )"); echo ("<table width=\"100%\"><tr><td align=\"center\">The following tables where added:<ul> <li>clan </ul><br>The following columns were added:<ul> <li>clanid <li>title <li>pass <li>leader </ul><br></td></tr></table>"); echo ("<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=installuser' style=\"color: purple;\">NEXT -></a></td></tr></table>"); } // ############################### kill clandb############################### if ($HTTP_GET_VARS['where']=="mekill") { echo ('<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">Are You Sure?</font></td></table><table width="100%"><tr> <td align="center">If you click yes, the clan table WILL BE DELETED! Are you sure you want to do this?</td></tr></table></td></tr></table>'); echo ("<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=delete' style=\"color: purple;\">YES</a> <a href='$thisurl?s=$session[sessionhash]&where=start' style=\"color: purple;\">NO WAY!</a></td></tr></table>"); } // ############################### delete now ############################### if ($HTTP_GET_VARS['where']=="delete") { echo ('<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">DONE</font></td></table><table width="100%"><tr> <td align="center">The table "CLAN" has been deleted!</td></tr></table></td></tr></table>'); echo ("<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=delete' style=\"color: purple;\">YES</a> <a href='$thisurl?s=$session[sessionhash]&where=start' style=\"color: purple;\">NO WAY!</a></td></tr></table>"); $DB_site->query("DROP TABLE IF EXISTS clan"); } // ############################### install users ############################### if ($HTTP_GET_VARS['where']=="installuser") { echo ('<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">User Install</font></td></table><table width="100%"><tr> <td align="center">If you click yes, the column "clan" will be added to your "user" table. Is this what you want?</td></tr></table></td></tr></table>'); echo ("<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=doinstalluser' style=\"color: purple;\">OH YEAH</a> <a href='$thisurl?s=$session[sessionhash]&where=start' style=\"color: purple;\">NO WAY!</a></td></tr></table>"); } // ############################### do install user############################### if ($HTTP_GET_VARS['where']=="doinstalluser") { echo ('<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">Column Added</font></td></table><table width="100%"><tr> <td align="center">Added stuff</td></tr></table></td></tr></table>'); $DB_site->query("ALTER TABLE user ADD clan SMALLINT(5) DEFAULT '1' NOT NULL"); echo ("<table width=\"100%\"><tr><td align=\"center\">The following tables where edited:<ul> <li>user </ul><br>The following columns were added:<ul> <li>clan </ul><br></td></tr></table>"); echo ("<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=installuser' style=\"color: purple;\">NEXT -></a></td></tr></table>"); } // ############################### install users ############################### if ($HTTP_GET_VARS['where']=="testing") { echo ('<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">User Install</font></td></table><table width="100%"><tr> <td align="center">If you click yes, the column "clan" will be added to your "user" table. Is this what you want?</td></tr></table></td></tr></table>'); echo ("<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=doinstalluser' style=\"color: purple;\">OH YEAH</a> <a href='$thisurl?s=$session[sessionhash]&where=start' style=\"color: purple;\">NO WAY!</a></td></tr></table>"); echo ("<tr> <td bgcolor="#13486D"><normalfont><b>Style Set:</b><br> <smallfont>You may pick a style set to browse with that may or may not override the default settings.</smallfont></normalfont></td> <td bgcolor="#13486D"><smallfont> <select name="newstyleset">"); $templatefetch=$DB_site->query("SELECT * FROM templateset ORDERY BY title"); while ($template=$DB_site->fetch_array($templatefetch)) { echo ("<option value="$template[templatesetid]"> $template[title] </option>"); } echo (" </select> </smallfont></td> </tr>"); } ?>
Show Your Support