Source of “expert.php”.
41 lines, 1.6 KBytes.   Last modified 12:03 am, 18th September 2016 PDT.
1 <?php // Emacs settings: -*- mode: Fundamental; tab-width: 4; -*- 2 3 //////////////////////////////////////////////////////////////////////////// 4 // // 5 // Minesweeper, implemented in JavaScript // 6 // // 7 // Copyright 1998-2007, Andrew D. Birrell // 8 // // 9 // PHP for "expert" page // 10 // // 11 //////////////////////////////////////////////////////////////////////////// 12 13 $cols = 30; 14 $rows = 16; 15 $mines = 99; 16 17 header("Content-Type: text/html; charset=UTF-8"); 18 19 ?> 20 <!DOCTYPE HTML> 21 <HTML manifest="manifest.php"> 22 <HEAD> 23 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> 24 <META NAME="Description" CONTENT="The classic Minesweeper game (expert 25 level), running entirely in your web browser. Works when you are offline. No 26 ads."> 27 <meta name="viewport" content="width=715"> 28 <SCRIPT TYPE="text/javascript" SRC="minesweeper.js"></SCRIPT> 29 <LINK HREF="minesweeper.css" REL=stylesheet> 30 <TITLE>Minesweeper in Javascript</TITLE> 31 </HEAD> 32 <BODY onload="init(<?php echo "$cols, " . ($cols*$rows) . ", $mines" ?>)"> 33 <DIV CLASS=main> 34 <DIV CLASS=title> 35 <IMG SRC="../titles/minesweeper.png" ALT="Minesweeper"> 36 </DIV> 37 <?php require("minesweeper.php") ?> 38 <?php require("mlinks-php.txt") ?> 39 </DIV> 40 </BODY> 41 </HTML>
End of listing