print json_encode(array("feeds" => $feeds));
} else {
- print json_encode(array("error" => array("code" => 6)));
+ print error_json(6);
}
}
print "<hr/>";
- $access_key = sha1(uniqid(rand(), true));
+ $access_key = uniqid(rand(), true);
/* Access key */
}
function genHash() {
- $hash = sha1(uniqid(rand(), true));
+ $hash = uniqid(base_convert(rand(), 10, 36));
print json_encode(array("hash" => $hash));
}