{"action":"created","issue":{"url":"https://api.github.com/repos/CAPU-ENG/CAPUBBS/issues/64","labels_url":"https://api.github.com/repos/CAPU-ENG/CAPUBBS/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/CAPU-ENG/CAPUBBS/issues/64/comments","events_url":"https://api.github.com/repos/CAPU-ENG/CAPUBBS/issues/64/events","html_url":"https://github.com/CAPU-ENG/CAPUBBS/pull/64","id":63425958,"number":64,"title":"把所有的db连接加到了mainfunc里","user":{"login":"QwertyJack","id":7554089,"avatar_url":"https://avatars.githubusercontent.com/u/7554089?v=3","gravatar_id":"","url":"https://api.github.com/users/QwertyJack","html_url":"https://github.com/QwertyJack","followers_url":"https://api.github.com/users/QwertyJack/followers","following_url":"https://api.github.com/users/QwertyJack/following{/other_user}","gists_url":"https://api.github.com/users/QwertyJack/gists{/gist_id}","starred_url":"https://api.github.com/users/QwertyJack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QwertyJack/subscriptions","organizations_url":"https://api.github.com/users/QwertyJack/orgs","repos_url":"https://api.github.com/users/QwertyJack/repos","events_url":"https://api.github.com/users/QwertyJack/events{/privacy}","received_events_url":"https://api.github.com/users/QwertyJack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-21T16:42:09Z","updated_at":"2015-03-21T17:04:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CAPU-ENG/CAPUBBS/pulls/64","html_url":"https://github.com/CAPU-ENG/CAPUBBS/pull/64","diff_url":"https://github.com/CAPU-ENG/CAPUBBS/pull/64.diff","patch_url":"https://github.com/CAPU-ENG/CAPUBBS/pull/64.patch"},"body":"本次修改测试地址\r\n> www.chexie.net:81\r\n\r\n即现aliyun服务器的81端口\r\n\r\n所有的\r\n> $con = mysql_connect('','','');\r\n\r\n改为\r\n> dbconnect;\r\n\r\n其中bbs/lib/mainfunc.php有如下定义\r\n> dbconnect() { $con = mysql_connect('','','') or ... ; }\r\n\r\n调用数据库的文件全部包含\r\n> require_once({PATH/TO/mainfunc.php})\r\n\r\n另外，api/client.php与mainfunc.php有函数命名冲突，目测应该是同一作用的函数。目前只是重命名而已，还没解决。\r\n\r\n这些文件有\r\n> api/client.php \r\n> api/jiekouapi.php \r\n> api/makecode.php \r\n> assets/api/sendsms.php \r\n> assets/api/main.php \r\n> assets/api/main.php \r\n> assets/api/main.php \r\n> assets/api/main.php \r\n> assets/api/main.php \r\n> assets/api/main.php \r\n> assets/api/main.php \r\n> assets/api/main.php \r\n> assets/api/main.php \r\n> assets/api/main.php \r\n> assets/api/main.php \r\n> assets/api/main.php \r\n> assets/api/main.php \r\n> assets/api/getCalendar.php \r\n> assets/api/checkuser.php \r\n> bbs/sign/test.php \r\n> index/main.php \r\n> index/transaction.php \r\n> index/manage.php \r\n> index/download_file.php \r\n> index/lend.php \r\n> index/download.php \r\n> index/borrow.php\r\n\r\nHAVE FUN !!!"},"comment":{"url":"https://api.github.com/repos/CAPU-ENG/CAPUBBS/issues/comments/84391283","html_url":"https://github.com/CAPU-ENG/CAPUBBS/pull/64#issuecomment-84391283","issue_url":"https://api.github.com/repos/CAPU-ENG/CAPUBBS/issues/64","id":84391283,"user":{"login":"JeldorPKU","id":8514953,"avatar_url":"https://avatars.githubusercontent.com/u/8514953?v=3","gravatar_id":"","url":"https://api.github.com/users/JeldorPKU","html_url":"https://github.com/JeldorPKU","followers_url":"https://api.github.com/users/JeldorPKU/followers","following_url":"https://api.github.com/users/JeldorPKU/following{/other_user}","gists_url":"https://api.github.com/users/JeldorPKU/gists{/gist_id}","starred_url":"https://api.github.com/users/JeldorPKU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeldorPKU/subscriptions","organizations_url":"https://api.github.com/users/JeldorPKU/orgs","repos_url":"https://api.github.com/users/JeldorPKU/repos","events_url":"https://api.github.com/users/JeldorPKU/events{/privacy}","received_events_url":"https://api.github.com/users/JeldorPKU/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T17:04:36Z","updated_at":"2015-03-21T17:04:36Z","body":"你们赶紧argue，明早我再来看吧……"}}