Coder Social home page Coder Social logo

banmanager-webui's Introduction

BanManager-WebUI

Git repo initialized with existing WebUI project for BanManager by confuser. The main purpose of this repository is to to fix the WebUI for the latest major database restructure from version 4 to version 5.

Caution: This project is WIP. There could be still some bugs and issues that I didn't iron out yet. Please report those via GitHub issues if you notice anything.

Feel free to contribute if you have any suggestions or ideas.

Usage

Preperation
  1. Clone this repository into your Nginx/Apache document root:
    git clone https://github.com/yeahwhat-mc/BanManager-WebUI.git /var/www/banmanager
  2. Make sure cache is writeable:
    cd /var/www/banmanager
    chmod 777 cache/
  3. Rename settingsRename.php to settings.php:
    cp settingsRename.php settings.php
  4. Make sure settings file is writeable:
    chmod 777 settings.php
  5. Open and adjust the settings and make sure you're entered $settings['password'].
Installation
  1. Open http://yourdomain.com/where-you-installed/index.php?action=admin
  2. You will then be asked for a password, type in the one you set earlier.
  3. You will now see the admin area.
  4. Click on the "Add Server" button.
  5. A dialogue box will appear with a form.
  6. Fill out all the form details.
  7. The dialogue box will disappear upon success, once that happens, refresh the page.
  8. You should now see the server you just added in the table.
  9. If you have any other servers, add them.
  10. Once you have finished adding servers, please CHMOD settings.php back to 644 (If in future you need to add more, you must make it writeable again by CHMOD to 777).
  11. Please be aware, the mysql settings you entered are stored in settings.php in plain text, nobody else can read it unless they are able to download the file via FTP (or SSH etc) or you have an exploit in another script on your server.
  12. All done! If you have some bans, test it. Click "Home", in the search box type % and hit search. It will list all players that are currently banned or have been banned.

Development

In case you want to help us and contribute to the project you need to compile the assets with the assistence of Grunt:

  1. Make sure you've installed node and npm
  2. Install Grunt, Bower and Linter and code checker:
    npm install -g grunt-cli bower jshint jscs
  3. Install all dependencies:
    npm install
  4. Install web libraries:
    bower install
  5. Run grunt task to compile assets and start watching for local file changes:
    grunt dev

If you want to commit your changes, exclude the dev argument.

Caution: When using the dev argument, Grunt won't minify your JS or CSS, so it's easier to debug. Once you run grunt (without the dev), the files are minified!

Adjustments so far

  • Convert all .php files to UTF-8 and add proper EOF
  • Support version 5 and up
  • Widgets more customizable in settings
  • Configurable caching times
  • Add debug option to output any SQL query
  • Fix "Statistics"
  • CSS adjustments
  • Option to enable/disable PHP errors
  • Default timezone in settings for date() functions
  • Replaced mysql_ functions with mysqli_ ones
  • PHP 5.3 compatible
  • Bower and Grunt to compile assets and libraries
  • Refactor (more information #16)
  • Configurable skin service

Demo

You can find a working demo over here: http://bans.yeahwh.at

Version

1.2.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.