최초 커밋
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
header("Access-Control-Allow-Methods: POST, GET, OPTIONS");
|
||||
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
|
||||
header("Content-Type: application/json; charset=UTF-8");
|
||||
|
||||
include_once('./common.php');
|
||||
|
||||
$currentDate_only = date('Y-m-d'); // 예: 2024-07-17
|
||||
$currentTime_only = date('H:i:s'); // 예: 15:30:00
|
||||
|
||||
$ip = isset($_POST['v_ip']) ? $_POST['v_ip'] : 'none';
|
||||
|
||||
$sql = " INSERT INTO g5_visit(vi_ip, vi_date, vi_time) values('$ip', '$currentDate_only', '$currentTime_only')";
|
||||
$result = sql_query($sql);
|
||||
|
||||
echo $result;
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user