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

0 Members and 1 Guest are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #30 on: March 02, 2012, 11:29:37 PM »
I've never used this, nor know how often/if the author even visits anymore.
However, take a look at this regarding bans path - http://forums.ulyssesmod.net/index.php/topic,5347.msg24015.html#msg24015
and This regarding permissions - http://forums.ulyssesmod.net/index.php/topic,5347.msg24285.html#msg24285
Hope it helps.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline ThatBum

  • Newbie
  • *
  • Posts: 14
  • Karma: 2
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #31 on: March 02, 2012, 11:55:20 PM »
Both no go. ULX Web is able to login to the gameserver FTP and cd to ULib, but then nothing. Adding or removing preceding and trailing slash doesn't do anything.

Permissions is moot, the gameserver is running on a windows host and so there is no xxx permissions like on Unix-like systems.

I'm sure the directory for ULib data is correct, the FTP cage of my host has the folder up from garrysmod as the root (i.e. hl2, episodic, cstrike, tf, etc).

Perhaps I'll just devise a script to mirror the bans.txt from the gameserver to the ulxweb root on the webserver, because that seemed to work when I did it manually.

EDIT: Nope, nothing is working. Maybe it's some kind of filesystem incompatibility with the two OSs. I did notice that ftp_size worked, it returned "int(6046)" which is the size in bytes. It's just that ftp_get and ftp_nlist are derping.

Thanks anyway I guess.
« Last Edit: March 03, 2012, 02:40:56 AM by ThatBum »

Offline russy

  • Newbie
  • *
  • Posts: 18
  • Karma: 6
    • ULX Bans
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #32 on: March 09, 2012, 11:24:09 AM »
edit: Post no longer relevent
« Last Edit: May 22, 2012, 02:03:10 PM by russy »
??????

Offline ThatBum

  • Newbie
  • *
  • Posts: 14
  • Karma: 2
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #33 on: March 23, 2012, 12:33:48 PM »
Found it. FTP needed to be in passive mode.

Like so:

Code: [Select]
      unlink('bans.txt');
      ftp_pasv($conn, true);
      ftp_get($conn,"bans.txt","bans.txt",FTP_ASCII);
      echo '<center><h1 class="update">Bans updated!</h1><br /><h2 class="update">You will now be redirected to the previous page.</h2></center>';

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #34 on: March 23, 2012, 06:41:25 PM »
ThatBum, thanks for reporting that. Though russy may not be developing as much, your report may help others.

My guess is that it would vary depending on the hosts (and client side) NAT and Firewall settings.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline ThatBum

  • Newbie
  • *
  • Posts: 14
  • Karma: 2
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #35 on: March 25, 2012, 06:22:56 PM »
Yep yep yep. The gameserver is running Windows Server 2008 x64 Enterprise on a Dual Xeon x5355 machine. The webhost, as stated earlier, is running Gentoo, kernel 2.6.38.2 on a x3470. They're in the same datacenter, so I imagine they have pretty straightforward networking rules.

Offline strategos

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 2
  • I wanna be the guy
    • Community
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #36 on: April 15, 2012, 12:17:29 PM »
I love this system, thank you. I have modified mine to my pleasings, but I have a few questions.

Here's mine: http://forums.stgdarkrp.org/index.php?pageid=bans

1: How could I modify the index.php to use a remote location such as http://108.163.211.219/bans.txt instead of a physical on-site copy.

2: How could I get the admins steamid extracted from the ban list? Similar to the way you extract the banned users steamid, but I cant figure out how to do the admin's one.

Code: [Select]
"admin" "Headcrap(STEAM_0:1:42287608)"
« Last Edit: April 15, 2012, 12:25:48 PM by strategos »

Offline russy

  • Newbie
  • *
  • Posts: 18
  • Karma: 6
    • ULX Bans
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #37 on: April 19, 2012, 12:43:29 PM »
Here's mine: http://forums.stgdarkrp.org/index.php?pageid=bans

wow nice xD wish i could design like that lol.

still need help with this?
1: How could I modify the index.php to use a remote location such as http://108.163.211.219/bans.txt instead of a physical on-site copy.

2: How could I get the admins steamid extracted from the ban list? Similar to the way you extract the banned users steamid, but I cant figure out how to do the admin's one.

Code: [Select]
"admin" "Headcrap(STEAM_0:1:42287608)"
??????

Offline strategos

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 2
  • I wanna be the guy
    • Community
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #38 on: April 19, 2012, 04:48:28 PM »
Yea lol. Im kinda new to php and don't fully understand what you did with that.

Offline 017

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #39 on: June 24, 2012, 04:12:23 AM »
The download links for the 1.2 version aren't working... help?

Offline Nasu

  • Newbie
  • *
  • Posts: 2
  • Karma: -1
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #40 on: June 27, 2012, 04:51:25 AM »
Yep the link for 1.2 isn't working, could someone reupload it?

Offline zoliio

  • Newbie
  • *
  • Posts: 3
  • Karma: -1
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #41 on: June 27, 2012, 08:15:28 AM »
It looks like you can not download it anymore. Can you reupload please?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #42 on: June 27, 2012, 07:44:13 PM »
Please, don't be a "Me Too" idiot.

Click Russy's name, you'll see;
Quote from: Author's profile
Last Active:
    June 19, 2012, 04:33:17 PM

He doesn't check here every day.
Give him some time to respond.
If that doesn't work, send him a PM.

500 posts of me too will only make the admins angry by clogging up with unnecessary discussion.
The first post said it quite eloquently...yes, the link is broken. Wait to see if the author can fix it.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #43 on: June 28, 2012, 01:03:50 AM »
As it just so happens.. I have him friended on steam. I will let him know to check this thread.

Offline russy

  • Newbie
  • *
  • Posts: 18
  • Karma: 6
    • ULX Bans
Re: ULX web system (Remote bans/list current bans) - BETA v1.2
« Reply #44 on: June 28, 2012, 04:29:17 PM »
Well i wasn't planning on making the website offical untill a new version was complete but here you are http://forums.ulyssesmod.net/index.php/topic,5347.msg23917.html#msg23917

All downloads are tested and working.

Note: All versions are in an alpha/beta state, It was originally in beta as I did not plan to add much to it however with all the buggy and planned features I guess it's more of an alpha.
« Last Edit: June 28, 2012, 04:58:20 PM by russy »
??????