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

선택한 공지사항만 메인에 나오게 부탁드립니다. ㅠㅠ 채택완료

코니팡 5년 전 조회 2,309

5시간째 해봤는데

도저히 안되네요 ㅠㅠ

"공지" 체크한 글만

메인에 표시되게 부탁드립니다.!

 

</p>

<pre style="color: rgb(0, 0, 0); font-family: "굴림체"; font-size: 9pt; background-color: rgb(255, 255, 255);">
<span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);"><?php
</span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">if </span><span style="background-color: rgb(247, 250, 255);">(!</span><span style="font-style: italic; background-color: rgb(247, 250, 255);">defined</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'_GNUBOARD_'</span><span style="background-color: rgb(247, 250, 255);">)) </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">exit</span><span style="background-color: rgb(247, 250, 255);">;
</span>
<span style="color: rgb(128, 128, 128); font-style: italic; background-color: rgb(247, 250, 255);">// 최신글 추출
</span><span style="color: rgb(128, 128, 128); font-style: italic; background-color: rgb(247, 250, 255);">// $cache_time 캐시 갱신시간
</span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">function </span><span style="background-color: rgb(247, 250, 255);">latest(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$skin_dir</span><span style="background-color: rgb(247, 250, 255);">=</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">''</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$bo_table</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$rows</span><span style="background-color: rgb(247, 250, 255);">=</span><span style="color: rgb(0, 0, 255); background-color: rgb(247, 250, 255);">10</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$subject_len</span><span style="background-color: rgb(247, 250, 255);">=</span><span style="color: rgb(0, 0, 255); background-color: rgb(247, 250, 255);">40</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_time</span><span style="background-color: rgb(247, 250, 255);">=</span><span style="color: rgb(0, 0, 255); background-color: rgb(247, 250, 255);">1</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$options</span><span style="background-color: rgb(247, 250, 255);">=</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">''</span><span style="background-color: rgb(247, 250, 255);">)
</span><span style="background-color: rgb(247, 250, 255);">{
</span><span style="background-color: rgb(247, 250, 255);">    </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">global </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$g5</span><span style="background-color: rgb(247, 250, 255);">;
</span>
<span style="background-color: rgb(247, 250, 255);">    </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">if </span><span style="background-color: rgb(247, 250, 255);">(!</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$skin_dir</span><span style="background-color: rgb(247, 250, 255);">) </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$skin_dir </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'basic'</span><span style="background-color: rgb(247, 250, 255);">;
</span>
<span style="background-color: rgb(247, 250, 255);">    </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">if</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="font-style: italic; background-color: rgb(247, 250, 255);">preg_match</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'#^theme/(.+)$#'</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$skin_dir</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$match</span><span style="background-color: rgb(247, 250, 255);">)) {
</span><span style="background-color: rgb(247, 250, 255);">        </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">if </span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_IS_MOBILE</span><span style="background-color: rgb(247, 250, 255);">) {
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$latest_skin_path </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_THEME_MOBILE_PATH</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'/'</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_SKIN_DIR</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'/latest/'</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$match</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 0, 255); background-color: rgb(247, 250, 255);">1</span><span style="background-color: rgb(247, 250, 255);">];
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">if</span><span style="background-color: rgb(247, 250, 255);">(!</span><span style="font-style: italic; background-color: rgb(247, 250, 255);">is_dir</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$latest_skin_path</span><span style="background-color: rgb(247, 250, 255);">))
</span><span style="background-color: rgb(247, 250, 255);">                </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$latest_skin_path </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_THEME_PATH</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'/'</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_SKIN_DIR</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'/latest/'</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$match</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 0, 255); background-color: rgb(247, 250, 255);">1</span><span style="background-color: rgb(247, 250, 255);">];
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$latest_skin_url </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="font-style: italic; background-color: rgb(247, 250, 255);">str_replace</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_PATH</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_URL</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$latest_skin_path</span><span style="background-color: rgb(247, 250, 255);">);
</span><span style="background-color: rgb(247, 250, 255);">        } </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">else </span><span style="background-color: rgb(247, 250, 255);">{
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$latest_skin_path </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_THEME_PATH</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'/'</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_SKIN_DIR</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'/latest/'</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$match</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 0, 255); background-color: rgb(247, 250, 255);">1</span><span style="background-color: rgb(247, 250, 255);">];
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$latest_skin_url </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="font-style: italic; background-color: rgb(247, 250, 255);">str_replace</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_PATH</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_URL</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$latest_skin_path</span><span style="background-color: rgb(247, 250, 255);">);
</span><span style="background-color: rgb(247, 250, 255);">        }
</span><span style="background-color: rgb(247, 250, 255);">        </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$skin_dir </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$match</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 0, 255); background-color: rgb(247, 250, 255);">1</span><span style="background-color: rgb(247, 250, 255);">];
</span><span style="background-color: rgb(247, 250, 255);">    } </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">else </span><span style="background-color: rgb(247, 250, 255);">{
</span><span style="background-color: rgb(247, 250, 255);">        </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">if</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_IS_MOBILE</span><span style="background-color: rgb(247, 250, 255);">) {
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$latest_skin_path </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_MOBILE_PATH</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'/'</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_SKIN_DIR</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'/latest/'</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$skin_dir</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$latest_skin_url  </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_MOBILE_URL</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'/'</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_SKIN_DIR</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'/latest/'</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$skin_dir</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">        } </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">else </span><span style="background-color: rgb(247, 250, 255);">{
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$latest_skin_path </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_SKIN_PATH</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'/latest/'</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$skin_dir</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$latest_skin_url  </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_SKIN_URL</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'/latest/'</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$skin_dir</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">        }
</span><span style="background-color: rgb(247, 250, 255);">    }
</span>
<span style="background-color: rgb(247, 250, 255);">    </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_fwrite </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">false</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">    </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">if</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_USE_CACHE</span><span style="background-color: rgb(247, 250, 255);">) {
</span><span style="background-color: rgb(247, 250, 255);">        </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_file </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_DATA_PATH</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">"/cache/latest-</span><span style="background-color: rgb(247, 250, 255);">{</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$bo_table</span><span style="background-color: rgb(247, 250, 255);">}</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">-</span><span style="background-color: rgb(247, 250, 255);">{</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$skin_dir</span><span style="background-color: rgb(247, 250, 255);">}</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">-</span><span style="background-color: rgb(247, 250, 255);">{</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$rows</span><span style="background-color: rgb(247, 250, 255);">}</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">-</span><span style="background-color: rgb(247, 250, 255);">{</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$subject_len</span><span style="background-color: rgb(247, 250, 255);">}</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">-serial.php"</span><span style="background-color: rgb(247, 250, 255);">;
</span>
<span style="background-color: rgb(247, 250, 255);">        </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">if</span><span style="background-color: rgb(247, 250, 255);">(!</span><span style="font-style: italic; background-color: rgb(247, 250, 255);">file_exists</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_file</span><span style="background-color: rgb(247, 250, 255);">)) {
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_fwrite </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">true</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">        } </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">else </span><span style="background-color: rgb(247, 250, 255);">{
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">if</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_time </span><span style="background-color: rgb(247, 250, 255);">> </span><span style="color: rgb(0, 0, 255); background-color: rgb(247, 250, 255);">0</span><span style="background-color: rgb(247, 250, 255);">) {
</span><span style="background-color: rgb(247, 250, 255);">                </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$filetime </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="font-style: italic; background-color: rgb(247, 250, 255);">filemtime</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_file</span><span style="background-color: rgb(247, 250, 255);">);
</span><span style="background-color: rgb(247, 250, 255);">                </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">if</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$filetime </span><span style="background-color: rgb(247, 250, 255);">&& </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$filetime </span><span style="background-color: rgb(247, 250, 255);">< (</span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_SERVER_TIME </span><span style="background-color: rgb(247, 250, 255);">- </span><span style="color: rgb(0, 0, 255); background-color: rgb(247, 250, 255);">3600 </span><span style="background-color: rgb(247, 250, 255);">* </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_time</span><span style="background-color: rgb(247, 250, 255);">)) {
</span><span style="background-color: rgb(247, 250, 255);">                    @</span><span style="font-style: italic; background-color: rgb(247, 250, 255);">unlink</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_file</span><span style="background-color: rgb(247, 250, 255);">);
</span><span style="background-color: rgb(247, 250, 255);">                    </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_fwrite </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">true</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">                }
</span><span style="background-color: rgb(247, 250, 255);">            }
</span><span style="background-color: rgb(247, 250, 255);">            
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">if</span><span style="background-color: rgb(247, 250, 255);">(!</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_fwrite</span><span style="background-color: rgb(247, 250, 255);">) {
</span><span style="background-color: rgb(247, 250, 255);">                </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">try</span><span style="background-color: rgb(247, 250, 255);">{
</span><span style="background-color: rgb(247, 250, 255);">                    </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$file_contents </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="font-style: italic; background-color: rgb(247, 250, 255);">file_get_contents</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_file</span><span style="background-color: rgb(247, 250, 255);">);
</span><span style="background-color: rgb(247, 250, 255);">                    </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$file_ex </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="font-style: italic; background-color: rgb(247, 250, 255);">explode</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">"</span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">\n\n</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">"</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$file_contents</span><span style="background-color: rgb(247, 250, 255);">);
</span><span style="background-color: rgb(247, 250, 255);">                    </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$caches </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="font-style: italic; background-color: rgb(247, 250, 255);">unserialize</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="font-style: italic; background-color: rgb(247, 250, 255);">base64_decode</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$file_ex</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 0, 255); background-color: rgb(247, 250, 255);">1</span><span style="background-color: rgb(247, 250, 255);">]));
</span>
<span style="background-color: rgb(247, 250, 255);">                    </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$list </span><span style="background-color: rgb(247, 250, 255);">= (</span><span style="font-style: italic; background-color: rgb(247, 250, 255);">is_array</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$caches</span><span style="background-color: rgb(247, 250, 255);">) && </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">isset</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$caches</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'list'</span><span style="background-color: rgb(247, 250, 255);">])) ? </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$caches</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'list'</span><span style="background-color: rgb(247, 250, 255);">] : </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">array</span><span style="background-color: rgb(247, 250, 255);">();
</span><span style="background-color: rgb(247, 250, 255);">                    </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$bo_subject </span><span style="background-color: rgb(247, 250, 255);">= (</span><span style="font-style: italic; background-color: rgb(247, 250, 255);">is_array</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$caches</span><span style="background-color: rgb(247, 250, 255);">) && </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">isset</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$caches</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'bo_subject'</span><span style="background-color: rgb(247, 250, 255);">])) ? </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$caches</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'bo_subject'</span><span style="background-color: rgb(247, 250, 255);">] : </span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">''</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">                } </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">catch</span><span style="background-color: rgb(247, 250, 255);">(Exception </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$e</span><span style="background-color: rgb(247, 250, 255);">){
</span><span style="background-color: rgb(247, 250, 255);">                    </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_fwrite </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">true</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">                    </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$list </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">array</span><span style="background-color: rgb(247, 250, 255);">();
</span><span style="background-color: rgb(247, 250, 255);">                }
</span><span style="background-color: rgb(247, 250, 255);">            }
</span><span style="background-color: rgb(247, 250, 255);">        }
</span><span style="background-color: rgb(247, 250, 255);">    }
</span>
<span style="background-color: rgb(247, 250, 255);">    </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">if</span><span style="background-color: rgb(247, 250, 255);">(!</span><span style="color: rgb(102, 14, 122); font-style: italic; font-weight: bold; background-color: rgb(247, 250, 255);">G5_USE_CACHE </span><span style="background-color: rgb(247, 250, 255);">|| </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_fwrite</span><span style="background-color: rgb(247, 250, 255);">) {
</span><span style="background-color: rgb(247, 250, 255);">        </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$list </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">array</span><span style="background-color: rgb(247, 250, 255);">();
</span>
<span style="background-color: rgb(247, 250, 255);">        </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$sql </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">" select </span><span style="color: rgb(0, 128, 0); font-style: italic; background-color: rgb(247, 250, 255);">*</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);"> from </span><span style="background-color: rgb(247, 250, 255);">{</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$g5</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'board_table'</span><span style="background-color: rgb(247, 250, 255);">]}</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);"> where bo_table = '</span><span style="background-color: rgb(247, 250, 255);">{</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$bo_table</span><span style="background-color: rgb(247, 250, 255);">}</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">' "</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">        </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$board </span><span style="background-color: rgb(247, 250, 255);">= sql_fetch(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$sql</span><span style="background-color: rgb(247, 250, 255);">);
</span><span style="background-color: rgb(247, 250, 255);">        </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$bo_subject </span><span style="background-color: rgb(247, 250, 255);">= get_text(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$board</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'bo_subject'</span><span style="background-color: rgb(247, 250, 255);">]);
</span>
<span style="background-color: rgb(247, 250, 255);">        </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$tmp_write_table </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$g5</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'write_prefix'</span><span style="background-color: rgb(247, 250, 255);">] . </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$bo_table</span><span style="background-color: rgb(247, 250, 255);">; </span><span style="color: rgb(128, 128, 128); font-style: italic; background-color: rgb(247, 250, 255);">// 게시판 테이블 전체이름
</span><span style="color: rgb(128, 128, 128); font-style: italic; background-color: rgb(247, 250, 255);">        </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$sql </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">" select </span><span style="color: rgb(0, 128, 0); font-style: italic; background-color: rgb(247, 250, 255);">*</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);"> from </span><span style="background-color: rgb(247, 250, 255);">{</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$tmp_write_table</span><span style="background-color: rgb(247, 250, 255);">}</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);"> where wr_is_comment = 0 order by wr_num limit 0, </span><span style="background-color: rgb(247, 250, 255);">{</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$rows</span><span style="background-color: rgb(247, 250, 255);">} </span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">"</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">        </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$result </span><span style="background-color: rgb(247, 250, 255);">= sql_query(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$sql</span><span style="background-color: rgb(247, 250, 255);">);
</span><span style="background-color: rgb(247, 250, 255);">        </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">for </span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$i</span><span style="background-color: rgb(247, 250, 255);">=</span><span style="color: rgb(0, 0, 255); background-color: rgb(247, 250, 255);">0</span><span style="background-color: rgb(247, 250, 255);">; </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$row </span><span style="background-color: rgb(247, 250, 255);">= sql_fetch_array(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$result</span><span style="background-color: rgb(247, 250, 255);">); </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$i</span><span style="background-color: rgb(247, 250, 255);">++) {
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">try </span><span style="background-color: rgb(247, 250, 255);">{
</span><span style="background-color: rgb(247, 250, 255);">                </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">unset</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$row</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'wr_password'</span><span style="background-color: rgb(247, 250, 255);">]);     </span><span style="color: rgb(128, 128, 128); font-style: italic; background-color: rgb(247, 250, 255);">//패스워드 저장 안함( 아예 삭제 )
</span><span style="color: rgb(128, 128, 128); font-style: italic; background-color: rgb(247, 250, 255);">            </span><span style="background-color: rgb(247, 250, 255);">} </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">catch </span><span style="background-color: rgb(247, 250, 255);">(Exception </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$e</span><span style="background-color: rgb(247, 250, 255);">) {
</span><span style="background-color: rgb(247, 250, 255);">            }
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$row</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'wr_email'</span><span style="background-color: rgb(247, 250, 255);">] = </span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">''</span><span style="background-color: rgb(247, 250, 255);">;              </span><span style="color: rgb(128, 128, 128); font-style: italic; background-color: rgb(247, 250, 255);">//이메일 저장 안함
</span><span style="color: rgb(128, 128, 128); font-style: italic; background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">if </span><span style="background-color: rgb(247, 250, 255);">(</span><span style="font-style: italic; background-color: rgb(247, 250, 255);">strstr</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$row</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'wr_option'</span><span style="background-color: rgb(247, 250, 255);">], </span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'secret'</span><span style="background-color: rgb(247, 250, 255);">)){           </span><span style="color: rgb(128, 128, 128); font-style: italic; background-color: rgb(247, 250, 255);">// 비밀글일 경우 내용, 링크, 파일 저장 안함
</span><span style="color: rgb(128, 128, 128); font-style: italic; background-color: rgb(247, 250, 255);">                </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$row</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'wr_content'</span><span style="background-color: rgb(247, 250, 255);">] = </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$row</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'wr_link1'</span><span style="background-color: rgb(247, 250, 255);">] = </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$row</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'wr_link2'</span><span style="background-color: rgb(247, 250, 255);">] = </span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">''</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">                </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$row</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'file'</span><span style="background-color: rgb(247, 250, 255);">] = </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">array</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'count'</span><span style="background-color: rgb(247, 250, 255);">=></span><span style="color: rgb(0, 0, 255); background-color: rgb(247, 250, 255);">0</span><span style="background-color: rgb(247, 250, 255);">);
</span><span style="background-color: rgb(247, 250, 255);">            }
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$list</span><span style="background-color: rgb(247, 250, 255);">[</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$i</span><span style="background-color: rgb(247, 250, 255);">] = get_list(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$row</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$board</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$latest_skin_url</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$subject_len</span><span style="background-color: rgb(247, 250, 255);">);
</span><span style="background-color: rgb(247, 250, 255);">        }
</span>
<span style="background-color: rgb(247, 250, 255);">        </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">if</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_fwrite</span><span style="background-color: rgb(247, 250, 255);">) {
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$handle </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="font-style: italic; background-color: rgb(247, 250, 255);">fopen</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_file</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'w'</span><span style="background-color: rgb(247, 250, 255);">);
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$caches </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">array</span><span style="background-color: rgb(247, 250, 255);">(
</span><span style="background-color: rgb(247, 250, 255);">                </span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'list' </span><span style="background-color: rgb(247, 250, 255);">=> </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$list</span><span style="background-color: rgb(247, 250, 255);">,
</span><span style="background-color: rgb(247, 250, 255);">                </span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'bo_subject' </span><span style="background-color: rgb(247, 250, 255);">=> sql_escape_string(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$bo_subject</span><span style="background-color: rgb(247, 250, 255);">),
</span><span style="background-color: rgb(247, 250, 255);">                );
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_content </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">"<?php if (!defined('_GNUBOARD_')) exit; ?></span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">\n\n</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">"</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_content </span><span style="background-color: rgb(247, 250, 255);">.= </span><span style="font-style: italic; background-color: rgb(247, 250, 255);">base64_encode</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="font-style: italic; background-color: rgb(247, 250, 255);">serialize</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$caches</span><span style="background-color: rgb(247, 250, 255);">));  </span><span style="color: rgb(128, 128, 128); font-style: italic; background-color: rgb(247, 250, 255);">//serialize
</span>
<span style="color: rgb(128, 128, 128); font-style: italic; background-color: rgb(247, 250, 255);">            </span><span style="font-style: italic; background-color: rgb(247, 250, 255);">fwrite</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$handle</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_content</span><span style="background-color: rgb(247, 250, 255);">);
</span><span style="background-color: rgb(247, 250, 255);">            </span><span style="font-style: italic; background-color: rgb(247, 250, 255);">fclose</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$handle</span><span style="background-color: rgb(247, 250, 255);">);
</span>
<span style="background-color: rgb(247, 250, 255);">            @</span><span style="font-style: italic; background-color: rgb(247, 250, 255);">chmod</span><span style="background-color: rgb(247, 250, 255);">(</span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$cache_file</span><span style="background-color: rgb(247, 250, 255);">, </span><span style="color: rgb(0, 0, 255); background-color: rgb(247, 250, 255);">0640</span><span style="background-color: rgb(247, 250, 255);">);
</span><span style="background-color: rgb(247, 250, 255);">        }
</span><span style="background-color: rgb(247, 250, 255);">    }
</span>
<span style="background-color: rgb(247, 250, 255);">    </span><span style="font-style: italic; background-color: rgb(247, 250, 255);">ob_start</span><span style="background-color: rgb(247, 250, 255);">();
</span><span style="background-color: rgb(247, 250, 255);">    </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">include </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$latest_skin_path</span><span style="background-color: rgb(247, 250, 255);">.</span><span style="color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(247, 250, 255);">'/latest.skin.php'</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">    </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$content </span><span style="background-color: rgb(247, 250, 255);">= </span><span style="font-style: italic; background-color: rgb(247, 250, 255);">ob_get_contents</span><span style="background-color: rgb(247, 250, 255);">();
</span><span style="background-color: rgb(247, 250, 255);">    </span><span style="font-style: italic; background-color: rgb(247, 250, 255);">ob_end_clean</span><span style="background-color: rgb(247, 250, 255);">();
</span>
<span style="background-color: rgb(247, 250, 255);">    </span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">return </span><span style="color: rgb(102, 0, 0); background-color: rgb(247, 250, 255);">$content</span><span style="background-color: rgb(247, 250, 255);">;
</span><span style="background-color: rgb(247, 250, 255);">}
</span><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">?></span></pre>

<p><span style="color: rgb(0, 0, 128); font-weight: bold; background-color: rgb(247, 250, 255);">

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

답변 2개

채택된 답변
+20 포인트
5년 전

https://sir.kr/g5_plugin/1090 옵션에 있네요. - notice_only : 해당 게시판의 공지글만 가져온다.

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

답변에 대한 댓글 2개

승희아빠
5년 전
좋은 자료 입니다.
코니팡
5년 전
정말 1분도 안되서 해결했습니다.
감사합니다....

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

https://sir.kr/qa/howto.php

도움 되시길...

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

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

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

로그인