diff --git a/modules/document/document.admin.controller.php b/modules/document/document.admin.controller.php index 3e3217a3f..4f3351495 100644 --- a/modules/document/document.admin.controller.php +++ b/modules/document/document.admin.controller.php @@ -486,7 +486,7 @@ class documentAdminController extends document { // Get the basic information $config = new stdClass(); - $config->thumbnail_type = Context::get('thumbnail_type'); + $config->session_read_config = Context::get('session_read_config'); $config->updatecount = Context::get('updatecount'); // Insert by creating the module Controller object $oModuleController = getController('module'); diff --git a/modules/document/document.controller.php b/modules/document/document.controller.php index 4ecbbaeb9..ce411e02e 100644 --- a/modules/document/document.controller.php +++ b/modules/document/document.controller.php @@ -888,7 +888,9 @@ class documentController extends document { // Pass if Crawler access if(isCrawler()) return false; - + $oDocumentModel = getModel('document'); + $config = $oDocumentModel->getDocumentConfig(); + $document_srl = $oDocument->document_srl; $member_srl = $oDocument->get('member_srl'); $logged_info = Context::get('logged_info'); @@ -898,10 +900,8 @@ class documentController extends document if(!$trigger_output->toBool()) return $trigger_output; // Pass if read count is increaded on the session information - if($_SESSION['readed_document'][$document_srl]) return false; + if($_SESSION['readed_document'][$document_srl] && $config->session_read_config == 'Y') return false; - $oDocumentModel = getModel('document'); - $config = $oDocumentModel->getDocumentConfig(); if($config->updatecount != 'Y') { // Pass if the author's IP address is as same as visitor's. @@ -944,7 +944,7 @@ class documentController extends document } // Register session - if(!$_SESSION['banned_document'][$document_srl] && Context::getSessionStatus()) + if(!$_SESSION['banned_document'][$document_srl] && Context::getSessionStatus()) { $_SESSION['readed_document'][$document_srl] = true; } diff --git a/modules/document/lang/lang.xml b/modules/document/lang/lang.xml index c2aa77746..c126d74fb 100644 --- a/modules/document/lang/lang.xml +++ b/modules/document/lang/lang.xml @@ -34,6 +34,17 @@ + + + + + + + + + + + diff --git a/modules/document/tpl/document_config.html b/modules/document/tpl/document_config.html index a748467c1..d5737fde2 100644 --- a/modules/document/tpl/document_config.html +++ b/modules/document/tpl/document_config.html @@ -4,13 +4,7 @@ -
-
{$lang->thumbnail_type}
-
- - -
-
+
{$lang->read_update_count}
@@ -19,6 +13,13 @@

{$lang->about_read_update_count}

+
+
SESSION SETTING
+
+ + +
+