diff --git a/client/main.php b/client/main.php index b99fddb..b416a86 100644 --- a/client/main.php +++ b/client/main.php @@ -1,7 +1,8 @@ $thread_b["last_mod"])? -1 : 1); diff --git a/client/thread.php b/client/thread.php index 091fccf..22270f6 100644 --- a/client/thread.php +++ b/client/thread.php @@ -1,4 +1,13 @@ >OP"; + } + return ">>".$postnum.$usermap[$data["messages"][$postnum]["author"]]["user_name"]; + } foreach($thread["data"]["messages"] as $message) { $username = $thread["usermap"][$message["author"]]["user_name"]; $time = round($message['created']); @@ -7,7 +16,8 @@ echo "\t\t
>{$message['post_id']} {$username} @ {$time}
".PHP_EOL; echo "\t\t\t";
- echo str_replace(">>0",">>OP",$message["body"]).PHP_EOL;
+// echo str_replace(">>0",">>OP",$message["body"]).PHP_EOL;
+ echo preg_replace_callback("/>>(\d+)/",'lookup',$message["body"]).PHP_EOL;
echo "".PHP_EOL;
echo "\t\t