change name and path
This commit is contained in:
parent
f9d04fe6e1
commit
c4c75f7303
8 changed files with 0 additions and 49 deletions
|
|
@ -1,34 +0,0 @@
|
||||||
<?php
|
|
||||||
if (!defined('_GNUBOARD_'))
|
|
||||||
exit; // 개별 페이지 접근 불가
|
|
||||||
|
|
||||||
/*************************************************************************************
|
|
||||||
SAMPLE CODE
|
|
||||||
--------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
◆ DB 테이블 명 추가
|
|
||||||
$g5['테이블고유명칭_table'] = G5_TABLE_PREFIX.'테이블고유명칭';
|
|
||||||
|
|
||||||
◆ 관리자에 아이템 기능 자동 추가
|
|
||||||
if(!strstr($config['cf_item_category'], '아이템기능명')) {
|
|
||||||
$config['cf_item_category'] .= "||아이템기능명";
|
|
||||||
}
|
|
||||||
|
|
||||||
◆ 테이블 자동 생성 (Mysql 테이블 생성 코드는 반드시 관련 지식에 대해 이해하고 작업하세요!)
|
|
||||||
if(!sql_query(" DESC {$g5['테이블고유명칭_table']} ")) {
|
|
||||||
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['테이블고유명칭_table']}` (
|
|
||||||
`자동idx필드명` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`필드명` 타입 NOT NULL default '기본값',
|
|
||||||
PRIMARY KEY (`자동idx필드명`)
|
|
||||||
) ", false);
|
|
||||||
}
|
|
||||||
|
|
||||||
◆ 기본 기능 함수 선언
|
|
||||||
function 함수명(매개변수) {
|
|
||||||
global $g5; // 글로벌 변수, $g5가 있어야 테이블 명 등 기본 값등을 불러올 수 있습니다.
|
|
||||||
|
|
||||||
// 함수 기능 선언
|
|
||||||
}
|
|
||||||
|
|
||||||
*************************************************************************************/
|
|
||||||
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* THIS MODULE PROHIBITS DISTRIBUTION TO OTHERS WITHOUT AUTHOR'S PERMISSION.
|
|
||||||
* @class arcturus.extendlib.php
|
|
||||||
* @author arcturus (contact@sharlayan.net / https://info.drk.st/about)
|
|
||||||
* @brief extend gnuboard5 extend
|
|
||||||
* @license LGPL 2.1
|
|
||||||
* @suppress PHP0413
|
|
||||||
*/
|
|
||||||
|
|
||||||
define("__EXT_DIR__", __DIR__);
|
|
||||||
|
|
||||||
foreach (glob(__DIR__ . "/arcturus" . '/*.php') as $filename) {
|
|
||||||
require_once $filename;
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue