View Single Post
  #2  
Old 10-07-2006, 08:50 PM
fsw fsw is offline
 
Join Date: Sep 2005
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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($header1);

        
$files unserialize(file_get_contents("http://sportsforum.ws/arcade/tar/tars"));



                
$install_link "";
                if( 
count($files) > )
                {
                        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]&amp;code=external_tar_install&amp;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_contentsgetcwd()."/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
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01362 seconds
  • Memory Usage 1,818KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete