/PHP-Webopal

A webinterface for Opal

Primary LanguagePHPOtherNOASSERTION

WebOpal - A webinterface for Opal

    1. Requirements
    1. Installation
    1. Update
    1. Optimize Javascript & CSS
    1. Optional features
  • 5.1. Bugreportsystem

##1. Minimum Requirements##

You need to install Opal on your server.

##2. Installation##

    1. Clone this repository into your webservers document root.
    1. Create the directories 'tmp'.
    1. Make the dir 'tmp' writeable by the webserver
    1. Rename config.example.php to config.php
    1. Edit config.php
    1. Recommended: Run make compile (See 4.)
    1. Recommended: Enable gzip compression (See 5.)
    1. Upload it to your server

##3. Update##

    1. Run git pull
    1. Recommended: Run make compile (See 4.)
    1. Edit config.php
    1. Upload it to your server

##4. Optimize Javascript & CSS##

###4.1. Requirements### For Javascript Optimization you will need a JRE like OpenJDK or Java

For CSS Optimization you will need Sass

###4.2. How to###

  • For optimizing both: Run make compile
  • For optimizing Javascript: Run make compile-js
  • For optimizing CSS: Run make compile-css

###4.3. Why?### This optimization fastenes the speed of the PHP-Webopal on old PCs and/or smartphones/mobiles.

###4.4. What if I dont want to do this?### If you don't want to use the optimized versions, there are fallback CSS and Javascript available, which will be chosen, if you never run make compile.

Please note, that once you did run make compile you will need to run it after each update or delete the following files:

  • js/jquery-*.min.js
  • js/script.min.js
  • css/style.css

##4.5. Enable gzip compression## In order to shrink server load, you are able to enable gzip compression:

    1. Rename .htaccess.example to .htaccess
    1. Adjust the paths in .htaccess (Please note that absolute Paths are necessary!)

##5. Optional features##

###5.1. Bugreportsystem###

We implemented an bugreportsystem, which will give your visitors the possibility of reportings bugs or ideas directly in WebOpal.

    1. Get a keypair for recaptcha from Recaptcha.net
    1. Paste the keys in your config.php file
    1. Add your github username and password in your config.php
    1. Edit $ISSUEUSER and $ISSUEREPO in your config.php
    1. Set $BUGREPORT from false to true in your config.php