37 lines
1.5 KiB
PHP
37 lines
1.5 KiB
PHP
<?php
|
|
if (!defined('_GNUBOARD_')) exit;
|
|
|
|
// 💡 [핵심] 견적 및 입찰 정보 저장 파일을 포함합니다.
|
|
// 이 파일들은 write_update.php에서 $wr_id가 생성된 후에 실행되어야 합니다.
|
|
|
|
// 1. 견적 정보 저장 (고객용)
|
|
include_once($board_skin_path . '/save_estimate.php');
|
|
|
|
// 2. 입찰 정보 저장 (대리점용 - 현재는 내부 로직에 의해 비활성화됨)
|
|
include_once($board_skin_path . '/save_bidding.php');
|
|
|
|
// 🛠️ [디버깅] 에러 리포팅 활성화
|
|
error_reporting(E_ALL);
|
|
ini_set('display_errors', 1);
|
|
|
|
// 🛠️ [디버깅] 로그 파일 생성 (data/tmp/debug_order_write.log)
|
|
$log_dir = G5_DATA_PATH.'/tmp';
|
|
if(!is_dir($log_dir)) @mkdir($log_dir, G5_DIR_PERMISSION);
|
|
$log_file = $log_dir . '/debug_order_write.log';
|
|
|
|
$log_content = "\n=================================================================\n";
|
|
$log_content .= "[" . date('Y-m-d H:i:s') . "] " . $_SERVER['REMOTE_ADDR'] . "\n";
|
|
$log_content .= "Page: " . $_SERVER['SCRIPT_NAME'] . "\n";
|
|
$log_content .= "w: " . $w . ", bo_table: " . $bo_table . ", wr_id: " . $wr_id . "\n";
|
|
$log_content .= "POST Data:\n" . print_r($_POST, true) . "\n";
|
|
if (!empty($_FILES)) {
|
|
$log_content .= "FILES Data:\n" . print_r($_FILES, true) . "\n";
|
|
}
|
|
|
|
file_put_contents($log_file, $log_content, FILE_APPEND);
|
|
|
|
// 🛠️ [디버깅] DB 에러 표시 설정 (이미 설정되어 있지 않다면)
|
|
if (!defined('G5_DISPLAY_SQL_ERROR')) {
|
|
define('G5_DISPLAY_SQL_ERROR', true);
|
|
}
|
|
?>
|