Beispiel #1
0
            print $hvu["uniques"];
            ?>
</td><?php 
        }
        ?>
				</tr>
				<?php 
        // all
        $hvu = SlimStat::get_total_hits_visits_uniques();
        ?>
				<tr>
					<td><a href="?show=details" title="<?php 
        print $config->i18n->link_title('details_all');
        ?>
"><?php 
        print $config->i18n->since . " " . SlimStat::date_label(SlimStat::get_first_hit(array()));
        ?>
</a></td>
					<td class="last"><?php 
        print $hvu["hits"];
        ?>
</td>
					<?php 
        if ($config->show_visits) {
            ?>
<td class="last"><?php 
            print $hvu["visits"];
            ?>
</td><?php 
        }
        ?>
Beispiel #2
0
 function time_period_label($_dt_start, $_dt_end = 0)
 {
     if ($_dt_end == 0) {
         $_dt_end = $_dt_start;
     }
     $usr_dt_start = SlimStat::to_user_time($_dt_start);
     $usr_dt_end = SlimStat::to_user_time($_dt_end);
     if (date("H", $usr_dt_start) == 0 && date("H", $usr_dt_end) == 23) {
         return SlimStat::date_label($_dt_end);
     } elseif (strftime("%p", $usr_dt_start) == "") {
         return strftime("%H:00", $usr_dt_start) . " - " . strftime("%H:00", $usr_dt_end + 60 * 60);
     } else {
         return strtolower(preg_replace("/^0/", "", strftime("%I%p", $usr_dt_start)) . " - " . preg_replace("/^0/", "", strftime("%I%p", $usr_dt_end + 60 * 60)));
     }
 }