Gather all the Facebook stuff together in one place

This commit is contained in:
Zach Copley
2009-10-21 01:07:03 +00:00
parent 78e5a5980a
commit d07c9d8750
18 changed files with 4 additions and 76 deletions

View File

@@ -0,0 +1,23 @@
<?php
require_once 'JSON/JSON.php';
function json_encode($arg)
{
global $services_json;
if (!isset($services_json)) {
$services_json = new Services_JSON();
}
return $services_json->encode($arg);
}
function json_decode($arg)
{
global $services_json;
if (!isset($services_json)) {
$services_json = new Services_JSON();
}
return $services_json->decode($arg);
}
?>