상수 _EDITOR_ 를 G4_EDITOR 로, _CAPTCHA_ 를 G4_CAPTCHA 로 변경
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
<?
|
<?
|
||||||
$sub_menu = "300100";
|
$sub_menu = "300100";
|
||||||
define('_CAPTCHA_', 1);
|
define('G4_CAPTCHA', 1);
|
||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], 'w');
|
auth_check($auth[$sub_menu], 'w');
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?
|
<?
|
||||||
$sub_menu = '300100';
|
$sub_menu = '300100';
|
||||||
define('_CAPTCHA_', 1);
|
define('G4_CAPTCHA', 1);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], 'w');
|
auth_check($auth[$sub_menu], 'w');
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?
|
<?
|
||||||
$sub_menu = "300100";
|
$sub_menu = "300100";
|
||||||
define('_EDITOR_', 1);
|
define('G4_EDITOR', 1);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], 'w');
|
auth_check($auth[$sub_menu], 'w');
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
define('_CAPTCHA_', 1);
|
define('G4_CAPTCHA', 1);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
if (!$board['bo_table']) {
|
if (!$board['bo_table']) {
|
||||||
|
|||||||
@ -5,7 +5,7 @@ function editor_html($id, $content, $class="")
|
|||||||
{
|
{
|
||||||
if ( (isset($GLOBALS['is_dhtml_editor']) && $GLOBALS['is_dhtml_editor']) || !isset($GLOBALS['is_dhtml_editor']) ) {
|
if ( (isset($GLOBALS['is_dhtml_editor']) && $GLOBALS['is_dhtml_editor']) || !isset($GLOBALS['is_dhtml_editor']) ) {
|
||||||
$str = "<textarea id=\"$id\" name=\"$id\" class=\"ckeditor $class\" rows=\"10\" style=\"width:100%;\">$content</textarea>\n";
|
$str = "<textarea id=\"$id\" name=\"$id\" class=\"ckeditor $class\" rows=\"10\" style=\"width:100%;\">$content</textarea>\n";
|
||||||
//if (_EDITOR_) $str .= "<script>CKEDITOR.replace('$id',{height:'500px'});</script>\n";
|
//if (G4_EDITOR) $str .= "<script>CKEDITOR.replace('$id',{height:'500px'});</script>\n";
|
||||||
} else {
|
} else {
|
||||||
$str = "<textarea id=\"$id\" name=\"$id\" class=\"$class\" rows=\"10\" style=\"width:100%;\">$content</textarea>\n";
|
$str = "<textarea id=\"$id\" name=\"$id\" class=\"$class\" rows=\"10\" style=\"width:100%;\">$content</textarea>\n";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
define('_CAPTCHA_', 1);
|
define('G4_CAPTCHA', 1);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
if (!$config[cf_email_use])
|
if (!$config[cf_email_use])
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
define('_CAPTCHA_', 1);
|
define('G4_CAPTCHA', 1);
|
||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
|
|
||||||
echo chk_captcha();
|
echo chk_captcha();
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
define('_CAPTCHA_', 1);
|
define('G4_CAPTCHA', 1);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
if ($is_guest)
|
if ($is_guest)
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
define('_CAPTCHA_', 1);
|
define('G4_CAPTCHA', 1);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
define('_CAPTCHA_', 1);
|
define('G4_CAPTCHA', 1);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
if ($is_member) {
|
if ($is_member) {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
define('_CAPTCHA_', 1);
|
define('G4_CAPTCHA', 1);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
include_once($g4['path'].'/lib/mailer.lib.php');
|
include_once($g4['path'].'/lib/mailer.lib.php');
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
define('_CAPTCHA_', 1);
|
define('G4_CAPTCHA', 1);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
include_once($g4['path'].'/lib/register.lib.php');
|
include_once($g4['path'].'/lib/register.lib.php');
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
define('_CAPTCHA_', 1);
|
define('G4_CAPTCHA', 1);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
include_once($g4['path'].'/lib/register.lib.php');
|
include_once($g4['path'].'/lib/register.lib.php');
|
||||||
include_once($g4['path'].'/lib/mailer.lib.php');
|
include_once($g4['path'].'/lib/mailer.lib.php');
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?
|
<?
|
||||||
define('_EDITOR_', 1);
|
define('G4_EDITOR', 1);
|
||||||
define('_CAPTCHA_', 1);
|
define('G4_CAPTCHA', 1);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
set_session('ss_bo_table', $bo_table);
|
set_session('ss_bo_table', $bo_table);
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
define('_CAPTCHA_', true);
|
define('G4_CAPTCHA', true);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
// 090710
|
// 090710
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
define('_CAPTCHA_', 1);
|
define('G4_CAPTCHA', 1);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
$g4['title'] = '게시글 저장';
|
$g4['title'] = '게시글 저장';
|
||||||
|
|||||||
@ -1,21 +0,0 @@
|
|||||||
<?
|
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
|
||||||
/*
|
|
||||||
// _EDITOR_ 의 값에 상관없이 선언 되었는지의 여부만 따짐
|
|
||||||
// if (defined('_EDITOR_')) true;
|
|
||||||
define('_EDITOR_', 1);
|
|
||||||
|
|
||||||
if (defined('_EDITOR_')) {
|
|
||||||
$ckeditor = new stdClass;
|
|
||||||
$ckeditor->url = $g4['url']."/extend/ckeditor";
|
|
||||||
$ckeditor->path = $g4['path']."/extend/ckeditor";
|
|
||||||
$ckeditor->data = "data/editor";
|
|
||||||
|
|
||||||
include_once($ckeditor->path."/ckeditor.lib.php");
|
|
||||||
|
|
||||||
$g4['js_code'][] = "var g4_ckeditor_path = \"{$ckeditor->path}\";";
|
|
||||||
$g4['js_file'][] = $ckeditor->url."/ckeditor.js";
|
|
||||||
$g4['js_file'][] = $ckeditor->url."/config.js";
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
?>
|
|
||||||
@ -22,8 +22,8 @@ $g4['cache_path'] = $g4['data_path'].'/'.$g4['cache_dir'];
|
|||||||
$g4['captcha_dir'] = 'captcha';
|
$g4['captcha_dir'] = 'captcha';
|
||||||
|
|
||||||
// g4s 기본 DHTML EDITOR
|
// g4s 기본 DHTML EDITOR
|
||||||
if (!defined('_EDITOR_')) define('_EDITOR_', 0);
|
if (!defined('G4_EDITOR')) define('G4_EDITOR', 0);
|
||||||
if (_EDITOR_) {
|
if (G4_EDITOR) {
|
||||||
$g4['ckeditor_dir'] = 'ckeditor';
|
$g4['ckeditor_dir'] = 'ckeditor';
|
||||||
$g4['ckeditor_url'] = $g4['bbs_url'].'/'.$g4['ckeditor_dir'];
|
$g4['ckeditor_url'] = $g4['bbs_url'].'/'.$g4['ckeditor_dir'];
|
||||||
$g4['ckeditor_path'] = $g4['bbs_path'].'/'.$g4['ckeditor_dir'];
|
$g4['ckeditor_path'] = $g4['bbs_path'].'/'.$g4['ckeditor_dir'];
|
||||||
@ -37,8 +37,8 @@ if (_EDITOR_) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// g4s 기본 CAPTCHA
|
// g4s 기본 CAPTCHA
|
||||||
if (!defined('_CAPTCHA_')) define('_CAPTCHA_', 0);
|
if (!defined('G4_CAPTCHA')) define('G4_CAPTCHA', 0);
|
||||||
if (_CAPTCHA_) {
|
if (G4_CAPTCHA) {
|
||||||
$g4['gcaptcha_dir'] = 'gcaptcha';
|
$g4['gcaptcha_dir'] = 'gcaptcha';
|
||||||
$g4['gcaptcha_url'] = $g4['bbs_url'].'/'.$g4['gcaptcha_dir'];
|
$g4['gcaptcha_url'] = $g4['bbs_url'].'/'.$g4['gcaptcha_dir'];
|
||||||
$g4['gcaptcha_path'] = $g4['bbs_path'].'/'.$g4['gcaptcha_dir'];
|
$g4['gcaptcha_path'] = $g4['bbs_path'].'/'.$g4['gcaptcha_dir'];
|
||||||
|
|||||||
@ -1,22 +0,0 @@
|
|||||||
<?
|
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
|
||||||
|
|
||||||
/*
|
|
||||||
// _CAPTCHA_ 의 값에 상관없이 선언 되었는지의 여부만 따짐
|
|
||||||
// if (defined('_CAPTCHA_')) true;
|
|
||||||
define('_CAPTCHA_', 1);
|
|
||||||
|
|
||||||
if (defined('_CAPTCHA_')) {
|
|
||||||
$gcaptcha = new stdClass;
|
|
||||||
$gcaptcha->url = $g4['url']."/extend/gcaptcha";
|
|
||||||
$gcaptcha->path = $g4['path']."/extend/gcaptcha";
|
|
||||||
$gcaptcha->fonts = $gcaptcha->path."/fonts";
|
|
||||||
$gcaptcha->wavs = $gcaptcha->path."/wavs";
|
|
||||||
|
|
||||||
include_once($gcaptcha->path."/gcaptcha.lib.php");
|
|
||||||
|
|
||||||
$g4['js_code'][] = "var g4_gcaptcha_path = \"{$gcaptcha->path}\";";
|
|
||||||
$g4['js_file'][] = $gcaptcha->url."/gcaptcha.js";
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
?>
|
|
||||||
Reference in New Issue
Block a user