function dateresultform()
{
    global $t;
    global $ddate;
    ?>

 <?php 
    dailytimes();
    ?>

<?php 
    nextrestime();
    ?>

<form method="post" action=" <?php 
    echo $_SERVER['PHP_SELF'];
    ?>
 " >
<input type="text" name="resultnewd" size="12" value="<?php 
    echo $ddate;
    ?>
">
<input type="hidden" name="_token" value="<?php 
    echo $t;
    ?>
" />
<input type="Submit" name="resultdateid" value="Change the result end date"><br><br>
</form>

<?php 
}
session_start();
define('ABSPATH', dirname(dirname(__FILE__)) . '/');
//echo RSSDATA;
?>


<?php 
include_once ABSPATH . 'controlpanel/controlhead.php';
?>
<div id="adminpanel"> <!-- admin panel -->

<div id="controlsection">
<h1>TIME</h1>
<?php 
dailytimes();
?>
</div>
<div id="controlsection">
<h1>Statistics summary </h1>

<?php 
activefeeds();
?>

<?php 
postitemsall();
?>

<?php 
lasttwofourperiod();