테스트 사이트 - 개발 중인 베타 버전입니다

여러게시판의 최신글 받아오는데 질문있습니다. 채택완료

꼬마새벽 8년 전 조회 2,614

https://sir.kr/g5_tip/4103" style="color: rgb(0, 0, 0); text-decoration: none;">https://sir.kr/g5_tip/4103 < 그누위즈님 글

참고하여 만들었는데 작동이 되질 않습니다.

// $bo_tables 테이블들 사이 콤마(,) 단위로 구분해서 넣을 것, 콤마 사이에 공백 없이 (ex aaa,bbb,)

latest.lib.php

</span>
</span></p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="hljs-keyword" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(123, 89, 192);">function</span> latest_all(<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$skin_dir</span>=<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">''</span>, <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$bo_tables</span>, <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$rows</span>=10, <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$subject_len</span>=40, <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$cache_time</span>=1, <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$options</span>=<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">''</span>)</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">{</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> </p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">    global <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$g5</span>;</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> </p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">    <span class="hljs-keyword" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(123, 89, 192);">if</span> (!<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$skin_dir</span>) <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$skin_dir</span> = <span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'basic'</span>;</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> </p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">    <span class="hljs-keyword" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(123, 89, 192);">if</span>(preg_match(<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'#^theme/(.+)$#'</span>, <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$skin_dir</span>, <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$match</span>)) {</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        <span class="hljs-keyword" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(123, 89, 192);">if</span> (G5_IS_MOBILE) {</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$latest_skin_path</span> = G5_THEME_MOBILE_PATH.<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'/'</span>.G5_SKIN_DIR.<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'/latest/'</span>.<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$match</span>[1];</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-keyword" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(123, 89, 192);">if</span>(!is_dir(<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$latest_skin_path</span>))</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">                <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$latest_skin_path</span> = G5_THEME_PATH.<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'/'</span>.G5_SKIN_DIR.<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'/latest/'</span>.<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$match</span>[1];</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$latest_skin_url</span> = str_replace(G5_PATH, G5_URL, <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$latest_skin_path</span>);</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        } <span class="hljs-keyword" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(123, 89, 192);">else</span> {</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$latest_skin_path</span> = G5_THEME_PATH.<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'/'</span>.G5_SKIN_DIR.<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'/latest/'</span>.<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$match</span>[1];</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$latest_skin_url</span> = str_replace(G5_PATH, G5_URL, <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$latest_skin_path</span>);</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        }</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$skin_dir</span> = <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$match</span>[1];</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">    } <span class="hljs-keyword" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(123, 89, 192);">else</span> {</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        <span class="hljs-keyword" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(123, 89, 192);">if</span>(G5_IS_MOBILE) {</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$latest_skin_path</span> = G5_MOBILE_PATH.<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'/'</span>.G5_SKIN_DIR.<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'/latest/'</span>.<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$skin_dir</span>;</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$latest_skin_url</span>  = G5_MOBILE_URL.<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'/'</span>.G5_SKIN_DIR.<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'/latest/'</span>.<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$skin_dir</span>;</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        } <span class="hljs-keyword" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(123, 89, 192);">else</span> {</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$latest_skin_path</span> = G5_SKIN_PATH.<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'/latest/'</span>.<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$skin_dir</span>;</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$latest_skin_url</span>  = G5_SKIN_URL.<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'/latest/'</span>.<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$skin_dir</span>;</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        }</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">    }</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> </p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$list</span> = array();</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$sql_common</span> = <span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">" from {<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$g5</span>['board_new_table']} a  where find_in_set(a.bo_table, '{<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$bo_tables</span>}')"</span>;</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$sql_common</span> .= <span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">" and a.wr_id = a.wr_parent "</span>;</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$sql_order</span> = <span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">" order by a.bn_id desc "</span>;</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$sql</span> = <span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">" select a.* {<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$sql_common</span>} {<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$sql_order</span>} limit 0, {<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$rows</span>}"</span>;</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> </p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$result</span> = sql_query(<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$sql</span>);</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        </p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        <span class="hljs-keyword" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(123, 89, 192);">for</span> (<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$i</span>=0; <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$row</span>=sql_fetch_array(<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$result</span>); <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$i</span>++) {</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> </p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$sql</span> = <span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">" select * from {<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$g5</span>['board_table']} where bo_table = '{<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$row</span>['bo_table']}' "</span>;</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$board</span> = sql_fetch(<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$sql</span>);</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> </p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$tmp_write_table</span> = <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$g5</span>[<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'write_prefix'</span>] . <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$row</span>[<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'bo_table'</span>];</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$row2</span> = sql_fetch(<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">" select * from {<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$tmp_write_table</span>} where wr_id = '{<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$row</span>['wr_id']}' "</span>);</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> </p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$list</span>[<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$i</span>] = <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$row2</span>;</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$list</span>[<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$i</span>] = get_list(<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$row2</span>, <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$board</span>, <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$latest_skin_url</span>, <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$subject_len</span>);</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$list</span>[<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$i</span>][<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'bo_subject'</span>] = <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$row</span>[<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'bo_subject'</span>];</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">            <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$list</span>[<span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$i</span>][<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'bo_table'</span>] = <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$row</span>[<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'bo_table'</span>];</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        }</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> </p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">    ob_start();</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">    include <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$latest_skin_path</span>.<span class="hljs-string" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(145, 139, 59);">'/latest.skin.php'</span>;</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">    <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$content</span> = ob_get_contents();</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">    ob_end_clean();</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> </p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">    <span class="hljs-built_in" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(166, 89, 38);">return</span> <span class="hljs-variable" style="padding: 0px; margin: 0px; font-size: inherit; font-family: inherit; letter-spacing: -0.025em; color: rgb(202, 64, 43);">$content</span>;</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">}</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;">

index.php

</span>
</p><p><span style="font-family: "Nanum Gothic", "malgun gothic", dotum; color: rgb(105, 93, 105);"><span style="font-size: 14px; letter-spacing: -0.35px; white-space: pre;">echo latest_all("basic",'notice,Testimony',5,20);</span></span>
</p><p style="color: rgb(105, 93, 105); font-family: "Nanum Gothic", "malgun gothic", dotum; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: -0.35px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="letter-spacing: -0.35px;">

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트

작동 잘하는 거 아닌가요?

혹시 모르니 pma로 g5_board_new 테이블에 가셔서 notice, Testimony 테이블의 데이터가 있는지 확인해 보세요.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 2개

꼬마새벽
8년 전
g5_board_new 에 데이터가 없는데 어떻게 해야하나요? 왕초보입니다.
왕계란
8년 전
관리자 페이지 - 환경설정 - 기본환경설정 - 최근게시물 삭제 여기 날짜를 넉넉하게 주세요.
그러면 설정한 날짜만큼 g5_board_new 테이블에서 살아(?) 있으니까요.

댓글을 작성하려면 로그인이 필요합니다.

f
8년 전

지금 몇번 해보았는데...

갤러리 최신글 스킨은 위 주소에서 설명한 소스를 넣어도 안되더군요.

질문하신 Basic 스킨은 잘 작동합니다만...

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인