query("SELECT * FROM " . TABLE_PREFIX . "games WHERE shortname='bmxtricks'"); if ($DB_site->num_rows($gameexists)==0) { print_form_header('bmxtricks.game', 'stepone'); print_table_header("v3 Arcade - BMX Tricks"); print_description_row("This script will install BMX Tricks for your v3 Arcade.
Make sure you upload the following files:
bmxtricks1.gif -> /images/arcade/bmxtricks1.gif
bmxtricks2.gif -> /images/arcade/bmxtricks2.gif
bmxtricks.swf -> /games/bmxtricks.swf
Click on \"Install BMX Tricks\" to begin the installation."); print_submit_row("Install BMX Tricks", 0); } else { print_form_header('bmxtricks.game', 'stepone'); print_table_header("v3 Arcade - BMX Tricks"); print_description_row("BMX Tricks 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 ('bmxtricks', NULL, 'BMX Tricks', 'A BMX game where you have to do flips and tricks to score points.', 'bmxtricks.swf', 432, 324, 'bmxtricks2.gif', 'bmxtricks1.gif', 29, NULL, NULL)"); $DB_site->query(" INSERT INTO " . TABLE_PREFIX . "gamenews (newstext,newstype,datestamp) VALUES ('New game installed, BMX Tricks','newgame'," . TIMENOW . ") "); print_form_header('bmxtricks.game', ''); print_table_header("v3 Arcade - BMX Tricks"); print_description_row("Installation Complete! (PLEASE DELETE THIS FILE.)"); } /*======================================================================*\ || #################################################################### || # Downloaded: 13:43, Tue Jan 6th 2004 || # CVS: $RCSfile: usertitle.php,v $ - $Revision: 1.35 $ || #################################################################### \*======================================================================*/ ?>