Page 1 of 3

[PHP] Nouse Web Tool Bundle V2.1

Posted: 08 Sep 2009 18:11
by nouseforname
  • 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

Re: Nouse Web Tool Bundle RC_1

Posted: 08 Sep 2009 20:38
by Xymph
Wouldn't this be more suitable for the general Toolbox forum?

Re: Nouse Web Tool Bundle RC_1

Posted: 09 Sep 2009 03:34
by nouseforname
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

Re: Nouse Web Tool Bundle RC_1

Posted: 09 Sep 2009 13:30
by ferenyl
im going to test this. i will be back with a report soon

Re: Nouse Web Tool Bundle RC_1

Posted: 11 Sep 2009 17:32
by nouseforname
30 downloads yet.
what about any information?

Re: Nouse Web Tool Bundle RC_1

Posted: 11 Sep 2009 19:22
by Rasta Triskell
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

Re: Nouse Web Tool Bundle RC_1

Posted: 11 Sep 2009 20:03
by nouseforname
  • 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: Select all

    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: Select all

    sudo -u tmf /usr/bin/php $NAME.php </dev/null >aseco.log 2>&1 &
    SAMPLEdedi:

    Code: Select all

     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: Select all

    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: Select all

    php_admin_flag engine on
    php_admin_flag safe_mode off
    php_admin_value open_basedir none

Re: [PHP] Nouse Web Tool Bundle RC_2

Posted: 12 Sep 2009 06:34
by scg-flighthigh
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 ?

Re: [PHP] Nouse Web Tool Bundle RC_2

Posted: 12 Sep 2009 07:03
by nouseforname
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:
- 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?

Re: [PHP] Nouse Web Tool Bundle RC_2

Posted: 12 Sep 2009 07:35
by scg-flighthigh
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: Select all

<!--	<tool>Control</tool> -->
and than i take a look into your bundlepack. :thumbsup:

Re: [PHP] Nouse Web Tool Bundle RC_2

Posted: 12 Sep 2009 10:06
by scg-flighthigh
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: Select all

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:

Re: [PHP] Nouse Web Tool Bundle RC_2

Posted: 12 Sep 2009 10:48
by nouseforname
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.
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?

Re: [PHP] Nouse Web Tool Bundle RC_2

Posted: 12 Sep 2009 11:08
by scg-flighthigh
Yes the Server and Tools are on the same Maschine.

You got an PM from me

Re: [PHP] Nouse Web Tool Bundle V1.0

Posted: 13 Sep 2009 19:20
by nouseforname
  • Released V1.0

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

Re: [PHP] Nouse Web Tool Bundle V2.0

Posted: 03 Oct 2009 07:26
by nouseforname
  • Released V2.0

    updated first post.