[xoops-cvslog 4046] CVS update: xoops2jp/html/include

Back to archive index

Minahito minah****@users*****
2006年 8月 9日 (水) 18:32:18 JST


Index: xoops2jp/html/include/comment_post.php
diff -u xoops2jp/html/include/comment_post.php:1.2.8.3 xoops2jp/html/include/comment_post.php:1.2.8.4
--- xoops2jp/html/include/comment_post.php:1.2.8.3	Thu Jul 20 17:17:59 2006
+++ xoops2jp/html/include/comment_post.php	Wed Aug  9 18:32:18 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: comment_post.php,v 1.2.8.3 2006/07/20 08:17:59 minahito Exp $
+// $Id: comment_post.php,v 1.2.8.4 2006/08/09 09:32:18 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -38,11 +38,6 @@
 
 include_once XOOPS_ROOT_PATH.'/include/comment_constants.php';
 
-//
-// @TODO We have to remove the next line!
-//
-require_once XOOPS_ROOT_PATH . "/modules/system/constants.php";
-
 $com_id = isset($_POST['com_id']) ? intval($_POST['com_id']) : 0;
 $extra_params = '';
 if ('system' == $xoopsModule->getVar('dirname')) {
@@ -124,7 +119,7 @@
         if (is_object($xoopsUser)) {
             if (!$xoopsUser->isAdmin($com_modid)) {
                 $sysperm_handler =& xoops_gethandler('groupperm');
-                if (!$sysperm_handler->checkRight('system_admin', XOOPS_SYSTEM_COMMENT, $xoopsUser->getGroups())) {
+                if (!$sysperm_handler->checkRight('system_admin', LEGACY_SYSTEM_COMMENT, $xoopsUser->getGroups())) {
                     $dohtml = 0;
                 }
             }
@@ -160,7 +155,7 @@
 
         if (is_object($xoopsUser)) {
             $sysperm_handler =& xoops_gethandler('groupperm');
-            if ($xoopsUser->isAdmin($com_modid) || $sysperm_handler->checkRight('system_admin', XOOPS_SYSTEM_COMMENT, $xoopsUser->getGroups())) {
+            if ($xoopsUser->isAdmin($com_modid) || $sysperm_handler->checkRight('system_admin', LEGACY_SYSTEM_COMMENT, $xoopsUser->getGroups())) {
                 if (!empty($com_status) && $com_status != XOOPS_COMMENT_PENDING) {
                     $old_com_status = $comment->getVar('com_status');
                     $comment->setVar('com_status', $com_status);
@@ -204,7 +199,7 @@
         $comment->setVar('com_ip', xoops_getenv('REMOTE_ADDR'));
         if (is_object($xoopsUser)) {
             $sysperm_handler =& xoops_gethandler('groupperm');
-            if ($xoopsUser->isAdmin($com_modid) || $sysperm_handler->checkRight('system_admin', XOOPS_SYSTEM_COMMENT, $xoopsUser->getGroups())) {
+            if ($xoopsUser->isAdmin($com_modid) || $sysperm_handler->checkRight('system_admin', LEGACY_SYSTEM_COMMENT, $xoopsUser->getGroups())) {
                 $comment->setVar('com_status', XOOPS_COMMENT_ACTIVE);
                 $add_userpost = true;
                 $call_approvefunc = true;


xoops-cvslog メーリングリストの案内
Back to archive index