I need a blesta module for sourcebans.
Module info:
Module Options:
Mysql server: (eg. Localhost)
Mysql username:
Mysql database:
Mysql password:
Package Settings:
Validata: (0 or 1)
Extraflags: 0
Immunity: (integer)
srv_group: (string)
group_id: (integer)
srv_group_id: (integer)
server_id: (integer)
On the following if I put MO, it gets it from the module options and if I put PS it gets it from the package settings.
On creation:
MO database – in table: sb_admins write the following new row.
Field – Value
Aid – UserID, same as blesta would be good.
User – Email address, from belsta DB.
Authid – from belsta Custom Client Fields.
Password – same as belsta.
Gid – 2
Email - Email address, from belsta DB.
Validate – PS
Extraflags – PS
Immunity – PS
srv_group – PS
srv_flags – NULL
srv_password – NULL
lastvisit – NULL
MO database – in table: sb_admins_servers_groups write the following new row.
admin_id – Aid or UserID
group_id - PS
srv_group_id - PS
server_id - PS
On deletion: remove the rows that where created above.
This may seem like a lot, but is just writing a lot of vales to the one Mysql database.
Sorucebans mysql database structure attached.
Manual on how to create on is at [login to view URL]
Examples of modules that work can also be given to help, if needed.
This is a simple and quick project, just need to edit a module to with this software. Functions and doc on how to do this is good, I just do not have the knowhow to do this 100%.