query("SELECT * FROM " . TABLE_PREFIX . "games WHERE shortname='alienattack'"); if ($DB_site->num_rows($gameexists)==0) { print_form_header('alienattack.game', 'stepone'); print_table_header("v3 Arcade - Alien Attack"); print_description_row("This script will install Alien Attack for your v3 Arcade.

Make sure you upload the following files:
alienattack1.gif -> /images/arcade/alienattack1.gif
alienattack2.gif -> /images/arcade/alienattack2.gif
alienattack.swf -> /games/alienattack.swf

Click on \"Install Alien Attack\" to begin the installation."); print_submit_row("Install Alien Attack", 0); } else { print_form_header('alienattack.game', 'stepone'); print_table_header("v3 Arcade - Alien Attack"); print_description_row("Alien Attack 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 ('alienattack', NULL, 'Alien Attack', 'Aliens are attacking Earth! Get your NASA Space Shuttle and wipe them out.', 'alienattack.swf', 400, 300, 'alienattack2.gif', 'alienattack1.gif', 29, NULL, NULL)"); $DB_site->query(" INSERT INTO " . TABLE_PREFIX . "gamenews (newstext,newstype,datestamp) VALUES ('New game installed, Alien Attack','newgame'," . TIMENOW . ") "); print_form_header('alienattack.game', ''); print_table_header("v3 Arcade - Alien Attack"); print_description_row("Installation Complete! (PLEASE DELETE THIS FILE.)"); } ?>