From e8f89ddbb91aefaadcf42452405e5cd2beb49b6a Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 26 Jul 2013 18:13:02 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8F=AC=EC=9D=B8=ED=8A=B8=20=EB=A7=8C?= =?UTF-8?q?=EB=A3=8C=EC=B2=98=EB=A6=AC=EB=A5=BC=20=EC=A4=91=EB=B3=B5?= =?UTF-8?q?=ED=95=B4=EC=84=9C=20=ED=95=98=EB=8A=94=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common.php b/common.php index ef6a00491..dfa313400 100644 --- a/common.php +++ b/common.php @@ -25,7 +25,7 @@ if (!get_magic_quotes_gpc()) { foreach ($value as &$v) $fn($v, $fn); } '); - + // Escape data $addslashes_deep($_POST, $addslashes_deep); $addslashes_deep($_GET, $addslashes_deep); @@ -95,7 +95,7 @@ if (file_exists($dbconfig_file)) { $connect_db = sql_connect(G4_MYSQL_HOST, G4_MYSQL_USER, G4_MYSQL_PASSWORD) or die('MySQL Connect Error!!!'); $select_db = sql_select_db(G4_MYSQL_DB, $connect_db) or die('MySQL DB Error!!!'); @mysql_query(" set names utf8 "); - if (defined(G4_TIMEZONE)) @mysql_query(" set time_zone = '".G4_TIMEZONE."'"); + if (defined(G4_TIMEZONE)) @mysql_query(" set time_zone = '".G4_TIMEZONE."'"); } else { ?> @@ -165,7 +165,7 @@ $config = sql_fetch(" select * from {$g4['config_table']} "); define('G4_HTTP_BBS_URL', https_url(G4_BBS_DIR, false)); define('G4_HTTPS_BBS_URL', https_url(G4_BBS_DIR, true)); -if ($config['cf_editor']) +if ($config['cf_editor']) define('G4_EDITOR_LIB', G4_EDITOR_PATH."/{$config['cf_editor']}/editor.lib.php"); else define('G4_EDITOR_LIB', G4_LIB_PATH."/editor.lib.php"); @@ -182,7 +182,7 @@ if (G4_USE_MOBILE) { $is_mobile = false; else if ($_REQUEST['device']=='mobile') $is_mobile = true; - else if (isset($_SESSION['ss_is_mobile'])) + else if (isset($_SESSION['ss_is_mobile'])) $is_mobile = $_SESSION['ss_is_mobile']; else if (is_mobile()) $is_mobile = true; @@ -263,7 +263,7 @@ if (isset($_REQUEST['spt'])) { // search part (검색 파트[구간]) if (isset($_REQUEST['page'])) { // 리스트 페이지 $page = (int)$_REQUEST['page']; - if ($page) + if ($page) $qstr .= '&page=' . urlencode($page); } else { $page = '';