public static function run() { global $config, $g5, $member; if (self::$is_end) return; // 여러번 호출해도 한번만 실행되게 합니다. self::$is_end = 1; // ... (중략: 현재접속자 처리 부분은 그대로 두세요) ... $buffer = ob_get_contents(); ob_end_clean(); $stylesheet = ''; $links = self::$css; if(!empty($links)) { foreach ($links as $key => $row) { // [수정] 배열이 아니거나 키가 없으면 건너뜀 (오류 방지) if (!is_array($row) || !isset($row[0])) continue; $order[$key] = $row[0]; $index[$key] = $key; $style[$key] = $row[1]; } array_multisort($order, SORT_ASC, $index, SORT_ASC, $links); $links = run_replace('html_process_css_files', $links); foreach($links as $link) { if(!trim($link[1])) continue; $link[1] = preg_replace('#\.css([\'\"]?>)$#i', '.css?ver='.G5_CSS_VER.'$1', $link[1]); $stylesheet .= PHP_EOL.$link[1]; } } $javascript = ''; $scripts = self::$js; $php_eol = ''; unset($order); unset($index); if(!empty($scripts)) { foreach ($scripts as $key => $row) { // [수정] 배열이 아니거나 키가 없으면 건너뜀 (오류 방지) if (!is_array($row) || !isset($row[0])) continue; $order[$key] = $row[0]; $index[$key] = $key; $script[$key] = $row[1]; } array_multisort($order, SORT_ASC, $index, SORT_ASC, $scripts); $scripts = run_replace('html_process_script_files', $scripts); foreach($scripts as $js) { if(!trim($js[1])) continue; $add_version_str = (stripos($js[1], $http_host) !== false) ? '?ver='.G5_JS_VER : ''; $js[1] = preg_replace('#\.js([\'\"]?>)<\/script>$#i', '.js'.$add_version_str.'$1', $js[1]); $javascript .= $php_eol.$js[1]; $php_eol = PHP_EOL; } } // ... (이하 코드는 그대로 두세요) ...
Fatal error: Uncaught Error: Call to undefined function sql_connect() in /home/e81l2kf55qzb/public_html/common.php:166 Stack trace: #0 /home/e81l2kf55qzb/public_html/bbs/_common.php(2): include_once() #1 /home/e81l2kf55qzb/public_html/bbs/board.php(2): include_once('/home/e81l2kf55...') #2 {main} thrown in /home/e81l2kf55qzb/public_html/common.php on line 166