Beispiel #1
0
<?php

//error_reporting(E_ALL);
include_once '../config/symbini.php';
include_once $serverRoot . '/classes/GamesManager.php';
header("Content-Type: text/html; charset=" . $charset);
$clName = array_key_exists('listname', $_REQUEST) ? $_REQUEST['listname'] : "";
$clid = array_key_exists('clid', $_REQUEST) ? $_REQUEST['clid'] : "";
$dynClid = array_key_exists('dynclid', $_REQUEST) ? $_REQUEST['dynclid'] : "";
if (!$clName) {
    $gameManager = new GamesManager();
    if ($clid) {
        $gameManager->setChecklist($clid);
    } elseif ($dynClid) {
        $gameManager->setDynChecklist($dynClid);
    }
    $clName = $gameManager->getClName();
}
$imgloc = "../images/games/namegame/";
?>
<html>
<head>
	<title><?php 
echo $defaultTitle;
?>
 Name Game</title>
	<link href="../css/base.css?<?php 
echo $CSS_VERSION;
?>
" type="text/css" rel="stylesheet" />
	<link href="../css/main.css?<?php 
Beispiel #2
0
<?php

include_once '../../config/symbini.php';
include_once $serverRoot . '/classes/GamesManager.php';
header("Content-Type: text/html; charset=" . $charset);
$pid = array_key_exists("pid", $_REQUEST) ? $_REQUEST["pid"] : 0;
$submitAction = array_key_exists("submitaction", $_POST) ? $_POST["submitaction"] : '';
$oodID = array_key_exists("oodid", $_REQUEST) ? $_REQUEST["oodid"] : 1;
$ootdGameChecklist = array_key_exists("cl", $_REQUEST) ? $_REQUEST["cl"] : 0;
$ootdGameTitle = array_key_exists("title", $_REQUEST) ? $_REQUEST["title"] : 0;
$ootdGameType = array_key_exists("type", $_REQUEST) ? $_REQUEST["type"] : 0;
$gameManager = new GamesManager();
$clArr = $gameManager->getChecklistArr($pid);
$gameInfo = $gameManager->setOOTD($oodID, $ootdGameChecklist);
$imageArr = $gameInfo['images'];
if ($submitAction) {
    $scinameAnswerArr = explode(' ', trim($_POST['sciname_answer']));
    $genusAnswer = strtolower($scinameAnswerArr[0]);
}
?>
<html>
<head>
	<title><?php 
echo isset($ootdGameTitle) ? $ootdGameTitle : 'Organism of the Day';
?>
</title>
	<link href="../../css/base.css?<?php 
echo $CSS_VERSION;
?>
" type="text/css" rel="stylesheet" />
	<link href="../../css/main.css?<?php 
Beispiel #3
0
<?php

//error_reporting(E_ALL);
include_once '../config/symbini.php';
include_once $serverRoot . '/classes/GamesManager.php';
header("Content-Type: text/html; charset=" . $charset);
$clid = array_key_exists("clid", $_REQUEST) ? $_REQUEST["clid"] : 0;
$dynClid = array_key_exists("dynclid", $_REQUEST) ? $_REQUEST["dynclid"] : 0;
$taxonFilter = array_key_exists("taxonfilter", $_REQUEST) ? $_REQUEST["taxonfilter"] : 0;
$showCommon = array_key_exists("showcommon", $_REQUEST) ? $_REQUEST["showcommon"] : 0;
$lang = array_key_exists("lang", $_REQUEST) ? $_REQUEST["lang"] : $defaultLang;
$fcManager = new GamesManager();
$fcManager->setClid($clid);
$fcManager->setDynClid($dynClid);
$fcManager->setTaxonFilter($taxonFilter);
$fcManager->setShowCommon($showCommon);
$fcManager->setLang($lang);
$sciArr = array();
?>
<html>
<head>
	<title><?php 
echo $defaultTitle;
?>
 Flash Cards</title>
	<link href="../css/base.css?<?php 
echo $CSS_VERSION;
?>
" type="text/css" rel="stylesheet" />
	<link href="../css/main.css?<?php 
echo $CSS_VERSION;
Beispiel #4
0
<?php

//error_reporting(E_ALL);
include_once '../config/symbini.php';
include_once $serverRoot . '/classes/GamesManager.php';
header("Content-Type: text/html; charset=" . $charset);
$pid = array_key_exists("pid", $_REQUEST) ? $_REQUEST["pid"] : 0;
$gameManager = new GamesManager();
$clArr = $gameManager->getChecklistArr($pid);
?>
<html>
<head>
	<title><?php 
echo $defaultTitle;
?>
 Games</title>
	<link href="../css/base.css?<?php 
echo $CSS_VERSION;
?>
" type="text/css" rel="stylesheet" />
	<link href="../css/main.css?<?php 
echo $CSS_VERSION;
?>
" type="text/css" rel="stylesheet" />
	<script type="text/javascript">
		<?php 
include_once $serverRoot . '/config/googleanalytics.php';
?>
	</script>
	<script type="text/javascript">
		function checkForm(f){