Ulysses Stuff > Ulysses Release Archives

OpenSteam: Bans and User Management System

<< < (20/23) > >>

Neubivljiv:
Yes. All commands are stored into database (and loaded when user join the server).
Note that this disable standard ulx groups ( currently looking for a better solution for this ).

If you have a new command, you need to add into list:
open inc/commands.php
and simply add command in a new line. Than update groups to use the new (non-default) commands.

I will probably change concept in the new versions, so you can insert bans into database with standard "ulx ban" or "ulx banid" command (it will use both: flat file by default and database). Also, there will be synchronization between databases (auto) on each map change (or server start), so if you have old bans in banned_users.cfg it will be added into database.

StrayanDropbear:
i seem to get this error when adding a new server:

Notice: Undefined index: enabled in /home/franke3/public_html/gmod/bans/inc/pages/admin_servers.php on line 24

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'eabled' in 'field list'' in /home/franke3/public_html/gmod/bans/inc/pages/admin_servers.php:44 Stack trace: #0 /home/franke3/public_html/gmod/bans/inc/pages/admin_servers.php(44): PDOStatement->execute() #1 /home/franke3/public_html/gmod/bans/inc/route.php(12): include('/home/franke3/...') #2 /home/franke3/public_html/gmod/bans/LOAD.php(26): include('/home/franke3/...') #3 /home/franke3/public_html/gmod/bans/index.php(2): include('/home/franke3/...') #4 {main} thrown in /home/franke3/public_html/gmod/bans/inc/pages/admin_servers.php on line 44

Neubivljiv:
Forgot last update. There:

https://github.com/OHSystem/opensteam/commit/b0ad791d792bf120821df6855cc8ad7976ad2a16

StrayanDropbear:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'eabled' in 'field list'' in /home/franke3/public_html/gmod/bans/inc/pages/admin_servers.php:44 Stack trace: #0 /home/franke3/public_html/gmod/bans/inc/pages/admin_servers.php(44): PDOStatement->execute() #1 /home/franke3/public_html/gmod/bans/inc/route.php(12): include('/home/franke3/...') #2 /home/franke3/public_html/gmod/bans/LOAD.php(26): include('/home/franke3/...') #3 /home/franke3/public_html/gmod/bans/index.php(2): include('/home/franke3/...') #4 {main} thrown in /home/franke3/public_html/gmod/bans/inc/pages/admin_servers.php on line 44

i added the new files the status: shows up but still get that eror

Neubivljiv:
You didnt update your database?

https://github.com/OHSystem/opensteam/blob/master/Database.sql#L61

You can manually add this field...or simply re-recreate your table (note that this will drop your current SERVERS table...don't worry if no data added yet):

--- Code: ---DROP TABLE IF EXISTS `ph_servers`;
CREATE TABLE IF NOT EXISTS `ph_servers` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `server_name` varchar(150) NOT NULL,
  `server_ip` varchar(20) NOT NULL,
  `server_port` varchar(16) NOT NULL,
  `server_rcon` varchar(128) NOT NULL,
  `enabled` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `server_ip` (`server_ip`,`server_port`),
  KEY `enabled` (`enabled`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version