Update gnbapi.php

This commit is contained in:
Namhyeon Go 2018-05-31 00:57:36 +09:00 committed by GitHub
parent f83fffaf88
commit 5cc63cdccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,15 @@
<?php
/**
* @file gnbapi.php
* @file database.php
* @date 2018-05-31
* @author Go Namhyeon <gnh1201@gmail.com>
* @brief Integration example with Gnuboard CMS and ReasonableFramework
*/
/**** how to test ***/
/* read: GET/POST [base_url]/?route=gnbapi&action=read&bo_table=[bo_table]&wr_id=[wr_id] */
/* write: GET/POST [base_url]/?route=gnbapi&action=write&bo_table=[bo_table]&wr_subject=mysubject&wr_content=mycontent&version=[4 or 5] */
loadHelper("gnuboard.dbt");
$action = get_requested_value("action");