コード例 #1
0
ファイル: post.php プロジェクト: Br3nda/mahara
 *
 * This program is free 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 3 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, see <http://www.gnu.org/licenses/>.
 *
 * @package    mahara
 * @subpackage blocktype-wall
 * @author     Catalyst IT Ltd
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL
 * @copyright  (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz
 *
 */
define('INTERNAL', 1);
require_once dirname(dirname(dirname(__FILE__))) . '/init.php';
define('TITLE', get_string('wallpost', 'blocktype.wall'));
require_once 'pieforms/pieform.php';
require_once get_config('docroot') . 'blocktype/lib.php';
$wall = param_integer('instance');
$instance = new BlockInstance($wall);
safe_require('blocktype', 'wall');
PluginBlocktypeWall::wallpost_form($instance);