admin page code check

This commit is contained in:
Amberstone 2024-10-07 12:12:14 +09:00
parent 2e32e7f604
commit f122633032
Signed by: amber
GPG key ID: 094B0E55F98D8BF1
82 changed files with 109 additions and 98 deletions

View file

@ -5,8 +5,6 @@ if ($is_admin != 'super') {
alert_close('최고관리자만 접근 가능합니다.');
}
if (!isset($_POST['addon']) || empty($_POST['addon'])) {
alert('애드온 이름이 지정되지 않았습니다.');
}

View file

@ -6,7 +6,6 @@ $begin_time = microtime(true);
include_once G5_PATH . '/head.sub.php';
?>
<script>
var tempX = 0;
var tempY = 0;
@ -28,9 +27,7 @@ include_once G5_PATH . '/head.sub.php';
selectBoxHidden(id);
}
</script>
<div id="wrap">
<header id="header">
<div id="admin_prof">
<h1>
@ -43,7 +40,6 @@ include_once G5_PATH . '/head.sub.php';
<a href="<?php echo G5_BBS_URL ?>/logout.php" class="logout">로그아웃</a>
</p>
</div>
<nav id="gnb">
<ul>
<li style="border-bottom:1px solid #444;">
@ -67,14 +63,9 @@ include_once G5_PATH . '/head.sub.php';
echo $gnb_str;
?>
</nav>
</header>
<section id="wrapper">
<aside id="page_top">
<h2><?php echo $g5['title'] ?></h2>
</aside>
<div id="container">

View file

@ -6,8 +6,8 @@ set_session('ss_admin_token', '');
$error = admin_referer_check(true);
if ($error)
die(json_encode(array('error' => $error, 'url' => G5_URL)));
die(json_encode(['error' => $error, 'url' => G5_URL]));
$token = get_admin_token();
die(json_encode(array('error' => '', 'token' => $token, 'url' => '')));
die(json_encode(['error' => '', 'token' => $token, 'url' => '']));

View file

@ -8,7 +8,6 @@ if ($w == 'd')
else
auth_check($auth[$sub_menu], "w");
$banner_path = G5_DATA_PATH . "/banner";
$banner_url = G5_DATA_URL . "/banner";

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "300100";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'w');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '300100';
require_once './_common.php';
check_demo();

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "300100";
include_once "./_common.php";
include_once G5_EDITOR_LIB;

View file

@ -1,8 +1,105 @@
<?php
/**
* @suppress PHP0410
* @var string|int $bo_table
* @var string|int $bo_type
* @var string|int $gr_id
* @var string|int $bo_subject
* @var string|int $bo_mobile_subject
* @var string|int $bo_device
* @var string|int $bo_admin
* @var string|int $bo_list_level
* @var string|int $bo_read_level
* @var string|int $bo_write_level
* @var string|int $bo_reply_level
* @var string|int $bo_comment_level
* @var string|int $bo_upload_level
* @var string|int $bo_download_level
* @var string|int $bo_html_level
* @var string|int $bo_link_level
* @var string|int $bo_count_delete
* @var string|int $bo_count_modify
* @var string|int $bo_read_point
* @var string|int $bo_write_point
* @var string|int $bo_comment_point
* @var string|int $bo_download_point
* @var string|int $bo_use_category
* @var string|int $bo_category_list
* @var string|int $bo_use_sideview
* @var string|int $bo_use_file_content
* @var string|int $bo_use_secret
* @var string|int $bo_use_dhtml_editor
* @var string|int $bo_use_rss_view
* @var string|int $bo_use_good
* @var string|int $bo_use_nogood
* @var string|int $bo_use_name
* @var string|int $bo_use_signature
* @var string|int $bo_use_ip_view
* @var string|int $bo_use_list_view
* @var string|int $bo_use_list_file
* @var string|int $bo_use_list_content
* @var string|int $bo_table_width
* @var string|int $bo_subject_len
* @var string|int $bo_mobile_subject_len
* @var string|int $bo_page_rows
* @var string|int $bo_mobile_page_rows
* @var string|int $bo_new
* @var string|int $bo_hot
* @var string|int $bo_image_width
* @var string|int $bo_skin
* @var string|int $bo_mobile_skin
* @var string|int $bo_include_head
* @var string|int $bo_include_tail
* @var string|int $bo_content_head
* @var string|int $bo_mobile_content_head
* @var string|int $bo_content_tail
* @var string|int $bo_mobile_content_tail
* @var string|int $bo_insert_content
* @var string|int $bo_gallery_cols
* @var string|int $bo_gallery_width
* @var string|int $bo_gallery_height
* @var string|int $bo_mobile_gallery_width
* @var string|int $bo_mobile_gallery_height
* @var string|int $bo_upload_size
* @var string|int $bo_reply_order
* @var string|int $bo_use_search
* @var string|int $bo_order
* @var string|int $bo_count_write
* @var string|int $bo_count_comment
* @var string|int $bo_write_min
* @var string|int $bo_write_max
* @var string|int $bo_comment_min
* @var string|int $bo_comment_max
* @var string|int $bo_notice
* @var string|int $bo_upload_count
* @var string|int $bo_use_email
* @var string|int $bo_use_pass
* @var string|int $bo_pass
* @var string|int $bo_use_cert
* @var string|int $bo_use_sns
* @var string|int $bo_use_chick
* @var string|int $bo_use_noname
* @var string|int $bo_sort_field
* @var string|int $bo_1_subj
* @var string|int $bo_2_subj
* @var string|int $bo_3_subj
* @var string|int $bo_4_subj
* @var string|int $bo_5_subj
* @var string|int $bo_6_subj
* @var string|int $bo_7_subj
* @var string|int $bo_8_subj
* @var string|int $bo_9_subj
* @var string|int $bo_10_subj
* @var string|int $bo_1
* @var string|int $bo_2
* @var string|int $bo_3
* @var string|int $bo_4
* @var string|int $bo_5
* @var string|int $bo_6
* @var string|int $bo_7
* @var string|int $bo_8
* @var string|int $bo_9
* @var string|int $bo_10
*/
$sub_menu = "300100";
include_once "./_common.php";
if ($w == 'u')

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "300100";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "300100";
include_once "./_common.php";
check_demo();

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '300100';
include_once "./_common.php";
auth_check($auth[$sub_menu], 'w');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "300200";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'w');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "300200";
include_once "./_common.php";
if ($w == 'u')

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "300200";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "300200";
include_once "./_common.php";
//print_r2($_POST); exit;

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "300200";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'w');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "300200";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "300200";
include_once "./_common.php";
sql_query(" ALTER TABLE {$g5['group_member_table']} CHANGE `gm_id` `gm_id` INT( 11 ) DEFAULT '0' NOT NULL AUTO_INCREMENT ", false);

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100510";
include_once "./_common.php";
if (!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE))

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100520";
include_once "./_common.php";
if (!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE))

View file

@ -1,7 +1,6 @@
<?php
ini_set('memory_limit', '-1');
$sub_menu = "100510";
include_once "./_common.php";
// clean the output buffer

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '900300';
include_once "./_common.php";
if ($is_admin != 'super')

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '100910';
include_once "./_common.php";
if ($is_admin != 'super')
@ -47,8 +46,6 @@ if (is_array($files)) {
echo '<li>완료됨</li></ul>' . PHP_EOL;
echo '<div class="local_desc01 local_desc"><p><strong>캡챠파일 ' . $cnt . '건의 삭제 완료됐습니다.</strong><br>프로그램의 실행을 끝마치셔도 좋습니다.</p></div>' . PHP_EOL;
?>
<?php
include_once "./admin.tail.php";
?>

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '400100';
include_once "./_common.php";
check_demo();
auth_check($auth[$sub_menu], 'd');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "400200";
include_once "./_common.php";
check_demo();

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "900100";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "900100";
include_once "./_common.php";
check_demo();

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '300600';
include_once "./_common.php";
include_once G5_EDITOR_LIB;

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '300600';
include_once "./_common.php";
if ($w == "u" || $w == "d")

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '300600';
include_once "./_common.php";
auth_check($auth[$sub_menu], "r");

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '100410';
include_once './_common.php';
auth_check_menu($auth, $sub_menu, 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100300";
include_once "./_common.php";
include_once G5_EDITOR_LIB;

View file

@ -21,7 +21,6 @@
* @var string[][] $cs_etc_19
* @var string[][] $cs_etc_20
*/
$sub_menu = "100300";
include_once "./_common.php";
$site_style_path = G5_DATA_PATH . "/site";

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '300300';
include_once './_common.php';
check_demo();

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '100330';
include_once './_common.php';
auth_check($auth[$sub_menu], "r");

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "400400";
include_once './_common.php';
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200100";
include_once "./_common.php";
check_demo();

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200100";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'w');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200100";
include_once "./_common.php";
include_once G5_LIB_PATH . "/register.lib.php";

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200100";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200100";
include_once "./_common.php";
check_demo();

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200100";
include_once "./_common.php";
check_demo();

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100400";
include_once "./_common.php";
if ($is_admin != 'super')

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100400";
include_once "./_common.php";
if ($is_admin != 'super')

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100400";
include_once "./_common.php";
check_demo();

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '100310';
include_once "./_common.php";
include_once G5_EDITOR_LIB;

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '100310';
include_once "./_common.php";
if ($w == "u" || $w == "d")

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '100310';
include_once "./_common.php";
auth_check($auth[$sub_menu], "r");

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "500400";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100500";
include_once "./_common.php";
check_demo();

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "500900";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'w');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200900";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "300300";
include_once './_common.php';
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "300400";
include_once './_common.php';
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "900200";
include_once "./_common.php";
if ($is_admin != "super")

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100100";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100100";
include_once "./_common.php";
check_demo();

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "400420";
include_once './_common.php';
auth_check($auth[$sub_menu], 'w');
@ -17,6 +16,4 @@ $sql = " insert into {$g5['status_config_table']}
";
sql_query($sql);
goto_url('./status_list.php?' . $qstr);
?>

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "400420";
include_once './_common.php';
auth_check($auth[$sub_menu], 'r');
@ -223,4 +222,3 @@ $pg_anchor = '<ul class="anchor">
</script>
<?php
include_once './admin.tail.php';
?>

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '400420';
include_once './_common.php';
check_demo();
@ -56,4 +55,3 @@ if ($_POST['act_button'] == "선택수정") {
if ($msg)
alert($msg);
goto_url('./status_list.php?' . $qstr);
?>

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100280";
include_once "./_common.php";
if ($is_admin != 'super')

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100280";
include_once "./_common.php";
include_once G5_LIB_PATH . "/json.lib.php";

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100280";
include_once "./_common.php";
if ($is_admin != 'super')

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100280";
define('_THEME_PREVIEW_', true);
include_once "./_common.php";

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100280";
include_once "./_common.php";
if ($is_admin != 'super')

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = '100920';
include_once "./_common.php";
if ($is_admin != 'super')

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100250";
include_once "./_common.php";
include_once G5_EDITOR_LIB;

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "100250";
include_once "./_common.php";
if (defined("G5_THEME_PATH") && file_exists(G5_THEME_PATH . "/config/viewer_form_update.php")) {

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200800";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200800";
include_once "./_common.php";
if (!isset($arr)) {

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200820";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200820";
include_once "./_common.php";
check_demo();

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200800";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200800";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200800";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200800";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200800";
include_once "./_common.php";
if (!isset($arr)) {

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200800";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200800";
include_once "./_common.php";
auth_check($auth[$sub_menu], 'r');

View file

@ -1,5 +1,4 @@
<?php
$sub_menu = "200800";
include_once "./_common.php";
if (!isset($arr)) {

View file

@ -1,4 +1,7 @@
<?php
/**
* @suppress PHP0419
*/
if (!defined('_GNUBOARD_'))
exit;
include_once dirname(__FILE__) . "/pbkdf2.compat.php";

View file

@ -32,3 +32,7 @@ AvocadoEdition Light 의 구조를 바탕으로 GNUBoard 기능과 함께 재수
기존에 개조된 코드가 있다면 git을 이용해 병합하는 것을 추천합니다.
버전 변경에 대한 의뢰도 가능합니다.
## 설치
`AvocadoAmber` 경로 아래의 파일들을 호스팅의 `public` 또는 `www`, `public_html` 폴더에 업로드합니다.
이후 호스팅 주소로 접속하여 설치 프로그램을 실행합니다.