init 4chan
This commit is contained in:
commit
c850337f1e
390 changed files with 195936 additions and 0 deletions
14
lib/json.php
Normal file
14
lib/json.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?
|
||||
|
||||
function json_for_post($board, $post) {
|
||||
global $in_imgboard;
|
||||
$in_imgboard = true;
|
||||
include_once "/www/global/yotsuba/json.php";
|
||||
|
||||
$extra = array();
|
||||
|
||||
$post['board'] = $board;
|
||||
return json_encode(generate_post_json( $post, $post['resto'] ? $post['resto'] : $post['no'], $extra, true ));
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue