ULX

Author Topic: Admin file  (Read 1486 times)

0 Members and 1 Guest are viewing this topic.

Offline CoolMemeJoe

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Admin file
« on: January 14, 2016, 08:56:10 AM »
Hi,

I was wondering in what file (or database perhaps?) are the admins located?
As I wanted to create a webpage where you can view all the staff but I can't find the file ;)

- Joe

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Admin file
« Reply #1 on: January 14, 2016, 10:08:16 AM »
Users with ranks and information about them (ie permissions) are stored in <server root>/data/ulib/users.txt. They're stored in what I believe is a proprietary format, so you'll want to use ULib's tools to parse them and sync them somehow. Or at least analyze their code for doing so.

You could make things easier by using a ULib->SQL addon, but those are usually rather flaky. Use them with caution.

Honestly, the easiest route is just to make a static page with a staff list, and update it when a new user gains staff. Unless your server gets a new staff member every day or something (why?), this is the easiest way to do things.
bw81@ulysses-forums ~ % whoami
Homepage

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Admin file
« Reply #2 on: January 14, 2016, 09:52:09 PM »
We use KeyValuesToTable in gmod lua.
You could easily parse it using something like php or asp if you knew what you were doing.