htdocs/json.php
author Dan
Tue, 30 Dec 2008 06:16:28 -0500
changeset 36 a7d884914a74
parent 8 0acb8d9a3194
permissions -rw-r--r--
Added extern script to allow exporting some stats through a JSON or XML API. WiP.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8
0acb8d9a3194 Welcome, modularization and stats.
Dan
parents:
diff changeset
     1
<?php
0acb8d9a3194 Welcome, modularization and stats.
Dan
parents:
diff changeset
     2
require('../stats-data.php');
0acb8d9a3194 Welcome, modularization and stats.
Dan
parents:
diff changeset
     3
require('../libjson.php');
0acb8d9a3194 Welcome, modularization and stats.
Dan
parents:
diff changeset
     4
0acb8d9a3194 Welcome, modularization and stats.
Dan
parents:
diff changeset
     5
header('Content-type: text/plain');
0acb8d9a3194 Welcome, modularization and stats.
Dan
parents:
diff changeset
     6
echo eb_json_encode($stats_data);