그누보드5에 처음 접속했을 때의 SQL Query입니다. 정보
그누보드5에 처음 접속했을 때의 SQL Query입니다.본문
1. set names utf8
2. SET SESSION sql_mode = ''
3. select * from g5_config
4. select * from g5_shop_default
5. select * from g5_new_win where '2015-06-20 13:42:48' between nw_begin_time and nw_end_time and nw_device IN ( 'both', 'pc' ) and nw_division IN ( 'both', 'comm' ) order by nw_id asc
6. select sum(IF(mb_id<>'',1,0)) as mb_cnt, count(*) as total_cnt from g5_login where mb_id <> 'admin'
7. select * from g5_menu where me_use = '1' and length(me_code) = '2' order by me_order, me_id
8. select * from g5_menu where me_use = '1' and length(me_code) = '4' and substring(me_code, 1, 2) = '10' order by me_order, me_id
9. select MAX(po_id) as max_po_id from g5_poll
10. select bo_table from `g5_board` a left join `g5_group` b on (a.gr_id=b.gr_id) where a.bo_device <> 'mobile' and a.bo_use_cert = '' order by b.gr_order, a.bo_order
11. select * from g5_board where bo_table = 'notice'
12. select * from g5_write_notice where wr_is_comment = 0 order by wr_num limit 0, 5
13. select * from g5_board where bo_table = 'qa'
14. select * from g5_write_qa where wr_is_comment = 0 order by wr_num limit 0, 5
15. select * from g5_board where bo_table = 'free'
16. select * from g5_write_free where wr_is_comment = 0 order by wr_num limit 0, 5
17. select pp_word, count(*) as cnt from g5_popular where pp_date between '2015-06-17' and '2015-06-20' group by pp_word order by cnt desc, pp_word limit 0, 7
18. select count(*) as cnt from g5_login where lo_ip = '::1'
19. update g5_login set mb_id = '', lo_datetime = '2015-06-20 13:42:48', lo_location = '그누보드5', lo_url = '/yc5037/' where lo_ip = '::1'
0
댓글 7개
4. /restful/adm/shop/default
7. /restful/menus
8. /restful/menus/:submenu
10./restful/boards
11./restful/board/:bo_table
12. /restful/board/:bo_table/:start/:count (2개면)
or /restful/board/:bo_table/:wr_id (옵션이 한개면)
19 put에 대해서는 다음에 정의해야 되겠네요..
그냥 간단하게 몇개만 구현할려고 시작했는데.. SQL도 알아야 되고, 그누보드도 알아야 되고..
PHP도 알아야 되고..
현재까지 공부한 것으로 보면.. 일반 웹사이트에서 Restful로 하는 것은 제 실력으로는 안될것 같고..
일단 위처럼 몇개만 정리하고, 이것을 활용해서.. cordova(HTML5)로 Android 앱을 만들어서..
앱에서 게시판에 글을 읽고, 쓰고, 수정하고, 댓글 쓰기까지 해 볼려고 합니다.
잘다듬어지면 전 그때 덥석~~~~ㅋ~
이것은 핑계고... 현재 미국쪽에서 이것이 대세라고 생각되다 보니.. 뭔가를 조금씩 해 보고 싶다는 것입니다.
만들어지면(미천하겠지만..) 제일 먼저 오픈해드리겠습니다. ㅎㅎ
저는 점점 바빠지는것 같아 Pc앞에 앉는 시간이 점점 줄어 들것 같네요....ㅠㅠ
저도 웹사이트 하나 신청해도 되는지.. (테스트용서버 ㅎㅎ)