<?php
header('Content-Type: text/html; charset=utf-8');
ini_set('session.use_cookies',1);
ini_set('session.use_only_cookies',1);
ini_set('session.use_trans_sid',0);
session_start();
error_reporting(-1);
ini_set('display_errors', false); /* Alle Fehlermeldungen anziegen lassen. Im "Echtbetrieb" auf "false" setzen! */
include('inc/config.php');
include('inc/functions.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="style.css" type="text/css">
<title></title>
</head>
<body>
<div id="live_update"></div>
<div class="row">
<div class="title_wrapper">
<div style="float: left; margin-right: 30px;">
<h4 style="color: #fff; margin-bottom: 0px !important;">( <a id="energy_header"><? echo $_SESSION['energy']; ?>
</a> / <a id="energy_max_header"><? echo $_SESSION['energy_max']; ?>
</a> )</h4><? if ($_SESSION['energy'] < $_SESSION['energy_max'])
{ ?>
<div id="EnergyCountdownDashboard">
<div style="float: left;color: #fff; margin-right:3px;">
+
</div>
<div class="dash minutes_dash">
<div class="digit">
0
</div>
<div class="digit">
0
</div>
</div>
<div style="float: left;color: #fff;">
:
</div>
<div class="dash seconds_dash">
<div class="digit">
0
</div>
<div class="digit">
0
</div>
</div>
</div><? } ?>
</div>
<div style="float: left; margin-right: 30px;">
<h4 style="color: #fff; margin-bottom: 0px !important;">( <a id="stamina_header"><? echo $_SESSION['stamina']; ?>
</a> / <a id="stamina_max_header"><? echo $_SESSION['stamina_max']; ?>
</a> )</h4><? if ($_SESSION['stamina'] < $_SESSION['stamina_max'])
{ ?>
<div id="StaminaCountdownDashboard">
<div style="float: left;color: #fff; margin-right:3px;">
+
</div>
<div class="dash minutes_dash">
<div class="digit">
0
</div>
<div class="digit">
0
</div>
</div>
<div style="float: left;color: #fff;">
:
</div>
<div class="dash seconds_dash">
<div class="digit">
0
</div>
<div class="digit">
0
</div>
</div>
</div><? } ?>
</div>
<div style="float: left; margin-right: 30px;">
<h4 style="color: #fff; margin-bottom: 0px !important;">( <a id="health_header"><? echo $_SESSION['health']; ?>
</a> / <a id="health_max_header"><? echo $_SESSION['health_max']; ?>
</a> )</h4><? if ($_SESSION['health'] < $_SESSION['health_max'])
{ ?>
<div id="HealthCountdownDashboard">
<div style="float: left;color: #fff; margin-right:3px;">
+
</div>
<div class="dash minutes_dash">
<div class="digit">
0
</div>
<div class="digit">
0
</div>
</div>
<div style="float: left;color: #fff;">
:
</div>
<div class="dash seconds_dash">
<div class="digit">
0
</div>
<div class="digit">
0
</div>
</div>
</div><? } ?>
</div>
</div>
</div>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.lwtCountdown-1.0.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
var energy_day = <? echo $energy_datum_array[0]; ?>;
var energy_month = <? echo $energy_datum_array[1]; ?>;
var energy_year = <? echo $energy_datum_array[2]; ?>;
var energy_hour = <? echo $energy_uhrzeit_array[0]; ?>;
var energy_min = <? echo $energy_uhrzeit_array[1]; ?>;
var energy_sec = <? echo $energy_uhrzeit_array[2]; ?>;
function EnergyCountdown() {
jQuery('#EnergyCountdownDashboard').countDown({
targetDate: {
'day': energy_day,
'month': energy_month,
'year': energy_year,
'hour': energy_hour,
'min': energy_min,
'sec': energy_sec
},
// onComplete function
onComplete: function() {
<?
if ($_SESSION['energy'] <= $_SESSION['energy_max'])
{ ?>
energy_sec = energy_sec + 10;
jQuery( "#live_update" ).load( "inc/live_update/counter_update_energy.php" );
EnergyCountdown();
<?} ?>
}
});
}
EnergyCountdown();
});
jQuery(document).ready(function() {
var stamina_day = <? echo $stamina_datum_array[0]; ?>;
var stamina_month = <? echo $stamina_datum_array[1]; ?>;
var stamina_year = <? echo $stamina_datum_array[2]; ?>;
var stamina_hour = <? echo $stamina_uhrzeit_array[0]; ?>;
var stamina_min = <? echo $stamina_uhrzeit_array[1]; ?>;
var stamina_sec = <? echo $stamina_uhrzeit_array[2]; ?>;
function StaminaCountdown() {
jQuery('#StaminaCountdownDashboard').countDown({
targetDate: {
'day': stamina_day,
'month': stamina_month,
'year': stamina_year,
'hour': stamina_hour,
'min': stamina_min,
'sec': stamina_sec
},
// onComplete function
onComplete: function() {
<?
if ($_SESSION['stamina'] <= $_SESSION['stamina_max'])
{ ?>
stamina_sec = stamina_sec + 15;
jQuery( "#live_update" ).load( "inc/live_update/counter_update_stamina.php" );
StaminaCountdown();
<?} ?>
}
});
}
StaminaCountdown();
});
jQuery(document).ready(function() {
var health_day = <? echo $health_datum_array[0]; ?>;
var health_month = <? echo $health_datum_array[1]; ?>;
var health_year = <? echo $health_datum_array[2]; ?>;
var health_hour = <? echo $health_uhrzeit_array[0]; ?>;
var health_min = <? echo $health_uhrzeit_array[1]; ?>;
var health_sec = <? echo $health_uhrzeit_array[2]; ?>;
function HealthCountdown() {
jQuery('#HealthCountdownDashboard').countDown({
targetDate: {
'day': health_day,
'month': health_month,
'year': health_year,
'hour': health_hour,
'min': health_min,
'sec': health_sec
},
// onComplete function
onComplete: function() {
<?
if ($_SESSION['health'] <= $_SESSION['health_max'])
{ ?>
health_sec = health_sec + 20;
jQuery( "#live_update" ).load( "inc/live_update/counter_update_health.php" );
HealthCountdown();
<?} ?>
}
});
}
HealthCountdown();
});
</script>
</body>
</html>