* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ ob_start("ob_gzhandler"); // Load the SlimStat files include_once realpath(dirname(__FILE__)) . "/_config.php"; include_once realpath(dirname(__FILE__)) . "/_functions.php"; $config =& SlimStatConfig::get_instance(); SlimStat::connect(); $hvu = SlimStat::get_hits_visits_uniques(mktime(0, 0, 0) - $config->dt_offset_secs, mktime(23, 59, 59) - $config->dt_offset_secs); // Make sure the browser knows that this is an xml file header("Content-Type: application/xhtml+xml; charset=UTF-8"); print "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"; ?> <shortstat> <websiteinfo> <name><?php print $config->sitename; ?> </name> <url>http://<?php print $_SERVER["HTTP_HOST"]; ?> </url>