query("SELECT * FROM " . TABLE_PREFIX . "games WHERE shortname='tieshooter'"); if ($DB_site->num_rows($gameexists)==0) { print_form_header('tieshooter.game', 'stepone'); print_table_header("v3 Arcade - TIE Fighter Shooter"); print_description_row("This script will install TIE Fighter Shooter for your v3 Arcade.
Make sure you upload the following files:
tieshooter1.gif -> /images/arcade/tieshooter1.gif
tieshooter2.gif -> /images/arcade/tieshooter2.gif
tieshooter.swf -> /games/tieshooter.swf
Click on \"Install TIE Fighter Shooter\" to begin the installation."); print_submit_row("Install TIE Fighter Shooter", 0); } else { print_form_header('tieshooter.game', 'stepone'); print_table_header("v3 Arcade - TIE Fighter Shooter"); print_description_row("TIE Fighter Shooter 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 ('tieshooter', NULL, 'TIE Fighter Shooter', 'Simple Star Wars shoot\'em up with the Empire spaceships.', 'tieshooter.swf', 550, 420, 'tieshooter2.gif', 'tieshooter1.gif', 29, NULL, NULL)"); $DB_site->query(" INSERT INTO " . TABLE_PREFIX . "gamenews (newstext,newstype,datestamp) VALUES ('New game installed, TIE Fighter Shooter','newgame'," . TIMENOW . ") "); print_form_header('tieshooter.game', ''); print_table_header("v3 Arcade - TIE Fighter Shooter"); print_description_row("Installation Complete! (PLEASE DELETE THIS FILE.)"); } ?>