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 get_total_hits_visits_uniques()
 {
     return SlimStat::get_hits_visits_uniques(SlimStat::get_first_hit());
 }
Beispiel #3
0
), you must confirm this decision below.</p>
			<p><strong>This CANNOT be undone.</strong> It is recommended that you save a recently-generated SlimStat report for posterity.</p>
			<p><label for="confirm">
			<input type="checkbox" id="confirm" name="confirm" value="kill" /> 
			I confirm deletion of all SlimStat data from before <?php 
            print date("j M Y", $max_age);
            ?>
			</label></p>
			<p><input type="submit" value="Delete" /></p>
			</form>
			<?php 
        }
    } else {
        ?>
		<p>The oldest entry in the database is from <?php 
        print date("j M Y", SlimStat::get_first_hit());
        ?>
.</p>
		<p>SlimStat is configured to delete data more than <?php 
        print $config->max_data_age_days;
        ?>
 days old, or from before <?php 
        print date("j M Y", $max_age);
        ?>
.</p>
		<p>To delete more data, change <code>$max_data_age_days</code> in <code>_config.php</code>.</p>
		<?php 
    }
} else {
    ?>
	<p>Set <code>$max_data_age_days</code> to a number greater than zero in <code>_config.php</code>.</p>