47 lines
No EOL
1.5 KiB
PHP
47 lines
No EOL
1.5 KiB
PHP
<?php
|
|
/**
|
|
* Project: astat - simple site engine
|
|
* File: /modules/mybb_bridge/mybb_bridge.plugins.php
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*
|
|
* @link http://www.astat.org SVN: $URL$
|
|
* @copyright 2009 becast.at
|
|
* @author Bernhard Jaud <bernhard at becast dot at>
|
|
* @package astat core
|
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
|
* @version $Id$
|
|
*/
|
|
If (!defined("INBCWE")) {
|
|
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
|
}
|
|
class plugins_nickpage{
|
|
|
|
function register_plugins($plugin){
|
|
$plugin->use_hook('register_end',array($this,"register"));
|
|
}
|
|
|
|
|
|
|
|
function register($rdata){
|
|
global $db, $config, $session;
|
|
$db->query("INSERT INTO `" . $config["prefix"] . "nickpage` (`id`) VALUES ('".$rdata["uid"]."')");
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
?>
|