{"action":"created","issue":{"url":"https://api.github.com/repos/CAPU-ENG/CAPUBBS/issues/98","labels_url":"https://api.github.com/repos/CAPU-ENG/CAPUBBS/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/CAPU-ENG/CAPUBBS/issues/98/comments","events_url":"https://api.github.com/repos/CAPU-ENG/CAPUBBS/issues/98/events","html_url":"https://github.com/CAPU-ENG/CAPUBBS/issues/98","id":76697072,"number":98,"title":"打算重构两个东西～","user":{"login":"zhzhzoo","id":5500555,"avatar_url":"https://avatars.githubusercontent.com/u/5500555?v=3","gravatar_id":"","url":"https://api.github.com/users/zhzhzoo","html_url":"https://github.com/zhzhzoo","followers_url":"https://api.github.com/users/zhzhzoo/followers","following_url":"https://api.github.com/users/zhzhzoo/following{/other_user}","gists_url":"https://api.github.com/users/zhzhzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/zhzhzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhzhzoo/subscriptions","organizations_url":"https://api.github.com/users/zhzhzoo/orgs","repos_url":"https://api.github.com/users/zhzhzoo/repos","events_url":"https://api.github.com/users/zhzhzoo/events{/privacy}","received_events_url":"https://api.github.com/users/zhzhzoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-05-15T11:21:23Z","updated_at":"2015-05-21T15:12:25Z","closed_at":null,"body":"嗯关于论坛的架构，我想重构两个东西，因为如果真的这么做的话改动会比较大，所以来讨论一下～\r\n\r\n1. 现在是 `client.php` 和 `mainfunc.php` HTTP 请求 `jiekouapi.php`，我想改成前两个直接 include `jiekouapi.php` 调用里面的函数，这样就免去了 HTTP 请求开销，代价是无法把 bbs 分到两个主机上；\r\n2. 现在 bbs 目录下有很多个目录，每个目录下有 `index.php`。想把所有对 `bbs/xxx/` 的请求 rewrite 到 `bbs/index.php?path=bbs/xxx/` 去，然后 `bbs/index.php` 再去调用对应的 `bbs/xxx/index.php` 里的功能。这样好处是有共同的 `__DIR__` 和全局设置，坏处是得设一下 rewrite。"},"comment":{"url":"https://api.github.com/repos/CAPU-ENG/CAPUBBS/issues/comments/104314260","html_url":"https://github.com/CAPU-ENG/CAPUBBS/issues/98#issuecomment-104314260","issue_url":"https://api.github.com/repos/CAPU-ENG/CAPUBBS/issues/98","id":104314260,"user":{"login":"zhzhzoo","id":5500555,"avatar_url":"https://avatars.githubusercontent.com/u/5500555?v=3","gravatar_id":"","url":"https://api.github.com/users/zhzhzoo","html_url":"https://github.com/zhzhzoo","followers_url":"https://api.github.com/users/zhzhzoo/followers","following_url":"https://api.github.com/users/zhzhzoo/following{/other_user}","gists_url":"https://api.github.com/users/zhzhzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/zhzhzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhzhzoo/subscriptions","organizations_url":"https://api.github.com/users/zhzhzoo/orgs","repos_url":"https://api.github.com/users/zhzhzoo/repos","events_url":"https://api.github.com/users/zhzhzoo/events{/privacy}","received_events_url":"https://api.github.com/users/zhzhzoo/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T15:12:25Z","updated_at":"2015-05-21T15:12:25Z","body":"啊就是感觉无模式的话改的时候好改一些"}}