OSDN Git Service

Merge branch 'skinnable-master'
[nucleus-jp/nucleus-next.git] / action.php
1 <<<<<<< HEAD
2 <?php\r
3 /*\r
4  * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)\r
5  * Copyright (C) 2002-2009 The Nucleus Group\r
6  *\r
7  * This program is free software; you can redistribute it and/or\r
8  * modify it under the terms of the GNU General Public License\r
9  * as published by the Free Software Foundation; either version 2\r
10  * of the License, or (at your option) any later version.\r
11  * (see nucleus/documentation/index.html#license for more info)\r
12  */\r
13 \r
14 /**\r
15  * File containing actions that can be performed by visitors of the site,\r
16  * like adding comments, etc...\r
17  * @license http://nucleuscms.org/license.txt GNU General Public License\r
18  * @copyright Copyright (C) 2002-2009 The Nucleus Group\r
19  * @version $Id: action.php 1721 2012-03-31 10:18:25Z sakamocchi $\r
20  */\r
21 \r
22 $CONF = array();\r
23 require('./config.php');\r
24 include_libs('ACTION.php');\r
25 \r
26 $action = requestVar('action');\r
27 $a = new Action();\r
28 $errorInfo = $a->doAction($action);\r
29 \r
30 if ( $errorInfo )\r
31 {\r
32         $skin = new SKIN($errorInfo['skinid']);\r
33         doError($errorInfo['message'], $skin);\r
34 }\r
35 \r
36 =======
37 <?php
38 /*
39  * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
40  * Copyright (C) 2002-2009 The Nucleus Group
41  *
42  * This program is free software; you can redistribute it and/or
43  * modify it under the terms of the GNU General Public License
44  * as published by the Free Software Foundation; either version 2
45  * of the License, or (at your option) any later version.
46  * (see nucleus/documentation/index.html#license for more info)
47  */
48
49 /**
50  * File containing actions that can be performed by visitors of the site,
51  * like adding comments, etc...
52  * @license http://nucleuscms.org/license.txt GNU General Public License
53  * @copyright Copyright (C) 2002-2009 The Nucleus Group
54  * @version $Id: action.php 1888 2012-06-17 08:38:54Z sakamocchi $
55  */
56
57 $CONF = array();
58 require('./config.php');
59 include_libs('ACTION.php');
60
61 $action = requestVar('action');
62 $a = new Action();
63 $errorInfo = $a->doAction($action);
64
65 if ( $errorInfo )
66 {
67         $skin =& $manager->getSkin($errorInfo['skinid']);
68         doError($errorInfo['message'], $skin);
69 }
70
71 >>>>>>> skinnable-master
72 exit;