NAME

DBI::Library::Database - Database interface for CGI::CMS::GUI

SYNOPSIS

use DBI::Library::Database;

addMessage

my %message = (

        thread => $thread,

     title => $headline,

     body  => $body,

     thread => $thread,

     cat    => $cat,

     attach => $sra,

     format => $format,

     id => $id,

     user => $user,

     attach => $filename,

     ip => remote_addr(),


);

addMessage(\%message);

editMessage()

my %message = (

        thread => $thread,

     title => $headline,

     body  => $body,

     thread => $thread,

     cat    => $cat,

     attach => $sra,

     format => $format,

     id => $id,

     user => $user,

     attach => $filename,

     ip => remote_addr(),

);

editMessage(\%message);

reply

my %reply =(

     title => $headline,

     body => $body,

     id => $reply,

     user => $user,

     attach =>  $sra,

     format => $html,

     ip => remote_addr(),

);

reply(\%reply);

deleteMessage

$bool = $database->deleteMessage($table,$id);

readMenu()

@menu = $database->readMenu($thread,$right,$von,$bis,$rewrite);

rss()

$rss = $database->rss($thread,int start);

getName()

$name = $database->getName($sid);

setSid

$sidid = $database->setSid(name,pass);

checkSession

$bool = $database->checkSession($user,$sid);

checkPass()

getAction

$hashref = $database->getAction($action);

right()

$right = right($action,$username);

userright()

userright(user);

topicright()

topicright(id);

catright()

catright(name);
todo rekursiv fetch subcat

createMenu()

createMenu(name);

isMember

isMember($user);

checkt ob es den user bereits gibt.

hasAcount

hasAcount($email)

checkt ob es die email Adresse bereits gibt.

addUser

$database->addUser(user, pass);

rewrite()

enable or disable rewrite.

serverName()

set serverName.

floodtime()

set floodtime.

searchDB()

searchDB($query,$spalte,$table);

regexp suche in tabelle ...

fulltext()

@messages = fulltext(query,table);

fulltextsuche in tabelle ...

checkFlood

checked wann die letzte aktion der ip adresse war und erlaubt sie nur wenn midestens time zeit zur letzen aktion vergangen ist.

checkFlood(ip,optionaler abstand in sekunden )

checkFlood(remote_addr());

getSelf()

AUTHOR

Dirk Lindner <lze@cpan.org>

LICENSE

Copyright (C) 2006-2008 by Hr. Dirk Lindner

This program 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; 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 Lesser General Public License for more details.