🔐로그인하면 문서 작성, 프로젝트 게시, ZIP 기반 버전 업로드, 브랜치 생성 기능을 사용할 수 있습니다. 로그인하러 가기
project / t2editor

T2Editor

T2Editor

OwnerTak2
Latest9.1.3-beta1.1.0
Branches1
# project
README / 릴리스 소개

ver_9.1.3 date_2026.04.26 Copyright (c) 2025 Tak2 (dsclub.kr) The_first.license_License_ko.txt & License_en.txt email_dsclub2023@gmail.com

-___-

T2Editor License_Ko Version: 2.0.0 Initial development period: 2025.01.23 - 2025.02.11 Copyright (c) 2025 Tak2 (dsclub.kr)

[한국어 버전]

저작권 및 소유권: T2Editor의 저작권은 Tak2(dsclub.kr)에게 있습니다. 이메일: dsclub2023@gmail.com

사용 권한:

  1. dsclub.kr에서 배포하는 T2Editor 코어 파일 및 기본 제공 플러그인:
  • 사용, 복사, 수정, 재배포 가능
  • 모든 배포물(수정본 포함)은 무료로 제공해야 함
  • 상업적 판매 금지
  1. 외부 자체 개발 플러그인 및 관련 서비스:
  • T2Editor와 연동되는 독자 개발 플러그인의 유료 판매 허용
  • 자체 개발 플러그인 기반 유료 서비스(구독형 등) 제공 허용
  • 단, dsclub.kr 기본 제공 소프트웨어는 무료로 유지되어야 함

제한사항:

  • 저작권 고지 제거 또는 수정 금지
  • dsclub.kr 기본 배포 파일의 상업적 판매 금지

배포 및 문의: 최신 버전: https://dsclub.kr/service/editor 사용 안내: https://dsclub.kr/service/editor

이 라이선스는 2025년 11월 26일부터 유효합니다.

-___-

T2Editor License_En Version: 2.0.0 Initial development period: 2025.01.23 - 2025.02.11 Copyright (c) 2025 Tak2 (dsclub.kr)

[English Version]

Copyright and Ownership: T2Editor is copyrighted by Tak2 (dsclub.kr) Email: dsclub2023@gmail.com

Usage Rights:

  1. T2Editor core files and bundled plugins distributed by dsclub.kr:
  • Free to use, copy, modify, and redistribute
  • All distributions (including modified versions) must be provided free of charge
  • Commercial sale prohibited
  1. Third-party developed plugins and related services:
  • Commercial sale of independently developed plugins that integrate with T2Editor is permitted
  • Paid services (e.g., subscription-based) based on third-party plugins are permitted
  • Core software distributed by dsclub.kr must remain free

Restrictions:

  • Removal or modification of copyright notices is prohibited
  • Commercial sale of core files distributed by dsclub.kr is prohibited

Distribution and Contact: Latest version: https://dsclub.kr/service/editor How to use: https://dsclub.kr/service/editor

This license is valid from November 26, 2025.

파일 미리보기
9.1.3-beta1.1.0/t2editor/config/get_upload_config.phpphp
<?php
//Path: T2Editor/config/get_upload_config.php

header('Content-Type: application/json; charset=utf-8');

// ────────────────────────────────────────────────────────────────
// [BUG FIX] check_request_origin() 중복 선언 제거
//
// 이전 코드: 이 파일에 check_request_origin()를 인라인으로 정의한 뒤
//   include_once 'upload_config.php'를 호출했다.
//   upload_config.php에도 동일한 함수가 정의되어 있으므로
//   같은 PHP 프로세스에서 두 파일이 모두 로드되면
//   "Cannot redeclare check_request_origin()" Fatal Error가 발생했다.
//
// 수정: upload_config.php를 먼저 포함해 함수를 확보하고,
//   이 파일의 인라인 정의를 완전히 제거한다.
//   Origin 검증 로직(allowlist, 폴백)은 upload_config.php의 구현을 따른다.
// ────────────────────────────────────────────────────────────────

// 업로드 설정 파일 포함 (check_request_origin() 포함)
include_once 'upload_config.php';

if (!check_request_origin()) {
    http_response_code(403);
    echo json_encode(['error' => '접근 거부']);
    exit;
}

// JavaScript에서 사용할 설정 데이터 반환
$config = get_js_config();

// JSON 응답
echo json_encode($config);
T2WIKI · 기술 통합 위키 & 프로젝트 허브 · 나무위키 + Markdown 완벽 지원 · SQLite · PHP 8.2 · 소개 · 문법 안내