--- /dev/null
+<?php
+
+class NP_TestPostAddCategory extends NucleusPlugin
+{
+ /* ==================================================================================
+ * Nucleus TestPostAddCategory Plugin
+ *
+ * Copyright 2007 by Kimitake
+ *
+ * ==================================================================================
+ * This program is free software and open source software; you can redistribute
+ * it and/or modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or visit
+ * http://www.gnu.org/licenses/gpl.html
+ * ==================================================================================
+
+ /*
+ * Changes:
+ * v0.1 kimitake - initial version
+ */
+
+
+ function getName() { return 'TestPostAddCategory'; }
+ function getAuthor() { return 'kimitake'; }
+ function getURL() { return 'http://kimitake.blogdns.net'; }
+ function getVersion() { return '0.1'; }
+ function getDescription() { return 'TestPostAddCategory'; }
+
+ function supportsFeature($what)
+ {
+ switch($what)
+ {
+ case 'SqlTablePrefix':
+ return 1;
+ default:
+ return 0;
+ }
+ }
+
+ function install()
+ {
+ }
+
+ function unintall()
+ {
+ }
+
+ function getEventList() { return array('PostAddCategory'); }
+
+ function event_PostAddCategory($data)
+ {
+ define('__WEBLOG_ROOT', dirname(dirname(realpath(__FILE__))));
+ $handle = fopen(__WEBLOG_ROOT."/plugins/TestPostAddCategory.log", "w");
+
+ if ($handle)
+ {
+ $str = print_r($data, TRUE);
+ fputs($handle, $str);
+ fclose($handle);
+ }
+ }
+}
+?>
--- /dev/null
+PostAddCategory \82Ì\93®\8dì\8am\94F\97p\83v\83\89\83O\83C\83\93
+
+\8eg\82¢\95û
+\82P\81D\82±\82Ì\83v\83\89\83O\83C\83\93\82ð\83C\83\93\83X\83g\81[\83\8b\82µ\82Ä\81A\90V\8bK\83u\83\8d\83O\82ð\8dì\90¬\82·\82é\81B
+\82Q\81Eplugings \83f\83B\83\8c\83N\83g\83\8a\82É\8f\91\82«\8d\9e\82Ý\8c \8cÀ\82ª\82 \82ê\82Î TestPostAddCategory.log \83t\83@\83C\83\8b\82ª
+\8fo\97\88\8fã\82ª\82é\82Ì\82Å\81A\82»\82Ì\92\86\90g\82ð\8am\94F\82·\82é\81B
+\82R\81D\93Á\82É\8cã\94¼\95\94\95ª\82Ì name, description \82¨\82æ\82Ñ catid \82Ì\92l\82ð\8am\94F\82·\82é\81B
+
+Document End
+Kimitake 2/28, 2007