mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
issue 2740 add unique visitor statistics api
json_encode2 function modify (Because Maserati only supports php5.2.4 above) git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12374 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
56110ce3c3
commit
c7fb2d5ae8
4 changed files with 12 additions and 36 deletions
|
|
@ -1,9 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<module>
|
||||
<grants />
|
||||
<permissions />
|
||||
<permissions>
|
||||
<permission action="getWeeklyUniqueVisitor" target="manager" />
|
||||
</permissions>
|
||||
<actions>
|
||||
<action name="dispCounterAdminIndex" type="view" standalone="true" admin_index="true" />
|
||||
<action name="procCounterExecute" type="controller" standalone="true" />
|
||||
<action name="getWeeklyUniqueVisitor" type="model" standalone="true" />
|
||||
</actions>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -253,6 +253,13 @@ class counterModel extends counter
|
|||
return $status;
|
||||
}
|
||||
|
||||
public function getWeeklyUniqueVisitor()
|
||||
{
|
||||
$date = date('Ymd');
|
||||
$output = $this->getHourlyStatus('week', $date);
|
||||
|
||||
$this->add('data', $output);
|
||||
}
|
||||
}
|
||||
/* End of file counter.model.php */
|
||||
/* Location: ./modules/counter/counter.model.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue