From cbb476f8d609119327c20151d5dd9757b4cf22be Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 20 Sep 2007 02:25:02 +0000 Subject: [PATCH] =?UTF-8?q?=C3=AC=C2=84=C2=B8=C3=AC=C2=85=C2=98=20=C3=AB?= =?UTF-8?q?=C2=94=C2=94=C3=AB=C2=A0=C2=89=C3=AD=C2=86=C2=A0=C3=AB=C2=A6?= =?UTF-8?q?=C2=AC=20=C3=AB=C2=B3=C2=80=C3=AA=C2=B2=C2=BD=C3=AC=C2=9C=C2=BC?= =?UTF-8?q?=C3=AB=C2=A1=C2=9C=20=C3=AC=C2=9D=C2=B8=C3=AD=C2=95=C2=9C=20?= =?UTF-8?q?=C3=AB=C2=A9=C2=94=C3=AB=C2=89=C2=B4=20xml=20=C3=AC=C2=BA=C2=90?= =?UTF-8?q?=C3=AC=C2=8B=C2=9C=C3=AD=C2=8C=C2=8C=C3=AC=C2=9D=C2=BC=C3=AC?= =?UTF-8?q?=C2=9D=C2=98=20=C3=AA=C2=B6=C2=8C=C3=AD=C2=95=C2=9C=20=C3=AC?= =?UTF-8?q?=C2=98=C2=A4=C3=AB=C2=A5=C2=98=20=C3=AB=C2=B6=C2=80=C3=AB=C2=B6?= =?UTF-8?q?=C2=84=20=C3=AC=C2=88=C2=98=C3=AC=C2=A0=C2=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2630 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/blog/blog.admin.controller.php | 13 ++++++++++++- modules/menu/menu.admin.controller.php | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/modules/blog/blog.admin.controller.php b/modules/blog/blog.admin.controller.php index 68c8f6f8d..d9716ef80 100644 --- a/modules/blog/blog.admin.controller.php +++ b/modules/blog/blog.admin.controller.php @@ -518,8 +518,19 @@ $tree[$parent_srl][$category_srl] = $node; } + // 세션 디렉토리 변경 구문 + $php_script = ""; + if(!ini_get('session.auto_start')) { + if(!is_dir("./files/sessions")) { + FileHandler::makeDir("./files/sessions"); + @chmod("./files/sessions", 0777); + } + + $php_script = 'session_cache_limiter("no-cache, must-revalidate"); ini_set("session.gc_maxlifetime", "18000"); if(is_dir("../../sessions")) session_save_path("../../sessions/"); session_start();'; + } + // xml 캐시 파일 생성 - $xml_buff = sprintf('%s', $this->getXmlTree($tree[0], $tree)); + $xml_buff = sprintf('%s', $php_script, $this->getXmlTree($tree[0], $tree)); // 파일 저장 FileHandler::writeFile($xml_file, $xml_buff); diff --git a/modules/menu/menu.admin.controller.php b/modules/menu/menu.admin.controller.php index d1c00e505..9cff7e256 100644 --- a/modules/menu/menu.admin.controller.php +++ b/modules/menu/menu.admin.controller.php @@ -282,8 +282,19 @@ $tree[$parent_srl][$menu_item_srl] = $node; } + // 세션 디렉토리 변경 구문 + $php_script = ""; + if(!ini_get('session.auto_start')) { + if(!is_dir("./files/sessions")) { + FileHandler::makeDir("./files/sessions"); + @chmod("./files/sessions", 0777); + } + + $php_script = 'session_cache_limiter("no-cache, must-revalidate"); ini_set("session.gc_maxlifetime", "18000"); if(is_dir("../../sessions")) session_save_path("../../sessions/"); session_start();'; + } + // xml 캐시 파일 생성 - $xml_buff = sprintf('%s', $this->getXmlTree($tree[0], $tree)); + $xml_buff = sprintf('%s', $php_script, $this->getXmlTree($tree[0], $tree)); // php 캐시 파일 생성 $php_output = $this->getPhpCacheCode($tree[0], $tree);