You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.0 KiB

<?php // $Id: print.php,v 1.4.2.2 2010/07/24 03:30:23 arborrow Exp $
/**
* This page export the game to html
*
* @author bdaloukas
* @version $Id: print.php,v 1.4.2.2 2010/07/24 03:30:23 arborrow Exp $
* @package game
**/
require_once("../../config.php");
require_once("lib.php");
require_once("locallib.php");
$id = required_param('id', PARAM_INT);
$gameid = required_param('gameid', PARAM_INT);
$game = get_record_select( 'game', "id=$gameid");
require_login( $game->course);
game_print( $game, $id);
function game_print( $game, $update){
if( $game->gamekind == 'cross'){
game_print_cross( $game, $update);
}
}
function game_print_cross( $game, $update){
global $CFG;
require( "cross/play.php");
$attempt = false;
game_getattempt( $game, &$crossrec);
game_cross_play( $update, $game, $attempt, $crossrec, '', true, false, false, true, false, false, false);
}
?>