} else { if ($m == 'bbs' && $bid) { if (strpos(',,' . $d['admin']['ssl_bbs'] . ',', ',' . $bid . ',')) { if ($_SERVER['HTTPS'] != 'on') { getLink($g['ssl_root'] . '/?' . $_SERVER['QUERY_STRING'], '', '', ''); } } else { if ($_SERVER['HTTPS'] == 'on') { getLink(str_replace(':' . $d['admin']['ssl_port'], '', str_replace('https://', 'http://', $g['url_root'])) . '/?' . $_SERVER['QUERY_STRING'], '', '', ''); } } } else { if (strpos(',,' . $d['admin']['ssl_module'] . ',', ',' . $m . ',')) { if ($_SERVER['HTTPS'] != 'on') { getLink($g['ssl_root'] . '/?' . $_SERVER['QUERY_STRING'], '', '', ''); } } else { if ($_SERVER['HTTPS'] == 'on') { getLink(str_replace(':' . $d['admin']['ssl_port'], '', str_replace('https://', 'http://', $g['url_root'])) . '/?' . $_SERVER['QUERY_STRING'], '', '', ''); } } } } } } } $g['switch_1'] = getSwitchInc('top'); $g['switch_2'] = getSwitchInc('head'); $g['switch_3'] = getSwitchInc('foot'); $g['switch_4'] = getSwitchInc('end');
exit; } require $g['path_var'] . 'db.info.php'; require $g['path_var'] . 'table.info.php'; require $g['path_var'] . 'switch.var.php'; require $g['path_var'] . 'plugin.var.php'; require $g['path_module'] . 'admin/var/var.system.php'; $g['url_file'] = str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']); $g['url_host'] = 'http' . ($_SERVER['HTTPS'] == 'on' ? 's' : '') . '://' . $_SERVER['HTTP_HOST']; $g['url_http'] = $g['url_host'] . ($d['admin']['http_port'] && $d['admin']['http_port'] != 80 ? ':' . $d['admin']['http_port'] : ''); $g['url_sslp'] = 'https://' . $_SERVER['HTTP_HOST'] . ($_SERVER['HTTPS'] != 'on' && $d['admin']['ssl_port'] ? ':' . $d['admin']['ssl_port'] : ''); $g['url_root'] = $g['url_http'] . $g['url_file']; $g['ssl_root'] = $g['url_sslp'] . $g['url_file']; require $g['path_core'] . 'function/db.mysql.func.php'; require $g['path_core'] . 'function/sys.func.php'; foreach (getSwitchInc('start') as $_switch) { include $_switch; } require $g['path_core'] . 'engine/main.engine.php'; if ($keyword) { $keyword = trim($keyword); $_keyword = stripslashes(htmlspecialchars($keyword)); } if (!$p) { $p = 1; } if (!is_dir($g['path_module'] . $m)) { $m = $g['sys_module']; } $g['dir_module'] = $g['path_module'] . $m . '/'; $g['url_module'] = $g['s'] . '/modules/' . $m;