[TEST] Added Hit counter
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php /* @var $this MSController */ ?>
|
||||
|
||||
<?php Yii::app()->counter->refresh(); ?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7]>
|
||||
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
|
||||
@@ -22,9 +22,9 @@ $this->selectedNav = 'about';
|
||||
<div class="well cstm-well-light">
|
||||
<p>Welcome to my private homepage.</p>
|
||||
|
||||
<p>My name is Mike Schwörer, and this is my homepage - here i upload program i write in my free time and sometimes i even write a blog entry. </p>
|
||||
<p>My name is Mike Schwörer, and this is my homepage. Mainly I will upload my programs here and sometimes I write something for my blog </p>
|
||||
|
||||
<p>If you want you can look <?php echo MsHtml::link('here', '/programs'); ?> at the things I programd </p>
|
||||
<p>If you want you can look <?php echo MsHtml::link('here', '/programs'); ?> at the things I programmed </p>
|
||||
</div>
|
||||
|
||||
<?php $egh = (new ExtendedGitGraph('Mikescher'))->loadFinishedData(); ?>
|
||||
|
||||
@@ -123,4 +123,15 @@ $this->breadcrumbs =
|
||||
); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="well well-small">
|
||||
<h2>Hit counter</h2>
|
||||
|
||||
online: <?php echo Yii::app()->counter->getOnline(); ?><br />
|
||||
today: <?php echo Yii::app()->counter->getToday(); ?><br />
|
||||
yesterday: <?php echo Yii::app()->counter->getYesterday(); ?><br />
|
||||
total: <?php echo Yii::app()->counter->getTotal(); ?><br />
|
||||
maximum: <?php echo Yii::app()->counter->getMaximal(); ?><br />
|
||||
date for maximum: <?php echo date('d.m.Y', Yii::app()->counter->getMaximalTime()); ?>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user