git subtree merge를 위한 g4s_branch 및 서브트리 생성

This commit is contained in:
chicpro
2013-04-26 15:21:39 +09:00
parent f7247c0050
commit da91511e5f
711 changed files with 94885 additions and 0 deletions

View File

@ -0,0 +1,39 @@
<?php
/**
* @file include.bbs.move_update.php
* @author sol (ngleader@gmail.com)
* @brief 글 등록/수정시 Syndication Ping
* gnuboard4/bbs/move_update.php 파일에 추가
* include '../syndi/include/include.bbs.move_update.php';
*/
if(!defined('_GNUBOARD_')) return;
if($sw != 'move' && $sw != 'copy') return;
$syndi_dir = realpath(dirname(__FILE__) .'/../');
// include config & Syndication Ping class
include_once $syndi_dir . '/config/site.config.php';
include_once $syndi_dir . '/libs/SyndicationHandler.class.php';
include_once $syndi_dir . '/libs/SyndicationPing.class.php';
if($sw == "copy")
{
$oPing = new SyndicationPing;
$oPing->setId(SyndicationHandler::getTag('channel', $bo_table));
$oPing->setType('article');
$oPing->request();
unset($oPing);
}
for($i=0, $c=count($_POST['chk_bo_table']); $i<$c; $i++)
{
$oPing = new SyndicationPing;
$oPing->setId(SyndicationHandler::getTag('channel', $_POST['chk_bo_table'][$i]));
$oPing->setType('article');
$oPing->request();
unset($oPing);
}
?>