Author Topic: ULX web system (Remote bans/list current bans) - BETA v1.3  (Read 42734 times)

0 Members and 1 Guest are viewing this topic.

Offline Willdy

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 1
Re: ULX web system (Remote bans/list current bans) - BETA
« Reply #15 on: August 06, 2011, 06:14:57 AM »
Edit.
« Last Edit: August 23, 2011, 08:15:59 AM by Willdy »

Offline strategos

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 2
  • I wanna be the guy
    • Community
Re: ULX web system (Remote bans/list current bans) - BETA
« Reply #16 on: August 06, 2011, 05:38:49 PM »
Hi, it's nice to see someone developing such as useful tool! I have mine set up and I've updating successfully though I haven't actually tested the banning itself. I have 1 possibly serious issue and 1 suggestion.

Complaint- how secure is this against SQL injections? I tested a few basic strings and it held up alright but when I tested the ' and - strings in the login it returned a SQL error, which is usually the sign of a injection-vulnerable system.

Suggestion- This is very nice for beta stage.
In the future I hope to see more CSS and features to add to the overall appeal. Very nice, nonetheless

I hope to see this develope into the level the sourcebans remote admin did. Best of luck!
« Last Edit: August 06, 2011, 09:45:36 PM by strategos »

Offline Wully616

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 10
    • WullysGamers
Re: ULX web system (Remote bans/list current bans) - BETA
« Reply #17 on: August 31, 2011, 05:35:18 PM »
I can't seem to get this working, I've put in all the correct info into the config.php.

I've enabled the debugging text in update.php, it does seem to connect but doesn't have permission to access the file.
I've tried with and without a trailing slash and a slash at the start, currently it has a trailing slash at the end and the start but shows the ConnectedDir without a trailing slash?

Code: [Select]
ConnectedDir: /89.238.160.174_port_27015/orangebox/garrysmod/data/ULib
Warning: ftp_get(bans.txt) [function.ftp-get]: failed to open stream: Permission denied in /home/wullysbu/public_html/gmodban/update.php on line 31

Warning: ftp_get() [function.ftp-get]: Error opening bans.txt in /home/wullysbu/public_html/gmodban/update.php on line 31

The only other thing I can think of is the actual bans.txt file, its permission is xxx, I have tried changing it to read only access, but it immediately changes back, same with any other files on the entire servers ftp, something to do with the host possibly?
[/url]

Offline DJWolf

  • Newbie
  • *
  • Posts: 8
  • Karma: 3
Re: ULX web system (Remote bans/list current bans) - BETA
« Reply #18 on: August 31, 2011, 11:20:42 PM »
This looks great, I have been looking for a replacement for a ban system since my MySQL host went out.
In the event of an emergency, all power will be diverted away from security...  ^_^

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 7840
  • Karma: 367
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX web system (Remote bans/list current bans) - BETA
« Reply #19 on: September 01, 2011, 01:53:01 PM »
changes back, same with any other files on the entire servers ftp, something to do with the host possibly?
Possibly.
Also, make sure the server isn't running when you try to modify files
The price one pays for pursuing any profession or calling is an intimate knowledge of its ugly side. - James Baldwin

Offline Wully616

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 10
    • WullysGamers
Re: ULX web system (Remote bans/list current bans) - BETA
« Reply #20 on: September 01, 2011, 08:09:09 PM »
Possibly.
Also, make sure the server isn't running when you try to modify files

I tried stopping the server to try and update the ban list and it still failed.
I attempted to change the permissions of the garrysmod/data/ulib directory to 644 as well as the files inside, while the server was offline, no luck; it changed straight back to xxx.

It must just be something with my hosts garrysmod windows servers, I have a Minecraft server hosted with them on a linux machine. I edited the files to attempt to download the banned-players.txt file from the minecraft server and it worked perfect - with permissions 644 on the files/directory.

Other than that, when manually transferring the bans.txt file to the webhost, viewing the bans works perfect. I may need to ask my host to change the permissions of the gmod gameservers directory, perhaps they simply don't give the ftp accounts on their windows servers access.

Thank you for the help anyway!
[/url]

Offline Wearing8

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: ULX web system (Remote bans/list current bans) - BETA
« Reply #21 on: September 27, 2011, 04:19:49 PM »
What If Im hosting my server from my Home PC. And I dont have a SQL, How can I do this? I really need it... PLEASE HELP!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 7840
  • Karma: 367
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX web system (Remote bans/list current bans) - BETA
« Reply #22 on: September 27, 2011, 05:57:34 PM »
Install an SQL server. Or hire a hosting company.
The price one pays for pursuing any profession or calling is an intimate knowledge of its ugly side. - James Baldwin

Offline strategos

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 2
  • I wanna be the guy
    • Community
Re: ULX web system (Remote bans/list current bans) - BETA
« Reply #23 on: October 13, 2011, 11:18:07 PM »
What If Im hosting my server from my Home PC. And I dont have a SQL, How can I do this? I really need it... PLEASE HELP!

XAAMP

http://sourceforge.net/projects/xampp/

Offline russy

  • Newbie
  • *
  • Posts: 18
  • Karma: 6
    • ULX Bans
Re: ULX web system (Remote bans/list current bans) - BETA
« Reply #24 on: October 22, 2011, 10:01:46 PM »
Hi sorry for the late reply you don't need my SQL for the system to work it is only required for you to login to the system the system will still show the bans on your server without SQL.

EDIT: system coming alone nicely I'm working on and off but i'm slowly getting it done xD

??????

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1258
  • Karma: 164
  • open(my $file, "<README") or die;
    • XGUI
Re: ULX web system (Remote bans/list current bans) - BETA
« Reply #25 on: October 23, 2011, 11:54:25 AM »
Lookin' really nice!  ;D
"The stupidity of an individual on the Internet is generally matched only the by size of their ego, unless the individual in question is unaware of both." - Me

Offline russy

  • Newbie
  • *
  • Posts: 18
  • Karma: 6
    • ULX Bans
??????

Offline Willdy

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 1
Re: ULX web system (Remote bans/list current bans) - BETA
« Reply #27 on: November 24, 2011, 10:06:45 AM »
Hey Russy, can you add me on steam? I would like to talk to you :D

http://steamcommunity.com/id/Willdy/

Offline russy

  • Newbie
  • *
  • Posts: 18
  • Karma: 6
    • ULX Bans
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #28 on: December 21, 2011, 02:29:52 PM »
1.2 Released hopefuly you'll like the improvement.

P.S I'm always looking for help in coding, design and in finding bugs.

EDIT: I have been told that the status colum is not always correct.
« Last Edit: December 21, 2011, 04:39:33 PM by russy »
??????

Offline ThatBum

  • Newbie
  • *
  • Posts: 14
  • Karma: 2
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #29 on: March 02, 2012, 09:36:41 PM »
Apologies for the necropost, but I can't seem to get it to work.

I put it up on my webspace in its own subdomain. The main page loads, it accesses my database and I can make users, all fine and dandy, but there are no bans listed despite the config being correct.

I found the debugging code in update.php and uncommented it. It returns this when run with SSH:

Code: [Select]
tntspacebuild@hosted2 ~/public/ulxweb $ php update.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>ULX Bans Update</title>
<link rel="stylesheet" href="admin/styles.css" type="text/css" />
<meta http-equiv="REFRESH" content="3;url=index.php">
</head>
<body bgcolor="#333333">
connectedDir: /garrysmod/data/ULib/

It then just hangs at this point, and after 90 seconds the host externally terminates it for running too long (it's a shared machine). I then pared down update.php until I got to the line it was choking on. It's "$contents = ftp_nlist($conn, ".");". Dunno if it's something to do with what php or ftp or whatever the server has, but eh.

It's bizarre, it can print what directory it's in but not what's in it.

OS:
Code: [Select]
tntspacebuild@hosted2 ~/public/ulxweb $ uname -a
Linux hosted2 2.6.38.2 #1 SMP Sun Apr 3 23:47:45 PDT 2011 x86_64 Intel(R) Xeon(R) CPU X3470 @ 2.93GHz GenuineIntel GNU/Linux

EDIT: I realized if I manually go to the gameserver, grab the bans.txt from /garrysmod/data/ULib, then put it in ulxweb root, it shows the bans.