View Single Post
  #26  
Old 11-06-2010, 06:20 AM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KW802 View Post
Mind posting the contents of the .php file (either here or v3A.com)? To give some insight, years ago games were being distributed with an installation .php script so that each game was installed manually one at a time via it's own script instead of as a batch import. The contents of the .php will tell us what we're dealing with (whether they are IPB formatted games or v3A formatted games and how they were expected to be installed).
Php content from another one of the games...

PHP Code:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.0.0 Release Candidate 2 - Licence Number L1665f2b
|| # ---------------------------------------------------------------- # ||
|| # All PHP code in this file is ?2000-2004 Jelsoft Enterprises Ltd. # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('CVS_REVISION''$RCSfile: butch_01.game.php,v $ - $Revision: 1.35 $');
define('NO_REGISTER_GLOBALS'1);

// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array();
$specialtemplates = array();

require_once(
'./global.php');

print_cp_header("v3 Arcade - Butch Mushroom");

// welcome step
if (!isset($_POST['do']))
{
    
$gameexists $DB_site->query("SELECT * FROM " TABLE_PREFIX "games WHERE shortname='butch_01'");
    if (
$DB_site->num_rows($gameexists)==0) {
        
print_form_header('butch_01.game''stepone');
        
print_table_header("v3 Arcade - Butch Mushroom");
        
print_description_row("This script will install Butch Mushroom for your v3 Arcade.<p>
        Make sure you upload the following files:<br>
        butch_011.gif -> /images/arcade/butch_011.gif<br>
        butch_012.gif -> /images/arcade/butch_012.gif<br>
        butch_01.swf -> /games/butch_01.swf<p>
        Click on \"Install Butch Mushroom\" to begin the installation."
);
        
print_submit_row("Install Butch Mushroom"0);
    } else {
        
print_form_header('butch_01.game''stepone');
        
print_table_header("v3 Arcade - Butch Mushroom");
        
print_description_row("Butch Mushroom 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 ('butch_01', NULL, 'Butch Mushroom', 'Eat as many bugs as you can within the time limit.', 'butch_01.swf', 550, 405, 'butch_012.gif', 'butch_011.gif', 29, NULL, NULL)");        
    
$DB_site->query("
        INSERT INTO " 
TABLE_PREFIX "gamenews (newstext,newstype,datestamp) VALUES ('New game installed, <b>Butch Mushroom</b>','newgame'," TIMENOW ")
    "
);    
    
print_form_header('butch_01.game''');
    
print_table_header("v3 Arcade - Butch Mushroom");
    
print_description_row("Installation Complete! (PLEASE DELETE THIS FILE.)");
}


/*======================================================================*\
|| ####################################################################
|| # Downloaded: 13:43, Tue Jan 6th 2004
|| # CVS: $RCSfile: usertitle.php,v $ - $Revision: 1.35 $
|| ####################################################################
\*======================================================================*/
?>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01731 seconds
  • Memory Usage 1,808KB
  • 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
  • (1)bbcode_php
  • (1)bbcode_quote
  • (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