DIR : /home/kozerus/public_html/dgs/eidogo.php
/home/kozerus/public_html/dgs
<?php
/*
Dragon Go Server
Copyright (C) 2001- Jens-Uwe Gaspar
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
require_once 'include/globals.php';
// Source: EidoGo Player
// - Integration: http://eidogo.com/source
// - EidoGo player code: http://code.google.com/p/eidogo/downloads/list
// - EidoGo code: https://github.com/jkk/eidogo/tree/master
{
$gid = (int)@$_REQUEST['gid'] ;
if ($gid <= 0) $gid = 0;
$js_version = JS_VERSION;
$path_eidogo = "eidogo-player";
$div_eidogo = ($gid)
? '<div class="eidogo-player-auto" sgf="sgf.php?gid='.$gid.'"></div>'
: '<div class="eidogo-player-auto">(;FF[4]KM[7]SZ[19])</div>';
$info = ($gid)
? "DGS game #<a href=\"".HOSTBASE."game.php?gid=$gid\">$gid</a>"
: "Jump to <a href=\"".HOSTBASE."status.php\">DGS Status</a> page";
$eidogo_mode = 'play'; // view|play
echo <<<"__EOT___"
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>EidoGo Player</title>
<style type="text/css">
body { background: #999; }
p.info { font-weight: bold; font-size: larger; }
</style>
<script type="text/javascript">
eidogoConfig = {
playerPath: "{$path_eidogo}",
theme: "standard",
mode: "{$eidogo_mode}",
showComments: true,
showPlayerInfo: true,
showGameInfo: true,
showTools: true,
showOptions: true,
showNavTree: true,
markCurrent: true,
markVariations: true,
markNext: false,
problemMode: false,
enableShortcuts: true
};
</script>
<script type="text/javascript" src="{$path_eidogo}/js/all.compressed.js?ts={$js_version}"></script>
</head>
<body>
<center>
<h1>EidoGo Player on DGS</h1>
<p class=info>{$info}</p>
{$div_eidogo}
</center>
</body>
</html>
__EOT___;
}
?>
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer