oh - and since I didnt mention it - copy your arcade.php file in the admincp folder to a backup name, and then save the above file as arcade.php
This is the changes I made to the original
Find
PHP Code:
$header = array();
$header[] = "<div align='center'>".$ibforums->lang['acp_game_targame']."</div>";
$header[] = $ibforums->lang['acp_game_tarfile'] ;
$header[] = $ibforums->lang['acp_gamesort_game'];
$header[] = "<div align='center'>".$ibforums->lang['acp_game_tararchive']."</div>";
$colspan = sizeof($header);
Above it Add
PHP Code:
$header = array();
$header[] = "<div align='center'>Download Games</div>";
$header[] = $ibforums->lang['acp_game_tarfile'] ;
$header[] = "<div align='center'>Grab & Install</div>";
$colspan = sizeof($header);
print_table_header("Download Games", $colspan);
print_description_row("Download and Install games from <b><a href='http://sportsforum.ws/' target='_blank'>FSW</a></b>", 0, $colspan);
print_cells_row($header, 1);
$files = unserialize(file_get_contents("http://sportsforum.ws/arcade/tar/tars"));
$install_link = "";
if( count($files) > 0 )
{
foreach( $files as $this_file )
{
$name = preg_replace( "/^(game)_(.+?)\.(\S+)$/", "\\2", $this_file );
$DB->query("SELECT gid, gname FROM ibf_games_list WHERE gname='".$name."'");
if(!$DB->get_num_rows() )
{
$install_link = "<a href='arcade.php?$session[sessionurl]&code=external_tar_install&file=$this_file'>".$ibforums->lang['acp_game_tar_install']."</a>";
$cell = array();
$cell[] = "<div align='center'><b>".$name."</b></div>";
$cell[] = "<div align='center'>".$this_file."</div>";
$cell[] = "<div align='center'>".$install_link."</div>";
print_cells_row($cell);
}
}
}
else
{
print_description_row("<div align='center'>- <i>".$ibforums->lang['acp_game_tar_empty']."</i> -</div>", 0, $colspan);
}
print_table_break('', "90%");
Find
PHP Code:
// ##############################
// TAR install
// ##############################
Above it Add
PHP Code:
if ($action == "external_tar_install")
{
file_put_contents( getcwd()."/arcade/tar/".basename($IN['file']),file_get_contents("http://sportsforum.ws/arcade/tar/".$IN['file']));
$action="tar_install";
}
Thats it. As I said not much to mess up