OSDN Git Service

CHANGE: クエリが返り値を戻さない場合にオブジェクトのパラメーター呼び出しに失敗する警告に対応。
[nucleus-jp/nucleus-jp-ancient.git] / action.php
1 <?php
2 /*
3  * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
4  * Copyright (C) 2002-2012 The Nucleus Group
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  * (see nucleus/documentation/index.html#license for more info)
11  */
12
13 $CONF = array();
14 require('./config.php');
15
16 // common functions
17 //include_once($DIR_LIBS . 'ACTION.php');
18 include_libs('ACTION.php',true,false);
19
20 $action = requestVar('action');
21 $a = new ACTION();
22 $errorInfo = $a->doAction($action);
23
24 if ($errorInfo) {
25         doError($errorInfo['message'], new SKIN($errorInfo['skinid']) );
26 }
27