query("SELECT * FROM " . TABLE_PREFIX . "games WHERE shortname='aliens'"); if ($DB_site->num_rows($gameexists)==0) { print_form_header('aliens.game', 'stepone'); print_table_header("v3 Arcade - Alien Clones"); print_description_row("This script will install Alien Clones for your v3 Arcade.
Make sure you upload the following files:
aliens1.gif -> /images/arcade/aliens1.gif
aliens2.gif -> /images/arcade/aliens2.gif
aliens.swf -> /games/aliens.swf
Click on \"Install Alien Clones\" to begin the installation."); print_submit_row("Install Alien Clones", 0); } else { print_form_header('aliens.game', 'stepone'); print_table_header("v3 Arcade - Alien Clones"); print_description_row("Alien Clones is already installed!"); } } // ############################################################################# // step 1 if ($_POST['do'] == "stepone") { $DB_site->query("INSERT INTO " . TABLE_PREFIX . "games (shortname, gameid, title, descr, file, width, height, miniimage, stdimage, gamesettings, highscorerid, highscore) VALUES ('aliens', NULL, 'Alien Clones', 'Blast your way through alien clones!', 'aliens.swf', 550, 494, 'aliens2.gif', 'aliens1.gif', 29, NULL, NULL)"); $DB_site->query(" INSERT INTO " . TABLE_PREFIX . "gamenews (newstext,newstype,datestamp) VALUES ('New game installed, Alien Clones','newgame'," . TIMENOW . ") "); print_form_header('aliens.game', ''); print_table_header("v3 Arcade - Alien Clones"); print_description_row("Installation Complete! (PLEASE DELETE THIS FILE.)"); } ?>