source: trunk/spip/esqueleto-redcta/themes/redcta/inc/inc-affvisit.html @ 30

Last change on this file since 30 was 30, checked in by sebas, 17 years ago

nueva importacion del codigo del esqueleto de redcta con los plugins

File size: 466 bytes
Line 
1<?php
2$query = "SELECT SUM(visites) AS total_absolu FROM spip_visites";
3        $result = spip_query($query);
4
5        if ($row = spip_fetch_array($result)) {
6                $total_absolu = $row['total_absolu'];
7        }
8
9
10$query = "SELECT COUNT(DISTINCT ip) AS visites FROM spip_visites_temp";
11                $result = spip_query($query);
12       
13        if ($row = @spip_fetch_array($result)) {
14                $visites_today = $row['visites'];
15}
16
17$total_gen = $total_absolu + $visites_today;
18
19echo "<strong>".$total_gen."</strong>";
20
21?>
Note: See TracBrowser for help on using the repository browser.