/*$db->query("CREATE TABLE IF NOT EXISTS `yac_users` (
`uid`int(11)NOTNULL,
`color`varchar(7)NOTNULL,
`lastonline`int(11)NOTNULL,
`chattime`bigint(20)NOTNULL,
`rights`smallint(6)NOTNULL,
KEY`uid`(`uid`)
)ENGINE=MyISAMDEFAULTCHARSET=latin1;");
$db->query("INSERT INTO `".$config["prefix"]."config_categorys` (
`cid`,
`categoryname`
)
VALUES(
NULL,'yac Chat'
);");
$cid=$db->last_id();
$db->query("INSERT INTO `".$config["prefix"]."config` (`name`, `value`, `title`, `description`, `option`, `category`) VALUES
('LOGINKEY','zuzfshgw8qitr813841492','Loginkey','Der Secure Key des Chats.','text',".$cid."),
('SOCK_PORT','8090','Chatport','Der Port auf dem der Server l<>uft.','text',".$cid."),
('ENABLE_WATCHSERVER','','Watchserver einschalten','Soll der Watchserver aktiviert werden?.','select(Ja|true;Nein|false)',".$cid."),
('SMILIES_URL','http://forum.recensio.org/','Smilieurl','Die Url zu den Smiliebildern','text',".$cid.");");
$db->query("CREATE VIEW `v_yac_users` AS select `u`.`id` AS `uid`,`u`.`name` AS `name`,`c`.`color` AS `color`,`c`.`lastonline` AS `lastonline`,`c`.`rights` AS `rights`,`c`.`chattime` AS `chattime`,`u`.`bgmusic` AS `bgmusic` from `".$config["prefix"]."rp_chars` `u` left join `yac_users` `c` ON `u`.`id` = `c`.`uid`");
$db->query("CREATE TABLE IF NOT EXISTS `yac_chatlog` (