TM-FORUM

The TrackMania universal forum ^_^
It is currently 29 Mar 2017 04:28

All times are UTC + 1 hour




Post new topic Reply to topic  [ 42 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: [PHP] Nouse Web Tool Bundle V2.1
PostPosted: 08 Sep 2009 19:11 
Offline
swift roadking
swift roadking

Joined: 20 Apr 2008 09:58
Posts: 840
Location: Germany
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies

    Nouse Web Tool Bundle V2.1

    Update 2.1:
    - changed the shell scripts to a better way to handle the processes (thanks to nocturne)
    - server user should be named "tmf" otherwhise you need to edit
    /tools/Control/index.php line 39 "sudo -u tmf" to the correct user

    Update:
    - added function to view some pages without log in, must be enabled via user permissions of user "view"
    - added clan member online view, incl chat. (atm only available in bundle)
    - fixed (i hope) some security issues
    - fixed some style bugs

    how to update:
    i recommend to install it from scratch, but its possible to keep server.xml.

    remark:
    read the informations in readme.txt for the "view only" function. not all pages are available for that.

    Here we go,

    i created a bundle package of all my web tools. some are modified and improved. Also some new tools inside.
    all with user/server management via web interface.

    Whats inside:
    - Website Chat Log Viewer, now with seperate log file path for each server and track change display if checked
    - CheatRecordsDelete from DB, now with possibillity to delete single records of one given login and some more nice information. better than the original one.
    - Website Backup tracks, to backup tracks of online servers.
    - Prune tracks, delete older track data from database
    - State control bundle (linux only), with web interface to start/stop/restart dedicated and/or xaseco
    - a nice status view of all servers, with online players list
    - clan member server ranking list
    - more in the future possible

    installation:
    - read the readme.txt
    - copy all files to web server
    - call page in your browser
    - chmod neccessary files
    - login with Admin / admin
    - add/change user settings via interface
    - some settings must be set on your server itself, in case script dont work. specially for the state control interface.
    - you may have problems with Gbx.remote.inc.php, try one of the others gbx.remote files in "Classes" folder.

    also this information might be useful for the state control and other problems:
    viewtopic.php?p=161143#p161143

    it's quite easy to add tools/pages just by adding the name into the tools.xml. of course the page must be prepared too.

    download:
    Download here

    Have fun using it and let me know if you like it.

    thanks all

_________________
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialink


Last edited by nouseforname on 30 Dec 2010 13:30, edited 7 times in total.

Top
 Profile  
 
 Post subject: Re: Nouse Web Tool Bundle RC_1
PostPosted: 08 Sep 2009 21:38 
Offline
Pit Crew
Pit Crew

Joined: 19 Aug 2007 13:58
Posts: 5627
Owned TM-games: TMN, TMU, TMF, TM²
Wouldn't this be more suitable for the general Toolbox forum?

_________________
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub


Top
 Profile  
 
 Post subject: Re: Nouse Web Tool Bundle RC_1
PostPosted: 09 Sep 2009 04:34 
Offline
swift roadking
swift roadking

Joined: 20 Apr 2008 09:58
Posts: 840
Location: Germany
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Xymph wrote:
Wouldn't this be more suitable for the general Toolbox forum?


for the test yes, but some of the script are just made for xaseco, so i would say it's basically for xaseco users.
with a little modification it can be used for Aseco too i think. didnt test it.
all others can't use half of the scripts, or even don't need it.
maybe a second thread in generell toolbox, for those who still wanna use the generell tools is possible, but later.

xAseco:
- CheatRecordsDelete
- Prune tracks
- State control

generell:
- Website Chat Log Viewer
- Website Backup tracks
- statusview

_________________
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialink


Top
 Profile  
 
 Post subject: Re: Nouse Web Tool Bundle RC_1
PostPosted: 09 Sep 2009 14:30 
Offline
cyclist
cyclist

Joined: 26 Jul 2008 14:37
Posts: 37
Owned TM-games: tmuf
im going to test this. i will be back with a report soon


Top
 Profile  
 
 Post subject: Re: Nouse Web Tool Bundle RC_1
PostPosted: 11 Sep 2009 18:32 
Offline
swift roadking
swift roadking

Joined: 20 Apr 2008 09:58
Posts: 840
Location: Germany
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
30 downloads yet.
what about any information?

_________________
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialink


Top
 Profile  
 
 Post subject: Re: Nouse Web Tool Bundle RC_1
PostPosted: 11 Sep 2009 20:22 
Offline
wheelbarrow operator
wheelbarrow operator

Joined: 14 Sep 2008 18:33
Posts: 15
Owned TM-games: TMU
Hi All

The script works very well change after the rights of the user sudo
everything else is very good

very good work

ty again Nouse


Top
 Profile  
 
 Post subject: Re: Nouse Web Tool Bundle RC_1
PostPosted: 11 Sep 2009 21:03 
Offline
swift roadking
swift roadking

Joined: 20 Apr 2008 09:58
Posts: 840
Location: Germany
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
    here we go:

    i found some little bugs. fixed and updated download pack to RC2.

    i forgot to mention one of the most important settings to get the Control script working.

    you have to add in /etc/sudoers:
    Code:
    www-data ALL=(ALL) NOPASSWD: /path/to/shellscripts/*


    usually the user is "www-data", in case you are using xampp, it's "nobody".

    this setting will change the permission of the web script user, to be able to execute the shell files in the given folder.
    in case you dont want to run the servers as root, create a user eg.: tmf and add

    sudo -u tmf

    in the shell scripts SAMPLExaseco:
    Code:
    sudo -u tmf /usr/bin/php $NAME.php </dev/null >aseco.log 2>&1 &


    SAMPLEdedi:
    Code:
    sudo -u tmf ./$DEDINAME /dedicated_cfg=$DEDICONF /game_settings=MatchSettings/$MATCHSETTINGS > /dev/null


    xampp users have to change some values in php.ini if original.
    i am not 100% sure if all are needed, but at least after set this it worked.
    php.ini:
    Code:
    y2k_compliance = On
    safe_mode_gid = Off
    register_globals = Off
    session.use_trans_sid = 0


    remark again:
    the "control" script of the bundle only works in linux, cause it controls the shell files.


    for the other scripts it might be neccessary to set this in php.ini:
    Code:
    php_admin_flag engine on
    php_admin_flag safe_mode off
    php_admin_value open_basedir none

_________________
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialink


Last edited by nouseforname on 12 Sep 2009 07:56, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: [PHP] Nouse Web Tool Bundle RC_2
PostPosted: 12 Sep 2009 07:34 
Offline
smooth traffic navigator
smooth traffic navigator

Joined: 05 May 2009 16:52
Posts: 199
Owned TM-games: TM2
Hello nouseforname

In your Startpost is no advice for the OS. In the readme-file you told : "running on linux"

I thing, you told it at another Topic, that you make only Scripts for Linuxsystems.

Ist this Bundle only for Linux OS ?


Top
 Profile  
 
 Post subject: Re: [PHP] Nouse Web Tool Bundle RC_2
PostPosted: 12 Sep 2009 08:03 
Offline
swift roadking
swift roadking

Joined: 20 Apr 2008 09:58
Posts: 840
Location: Germany
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
scg-flighthigh wrote:
Hello nouseforname

In your Startpost is no advice for the OS. In the readme-file you told : "running on linux"

I thing, you told it at another Topic, that you make only Scripts for Linuxsystems.

Ist this Bundle only for Linux OS ?


i think i didn't articulate it clear enough. but at least i made this in first post:
Quote:
- State control bundle (linux only), with web interface to start/stop/restart dedicated and/or xaseco

you can use the tool bundle on each web server, windows and linux. cause main function is normal web servers function, display and update mysql data etc. or display dedicated server data.

BUT ( yes there is one but)

the "Control" script itself just execute the shell files via web interface, and the shell scripts are linux only.

so the bundle is mainly for linux systems with dedicated servers and xaseco. if you running the servers at windows, just disable "Control", but the other 5 tools can be used. if you don't diable "control" u can view the page and click buttons, but nothing will happen ;).

clear now?

_________________
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialink


Top
 Profile  
 
 Post subject: Re: [PHP] Nouse Web Tool Bundle RC_2
PostPosted: 12 Sep 2009 08:35 
Offline
smooth traffic navigator
smooth traffic navigator

Joined: 05 May 2009 16:52
Posts: 199
Owned TM-games: TM2
OK thanks i think that it is so if you told me that.

But one Question is better than a "Blackout" of the Serverstruktur.

I download the bundle and look whats in it.

I think that is disable the Control with this line

Code:
<!--   <tool>Control</tool> -->


and than i take a look into your bundlepack. :thumbsup:


Top
 Profile  
 
 Post subject: Re: [PHP] Nouse Web Tool Bundle RC_2
PostPosted: 12 Sep 2009 11:06 
Offline
smooth traffic navigator
smooth traffic navigator

Joined: 05 May 2009 16:52
Posts: 199
Owned TM-games: TM2
Here my way:

Put my Database and Server info into the servers.xml. There is a Problem. I have a Win-Systemserver with Plesk. In Plesk you cant give to different Databases the same Loginname and Password. So for my Test i make only one Server. I make a <!-- for the second Server -->

Then i upload it and call the index.php over Firefox. I make a login with Admin admin and change the Adminpassword. So i make a new Login with this new Password. All is ok. But if i klick Status i get an Errormessage like this:

Code:
Warning: unpack() [function.unpack]: Type V: not enough input, need 4, have 0 in D:\inetpub\vhosts\sc-gamer.de\httpdocs\statistik\test\classes\GbxRemote.inc.php on line 495


I have no idea whats wrong :oops:


Top
 Profile  
 
 Post subject: Re: [PHP] Nouse Web Tool Bundle RC_2
PostPosted: 12 Sep 2009 11:48 
Offline
swift roadking
swift roadking

Joined: 20 Apr 2008 09:58
Posts: 840
Location: Germany
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
scg-flighthigh wrote:
Here my way:

Put my Database and Server info into the servers.xml. There is a Problem. I have a Win-Systemserver with Plesk. In Plesk you cant give to different Databases the same Loginname and Password.

thats funny, i also use plesk, but i can go phpmyadmin and make all databases with same user. never heard that kinda problem.

Quote:
I have no idea whats wrong :oops:

i think some mistake with configuration. status need server connection, port, admin name and password. nothing with db.

could u send me your config via pm?

btw server and tool all at same machine?

_________________
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialink


Top
 Profile  
 
 Post subject: Re: [PHP] Nouse Web Tool Bundle RC_2
PostPosted: 12 Sep 2009 12:08 
Offline
smooth traffic navigator
smooth traffic navigator

Joined: 05 May 2009 16:52
Posts: 199
Owned TM-games: TM2
Yes the Server and Tools are on the same Maschine.

You got an PM from me


Top
 Profile  
 
 Post subject: Re: [PHP] Nouse Web Tool Bundle V1.0
PostPosted: 13 Sep 2009 20:20 
Offline
swift roadking
swift roadking

Joined: 20 Apr 2008 09:58
Posts: 840
Location: Germany
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
    Released V1.0

    updated first post.
    i think now all problems are clear and easy to solve at different systems.


_________________
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialink


Top
 Profile  
 
 Post subject: Re: [PHP] Nouse Web Tool Bundle V2.0
PostPosted: 03 Oct 2009 08:26 
Offline
swift roadking
swift roadking

Joined: 20 Apr 2008 09:58
Posts: 840
Location: Germany
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
    Released V2.0

    updated first post.


_________________
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialink


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 42 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group