Beispiel #1
0
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
* 
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
*/
if (!defined('IS_VALID_PHPMYFAQ_ADMIN')) {
    header('Location: http://' . $_SERVER['SERVER_NAME'] . dirname($_SERVER['SCRIPT_NAME']));
    exit;
}
$dir = opendir(PMF_ROOT_DIR . "/data");
while ($dat = readdir($dir)) {
    if ($dat != "." && $dat != "..") {
        $arrDates[] = FileToDate($dat);
    }
}
$statstart = reset($arrDates);
$statend = end($arrDates);
closedir($dir);
?>
	<h2><?php 
print $PMF_LANG["ad_sess_sfs"];
?>
</h2>
	<form action="<?php 
print $_SERVER["PHP_SELF"] . $linkext;
?>
" method="post">
	<input type="hidden" name="aktion" value="sessionsearch" />
Beispiel #2
0
        while (list($dummy, $dummy, $dummy, $dummy, $dummy, $dummy, $dummy, $tstamp) = fgetcsv($fp, 1024, ";")) {
            $stamp = $tstamp;
        }
        fclose($fp);
        if (empty($stamp)) {
            $stamp = time();
        }
        print date("d.m.Y H:i:s", $stamp) . '<br />';
    } else {
        print $PMF_LANG["ad_sess_noentry"] . '<br />';
    }
    $dir = opendir(PMF_ROOT_DIR . "/data");
    $trackingDates = array();
    while (false !== ($dat = readdir($dir))) {
        if ($dat != "." && $dat != ".." && strlen($dat) == 16 && !is_dir($dat)) {
            $trackingDates[] = FileToDate($dat);
        }
    }
    closedir($dir);
    sort($trackingDates);
    ?>
        <label class="left"><?php 
    print $PMF_LANG["ad_stat_browse"];
    ?>
:</label>
		<select name="day" size="1">
<?php 
    foreach ($trackingDates as $trackingDate) {
        printf('<option value="%d"', $trackingDate);
        if (date("Y-m-d", $trackingDate) == strftime('%Y-%m-%d', time())) {
            print ' selected="selected"';