Esempio n. 1
0
        $commentType = $_pgR['CommentType'];
        $commentType = global_editor::rteSafe(html_entity_decode($commentType, ENT_COMPAT, 'UTF-8'));
        $articleID = $_pgR['ArticleID'];
        $articleID = global_editor::rteSafe(html_entity_decode($articleID, ENT_COMPAT, 'UTF-8'));
        $content = $_pgR['Content'];
        $content = global_editor::rteSafe(html_entity_decode($content, ENT_COMPAT, 'UTF-8'));
        $status = $_pgR['Status'];
        $status = global_editor::rteSafe(html_entity_decode($status, ENT_COMPAT, 'UTF-8'));
        //$checkProduct = $objMenu->getMenuByName($_pgR['name']);
        //if ($checkProduct && $checkProduct['menu_id']!= $strID) {
        //	echo global_common::convertToXML($arrHeader, array("rs",'info'), array(0,global_common::STRING_NAME_EXIST), array(0,1));
        //	return;
        //}
        //$strName = $_pgR['name'];
        //$strDetail= $_pgR['detail'];
        $resultID = $objComment->update($commentID, $commentType, $articleID, $content, $status);
        if ($resultID) {
            $arrHeader = global_common::getMessageHeaderArr($banCode);
            //$banCode
            echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(1, $result), array(0, 1));
            return;
        } else {
            echo global_common::convertToXML($arrHeader, array("rs"), array(0), array(0));
            return;
        }
    } else {
        echo global_common::convertToXML($arrHeader, array("rs", 'info'), array(0, global_common::STRING_REQUIRE_LOGIN), array(0, 1));
    }
    return;
} elseif ($_pgR['act'] == model_Comment::ACT_CHANGE_PAGE) {
    $intPage = $_pgR['p'];