OSDN Git Service

sync the original code
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / action.php
1 <?php\r
2 /* \r
3  * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/) \r
4  * Copyright (C) 2002-2005 The Nucleus Group\r
5  *\r
6  * This program is free software; you can redistribute it and/or\r
7  * modify it under the terms of the GNU General Public License\r
8  * as published by the Free Software Foundation; either version 2\r
9  * of the License, or (at your option) any later version.\r
10  * (see nucleus/documentation/index.html#license for more info)  \r
11  */\r
12 \r
13 /**\r
14  * File containing actions that can be performed by visitors of the site,\r
15  * like adding comments, etc...\r
16  * @license http://nucleuscms.org/license.txt GNU General Public License\r
17  * @copyright Copyright (C) 2002-2005 The Nucleus Group\r
18  * @version $Id: action.php,v 1.5 2005-04-20 06:49:45 kimitake Exp $\r
19  * $NucleusJP$\r
20  */\r
21 \r
22 $CONF = array();\r
23 include('./config.php');                        // common functions\r
24 include_once($DIR_LIBS . 'ACTION.php');\r
25 \r
26 $action = requestVar('action');\r
27 \r
28 $a =& new ACTION();\r
29 $errorInfo = $a->doAction($action);\r
30 \r
31 if ($errorInfo)\r
32 {\r
33         doError($errorInfo['message'], new SKIN($errorInfo['skinid'])); \r
34 }\r
35 \r
36 ?>\r