diff --git a/config.sample.php b/config.sample.php index 938975d..c97c004 100644 --- a/config.sample.php +++ b/config.sample.php @@ -3,8 +3,14 @@ define('APP_NAME', 'LoliPHP'); // データベース + define('DB_CONN', 'mysql'); // mysql|pgsql define('DB_HOST', 'localhost'); + define('DB_PORT', 3306); define('DB_USER', ''); define('DB_PASS', ''); define('DB_NAME', ''); + + // CURL + define('API_URI', ''); + define('API_AUTH', null); ?> diff --git a/helper.php b/helper.php index bf9eee7..2fc60ee 100644 --- a/helper.php +++ b/helper.php @@ -1,12 +1,12 @@ diff --git a/helper/curl.php b/helper/curl.php index 63a8f65..ace03ca 100644 --- a/helper/curl.php +++ b/helper/curl.php @@ -1,3 +1,37 @@ status) && $get->status == 404) { + return []; + } + + return $get; + } ?>