@ -23,7 +23,6 @@
defined('MOODLE_INTERNAL') || die();
require_once("../../../config.php");
require_once( "../headergame.php");
require_once("../locallib.php");
@ -15,7 +15,7 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
require( "../../../config.php");
require_login();
execute_sql("truncate TABLE {game_snakes_database}");
require( "importsnakes.php");
@ -21,7 +21,8 @@
* @package game
**/
require( '../../config.php');
ob_start();
require_once( $CFG->dirroot.'/lib/formslib.php');
@ -22,6 +22,9 @@
require_once("../../config.php");
require_once("lib.php");
require_once("locallib.php");
@ -29,6 +29,8 @@
// Included by ../report.php.
class game_default_report {
public function display($cm, $course, $game) {
@ -24,6 +24,8 @@
require_once( "headergame.php");
if (!has_capability('mod/game:viewreports', $context)) {
print_error( get_string( 'only_teachers', 'game'));
}
@ -111,11 +111,12 @@ function game_snakes_play( $id, $game, $attempt, $snakes, $context) {
game_snakes_showdice( $snakes, $board);
?>
</td>
</tr>
</table>
<?php
if ($game->bottomtext != '') {
echo '<br>'.$game->bottomtext;
@ -19,7 +19,7 @@ require_once("class.Sudoku.php");
require( '../header.php');
$action = optional_param('action', PARAM_ALPHA); // The action.
if ($action == 'create') {
AppendSudokuB();
} else {
@ -15,6 +15,7 @@
export();
@ -21,6 +21,9 @@
require( "../../config.php");
require( 'locallib.php');