<?php
/*
*************************************************************
* CPG Dragonfly is copyright © 2004 - 2005 by CPG Dev Team *
* http://www.dragonflycms.com                               *
* Dragonfly is released under the terms and conditions      *
* of the GNU GPL version 2 or any later version             *
*************************************************************
*************************************************************
* Auto instal for games                                     *
*************************************************************
* ProArcade is copyright Scott Colberg skpdev.com           *
* Author - scetter skpdeveloper at gmail dot com            *
* For liscense info see liscense.txt or visit skpdev site   *
*************************************************************
*/
if (!defined('ADMIN_PAGES')) { exit; }

function runGameInstall($game_cat,$new_permission,$game_submitted,$game_increase,$game_cost,$game_start_pot,$game_tokens){
    global $MAIN_CFG, $prefix, $db, $module_name;
		$game_type = "1";
		$game_title = "Pepsi Pinball";
		$game_desc = "A Great pinball game has bonus pong with pepsi cans.";
		$game_author_name = "Unknown";
		$game_author_url = "Unknown";
		$game_width = "694";
		$game_height = "547";
		$game_color = "";
		$game_file_name = "pepsipinball.swf";
		$game_image = "pepsipinball1.gif";
		
		$db->sql_query("INSERT INTO ".$prefix."_proarcade_games VALUES (NULL,'$game_cat','$game_type','$game_title','$game_desc','$game_image','$game_file_name','$game_author_name','$game_author_url','$game_width','$game_height','$game_color','0','$game_license','0','0','$game_tokens','$game_start_pot','$game_cost','$game_increase','$game_submitted','0','$game_start_pot')");						
		$last_id = $db->sql_nextid('game_id');
		$db->sql_query("INSERT INTO ".$prefix."_proarcade_permission VALUES (NULL,'game','$last_id','$new_permission')");
}
