Die fehlenden tabellen wie die tb_outstanding und die navi tabelle bekommt ihr soviel ich weis aus der los datenbank her die man sich ĂĽberall runter laden kann da die sachen von dem script stammen
das hier ist fĂĽr die tb_outstanding und die im anhang weis nicht ob man die dazu auch brauch
Code
-- ----------------------------
-- View structure for `tb_outstanding`
-- ----------------------------
DROP VIEW IF EXISTS `tb_outstanding`;
CREATE ALGORITHM=UNDEFINED DEFINER=`los3`@`%` SQL SECURITY DEFINER VIEW `tb_outstanding` AS select `server_timeban`.`id` AS `id`,(`server_timeban`.`ban_time` + (`server_timeban`.`ban_length` * (select `los_faktor`.`faktor` from `los_faktor` where (`los_faktor`.`typ` = `server_timeban`.`ban_typ`)))) AS `ban_ablauf`,unix_timestamp() AS `ts`,`server_timeban`.`usr_id` AS `usr_id`,`server_timeban`.`usr_name` AS `usr_name`,`server_timeban`.`adm_name` AS `adm_name`,`server_timeban`.`status` AS `status`,`server_timeban`.`ban_length` AS `ban_length`,`server_timeban`.`ban_time` AS `ban_time`,`server_timeban`.`ban_typ` AS `ban_typ`,`server_timeban`.`ban_reason` AS `ban_reason`,date_format(from_unixtime((`server_timeban`.`ban_time` + (`server_timeban`.`ban_length` * (select `los_faktor`.`faktor` from `los_faktor` where (`los_faktor`.`typ` = `server_timeban`.`ban_typ`))))),'%d.%m.%Y - %H:%i:%s') AS `ablauf` from `server_timeban` where (((`server_timeban`.`ban_time` + (`server_timeban`.`ban_length` * (select `los_faktor`.`faktor` from `los_faktor` where (`los_faktor`.`typ` = `server_timeban`.`ban_typ`)))) > unix_timestamp()) and (`server_timeban`.`status` = 0)) ;